You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This question has been bothering me for ten years, and I still have no answer.
Many people may mistakenly think that color is setting the color of the font/text, but the actual setting of color will also apply to border-color, box-shadow and text-decoration-color and other related color property, so I'm not a big fan of having frameworks/libraries use classes containing text/font to refer to the color CSS property, even confusing Native CSS to call it color because it's too broad.
The color CSS property sets the foreground color value of an element's text and text decorations, and sets the currentcolor value. currentcolor may be used as an indirect value on other properties and is the default for other color properties, such as border-color.
As mentioned above, the various behaviors of color indicate setting the foreground color, and CSS has a background property, should there be a foreground to echo it? ( The native color: key is currently supported. )
Whether the color CSS property of the Master CSS should provide the foreground key.
Provide `foreground:`/`fg:` ( e.g `foreground:blue-60`/`fg:blue-60` ) to echo `background`
40%
Provide `text:` ( e.g `text:blue-60`/`t:blue-60` )
0%
Provide `font:` ( e.g `font:blue-60`/`f:blue-60` ) —— Currently
20%
By convention, use the native CSS property name `color:blue-60`.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
This question has been bothering me for ten years, and I still have no answer.
Many people may mistakenly think that
color
is setting the color of the font/text, but the actual setting ofcolor
will also apply toborder-color
,box-shadow
andtext-decoration-color
and other related color property, so I'm not a big fan of having frameworks/libraries use classes containingtext
/font
to refer to thecolor
CSS property, even confusing Native CSS to call itcolor
because it's too broad.Let's take a look at MDN's definition of the CSS Color property: https://developer.mozilla.org/en-US/docs/Web/CSS/color
As mentioned above, the various behaviors of
color
indicate setting the foreground color, and CSS has a background property, should there be aforeground
to echo it? ( The nativecolor:
key is currently supported. )10 votes ·
Beta Was this translation helpful? Give feedback.
All reactions