[ RFC ] Global color modifiers
See original GitHub issueI’ve discussed with @filrak about creating common modifiers for components globally (as Bulma does), at least for colors.
So, some classes like has-bg-primary
and has-text-primary
should be created and available for all convenient components, then these components shouldn’t have BEM modifiers specifically for the primary
color.
Imo we should create these modifiers for primary
, secondary
, danger
, warning
, info
and success
colors, wdyt? The respective modifiers should be removed from components, we should use the global ones instead.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:4
- Comments:5
Top Results From Across the Web
[ RFC ] Global color modifiers · Issue #209 - GitHub
Imo we should create these modifiers for primary , secondary , danger , warning , info and success colors, wdyt? The respective modifiers...
Read more >RFC 7950: The YANG 1.1 Data Modeling Language
RFC 7950 YANG 1.1 August 2016 o identity: A globally unique, abstract, ... For example, the following is illegal: leaf color { type...
Read more >CSS Color Module Level 4 - W3C
CSS provides several methods of directly specifying an sRGB color: hex colors, rgb()/rgba() color functions, hsl()/hsla() color functions, hwb() ...
Read more >The YANG 1.1 Data Modeling Language RFC 7950
1. o Defined the string value of an identityref in XPath expressions (see Section 9.10). o Clarified what unprefixed names mean in leafrefs...
Read more >UTS #51: Unicode Emoji
Table: Sample Emoji Modifier Bases; Table: Expected Emoji Modifiers Display ... In other words, when someone changes the text color in a word...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@filrak sure, I’ll take care of it.
@mayashavin about sizes, I think it may be available for almost all atoms, right? Although, I think it would be component specific, we can use modifiers with the same class names, but imo
.sf-price.lg
should apply different styles than.sf-button.lg
for example, wdyt?@leomp12 @filrak I agree on the global ones. We should have a global palettes and global sizes, this way we don’t need to define again specific modifiers and make it harder to control the styling. You can check the implementation of the size in
SfIcon
. I would suggest we define something more specific rather thanpink-primary
andpink-secondary
also.