packages/eclipse/TOKENS.md
This document provides a comprehensive reference for all design tokens in the Eclipse Design System, imported from Figma.
Background colors are used for surfaces, containers, and backgrounds throughout the design system.
background-default - Primary background colorbackground-default-050 - 50% opacity versionbackground-default-075 - 75% opacity versionbackground-neutral-strong - Strong neutral backgroundbackground-neutral - Default neutral backgroundbackground-neutral-weak - Weak neutral backgroundbackground-neutral-weaker - Weaker neutral backgroundbackground-neutral-reverse-strong - Strong reverse (inverted) backgroundbackground-neutral-reverse - Reverse (inverted) backgroundbackground-ppg-strong - Strong PPG backgroundbackground-ppg - Default PPG backgroundbackground-ppg-reverse-strong - Strong reverse PPG backgroundbackground-ppg-reverse - Reverse PPG backgroundbackground-orm-strong - Strong ORM backgroundbackground-orm - Default ORM backgroundbackground-orm-reverse-strong - Strong reverse ORM backgroundbackground-orm-reverse - Reverse ORM backgroundError
background-error-strong - Strong error backgroundbackground-error - Default error backgroundbackground-error-reverse-strong - Strong reverse error backgroundbackground-error-reverse - Reverse error backgroundSuccess
background-success-strong - Strong success backgroundbackground-success - Default success backgroundbackground-success-reverse-strong - Strong reverse success backgroundbackground-success-reverse - Reverse success backgroundWarning
background-warning-strong - Strong warning backgroundbackground-warning - Default warning backgroundbackground-warning-reverse-strong - Strong reverse warning backgroundbackground-warning-reverse - Reverse warning backgroundEach of these follows the same pattern (strong and default variants):
background-cyan-strong, background-cyanbackground-fuchsia-strong, background-fuchsiabackground-lime-strong, background-limebackground-pink-strong, background-pinkbackground-purple-strong, background-purplebackground-sky-strong, background-skybackground-violet-strong, background-violetbackground-yellow-strong, background-yellowForeground colors are used for text, icons, and other foreground elements.
Each color has multiple strength variants:
strong - Highest contrastweak - Lower contrastreverse - For use on colored backgroundsreverse-weak - Lower contrast on colored backgroundsAvailable foreground colors:
foreground-neutral-*foreground-ppg-*foreground-orm-*foreground-error-*foreground-success-*foreground-warning-*foreground-cyan-*foreground-fuchsia-*foreground-lime-*foreground-pink-*foreground-purple-*foreground-sky-*foreground-violet-*foreground-yellow-*Stroke colors are used for borders, dividers, and outlines.
stroke-neutral-strongerstroke-neutral-strongstroke-neutralstroke-neutral-weakstroke-ppgstroke-ormstroke-errorstroke-successstroke-warningstroke-cyanstroke-fuchsiastroke-limestroke-pinkstroke-purplestroke-skystroke-violetstroke-yellowPre-defined multi-stop gradients:
bg-gradient-orm - ORM branded gradientbg-gradient-ppg - PPG branded gradientMargin tokens for consistent spacing between elements:
margin-4xs - 4pxmargin-3xs - 8pxmargin-2xs - 12pxmargin-xs - 16pxmargin-sm - 20pxmargin-md - 24pxmargin-lg - 28pxmargin-xl - 32pxmargin-4xl - 48pxElement sizing tokens:
size-element-2xs - 12pxsize-element-xs - 16pxsize-element-sm - 20pxsize-element-md - 24pxsize-element-lg - 28pxsize-element-xl - 32pxsize-element-2xl - 36pxsize-element-3xl - 40pxsize-element-4xl - 48pxsize-element-5xl - 64pxsize-element-6xl - 96pxfont-sans-display - Mona Sans (for display text)font-sans - Inter (body text)font-mono - Mona Sans Mono (code)All font sizes include corresponding line heights:
text-2xs - 11px / 16px line heighttext-xs - 12px / 16px line heighttext-sm - 14px / 20px line heighttext-md - 16px / 24px line heighttext-lg - 18px / 28px line heighttext-xl - 20px / 28px line heighttext-2xl - 24px / 32px line heighttext-3xl - 30px / 36px line heightfont-normal - 400 (light mode) / 375 (dark mode)font-medium - 500 (light mode) / 475 (dark mode)font-semibold - 600 (light mode) / 575 (dark mode)font-bold - 750 (light mode) / 725 (dark mode)font-ultra-bold - 900 (light mode) / 850 (dark mode)Note: Font weights are automatically adjusted in dark mode for better readability.
rounded-circle - 999px (fully rounded)rounded-square-low - 3pxrounded-square - 6pxrounded-square-high - 12pxblur-surface-low - 16pxblur-surface - 24pxblur-surface-high - 40px// Background and foreground
<div className="bg-background-neutral text-foreground-neutral">
Content
</div>
// Product-specific colors
<Button className="bg-background-ppg-reverse text-foreground-ppg-reverse">
Prisma Pulse
</Button>
// Semantic colors
<div className="bg-background-error text-foreground-error">
Error message
</div>
// Margin
<div className="m-margin-md">Spaced content</div>
// Sizes
<div className="w-size-xl h-size-xl">
Square element
</div>
// Font families
<h1 className="font-sans-display text-3xl font-bold">
Display Heading
</h1>
<p className="font-sans text-md">
Body text
</p>
<code className="font-mono text-sm">
const code = true;
</code>
<div className="rounded-square-high p-4 bg-background-neutral">
Card with rounded corners
</div>
<button className="rounded-circle p-4">
Circular button
</button>
All color tokens automatically adjust for dark mode:
<div className="dark">
<div className="bg-background-default text-foreground-neutral">
Dark mode content
</div>
</div>
<div className="bg-gradient-orm text-foreground-orm-reverse">
ORM branded gradient
</div>
<div className="bg-gradient-ppg text-foreground-ppg-reverse">
PPG branded gradient
</div>
All tokens are defined in:
src/tokens/index.tstailwind.config.tssrc/styles/globals.cssThis three-layer approach ensures:
When adding new tokens:
src/tokens/index.ts with the new token valuestailwind.config.tssrc/styles/globals.csspnpm types:check to ensure no type errors