Skip to main content
FlowDrop uses a semantic-first design token system based on CSS custom properties with a --fd-* prefix.

Quick start

Override semantic tokens to customize FlowDrop:

Token architecture

FlowDrop’s token system has three tiers: Key principle: Override --fd-* tokens. Components automatically use these tokens, so your theme cascades everywhere.

Semantic tokens reference

Surfaces

Borders

Primary and accent

Status colors

Each status color has -hover, -foreground, and -muted variants:
  • --fd-success — Green
  • --fd-warning — Amber
  • --fd-error — Red
  • --fd-info — Blue

Spacing

Border radius

Typography

Layout

Node layout

Node dimensions use a 10px grid for alignment with the editor snap grid:

Theming examples

Purple theme

Rounded theme

Compact spacing

Dark mode

FlowDrop supports dark mode. Enable it with:
Or via JavaScript:
Or use the built-in theme toggle:
All semantic tokens have dark-mode equivalents that activate automatically.

Best practices

  1. Use semantic tokens — Override --fd-primary instead of individual component colors
  2. Keep it minimal — A few token overrides can transform the entire look
  3. Test in context — Colors look different on light vs dark backgrounds
  4. Consider accessibility — Ensure sufficient contrast ratios
  5. Use the cascade — Semantic tokens update all components automatically