Colors

All color tokens from the Eclipse Design System

Colors

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)

Teal/cyan themed 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

Indigo/purple themed colors for Prisma ORM branding.

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

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

Green colors for success states and positive feedback.

bg-background-success-strong

Strong success

bg-background-success

Default success

bg-background-success-reverse-strong

Reverse strong

bg-background-success-reverse

Reverse

Warning

Orange/amber colors for warning states and caution.

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

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

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