Token reference Porchlight CSS

Color

52 components 51 stable 1 experimental

Command

Search Porchlight

Color Tokens

Porchlight colors are authored in OKLCH for perceptual uniformity. All semantic colors use light-dark() so they adapt automatically to the user’s color scheme.

Brand ramp

A 9-step ramp at hue 82 (amber-gold). Override --pl-brand-* to retheme.

TokenValuePurpose
--pl-brand-1oklch(97% 0.02 82deg)Lightest tint
--pl-brand-2oklch(89% 0.05 82deg)Subtle tint
--pl-brand-3oklch(80% 0.09 82deg)Soft tint
--pl-brand-4oklch(70% 0.13 82deg)Dark-mode accent
--pl-brand-5oklch(63% 0.15 82deg)Saturated middle
--pl-brand-6oklch(56% 0.14 82deg)Active/hover support
--pl-brand-7oklch(48% 0.11 82deg)Light-mode accent
--pl-brand-8oklch(39% 0.07 82deg)Deep accent support
--pl-brand-9oklch(29% 0.04 82deg)Darkest accent support

Semantic pairs

Foreground/background are defined as intentional pairs. Each pair is verified to meet WCAG-AA contrast (4.5:1 minimum) in both light and dark themes via the deterministic contrast test suite.

TokenLight valueDark valuePurpose
--pl-color-bgoklch(98% 0.005 60deg)oklch(14% 0.008 55deg)Page background
--pl-color-surfaceoklch(100% 0 0deg)oklch(18% 0.008 55deg)Cards, panels
--pl-color-surface-2oklch(94% 0.008 60deg)oklch(22% 0.012 55deg)Hover, subtle surfaces
--pl-color-textoklch(20% 0.012 55deg)oklch(96% 0.008 60deg)Primary text
--pl-color-text-mutedoklch(46% 0.015 55deg)oklch(72% 0.012 55deg)Secondary text
--pl-color-borderoklch(80% 0.015 55deg / 75%)oklch(45% 0.012 55deg / 30%)Dividers, borders
--pl-color-accentbrand-7brand-4Links, primary actions
--pl-color-accent-textwhiteoklch(16% 0.01 55deg)Text on accent

Status colors

Three semantic states, each with a fill, background tint, and text color:

Token groupLightDarkUsage
--pl-color-dangeroklch(60% 0.22 25deg)sameIcon, border
--pl-color-danger-bgoklch(96% 0.04 25deg)oklch(22% 0.08 25deg)Alert background
--pl-color-danger-textoklch(36% 0.18 25deg)oklch(90% 0.06 25deg)Text on tinted bg
--pl-color-successoklch(58% 0.18 150deg)sameIcon, border
--pl-color-success-bgoklch(96% 0.04 150deg)oklch(22% 0.08 150deg)Alert background
--pl-color-success-textoklch(34% 0.15 150deg)oklch(82% 0.15 150deg)Text on tinted bg
--pl-color-warningoklch(62% 0.19 75deg)sameIcon, border
--pl-color-warning-bgoklch(96% 0.06 75deg)oklch(24% 0.09 75deg)Alert background
--pl-color-warning-textoklch(40% 0.17 75deg)oklch(84% 0.15 75deg)Text on tinted bg

Focus ring

TokenLightDark
--pl-focus-coloroklch(52% 0.14 82deg)oklch(72% 0.13 82deg)
--pl-focus-offset2px2px
--pl-focus-size2px2px

Overriding colors

See the Theming guide for how to override tokens in your application.