Case Study Design System

Portfolio Design System

One set of colours, type and components behind this website

Role

Product Designer

Project

Design system
Component library

Used in

This portfolio
Pulse dashboard

Tools

Figma variables
HTML, CSS

Why I created it

A portfolio grows one page at a time. Without shared rules, each new case study invents its own greens, text sizes and corners. I defined the basics once as Figma variables, carried them into CSS, and built every page from the same parts.

  • Consistent

    A colour or text style means the same thing on every page.

  • Reusable

    New pages start from existing components, not a blank file.

  • Lean

    Only what the work needs. Two typefaces and one set of ramps.

The foundations

Everything on the site rests on a short list of tokens. They were exported from Figma and map directly to CSS custom properties.

  • 47Colour tokens
  • 2Font families
  • 10Text styles
  • 2Type scales
Figma variableCSS tokenValue
green / 500--color-green-500#90F02A
foundation / black--color-foundation-black#161616
Heading--font-headingSora
H4, Regular--type-desktop-h4-regular400 40px / 48px Sora

Colour

Five ramps of nine steps, plus black and white. Light steps work as surfaces, 500 carries the brand, and dark steps hold text.

Dark blue

Headings and the scroll-to-top button

  • 100#CFD7E5
  • 200#9FAFCB
  • 300#7086B1
  • 400#405E97
  • 500#10367D
  • 600#0D2B64
  • 700#0A204B
  • 800#061632
  • 900#030B19

Green

Primary actions, active states, healthy status

  • 100#E9FCD4
  • 200#D3F9AA
  • 300#BDF67F
  • 400#A6F355
  • 500#90F02A
  • 600#73C022
  • 700#579019
  • 800#3A6011
  • 900#1D3008

Blue

Card borders, soft surfaces, the CV badge

  • 100#D2DCFC
  • 200#A5B9F9
  • 300#7996F7
  • 400#4C73F4
  • 500#1F50F1
  • 600#1940C1
  • 700#133091
  • 800#0C2060
  • 900#061030

Orange

Emphasis and items that need attention

  • 100#FEE0CD
  • 200#FDC19B
  • 300#FDA168
  • 400#FC8236
  • 500#FB6304
  • 600#C94F03
  • 700#973B02
  • 800#642802
  • 900#321401

Grey

Body text, dividers and neutral surfaces

  • 100#F5F5F5
  • 200#EBEBEB
  • 300#E2E2E2
  • 400#D8D8D8
  • 500#CECECE
  • 600#A5A5A5
  • 700#7C7C7C
  • 800#525252
  • 900#292929

Foundation

Page background and primary text

  • Black#161616
  • White#FFFFFF

Checking contrast

I measured the pairs the site relies on against WCAG 2.1 AA, which asks for 4.5 : 1 for normal text and 3 : 1 for large text.

  • Aa

    Grey 900 on white

    14.55 : 1 Body text

  • Aa

    Black on green 500

    12.65 : 1 Primary actions

  • Aa

    Grey 900 on blue 100

    10.66 : 1 Tags and cards

  • Aa

    White on blue 500

    6.04 : 1 CV badge

  • Aa

    Grey 700 on white

    4.17 : 1 Large text only. Use grey 800 for small text.

  • Aa

    White on green 500

    1.43 : 1 Fails. Green always takes dark text.

Typography

Sora gives headings their character. DM Sans keeps longer reading calm. Each style comes in six weights, from extra light to extra bold.

  • Heading

    Sora

    ABCDEFGHIJKLM
    abcdefghijklm 0123456789

  • Body

    DM Sans

    ABCDEFGHIJKLM
    abcdefghijklm 0123456789

Two scales, one set of names

Desktop and mobile share the same style names. At 500px and below the values switch, so components never need a second class. The samples below use the live tokens. Sizes are font size / line height in pixels.

  • H1

    Desktop
    76 / 92
    Mobile
    40 / 48
  • H2

    Desktop
    60 / 72
    Mobile
    32 / 40
  • H3

    Desktop
    48 / 56
    Mobile
    28 / 36
  • H4

    Desktop
    40 / 48
    Mobile
    24 / 28
  • H5

    Desktop
    32 / 40
    Mobile
    20 / 24
  • H6

    Desktop
    24 / 28
    Mobile
    18 / 24
  • Paragraph Large

    Desktop
    20 / 24
    Mobile
    18 / 24
  • Paragraph Medium

    Desktop
    16 / 20
    Mobile
    16 / 20
  • Paragraph Small

    Desktop
    14 / 16
    Mobile
    14 / 16
  • Caption

    Desktop
    12 / 16
    Mobile
    12 / 16

Spacing and layout

Spacing moves mostly in steps of four. Small steps sit inside components, large steps separate ideas.

  • 4Tab inset
  • 8Image frames, tag icon gap
  • 12Card grid gap
  • 16Table cells, tag padding
  • 20Page margin, project grid gap
  • 24Card padding
  • 32Details card padding
  • 40Heading to content
  • 52Between design decisions
  • 80Between page sections
  • 120About page sections
Reading column
820px for case studies, projects, blog and contact.
Wide container
1240px maximum, used by the home page and the live prototype.
Page margin
20px on each side on small screens.
Breakpoints
1080px stacks the hero. 600px moves grids to one column. 500px switches to the mobile type scale.

Roundness and depth

Corners signal what something is. Interactive things are the roundest, containers are soft, and project artwork stays square.

  • 0Artwork, form fields
  • 8pxTooltip, CV card
  • 14pxActive nav link
  • 16pxCards, tables
  • 20pxOutline button
  • 24pxSubmit button, frames
  • 40pxNavigation bar
  • 100pxTags, tabs

Elevation

Shadows are soft and used sparingly. The more something floats or reacts, the deeper its shadow.

  • Resting0 2px 8px · 6%Details card, tabs
  • Floating0 3px 12px · 10%Navigation bar
  • Overlay0 6px 18px · 16%CV card
  • Hover0 12px 32px · 18%Project card

Components

These are not screenshots. Each one below is the same component the site uses, styled by the same CSS. Hover, tab through and try them.

Navigation

Buttons

Outline
Primary
Compact primary
Compact secondary
Icon with tooltip
Scroll to top

Tags and labels

Case Study
Green tag
UI Design
Blue tag
Currently viewing
Status label
Team Lead
Eyebrow label

Tabs

Form fields

Cards

  • Plain card

    The default container for grouped information.

    Footnote
  • Green card

    Healthy, positive or primary points.

  • Blue card

    Neutral information that deserves attention.

  • Orange card

    Open problems and things to watch.

Project card: the details slide up and a “View” button follows the cursor.

Interaction states

Hover leans on green. Keyboard focus always draws a visible outline, offset from the component so it never hides the label.

ComponentDefaultHoverFocus
Outline buttonButtonButtonButton
Primary buttonSubmitSubmitSubmit
TabTabTabTab

Built with it

The Pulse dashboard uses the same colour ramps and typefaces in a denser product interface. This page is also assembled from the system: its tags, details card, tables and cards are the components shown above.

Pulse dashboard built with the same colours and typefaces

What comes next

The system already keeps new pages consistent. The next improvements are to turn spacing, roundness and shadows into named tokens like colour and type, replace the remaining hard-coded values, and design a dark mode.

See it in Pulse