Skip to content
feega
star on github download

Design system

Every colour, font, size, radius, spacing and shadow your app uses, and a way to change one everywhere.

The Design tab in the right bar lists what the whole app uses, grouped as Colours, Fonts, Text styles, Font sizes, Radii, Spacing, Shadows and Other.

  • Tokens. CSS custom properties in your stylesheets: Tailwind @theme entries such as --color-brand, --radius-card, --font-display, --shadow-card, --spacing, --text-lead, and colour variables in :root. A variable of no known kind is listed under Other. A token is listed once, with the value it has in the theme you are previewing.
  • Values in use. Tailwind classes in class and className attributes, and declarations in .css files and <style> blocks. Inline style attributes are not read.

The same value written in different ways counts once: #FF0000 and bg-[#ff0000] are one colour. A token counts every var(--token) and class that names it, such as text-brand.

Text styles are the size, weight and line height used together on one element, for example text-xl font-semibold leading-7.

Each item shows how many places use it. Open an item to see the list of places as file:line:column. Click one to open it in the editor. The list shows the first 50 places; the count is the full one.

  • A token. Click it. A panel opens to the left of the right bar with the control for its kind, the same one the Style tab uses: the colour picker for colours, the font list for fonts (a Google font is loaded with it), a number and unit field for font sizes, radii and spacing, the shadow editor for shadows, and a text field for anything else or any value the control cannot read, such as calc() or var(). The page previews the change while you drag or type, and the token is rewritten once where it is defined. Every place that uses it follows. Escape closes the panel without saving.
  • A value in use. Open the item and type the new value. Replace everywhere… first lists every place that will change. Replace everywhere then writes them all, across files. Class names become arbitrary-value classes, for example bg-[#ff0000] becomes bg-[#00ff00]; stylesheet values are replaced in place. For a font stack, only the first family changes.
  • A text style. Change size, weight or line height. Only the parts you change are rewritten.

When the project has light and dark (or other) themes, editing a token changes the value it has in the theme you are previewing, for example the .dark block. If that theme does not redeclare the token, the base value changes.

The edit is one change in Changes, marked “design system”. One undo restores every file. If a file changed after the list was built, nothing is written and you are asked to reopen the panel.