--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:Best practices
- Use semantic tokens — Override
--fd-primaryinstead of individual component colors - Keep it minimal — A few token overrides can transform the entire look
- Test in context — Colors look different on light vs dark backgrounds
- Consider accessibility — Ensure sufficient contrast ratios
- Use the cascade — Semantic tokens update all components automatically