Styleguide
Fonts
font faces
Space Grotesk weight 400space-grotesk-v22-latin-regular.woff2
Sphinx of black quartz, judge my vow. 0123456789
Space Grotesk weight 500space-grotesk-v22-latin-500.woff2
Sphinx of black quartz, judge my vow. 0123456789
Space Grotesk weight 700space-grotesk-v22-latin-700.woff2
Sphinx of black quartz, judge my vow. 0123456789
Space Mono weight 400space-mono-v17-latin-regular.woff2
Sphinx of black quartz, judge my vow. 0123456789
Space Mono weight 700space-mono-v17-latin-700.woff2
Sphinx of black quartz, judge my vow. 0123456789
family tokens
--font-sans 'Space Grotesk', system-ui, sans-serif
Sphinx of black quartz, judge my vow. 0123456789
--font-mono 'Space Mono', ui-monospace, monospace
Sphinx of black quartz, judge my vow. 0123456789
Palette
white
sage
- --sage-25 #fcfdfa
- --sage-50 #f5f6f2
- --sage-100 #eaece5
- --sage-150 #e3e8e2
- --sage-200 #d6dad1
- --sage-400 #97a096
- --sage-600 #555d55
- --sage-800 #273027
- --sage-850 #181d19
- --sage-900 #151915
- --sage-925 #141915
- --sage-950 #0f1310
forest
- --forest-50 #dcebe1
- --forest-100 #c3dfcc
- --forest-200 #7ddba4
- --forest-250 #93c5a6
- --forest-300 #5ccb8b
- --forest-350 #62a781
- --forest-400 #3fa66c
- --forest-450 #3b8a5f
- --forest-500 #2e8153
- --forest-600 #1d6b43
- --forest-650 #235f3e
- --forest-700 #154f31
- --forest-750 #1a452e
- --forest-800 #173323
Roles
- --color-bg …
- --color-surface …
- --color-card …
- --color-border …
- --color-text …
- --color-muted …
- --color-accent …
- --color-accent-hover …
- --color-accent-subtle …
- --color-on-accent …
text on background
- on --color-bg text: judge my vowmuted: judge my vow
- on --color-surface text: judge my vowmuted: judge my vow
- on --color-card text: judge my vowmuted: judge my vow
- on --color-accent on-accent: judge my vow
Language ramp
- --color-lang-1 …
- --color-lang-2 …
- --color-lang-3 …
- --color-lang-4 …
- --color-lang-5 …
in use
Spacing
base unit
scale
--space-0 0…
--space-025 calc(var(--spacing-base-unit) * 0.25)…
--space-050 calc(var(--spacing-base-unit) * 0.5)…
--space-075 calc(var(--spacing-base-unit) * 0.75)…
--space-100 calc(var(--spacing-base-unit) * 1)…
--space-150 calc(var(--spacing-base-unit) * 1.5)…
--space-175 calc(var(--spacing-base-unit) * 1.75)…
--space-200 calc(var(--spacing-base-unit) * 2)…
--space-250 calc(var(--spacing-base-unit) * 2.5)…
--space-300 calc(var(--spacing-base-unit) * 3)…
--space-350 calc(var(--spacing-base-unit) * 3.5)…
--space-400 calc(var(--spacing-base-unit) * 4)…
--space-500 calc(var(--spacing-base-unit) * 5)…
--space-600 calc(var(--spacing-base-unit) * 6)…
--space-800 calc(var(--spacing-base-unit) * 8)…
--space-1200 calc(var(--spacing-base-unit) * 12)…
--space-1400 calc(var(--spacing-base-unit) * 14)…
Radius
- --radius-4 4px
- --radius-6 6px
- --radius-12 12px
- --radius-full 999px
Typography
font sizes
--font-size-h1 clamp(2.75rem, 1.98rem + 3.15vw, 4.5rem)…--line-height-h1
Sphinx of black quartz, judge my vow.
--font-size-h2 clamp(1.875rem, 1.6rem + 1.12vw, 2.5rem)…--line-height-h2
Sphinx of black quartz, judge my vow.
--font-size-h3 1.375rem…--line-height-h3
Sphinx of black quartz, judge my vow.
--font-size-blog-title clamp(1.25rem, 1.14rem + 0.45vw, 1.5rem)…--line-height-blog-title
Sphinx of black quartz, judge my vow.
--font-size-lead clamp(1.125rem, 1.04rem + 0.34vw, 1.3125rem)…--line-height-lead
Sphinx of black quartz, judge my vow.
--font-size-large 1.125rem…--line-height-default
Sphinx of black quartz, judge my vow.
--font-size-default 1.0625rem…--line-height-default
Sphinx of black quartz, judge my vow.
--font-size-small 1rem…--line-height-default
Sphinx of black quartz, judge my vow.
--font-size-secondary clamp(
1rem,
0.954rem + 0.19vw,
1.125rem
)…--line-height-default
Sphinx of black quartz, judge my vow.
--font-size-percent clamp(1.5rem, 1.28rem + 0.9vw, 2rem)…--line-height-percent
Sphinx of black quartz, judge my vow.
--font-size-email clamp(1.125rem, 0.85rem + 1.12vw, 1.75rem)…--line-height-default
Sphinx of black quartz, judge my vow.
line heights
--line-height-default 1.6body
Sphinx of black quartz,
judge my vow.
--line-height-h1 1.05
Sphinx of black quartz,
judge my vow.
--line-height-h2 1.15
Sphinx of black quartz,
judge my vow.
--line-height-h3 1.25card title
Sphinx of black quartz,
judge my vow.
--line-height-blog-title 1.3blog title, small headings, footer email
Sphinx of black quartz,
judge my vow.
--line-height-lead 1.55lead, body small
Sphinx of black quartz,
judge my vow.
--line-height-label 1.4section label, role line
Sphinx of black quartz,
judge my vow.
--line-height-button 1button, navigation
Sphinx of black quartz,
judge my vow.
--line-height-tag 1.5tag, badge, date, handle
Sphinx of black quartz,
judge my vow.
--line-height-percent 1.1language percentage
Sphinx of black quartz,
judge my vow.
letter spacing
--letter-spacing-h1 -0.03em
--letter-spacing-h2 -0.02em
--letter-spacing-h3 -0.01em
Motion
Under prefers-reduced-motion: reduce the box still changes, but does not animate.
Base styles
headings
Display heading
Section heading
Card heading
paragraph and link
Running text in the body font, with a link to the SvelteKit docs to check the underline and hover.
Tab to the link to see the focus ring.
button without a class
The reset gives it the inherited font and color; everything else is the browser's.
Utilities
.visually-hidden
Accessible name: “Live site: Profile card v3.0”
.skip-link
Press Tab from the top of the page to see it.
.mono
~/styleguide · space mono · 2026-11-27
Parts
section title
~/about
Hi, I'm Your Name.
junior front-end developer
level 1, size h1, with meta
~/projects
Selected work
4 featured · 15 total
level 2, size h2, with meta
level 2, size h3, no meta
~/writing
Recent posts
3 posts · 2026
knobs overridden: --_label-color muted, --_meta-gap space-100
button
solid + anchor → ↓ · hollow → no arrow
compact · solid + external → ↗ · read as "Live site: Profile card v3.0"
button element, aria-expanded="false"
overrides: iconEnd={false} · iconEnd="arrow-right"
tag list
ul aria-label="Tags"; the # comes from CSS and is not read out
project card
-
Profile card v3.0
This was my first project in SvelteKit. Here I learned what the different files in the routes folder do and how I can create and export components.
-
I Love Web
Where I keep track of my progress and write my blogs.
no screenshot → placeholder · second card has repo only and a shorter text: equal height, buttons
on the bottom edge
icons
- arrow-down
- arrow-left
- arrow-right
- arrow-up
- arrow-up-right
- brand-bluesky
- brand-codepen
- brand-github
- brand-linkedin
- brand-mastodon
- chevron-down
- chevron-up
- menu-2
- moon
- sun
- x
registry in src/lib/icons.ts; new icons show up here by themselves
theme toggle
switches data-theme on html for this visit; icon and label follow the effective theme