[wp-trac] [WordPress Trac] #50120: [Multiple Bundled Themes] Custom color palette styles need to be added to the editor stylesheet

WordPress Trac noreply at wordpress.org
Mon Jul 27 06:17:41 UTC 2020


#50120: [Multiple Bundled Themes] Custom color palette styles need to be added to
the editor stylesheet
--------------------------------------+--------------------------
 Reporter:  kjellr                    |       Owner:  ianbelanger
     Type:  defect (bug)              |      Status:  assigned
 Priority:  normal                    |   Milestone:  5.5
Component:  Bundled Theme             |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |     Focuses:  css
--------------------------------------+--------------------------

Comment (by sabernhardt):

 I'm having trouble creating a patch for Twenty Nineteen.

 For standard theme colors, this is what worked for me in the style-
 editor.scss file. I put the following code in the Base Typography section,
 between the `.has-white-background-color` settings and the `figcaption`
 styles, and there may a better place for it.

 {{{
 .has-primary-color {
         color: $color__link;
 }

 .has-secondary-color {
         color: $color__border-link-hover;
 }

 .has-dark-gray-color {
         color: $color__text-main;
 }

 .has-light-gray-color {
         color: $color__text-light;
 }

 .has-white-color {
         color: #FFF;
 }
 }}}

 I couldn't figure out how to set the user-customized colors for inline
 text, but Twenty Nineteen apparently does not yet support those on the
 front end either.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/50120#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list