Colors
UI Framework includes a default color palette out-of-the-box that is a great starting point.
Default Colors: SLATE
, GRAY
, ZINC
, NEUTRAL
, STONE
, RED
, ORANGE
, AMBER
, YELLOW
, LIME
, GREEN
, EMERALD
, TEAL
, CYAN
, SKY
, BLUE
, INDIGO
, VIOLET
, PURPLE
, FUCHSIA
, PINK
, and ROSE
.
Additional color slots include BASE
, PRIMARY
, and SECONDARY
. If you want to use custom colors while retaining the UI framework's functionality, you can override these colors through USS.
Color tones
Each color has 11 tones, from light to dark: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950
.
Each tone has a semi-transparent variant.
USS Variables
You can use uss variables while styling your elements.
USS Classes
There are various utility classes so you don't have to write custom USS class every time.
In addition to default LunaUI colors, each of the below has a transparent, white and black variant.
Background Color
Format: bg-color-tone
Border Color
Format: border-color-tone
Image Tint
Format: tint-color-tone
Text Color
Format: text-color-tone
UIColor Class
Constructor
name
UIColorName
The name of the color
value
UIColorValue
The value/tone of the color
Public Methods
GetUssClassBG
GetUssClassBorder
GetUssClassText
GetColor
Last updated