HandbookVI the AtriumDesign systems and tokens
VIthe Atrium, Design the experienceDesign systems and tokens
In plain words
A design system is your app's shared kit of components and rules, and tokens are its named values, like brand colour or card radius, used instead of raw numbers.
Where you see it
In a Lovable project, the colour variables near the top of src/index.css, such as --primary and --background, and the shared shadcn/ui components in src/components/ui. Figma keeps its version under variables and styles.
What goes wrong
- Hex codes scattered through the code
The brand green appears as #0f766e in 40 files, plus a slightly different green in three where the agent guessed. A rebrand turns into a search-and-replace hunt.
<button className="bg-[#0f766e]"> - A new button style with every prompt
Ask for five features and you may get five slightly different buttons. Point the agent at the existing Button component and forbid new variants unless it asks first.
- Dark mode that only half works
Components that use tokens switch to dark colours; ones with a hard-coded white background stay glaring white. Tokens are what let a theme change reach everything.
What to tell your agent
Quick check
Sign in to earn +10 XP for itYou change Harbor's brand colour in the theme file, but a third of the buttons keep the old colour. Why?