Stylesheet

The tokens behind this site

Every value here is read from the site’s own stylesheet when it builds, so this page can’t drift from what ships.

Tokens
70
Colours
30
Text styles
16
Contrast checks passing
8/8

Colour

Named for the job, not the shade. One dark, one light, one red.

Surfaces

Figma “Bg/*”. What things sit on.

  • surface-black

    Dark pages, the Hero, the Footer

    #0f1119 · bg-surface-black

  • surface-white

    Cards on the light sheet

    #ffffff · bg-surface-white

  • surface-light

    The light sheet that slides over the Hero

    #ebecf1 · bg-surface-light

  • surface-light-gray

    Quiet fills and dividers on light

    #dadce5 · bg-surface-light-gray

  • surface-gray

    Row dividers on the light sheet

    #a0a3b2 · bg-surface-gray

  • popover

    The Settings popover: white in Light, Night in Dark

    #ffffff · bg-popover

Text

Figma “Ink/OnBlack/*” and “Ink/OnWhite/*”.

  • ink-on-black

    Text on dark

    #ffffff · bg-ink-on-black

  • ink-on-black-muted

    Secondary text on dark (72% white)

    #ffffffb8 · bg-ink-on-black-muted

  • ink-on-white

    Text on light

    #0f1119 · bg-ink-on-white

  • ink-on-white-muted

    Secondary text on light

    #4d5166 · bg-ink-on-white-muted

  • ink-on-white-tertiary

    Decorative marks only, never text (2.5:1)

    #a0a3b2 · bg-ink-on-white-tertiary

Accent

One red in three strengths. Only accent carries text.

  • accent-bright

    Lines and fills only, like the Section nav progress line. Never text.

    #ff3355 · bg-accent-bright

  • accent

    The only red for text: list markers and step numbers on light

    #c32b46 · bg-accent

  • accent-deep

    The red light at the top of the Hero

    #8a2038 · bg-accent-deep

Lines on dark

See-through, so they work on any dark surface.

  • line-on-black

    Hairlines on dark (6% white)

    #ffffff0f · bg-line-on-black

  • line-strong-on-black

    Card borders on dark (12% white)

    #ffffff1f · bg-line-strong-on-black

  • line-bold-on-black

    Hover borders and dashed placeholders on dark (20% white)

    #ffffff33 · bg-line-bold-on-black

Lines on light

The same three steps, in ink.

  • line-on-white

    Hairlines around cards on light (10%)

    #0f11191a · bg-line-on-white

  • line-strong-on-white

    Dividers, figure frames, the steps line (15%)

    #0f111926 · bg-line-strong-on-white

  • line-bold-on-white

    Dashed placeholders and demo controls on light (20%)

    #0f111933 · bg-line-bold-on-white

Stage

The tint a screenshot sits on. Laid over the surface, so it works on cards and on the Sheet.

  • stage-on-white

    The Stage behind a screenshot: black at 10% in Light, white at 10% in Dark

    #0000001a · bg-stage-on-white

  • bezel

    The thick see-through edge around a Work card Cover's screenshot

    #0f111966 · bg-bezel

  • toolkit-tile

    A Toolkit logo tile: white in Light, white at 10% in Dark

    #ffffff · bg-toolkit-tile

Glass

See-through fills on dark.

  • glass-on-black

    Glass panels and tiles on dark, at rest (4% white)

    #ffffff0a · bg-glass-on-black

  • glass-hover-on-black

    A glass panel on hover (6% white)

    #ffffff0f · bg-glass-hover-on-black

  • glass-strong-on-black

    A small control on hover: nav items, icon tiles (12% white)

    #ffffff1f · bg-glass-strong-on-black

Tabs

The track and the sliding pill, shared by Tabs and the Segmented control.

  • segment-track

    The track of Tabs and the Segmented control (6% ink in Light, 4% white in Dark)

    #0f11190f · bg-segment-track

  • segment

    The pill that slides to the chosen tab or option: white in Light, 12% white in Dark

    #ffffff · bg-segment

Focus

One ring per surface, both above 3:1.

  • focus-on-black

    The keyboard focus ring on dark (70% white)

    #ffffffb3 · bg-focus-on-black

  • focus-on-white

    The keyboard focus ring on light (60% ink)

    #0f111999 · bg-focus-on-white

Hero glow gradient

The Hero’s red light as drawn in Figma. Also the fallback when WebGL is unavailable.

--gradient-hero-glow: radial-gradient( 60.6% 87.6% at 50% -48.8%, #ff3355 0%, #c32b46 25%, #872237 50%, #691e30 62.5%, #4b1a28 75%, #2d2121 87.5%, #0f1119 100% )

Typography

Three faces. Sizes are fluid, so the 1440px design scales to a phone without breakpoints.

Typefaces

  • Aa

    Alpha Lyrae

    Display: names, headlines, display labels

    Medium 500 · --font-display

  • Aa

    Geist

    Sans: body text and large headlines

    Regular 400, Medium 500 · --font-sans

  • Aa

    Geist Mono

    Mono: nav, tags, buttons, dates

    Regular 400, Medium 500 · --font-mono

Text styles

Use these utilities, never loose font sizes.

  • .type-display-xl

    Alpha Lyrae · 500 · 48–144px / 1 · 0.02em · UPPERCASE

    The “Contact” heading in the Footer

    Contact

  • .type-display

    Alpha Lyrae · 500 · 44–104px / 1 · 0.02em · UPPERCASE

    The name in the Hero and page titles

    Pavlo Melnyk

  • .type-headline-xl

    Alpha Lyrae · 500 · 40–72px / 1

    Section titles on the light sheet

    About me

  • .type-headline-lg

    Geist · 400 · 28–60px / 1.034

    The positioning line under a title

    Product designer and builder

  • .type-headline-md

    Alpha Lyrae · 500 · 28–40px / 1

    Lead sentences in a section, Work card names

    From first sketch to shipped software

  • .type-headline-sm

    Alpha Lyrae · 500 · 24–32px / 1 · -0.03em

    Card titles, company names

    Max Three

  • .type-headline-sm-caps

    Alpha Lyrae · 500 · 24–32px / 1 · -0.03em · UPPERCASE

    Section headings and the Contact card name, in capitals

    Experience

  • .type-headline-xs

    Alpha Lyrae · 500 · 16–24px / 1.5 · -0.02em

    Section titles on the stylesheet page

    Hours in Claude Code across the year

  • .type-title

    Geist · 500 · 20px / 1.4

    Card and step titles in a Case study

    Coaching model

  • .type-p-lg

    Geist · 400 · 20–24px / 1.333 · -0.01em

    Leads, the Activity summary and photo captions in Beyond Design

    Ten years in product design across energy, logistics, fintech and games.

  • .type-p-md

    Geist · 400 · 20px / 1.4

    Body copy in a Case study or on About

    I started with a spreadsheet and a training plan that kept breaking.

  • .type-p-sm

    Geist · 400 · 13–14px / 1.429 · 0.01em

    Captions, small print and the Footer’s bottom line; 13px on phones

    Pavlo Melnyk © 2026

  • .type-label-mono

    Geist Mono · 500 · 14px / 1.143 · 0.02em · UPPERCASE

    Nav, tags, buttons, dates

    View resume

  • .type-label-mono-md

    Geist Mono · 400 · 18–24px / 1 · 0.02em · UPPERCASE

    Not in use right now

    With my family

  • .type-label-sm

    Geist · 500 · 17px / 1.176

    Row names in Settings: Theme, Accent, Motion, Sound

    Accent: Green

  • .type-code

    Geist Mono · 400 · 14px / 1.429

    Token names and CSS values on this page

    --radius-card: 24px

Layout

Content stops growing at the container. Everything inside keeps a fluid gutter.

Containers

  • container-content

    1280px

    Widest the page content runs: Header, Hero, Home, Long pages, Footer

  • container-text-block

    800px

    Widest a block of text runs: Hero copy, section leads, Lightbox captions

  • container-text-column

    672px

    The centred Text column of a long page: text, cards, steps and captions

  • container-article

    800px

    The centred column of a Case study: text, cards, figures and Sliders; a Wide figure goes to container-content

Gutters and rhythm

Fluid: they follow the width of the screen.

  • --halo-deep-lift

    How far the Stage glow’s deepest shade is lifted to the middle one: all the way in Light, so it never looks muddy on a light panel; not at all in Dark

    100%

  • --gutter

    Page side padding, fluid from phone to desktop

    clamp(16px, 1.67vw, 24px)

  • --gutter-wide

    The Footer’s side padding

    clamp(16px, 3.47vw, 50px)

  • --section-pad

    Space around and between sections

    clamp(20px, 5.56vw, 80px)

  • --header-height

    The floating Header

    48px

  • --header-offset

    Header distance from the top of the screen

    16px

  • --hero-h

    The Hero: one screen tall, never under 560px

    max(100svh, 560px)

  • --sheet-peek

    How much of the Sheet shows under the Hero before scrolling

    80px

  • --hero-light-1

    The brightest shade of the Hero glow and the Stage glow, in the chosen Accent

    #ff3355

  • --hero-light-2

    The middle shade of the Hero glow and the Stage glow, in the chosen Accent

    #c32b46

  • --hero-light-3

    The deepest shade of the Hero glow and the Stage glow, in the chosen Accent

    #872237

Shape

Rounded corners that grow with what they hold.

Radius

  • radius-chip

    Small chips, icon tiles and inline links

    6px

  • radius-control

    Buttons, logo tiles, nav items

    8px

  • radius-bar

    The floating Header pill

    12px

  • radius-screen

    The screen edge of a Work card Cover

    16px

  • radius-media

    Images and previews

    20px

  • radius-card

    Work cards and light panels

    24px

  • radius-work-card

    The Work card’s outer panel; the Stage inside keeps radius-card

    32px

  • radius-panel

    Large glass panels on dark, like a Contact card

    40px

  • radius-sheet

    The light sheet’s top corners; grows with the screen

    clamp(32px, 5.5vw, 80px)

Shadow

Depth is rare: one raised key and one lift on hover.

    Motion

    One family of curves and durations for every interaction. With motion off, things fade in and nothing else moves.

    Easing curves

    Press Play to see each one.

    ease-out-soft

    Almost everything: fast start, long settle

    cubic-bezier(0.22, 1, 0.36, 1)

    ease-in-out-soft

    Things that cross the screen

    cubic-bezier(0.65, 0, 0.35, 1)

    ease-spring

    Things a hand moves, like the Settings switch knob: a small overshoot

    linear(0, 0.073, 0.24, 0.441, 0.636, 0.801, 0.926, 1.01, 1.059, 1.081, 1.083, 1.073, 1.057, 1.04, 1.025, 1.012, 1.003, 0.997, 0.994, 0.993, 0.993, 0.994, 0.996, 0.997, 1)

    Durations

    Played with ease-out-soft.

    duration-spring 400ms

    Length of ease-spring, long enough for its overshoot to settle

    duration-fast 160ms

    Hover colour and press feedback

    duration-base 240ms

    Cards, fades and most state changes

    duration-slow 700ms

    Entrances and the Header’s fold

    duration-stagger 90ms

    Gap between blocks that rise in one after another

    Press

    How far a thing shrinks while it is held. Bigger things shrink less. Press and hold each one.

    scale-press-sm · 0.95

    Icon tiles, like the copy button on a Contact card

    scale-press · 0.97

    Buttons and Contact cards, like Read CV

    scale-press-lg · 0.99

    Large cards, like a Work card

    Defaults

    What a transition or entrance gets when it names nothing of its own.

    • --default-transition-duration

      Any transition that names no duration of its own

      var(--duration-fast)

    • --default-transition-timing-function

      Any transition that names no curve of its own

      var(--ease-out-soft)

    • --animate-rise

      Entrances: fade and rise 24px, one stagger step apart

      rise var(--duration-slow) var(--ease-out-soft) backwards

    Animations

    animate-rise

    Hero text arriving on load: fades in while rising 24px

    Product designer

    reveal-on-scroll

    An element fades and rises as it enters the screen. Runs on the browser’s scroll timeline, no script. Used by every Work card.

    animation-range: entry 0% entry 45%

    hero-recede

    While the light sheet slides over the pinned Hero, the Hero’s content fades, blurs 10px, shrinks to 90% and drifts up. Follows the page’s scroll position.

    animation-range: 0 70svh

    Reduced motion

    Turned on by the system setting or the Motion switch in Settings. Transitions finish at once, loops and scroll effects stop, the shader holds a still frame, and rise becomes a plain fade.

    @media (prefers-reduced-motion: reduce) · [data-reduce-motion="true"]

    Components

    Live: hover them, or tab through to see the focus ring.

    Buttons

    buttonStyles({ variant, size, on }) in components/site/button.ts, after cult-ui's Texture Button. Hover, a 1px press and a focus ring come with them.

    Tags

    <Tag> in components/site/tag.tsx. Made for white cards.

    • Product design
    • B2B
    Work cards and the next and previous project links

    Tabs and Segmented control

    <Tabs> and <SegmentedControl> in components/site/segments.tsx. One look: a pill slides to the chosen option and a fainter one follows the mouse. Tabs swap content (the Activity source); a Segmented control picks a setting (Theme in Settings). Arrow keys move between options. Both follow Theme.

    Tabs: this line is the panel. It reads “Work”.

    Demo segmented control

    Segmented control: picks a setting, like Theme in Settings.

    Work card

    The real component, with a real project. Full width, on its own panel (surface-white, 32px corners). The Cover on top; below it logo, name and a mono line of years and labels on the left, the description on the right. The Cover rises out of a wide Stage with a thick see-through edge; on hover an Accent light glows behind the screenshot (softer in Light). Every card is the same size. With a mouse or trackpad the pointer becomes the Card cursor (components/works/card-cursor.tsx): a pill in the Header's dark glass reading View ↗, or Soon on Upcoming work, that trails the pointer slightly and squeezes on press.

    The BRIGHTER dashboard of one building: temperature, solar generation, battery, EV chargers and active power
    The BRIGHTER dashboard of one building: temperature, solar generation, battery, EV chargers and active power

    Spectral

    • 2024–2026
    • B2B
    • SaaS
    • Energytech

    Monitoring, control and trading dashboards for BRIGHTER and STELLAR, Spectral’s energy platforms, on one multi-brand design system.

    Stage

    <Stage> in components/media/stage.tsx. A screenshot opts in with `stage` in its content: a Placement (Fill, Center, Rise, Corner) and an optional Device. Rise is the cover default, Center the figure default. A linked Stage lights the Accent glow and lifts its screenshot on hover.

    • fill

    • center

    • rise

    • corner

    • center · browser

    • center · laptop

    • center · tablet

    • rise · browser

    • rise · laptop

    • corner · tablet

    • rise · browser · linked: hover me

    • corner · linked: hover me

    Contact card

    The real component. Glass on dark: 4% white fill, 12% white border, 40px corners, presses to 97%.

    Accessibility

    Every text pair is checked with the WCAG 2.1 formula. Normal text needs 4.5:1.

    Contrast

    PairUsed forSampleRatio
    ink-on-black on surface-blackHeadings and body on dark pagesAa18.84:1 AAA
    ink-on-black-muted on surface-blackSecondary text on dark pagesAa10.00:1 AAA
    ink-on-white on surface-whiteCards and text on whiteAa18.84:1 AAA
    ink-on-white on surface-lightHeadlines on the light sheetAa15.97:1 AAA
    ink-on-white-muted on surface-whiteSecondary text on cardsAa7.82:1 AAA
    ink-on-white-muted on surface-lightSecondary text on the light sheetAa6.63:1 AA
    accent on surface-whiteList markers and step numbers on cardsAa5.59:1 AA
    accent on surface-lightList markers and step numbers on the sheetAa4.74:1 AA

    Focus

    Every link and button shows a 2px ring when reached with the keyboard, in the focus colour for its surface.

    focus-visible:ring-2 focus-visible:ring-focus-on-black · focus-visible:ring-focus-on-white