A playground to explore color system in both light and dark themes, using vanilla JavaScript and CSS. No framework except Astro were used.

Edit Color

Contrast Ratios

Current Color
vs Background: -
vs Surface: -
New Color
vs Background: -
vs Surface: -
HEX: #000000 copy
RGB: (0, 0, 0) copy

Brand Color Sample

Color Palette

Primary
Secondary
Success
Danger
Warning
Info
Light
Dark
Background
Surface
Body
Subtle

Gradient Companion

Color 1
Color 2

GRADIENT PREVIEW

Gradient Background Card

This card showcases the selected gradient background.

Companion Suggestions

ANALOGOUS
HEX: #000000 copy
RGB: (0, 0, 0) copy
COMPLEMENTARY
HEX: #000000 copy
RGB: (0, 0, 0) copy
DEPTH
HEX: #000000 copy
RGB: (0, 0, 0) copy
GOLDEN
HEX: #000000 copy
RGB: (0, 0, 0) copy

Component Examples

Interactive Buttons

These buttons demonstrate the different color variants available in both themes.

Typography on Background

Body text using the main text color for body content.

Subtle colored text for muted content and secondary information.

Primary colored text for important highlights and links.

Secondary colored text for subtle accents and labels.

Success messages for positive feedback and confirmations.

Error or danger messages for warnings and critical alerts.

Warning messages for cautionary information.

Informational messages for helpful tips and details.

This is an inner card with body text content to demonstrate contrast and readability.

Typography on Surface

Body text using the main text color for body content.

Subtle colored text for muted content and secondary information.

Primary colored text for important highlights and links.

Secondary colored text for subtle accents and labels.

Success messages for positive feedback and confirmations.

Error or danger messages for warnings and critical alerts.

Warning messages for cautionary information.

Informational messages for helpful tips and details.

This is an inner card with body text content to demonstrate contrast and readability.

Form Elements

Form inputs that adapt to the current theme automatically.

Code Examples

Code blocks and inline code that adapts to the theme colors.

Here's some inline code that adapts to the theme.

// JavaScript example
const themeManager = {
  currentTheme: 'light',

  toggleTheme() {
    this.currentTheme = this.currentTheme === 'light' ? 'dark' : 'light';
  }
};
/* CSS Variables */
:root {
  --primary: #006564;
  --secondary: #FFC0CB;
  --background: #FAFAFA;
}

Use var(--primary) for theme colors.

How to Use