Colors
Color tokens from the Eclipse Design System
The Eclipse Design System provides a comprehensive color palette with semantic naming and automatic dark mode support. All colors are synced from Figma and organized by usage.
Color System
Colors are organized into three main categories:
- Background - For surfaces, containers, and backgrounds
- Foreground - For text, icons, and foreground elements
- Stroke - For borders, dividers, and outlines
Each category has variants for different products and semantic meanings.
Background Colors
Neutral
Background colors for neutral surfaces and containers.
Primary background
Strong neutral
Default neutral
Weak neutral
Weaker neutral
Reverse (inverted)
Prisma Pulse & Accelerate (PPG)
Prism cyan colors for Prisma Pulse and Accelerate branding.
Strong PPG
Default PPG
Reverse strong
Reverse
Prisma ORM
Prism yellow colors for Prisma ORM branding. The scale is darkness-compensated, so the mid steps read as ochre rather than lemon.
Strong ORM
Default ORM
Reverse strong
Reverse
Semantic Colors
Error
Prism red colors for error states and destructive actions.
Strong error
Default error
Reverse strong
Reverse
Success
Success shares the prism cyan scale with PPG — every success token carries the same value as its ppg counterpart, in both light and dark mode.
Strong success
Default success
Reverse strong
Reverse
Warning
Spectrum orange colors for warning states and caution. The scale is anchored on the #f37a03 stop of the brand spectrum gradient.
Strong warning
Default warning
Reverse strong
Reverse
Additional Colors
Accent Colors
Foreground Colors
Foreground colors are used for text, icons, and other foreground elements. Each color has multiple strength variants.
Neutral Foreground
text-foreground-neutral-strong
text-foreground-neutral
text-foreground-neutral-weak
text-foreground-neutral-reverse
text-foreground-neutral-reverse-weak
Product Foreground
PPG
text-foreground-ppg-strong
text-foreground-ppg
text-foreground-ppg-reverse
ORM
text-foreground-orm-strong
text-foreground-orm
text-foreground-orm-reverse
Semantic Foreground
Error
text-foreground-error
Success
text-foreground-success
Warning
text-foreground-warning
Stroke Colors
Stroke colors are used for borders, dividers, and outlines.
Colored Strokes
Gradients
Pre-defined branded gradients.
bg-gradient-orm
bg-gradient-ppg
Prism Scales
The prism scales are the raw brand ramps that sit behind the semantic tokens above. Reach for them when you need one specific step — a chart series, an illustration, a one-off accent — and keep using the semantic tokens everywhere else.
Three scales, eleven steps each. Every step is available as bg-*, text-* and border-*.
prism-cyan
#eeffff
#dcfdff
#b3f4f9
#7be7f0
#01d7e4
#00bbcb
#009aaa
#007f8d
#006772
#00545d
#00353c
prism-yellow
#fff7e0
#fcedc2
#f8da85
#f3c306
#eaa700
#d48700
#b46700
#965100
#7a4200
#633700
#402000
prism-red
#ffeeee
#ffdfdf
#ffc2c4
#ff9fa4
#ff7682
#f34a60
#d02344
#af0a33
#8e0b29
#740f22
#4b0211
Spectrum stops
Three further stops complete the brand spectrum. They exist as single colors rather than scales.
| Token | Value |
|---|---|
--color-spectrum-orange | #f37a03 |
--color-spectrum-scarlet | #f43531 |
--color-spectrum-pink | #f00e5c |
Brand surfaces
| Token | Light | Dark |
|---|---|---|
--color-paper | #f9faf5 | #1a1a1a |
--color-foreground-neutral-strong | #151515 | #ffffff |
--color-card-wash | prism cyan 50 at 18% over #f5f5f4 | prism cyan 950 at 25% over #232323 |
paper is the warm resting surface pages sit on; card-wash is the tinted surface for content cards placed on white panels; foreground-neutral-strong is the ink used for headings.
Spectrum Utilities
The signature brand treatment is a six-stop gradient that slides on hover. It is defined once as --gradient-spectrum and consumed by a small set of component-layer classes. Every one of them drops its animation under prefers-reduced-motion: reduce.
| Class | Effect |
|---|---|
spectrum-border | Paints the gradient into the element's 1px border ring, fading in on hover. Pair it with hover:border-transparent so the ring replaces the resting border. |
spectrum-border-on | Same ring, always lit — no hover required. |
spectrum-ink | Overlays the gradient with mix-blend-mode: lighten, coloring every ink-dark pixel underneath on hover. Light surfaces only. |
spectrum-ink-text | Clips the gradient to the text itself and crossfades the ink to transparent on hover. Works on any background; icons inside ease to prism-red-500. |
spectrum-underline | Slides a gradient underline in beneath the label when the element's parent is hovered. |
<button className="spectrum-border rounded-circle border border-stroke-neutral duration-500 hover:border-transparent">
Get started
</button>Usage Examples
Background and Foreground
<div className="bg-background-neutral text-foreground-neutral">
Neutral content
</div>
<div className="bg-background-ppg-strong text-foreground-ppg-reverse">
PPG branded content
</div>With Borders
<div className="bg-background-default border border-stroke-neutral">
Content with border
</div>
<div className="bg-background-error border-2 border-stroke-error">
Error state
</div>Semantic Colors
// Error message
<div className="bg-background-error-reverse text-foreground-error p-4 rounded-lg">
Something went wrong!
</div>
// Success message
<div className="bg-background-success-reverse text-foreground-success p-4 rounded-lg">
Operation completed successfully!
</div>
// Warning message
<div className="bg-background-warning-reverse text-foreground-warning p-4 rounded-lg">
Please review before continuing
</div>Dark Mode
All colors automatically adjust for dark mode. The design system uses CSS custom properties that change based on the .dark class on the root element.
Note: All color values shown here will automatically adapt when dark mode is enabled. The same class names work in both light and dark modes without any changes to your code.
Accessibility
All color combinations in the Eclipse Design System meet WCAG AA standards for color contrast:
- Text on backgrounds: Minimum 4.5 contrast ratio
- Large text: Minimum 3 contrast ratio
- Interactive elements: Clear visual indicators for focus states
Always test color combinations with accessibility tools and consider users with color vision deficiencies.