Skip to content
Discussion options

You must be logged in to vote

With CSS variables, one can also use both

Nope, there's only CSS variables for theme colors. Palette colors are available in sass variables instead (because they're static).

But custom classes are only available for palette colors

? https://codepen.io/kaelwd/pen/VwyzjPq?editors=1010

why not having red--background aside, instead of a very general class name red

Because it was originally copied from materializecss. This has been changed in v3:

  • red -> bg-red
  • red lighten-1 -> bg-red-lighten-1
  • red--text -> text-red
  • red--text text--lighten-1 -> text-red-lighten-1

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@augnustin
Comment options

Answer selected by augnustin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants
Converted from issue

This discussion was converted from issue #14898 on March 30, 2022 10:24.