concept
Design system — CSS reference
A design system combines reusable decisions, components, interaction rules and documentation. Tokens help maintain consistency, but a token file alone does not make a system accessible or complete. Here a button and a link share a spacing decision while keeping native semantics.
Formal Syntax & Structure
css syntaxcss
--control-padding: 12px;Working Example
Example Snippetcss
<!doctype html><html lang="en"><meta charset="utf-8"><title>design-system</title><style>body{margin:8px;font:16px/24px sans-serif;color:black;background:white}#a{box-sizing:border-box}:root{--control-padding:12px}.control{padding:var(--control-padding)}</style><body><button id="a" class="control">Save</button><a id="b" class="control" href="#a">Go to save</a></body></html>