Styles

The example · Northwind's site uses 24 colours, 9 type styles and 27 icons. Analysis found 7 greys that match no token.

Capture reads the values your site uses and files them as tokens, one page per group. Values on the site that match no token show in Analysis.

Styles › Colors: ramps by shade, each one a token; the loose greys link to Analysis.

Groups

GroupHoldsToken example
ColorsRamps by shade, and rolesbrand/500 ink/2
TypographyFont, size, weight, line heighttext/body
SpacingThe steps your layout usesspace/4 = 16px
RadiusCorner sizesradius/md = 8px
ShadowsElevationshadow/lg
IconsEvery icon and logo, as SVGcart logo

Names

Names use group/name. Renaming a token is a major change, because code uses the name.

Import a system

Start Styles from Tailwind, shadcn/ui, Material 3, Bootstrap or a tokens file. Imported tokens go to your draft.

Export

FormatFile
cssCSS custom properties
tailwinda Tailwind theme
scssSCSS variables
w3cW3C design tokens JSON
style-dictionaryStyle Dictionary JSON
figmaFigma variables JSON

From the CLI: babul tokens --format tailwind.

Was this page helpful? Yes No Updated Oct 22, 2026