Skip to content

Color Tokens

TwColor is a PHP backed string enum where each case value is the hex color for that shade.

use Matheusmarnt\LiveCharts\Enums\TwColor;
TwColor::Amber500->value; // '#f59e0b'
TwColor::Amber500->hex(); // same — alias
TwColor::Amber500->withAlpha(0.5); // 'rgba(245,158,11,0.5)'
TwColor::Amber500->family(); // 'amber'
TwColor::Amber500->shadeNumber(); // 500
TwColor::Amber500->lighter(1); // TwColor::Amber400
TwColor::Amber500->darker(1); // TwColor::Amber600
TwColor::ramp('amber'); // [Amber50, Amber100, ..., Amber950]
CaseHex
Black#000000
White#ffffff
Transparenttransparent

Each family has 11 shades: 50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950.

Family500 shadeNotes
Red#ef4444
Orange#f97316
Amber#f59e0b
Yellow#eab308
Lime#84cc16
Green#22c55e
Emerald#10b981
Teal#14b8a6
Cyan#06b6d4
Sky#0ea5e9
Blue#3b82f6
Indigo#6366f1
Violet#8b5cf6
Purple#a855f7
Fuchsia#d946ef
Pink#ec4899
Rose#f43f5e
Slate#64748bRecommended for UI chrome
Gray#6b7280
Zinc#71717a
Neutral#737373
Stone#78716c
Family500 shadeCharacter
Taupe#8c7b6bWarm greige
Mauve#9b7fa6Muted purple-rose
Mist#6b8fa6Cool blue-grey
Olive#7a8c5aEarthy green-yellow

These use the same OKLCH-approach as Tailwind v4 but are LiveCharts-specific extensions, not part of the official Tailwind palette.

CaseHexUse
Slate50#f8fafcBackground light mode
Slate100#f1f5f9Surface light
Slate200#e2e8f0Grid / border light
Slate300#cbd5e1Muted text light
Slate400#94a3b8Labels light
Slate500#64748bNeutral text
Slate600#475569Labels dark → use as light:
Slate700#334155Muted dark
Slate800#1e293bGrid dark
Slate900#0f172aBackground dark mode
Slate950#020617Deepest dark
Elementdark:light:Notes
TitleAmber300Amber700
LegendSlate200Slate700
Axis labelsSlate400Slate600
GridSlate800Slate200
Tooltip textWhiteSlate900ApexCharts: applied via CSS injection
Chart backgroundSlate900White