jonas-nj.dev

Design system

Every color token and typeface in use, read live from the stylesheet. Under each color is its contrast ratio, measured against the background it is used on.

Colors

Surfaces and lines

backdrop

The page behind the window

background

The window itself

card

A card standing on the background

accent

A surface under the pointer

border

Dividers and card edges

input

The edge of a control

Text

foreground

Running text

foreground-strong

Headings and emphasis

muted-foreground

Secondary text on the background

card-muted-foreground

Secondary text on a raised card

primary-foreground

Text on a primary background

accent-foreground

Text on the hover surface

Brand

primary

The main button, the active page, arrows

primary-hover

Primary under the pointer

primary-active

Primary while pressed

secondary

Strings, numbers, success

tertiary

Blue, readable as text

destructive

Form errors

ring

The focus ring

States

The primary color changes with the state of the control. The four below are fixed in place so they can be compared. The last button is live: hover it, press it, or tab to it.

  • Get in touchDefault
  • Get in touchHover
  • Get in touchActive (pressed)
  • Get in touchFocus
  • Live

Form error

Please enter a valid email address.

Buttons

The UiButton component: four variants in three sizes. The last one is switched off.

  • primary, md
  • primary, sm
  • secondary, md
  • secondary, sm
  • secondary, xs
  • tertiary, md
  • ghost, md
  • primary, disabled

Code

The colors of a code editor, mapped to the tokens above. Keywords use primary, strings and numbers use secondary, types use the lightened blue, and comments are the grey.

syntax-type

Type names in code

syntax-comment

Commented-out code

syntax-blue

Decoration only, no role assigned yet

// A skill, and the year it entered my worktype Skill = { name: string; since: number }const vue: Skill = { name: 'Vue + Nuxt', since: 2026 }// const old = loadFromWordPress()

Typography

Fira Sans

Body text, 400 to 600. Humanist sans-serif.

ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅabcdefghijklmnopqrstuvwxyzæøå0123456789 !?&@#%(){}[]

400 Regular
Quizdeltagerne spiste jordbær med fløde, mens cirkusklovnen Walther spillede på xylofon.
500 Medium
Quizdeltagerne spiste jordbær med fløde, mens cirkusklovnen Walther spillede på xylofon.
600 SemiBold
Quizdeltagerne spiste jordbær med fløde, mens cirkusklovnen Walther spillede på xylofon.

Fira Code

Headings, navigation, labels and code, 400 to 700. Monospaced.

ABCDEFGHIJKLMNOPQRSTUVWXYZÆØÅabcdefghijklmnopqrstuvwxyzæøå0123456789 !?&@#%(){}[]

400 Regular
Quizdeltagerne spiste jordbær med fløde.
500 Medium
Quizdeltagerne spiste jordbær med fløde.
600 SemiBold
Quizdeltagerne spiste jordbær med fløde.
700 Bold
Quizdeltagerne spiste jordbær med fløde.

Ligatures

=> !== === <= >= -> ::

Prose and headings keep them. Code blocks switch them off, so the characters on screen are the ones typed:

=> !== === <= >= -> ::

Type in use

The sizes the site uses, by role.

  • Hero heading

    Fira Code 700, fluid 32-56px

    Frontend developer

  • Page heading (h1)

    Fira Code 700, 36px

    Selected projects

  • Section heading (h2)

    Fira Code 700, 22px

    Professional

  • Card name

    Fira Code 600, 17px

    Søhus Vandværk

  • Hero lede

    Fira Sans 400, 18px, muted

    I build interfaces with accessibility and long-term maintainability in mind.

  • Body

    Fira Sans 400, 16px

    Running text is set in Fira Sans at sixteen pixels with a generous line height.

  • Card description

    Fira Sans 400, 14px

    A short description of what the project is and what I did on it.

  • Navigation link

    Fira Code 400, 14px

    projects

  • Button label

    Fira Code 500, 13-14px

    Read the post

  • Meta text

    Fira Code 400, 12px on cards, 13px in lists

    2026 · Personal project

  • Pill

    Fira Code 400, 12px

    Vue · Nuxt · TypeScript

  • Code block

    Fira Code 400, 13px, no ligatures

    const answer = a !== b && c === d

Elements in text

These elements have their own look in main.css, so a page writes the plain tag.

A sentence with strong text and inline code in it. Select some of this text to see the selection color.