Export CSS

Export your design tokens as CSS variables for Breakdance or Oxygen

The Export tab packages everything you configured — colors, typography, spacing, theme — into ready-to-use CSS variables. It's the bridge between BreakColorUI and your live site.

Export tab overview, with action bar (Copy & Sync button) at top, configuration sidebar on the left, CSS preview on the right
Export tab overview, with action bar (Copy & Sync button) at top, configuration sidebar on the left, CSS preview on the right

Three ways to use the export

  • Paste into Breakdance Global CSS — works in any browser, on any site (see Global CSS Setup)
  • Sync to the Chrome Extension — click any color input in Breakdance and apply tokens directly (see Chrome Extension)
  • Connect via the WordPress plugin — real-time sync from dashboard to site, no copy-paste (see BreakColorUI Sync)

The 60-second workflow

1. Pick Platform

Breakdance or Oxygen. Defaults to Breakdance.

2. Pick Theme Output

Light, Dark, or Full System.

3. Copy & Sync

Click the primary button to copy CSS and push to the extension if installed.

That's it. The sidebar lets you fine-tune what's included (brand only, no typography, etc.), but the defaults work for most projects.

The Configuration sidebar

The left sidebar drives every export. It's split into four blocks:

Platform

Breakdance

Generates standard CSS with --bde-* mappings for Breakdance Globals (heading colors, body font, brand primary, etc.)

Oxygen

Generates Oxygen-friendly CSS plus a 'Oxygen Variables' button that downloads a JSON file ready to import in Oxygen Settings

When you select Oxygen

An extra Oxygen Variables download button appears next to Copy & Sync (only in Light or Dark modes — Oxygen doesn't import light + dark in a single file). The CSS preview is also adjusted to omit Breakdance-specific selectors and globals.

Theme Output

This controls how light and dark are delivered in the exported CSS — not whether you have dark mode at all.

Light

Single light theme written to html:root. Smallest output. Use this if you don't switch themes.

Dark

Single dark theme written to html:root. Use for dark-only sites.

Full System

Both themes in one file. Switches via [data-hsx*='light'] / [data-hsx*='dark'] selectors that Breakdance toggles automatically.

When Full System is selected, you'll see a Light first / Dark first toggle. This sets which theme :root defaults to before the selector flips.

Color Format

This is the choice between Standard (HEX everywhere) and Enhanced v2 (HEX + OKLCH + Display P3). See the Enhanced v2 reference below.

Include in Export

Toggle individual sections on or off:

  • Colors — Brand, Neutral, Custom (each independently)
  • Layout — Spacing, Border Radius, Page Layout, Responsive Breakpoints
  • Format — Typography, Alpha Variants (Enhanced only), Comments

The variable count and file size at the top of the action bar update live as you toggle.

Action buttons

top action bar showing Copy & Sync button (with mode label) and the conditional Oxygen Variables button
top action bar showing Copy & Sync button (with mode label) and the conditional Oxygen Variables button

Copy & Sync

Always copies the CSS to clipboard. If the BreakColorUI Connector extension is installed, also pushes the project data to it in the same click.

Oxygen Variables

Only visible when Platform = Oxygen and mode is Light or Dark. Downloads a JSON file ready to import in Oxygen Settings → Design Library → Variables.

Save first

If you have unsaved changes, both buttons stay disabled until you save. The CSS preview reflects in-memory state, not the database.

Save before exporting

The export tab will refuse to copy or sync while there are unsaved changes — the dashboard shows a red alert at the top. Hit Save in the global toolbar first.

Output examples

Light only

css
html:root,
[data-hsx*="light"] {
  /* Brand */
  --hcl-brand-1: #fbfdff;
  --hcl-brand-9: #0090ff;
  --hcl-brand-12: #113264;
 
  /* Neutral */
  --hcl-neutral-1: #fcfcfc;
  --hcl-neutral-12: #202020;
 
  /* Breakdance globals */
  --bde-brand-primary-color: var(--hcl-brand-9);
  --bde-headings-color: var(--hcl-neutral-12);
}

Full System (Light first)

css
html:root,
[data-hsx*="light"] {
  --hcl-brand-9: #0090ff;
  --hcl-neutral-12: #202020;
}
 
:root[data-hsx*="dark"],
[data-hsx*="dark"],
[data-hsx*="invert"] {
  --hcl-brand-9: #0090ff;
  --hcl-neutral-12: #eeeeee;
}

The same variable name (--hcl-brand-9) resolves to different values depending on the active theme — you write var(--hcl-brand-9) once everywhere.

What gets exported

A full export includes everything your project defines:

Colors

--hcl-brand-1..12, --hcl-neutral-1..12, --hcl-{schema}-1..12 for each custom palette

Typography

--hfs-h1..h6, --hfs-text-l/m/s with fluid clamp() values

Spacing

--hsp-* (component) and --hss-* (section) scales, both fluid

Layout & Theme

--hcl-page-width, --hcl-offset-min, --hcl-column-gap, --hcl-r1..r3, --hcl-rpill, --hcl-rbutton

Breakdance Mappings

--bde-* aliases that bind Breakdance's Global Settings to your tokens

Responsive overrides

@media (max-width: 1024px) and (max-width: 768px) blocks for tablet/mobile theme values

Enhanced v2 reference

Enhanced v2 is an opt-in upgrade to the color export. Same variable names, better color quality on capable devices.

What changes

  • HEX ships as the universal fallback (works everywhere)
  • OKLCH overrides via @supports (color: oklch(...)) on browsers that understand it (~95% today)
  • Display P3 overrides via @media (color-gamut: p3) on wide-gamut screens (modern Apple devices)
  • Alpha variants (--hcl-brand-a1 through -a12) are generated automatically when Alpha Variants is checked
  • Semantic tokens (--hcl-brand-contrast, --hcl-brand-surface, --hcl-brand-indicator, --hcl-brand-track) are pre-calculated for common UI patterns
css
/* Layer 1 — universal fallback */
:root { --hcl-brand-9: #0090ff; }
 
/* Layer 2 — modern browsers */
@supports (color: oklch(50% 0.2 0)) {
  :root { --hcl-brand-9: oklch(65.4% 0.182 30.39); }
}
 
/* Layer 3 — wide-gamut screens */
@media (color-gamut: p3) {
  :root { --hcl-brand-9: color(display-p3 0.875 0.565 1); }
}

You write var(--hcl-brand-9) everywhere. The browser picks the best layer it can render. File size grows by roughly 15%; total variable count goes from 51 to 86+ per 3-palette setup.

When Enhanced v2 is worth it

  • You're targeting Apple devices (Display P3 is the noticeable bump)
  • You need transparency variants for overlays, hover states, focus rings
  • You use the semantic tokens (contrast, surface, indicator, track) instead of hand-picking steps

Otherwise, Standard is leaner and identical in result on most sRGB monitors.

Project Backup (Pro)

Below the main export there's a collapsible Project Backup panel. It exports a JSON file containing the full project configuration — colors, typography, spacing, theme, and your export settings. Use it to:

  • Move a project between accounts
  • Snapshot a known-good state before experimenting
  • Hand off a design system to another developer

Import accepts the same JSON. This is a Pro feature; on the free tier the buttons are disabled.

Next steps