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.

bg-background-default

Primary background

bg-background-neutral-strong

Strong neutral

bg-background-neutral

Default neutral

bg-background-neutral-weak

Weak neutral

bg-background-neutral-weaker

Weaker neutral

bg-background-neutral-reverse

Reverse (inverted)

Prisma Pulse & Accelerate (PPG)

Prism cyan colors for Prisma Pulse and Accelerate branding.

bg-background-ppg-strong

Strong PPG

bg-background-ppg

Default PPG

bg-background-ppg-reverse-strong

Reverse strong

bg-background-ppg-reverse

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.

bg-background-orm-strong

Strong ORM

bg-background-orm

Default ORM

bg-background-orm-reverse-strong

Reverse strong

bg-background-orm-reverse

Reverse

Semantic Colors

Error

Prism red colors for error states and destructive actions.

bg-background-error-strong

Strong error

bg-background-error

Default error

bg-background-error-reverse-strong

Reverse strong

bg-background-error-reverse

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.

bg-background-success-strong

Strong success

bg-background-success

Default success

bg-background-success-reverse-strong

Reverse strong

bg-background-success-reverse

Reverse

Warning

Spectrum orange colors for warning states and caution. The scale is anchored on the #f37a03 stop of the brand spectrum gradient.

bg-background-warning-strong

Strong warning

bg-background-warning

Default warning

bg-background-warning-reverse-strong

Reverse strong

bg-background-warning-reverse

Reverse

Additional Colors

Accent Colors

blue-strong
blue
cyan-strong
cyan
fuchsia-strong
fuchsia
lime-strong
lime
pink-strong
pink
purple-strong
purple
sky-strong
sky
violet-strong
violet
yellow-strong
yellow

Foreground Colors

Foreground colors are used for text, icons, and other foreground elements. Each color has multiple strength variants.

Neutral Foreground

Aa

text-foreground-neutral-strong

Aa

text-foreground-neutral

Aa

text-foreground-neutral-weak

Aa

text-foreground-neutral-reverse

Aa

text-foreground-neutral-reverse-weak

Product Foreground

PPG

Aa

text-foreground-ppg-strong

Aa

text-foreground-ppg

Aa

text-foreground-ppg-reverse

ORM

Aa

text-foreground-orm-strong

Aa

text-foreground-orm

Aa

text-foreground-orm-reverse

Semantic Foreground

Error

Aa

text-foreground-error

Success

Aa

text-foreground-success

Warning

Aa

text-foreground-warning

Stroke Colors

Stroke colors are used for borders, dividers, and outlines.

stroke-neutral-stronger
stroke-neutral-strong
stroke-neutral
stroke-neutral-weak

Colored Strokes

ppg
orm
error
success
warning

Gradients

Pre-defined branded gradients.

ORM Gradient

bg-gradient-orm

PPG Gradient

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

50

#eeffff

100

#dcfdff

200

#b3f4f9

300

#7be7f0

400

#01d7e4

500

#00bbcb

600

#009aaa

700

#007f8d

800

#006772

900

#00545d

950

#00353c

prism-yellow

50

#fff7e0

100

#fcedc2

200

#f8da85

300

#f3c306

400

#eaa700

500

#d48700

600

#b46700

700

#965100

800

#7a4200

900

#633700

950

#402000

prism-red

50

#ffeeee

100

#ffdfdf

200

#ffc2c4

300

#ff9fa4

400

#ff7682

500

#f34a60

600

#d02344

700

#af0a33

800

#8e0b29

900

#740f22

950

#4b0211

Spectrum stops

Three further stops complete the brand spectrum. They exist as single colors rather than scales.

TokenValue
--color-spectrum-orange#f37a03
--color-spectrum-scarlet#f43531
--color-spectrum-pink#f00e5c

Brand surfaces

TokenLightDark
--color-paper#f9faf5#1a1a1a
--color-foreground-neutral-strong#151515#ffffff
--color-card-washprism cyan 50 at 18% over #f5f5f4prism 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.

ClassEffect
spectrum-borderPaints 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-onSame ring, always lit — no hover required.
spectrum-inkOverlays the gradient with mix-blend-mode: lighten, coloring every ink-dark pixel underneath on hover. Light surfaces only.
spectrum-ink-textClips 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-underlineSlides a gradient underline in beneath the label when the element's parent is hovered.
spectrum-ink-textspectrum-underline
<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.

On this page