Colors - Skeleton

Skeleton

  1. design
  2. colors

Colors

The Skeleton color system.

Color Palette

Primary
50
100
200
300
400
500
600
700
800
900
950
Secondary
50
100
200
300
400
500
600
700
800
900
950
Tertiary
50
100
200
300
400
500
600
700
800
900
950
Success
50
100
200
300
400
500
600
700
800
900
950
Warning
50
100
200
300
400
500
600
700
800
900
950
Error
50
100
200
300
400
500
600
700
800
900
950
Surface
50
100
200
300
400
500
600
700
800
900
950

Supports all standard Tailwind color utility classes using the following pattern.

{property}-{color}-{shade}
KeyAccepted Values
Propertyaccent, bg, border, caret, decoration, divide, fill, outline, ring, shadow, stroke, text
Colorprimary, secondary, tertiary, success, warning, error, surface
Shade50, 100, 200, 300, 400, 500, 600, 700, 800, 900, 950
<div class="bg-primary-500">...</div>
<div class="border border-secondary-600">...</div>
<svg class="fill-surface-950">...</svg>

Contrast Colors

Contrast color values are available for every shade. Use these to set accessible text color and icon fill values.

{property}-{color}-contrast-{shade}

Standard Colors

Color Pairings

See the Preset system for additional utility classes that automatically mix each color and contrast tone.


Color Pairings

Provides a condensed syntax for implementing dual-tone color values that are balanced to easily swap between light and dark mode. These are enabled through the use of the CSS light-dark function.

{property}-{color}-{lightModeShade}-{darkModeShade}

How Pairings Work

The text-primary-300-700 pairing will enable Tailwind to generate the following class:

.text-primary-300-700 {
color: light-dark(var(--color-primary-300), var(--color-primary-700));
}

Which is roughly equivilant to the following - just a lot more compact!

<div class="text-primary-300 dark:text-primary-700">...</div>

Pairing Previews

Below is a static representation of each pairing. Only primary is shown, but all Skeleton colors are supported.

500
Brand
400
300
200
100
50
600
700
800
900
950

Toggle this website bewteen light and dark mode to see how each color pairing reacts.

50 950
100 900
200 800
300 700
400 600
500
600 400
700 300
800 200
900 100
950 50
Based on mode
Static
Based on mode

When to use Pairings

Color Parings are useful for generating a hierarchy of visual layers, ranging from foreground to background elements. Each reuse the same color ramp but, but inverts the order when toggling from light to dark mode.

Dark Mode 950 900 800 700 600 500 400 300 200 100 50 Light Mode 50 100 200 300 400 500 600 700 800 900 950
  • We can use shade 950 for light mode and 50 from dark mode to represent our body text color.
  • Then use shade 50 from light mode and 950 from dark mode to represent our app background.
  • Use the static 500 shade for key branding elements, such as buttons or banners.
  • Then reserve multiple layers between for elements such as cards, inputs, and more.

Transparancy

Both Skeleton Colors and Color Pairings support Tailwind’s color transparency syntax.

<div class="bg-primary-500/25">Primary Color @ 25% transparency</div>
<div class="bg-surface-50-950/60">Surface Pairing 50/950 @ 60% transparency</div>