Colors
Colors
Section titled “Colors”6 color palettes × 7 shades + 4 special colors.
Palettes
Section titled “Palettes”| Palette | Shades |
|---|---|
neutral |
100, 200, 300, 400, 500, 600, 700 |
purple |
100, 200, 300, 400, 500, 600, 700 |
info |
100, 200, 300, 400, 500, 600, 700 |
warning |
100, 200, 300, 400, 500, 600, 700 |
danger |
100, 200, 300, 400, 500, 600, 700 |
success |
100, 200, 300, 400, 500, 600, 700 |
Special: black, white, transparent, current
Access functions
Section titled “Access functions”@use "katanakit-js/scss/variables" as v;
v.get-color("info", 300) // Info shade 300v.get-color("info", 500, 0.5) // With alphav.get("info") // Alias for shade 500v.alpha("info", 300, 0.5) // With custom alphaCSS custom properties
Section titled “CSS custom properties”@include v.generate-css-vars();:root { --neutral-100: hsl(0, 0%, 93%); --info-500: hsl(215, 95%, 35%); --white: hsl(0, 0%, 98%);}Utility classes
Section titled “Utility classes”@include v.all-utilities();Generates:
.text-{palette}-{shade}— text color.bg-{palette}-{shade}— background color.border-{palette}-{shade}— border color.hover-text-{palette}-{shade}:hover— hover text color.hover-bg-{palette}-{shade}:hover— hover background color
Dark mode
Section titled “Dark mode”@include v.theme("dark");Inverts palettes (shade 100 ↔ 700, 200 ↔ 600, 300 ↔ 500) under :root[data-theme="dark"].