commonspace design system
UI moodboard
Every atom on one page — in dedicated order: design tokens, the semantic type classes, and the components. The MDS pipeline keeps its own playground.
Design tokens
Colors
Background
col-bg
col-bg-soft
col-bg-weak
Foreground (as type)
col-fg
col-fg-strong
col-fg-soft
col-fg-weak
Line (as border)
col-line-strong
col-line
col-line-soft
col-line-weak
Accent
col-accent-weak
col-accent
col-accent-strong
col-accent-fg
Error
col-error-weak
col-error
col-error-strong
Contrast — weakest bg × weakest fg
The quick brown fox jumps over the lazy dog.
col-bg-weak × col-fg-weak
Design tokens
Font sizes & families
Type scale
Families
The quick brown fox
Signature · font-fam-msq
The quick brown fox
Body · font-fam-main
The quick brown fox
Mono · font-fam-mono
Classes
Headings & structure
Classes
Body & inline
Inline tweaks (size & color inherit)
A line of body copy with an emphasized phrase, an inline const x = 1 snippet, and 1,234.56 in aligned figures.
Color is overridable
csds-copy-m with a trailing text-col-accent utility — the bundled color gives way.
Classes
Supporting
Classes
Control type
Label sizes (sm · md · lg)
Button label
Components
Typography
Headings with rhythm
Heading 1
A line of default body copy (fs-3) under the heading shows the vertical rhythm.
Heading 2
A line of default body copy (fs-3) under the heading shows the vertical rhythm.
Heading 3
A line of default body copy (fs-3) under the heading shows the vertical rhythm.
Heading 4
A line of default body copy (fs-3) under the heading shows the vertical rhythm.
Heading 5
A line of default body copy (fs-3) under the heading shows the vertical rhythm.
Heading 6
A line of default body copy (fs-3) under the heading shows the vertical rhythm.
Body & lists
Default paragraph. The quick brown fox jumps over the lazy dog while csds-code renders monospace. Body copy carries most of the reading load, so it sets the measure, the leading, and the comfortable line length the rest of the system is tuned against.
- Unordered item one
- Unordered item two with a little more text to wrap
- Unordered item three
- Compact ordered one
- Compact ordered two
Components
Controls — Small
we never share it
Too short
Components
Controls — Medium
we never share it
Too short
Components
Controls — Large
we never share it
Too short