System: tokens and components
Principle
Every value gets a role, and a component takes the role, not the value. That is why theme, accent, radius, and density change in one place. Colors, radii, and spacing are tokens; font sizes and small adjustments are written directly in the rules
A value gets a role.
A role builds a component
:root → semantic role → component
Values
16 px · oklch(0.748 0.085 221)
Color, size, typeface. Each value is defined once, in base.css
Roles
surface · accent · --s4
The name describes the purpose. When the theme changes, the role stays and the value behind it changes
Components
.tune-x · .row · .sheet
Reference the role, not the value. States are built from the same tokens
Accent fill
accent-fill.tune-x
Terms
Words used further down. If a term is unclear, come back here
- Token
- A named value: a color, size, radius, or typeface. Defined once, in
base.css - Role
- What a token is for, such as “text” or “accent fill”. A component references the role, not a specific color
- Sheet
- The card that holds the page content (
.sheet). Its padding and radius depend on the window width - Frame
- The
frame/namelabel above a sheet (.frame). Shown together with specs - Specs
- An overlay on top of the page with sizes and tokens (
.ov). Turned on with the specs toggle - Ramp
- A row of shades of one color, from light to dark; only lightness changes
- Pill
- A fully rounded shape, like the link button (
--r-pill) - State
- How an element looks at a given moment:
default,hover(pointer over),active(pressed),focus(keyboard focus)
Color
There is one accent, and it plays two roles: text and fill. Neutrals create depth, and the light and dark themes use the same token names
Color logic
Surfaces: three layers
canvas is the page background. bg is the sheet. surface is everything that sits on the sheet: cards, tags, and inputs
One accent, two roles
accent is for text, focus, and the “now” label. accent-fill is for buttons, spec lines, and the “now” bar on the timeline. One hue; lightness is tuned per theme
Text: two levels
fg for primary text, muted for secondary. Both pass AA on bg and on surface
Dark theme
Neutrals invert. Accent text gets lighter and the accent fill gets darker, so the fill never glares
Lines
line is for dividers. edge is the outline. shadow-sheet and shadow-float are the shadow of the sheet and of floating layers
Changing the accent
The chosen color sets hue and chroma. Text lightness is adjusted automatically until contrast reaches 4.6:1 on bg and surface
Ramps and derived colors
Neutrals: bg, canvas, surface, line, muted, fg. Accent: oklch, hue 221°, chroma 0.085. Only lightness L changes
Neutrals
Accent
L 0.45 and L 0.35 are spare steps and are not used on the site
Derived
Neutrals
Accent
L 0.45 and L 0.35 are spare steps and are not used on the site
Derived
Contrast
The text threshold is 4.5:1. Each pair shows text on its real background
The accent fill in the light theme (2.19:1) is never used as a text color and is never the only carrier of meaning: a label or a shape always goes with it
Token table
canvasPage backgroundbgSheet, main surfacesurfaceCards, tags, inputsfgPrimary textmutedSecondary textlineDividersaccentAccent text, focus, links on hoveraccent-fillButton fill, spec lines, the “now” baron-accentText on the accent filltagSpec label fill: a mix of accent-fill and bg, 56% in light, 30% in darktagtextSpec label textfill-softNeutral timeline bars: 55% muted on bgedgeHairline outline of the sheet, 1 pxshadow-sheetSheet shadowshadow-floatShadow of the header and dropdown listsraiseA layer above the sheet: header, menu, lists--spec = accent-fill · --spec-text = accent. The old names are kept as aliases
Elevation: lightness, outline, shadow
In the dark theme, lightness carries elevation
The higher the layer, the lighter it is: canvas, bg, surface, raise. A black shadow is almost invisible on a dark background, so the sheet has none
Floating layers sit above the sheet
The header, the menu panel, and dropdown lists take the raise background and a stronger shadow-float. The sheet shadow is weaker and is dropped in the dark theme. In the dark theme, the elevation ladder sets a floating layer apart: raise is lighter than the sheet, and shadow-float only adds depth
Every level has an outline
A 1 px edge separates layers in both themes and stays even when shadows are off
A new level comes from the ladder
For a sheet or a dialog, take raise: in the dark theme it is lighter than the sheet, in the light theme it is set apart by shadow-float. Do not add a separate color outside the ladder
Elevation ladder
Outline and shadows
rgba(38,32,24,0.04)
Sheet outline, 1 px
0 1px 2px rgba(38,32,24,.03), 0 8px 24px rgba(38,32,24,.045)
Sheet shadow
0 2px 6px rgba(38,32,24,.06), 0 12px 32px rgba(38,32,24,.12)
Header and list shadow
Elevation ladder
Outline and shadows
rgba(255,255,255,0.04)
Sheet outline, 1 px
none
Sheet shadow
0 2px 6px rgba(0,0,0,.4), 0 12px 32px rgba(0,0,0,.5)
Header and list shadow
Type
Three typefaces are self-hosted as files, with nothing loaded from other servers. Subsets: cyrillic and latin. Specimens are set in the real fonts at desktop size. Line height is given as a percentage of the font size; tracking is the letter spacing
Families
Geologica
Variable font, weights 100–900. Used on the site: 300, 400, 500
Headings and large numbers
Golos Text
400, 500
Body text and captions
JetBrains Mono
400, 500
Data and utility roles
Geologica
Golos Text
JetBrains Mono
Typesetting rules
The site’s typography is checked on every page, this one included
No hanging short words
A non-breaking space follows one- and two-letter words such as a, an, in, on, of, to, at, by, or, and I, so they never end a line. Chains of such spaces stay within 24 characters, otherwise the line breaks badly. Checked at widths from 320 to 1920 px
Numbers stay with their units
A non-breaking space also sits between a number and its unit: 4.3 million, 48 px. Ranges use an en dash: 2014–17
No period at the end of a paragraph
This applies to paragraphs, list items, and captions. Periods between sentences inside the text stay
Curly quotes, no em dashes in running text
Use a colon, a comma, or a period instead of an em dash. The exceptions are the title and description tags
Very long words wrap
If a word does not fit the column, such as an email address at a larger font size, it breaks between letters (overflow-wrap: anywhere) instead of running off the screen
Spacing and radius
Spacing and radius form two scales, and the Site tokens panel recalculates both at once. Samples are shown at actual size
Spacing: nine steps, all multiples of four
--s14 px--s28 px--s312 px--s416 px--s524 px--s632 px--s748 px--s872 px--s9120 px--s4The base spacing is set in the Site tokens panel. When it changes, every step and the sheet padding scale proportionally
Radius: seven tokens
--r12 px--r24 px--r38 px--r412 px--r516 px--r-pill18 px--r-card20–48 pxSheet radius follows the window width
--r-card: clamp(20px, 4vw, 48px)The sheet radius grows with the window width. On a 1440 px screen it hits the 48 px cap
Nested radius equals outer radius minus padding
Outer 16 px, padding 8 px
16 px − 8 px = 8 pxThe inner radius follows the outer one. The rule applies to the sheet and to any surface inside it
The Site tokens panel changes three values
Accent
Hue and chroma come from the chosen color. Text lightness is adjusted automatically
accent-fillButton fill and spec lines
accentText and focus. Contrast on bg and surface is at least 4.6:1
tag · tagtextSpec labels, derived colors
Light theme: text is darker than the fill. Dark theme: text is lighter, the fill is darker
Base radius
All radii scale proportionally, including the sheet radius
--r1 · --r2 · --r32 · 4 · 8 px by default
--r4 · --r5 · --r-pill12 · 16 · 18 px by default
--r-card20–48 px, including the sheet
The nested radius equals the outer radius minus padding
Base spacing
All spacing scales proportionally, including the sheet padding
--s1 · --s2 · --s34 · 8 · 12 px by default
--s4 · --s5 · --s616 · 24 · 32 px by default
--s7 · --s8 · --s948 · 72 · 120 px by default
Sheet padding: clamp(20px, 6.7vw, 80px)
Panel presets
Options sit on the left, the exact value on the right, in one row
accent--r3--s4Components
Eleven groups plus the header and menu. Every state is shown separately on the background of its own theme. Under each sample the tokens are listed, separated by dots: colors, radius (r3), spacing (s3), and the type role (type/...). Samples use the same classes as the site, with states forced
.tune-xPrimary button
Leads from the Site tokens card to the documentation. Sits on the right of the card’s bottom row; one primary action per block
accent-fill · on-accent · r3 · s3 · s5 · type/mono-strong (12 px / 120%)
accent-fill · on-accent · r3 · s3 · s5 · type/mono-strong (12 px / 120%) · accent · bg
accent-fill · on-accent · r3 · s3 · s5 · type/mono-strong (12 px / 120%) · opacity 85%
accent-fill · on-accent · r3 · s3 · s5 · type/mono-strong (12 px / 120%) · outline 2 px / offset 3 px
accent-fill · on-accent · r3 · s3 · s5 · type/mono-strong (12 px / 120%)
accent-fill · on-accent · r3 · s3 · s5 · type/mono-strong (12 px / 120%) · accent · bg
accent-fill · on-accent · r3 · s3 · s5 · type/mono-strong (12 px / 120%) · opacity 85%
accent-fill · on-accent · r3 · s3 · s5 · type/mono-strong (12 px / 120%) · outline 2 px / offset 3 px
.tune-resetText button
Resets the Site tokens panel to its defaults. Sits on the left of the card’s bottom row. A button styled as a link: it changes the page but never navigates away
muted · line · type/mono (12 px) · 1 px underline, 3 px offset
muted · line · type/mono (12 px) · 1 px underline, 3 px offset · accent
muted · line · type/mono (12 px) · 1 px underline, 3 px offset · accent · outline 2 px / offset 3 px
muted · line · type/mono (12 px) · 1 px underline, 3 px offset
muted · line · type/mono (12 px) · 1 px underline, 3 px offset · accent
muted · line · type/mono (12 px) · 1 px underline, 3 px offset · accent · outline 2 px / offset 3 px
.more .go.primaryLink button
Goes to a case study page from an expanded row. Filled with the text color; takes the accent on hover
fg · bg · r-pill (18 px) · 8 / 14 px · type/button · fg on bg
fg · bg · r-pill (18 px) · 8 / 14 px · type/button · accent on bg
fg · bg · r-pill (18 px) · 8 / 14 px · type/button · fg, opacity 85%
fg · bg · r-pill (18 px) · 8 / 14 px · type/button · accent · outline 2 px
fg · bg · r-pill (18 px) · 8 / 14 px · type/button · fg on bg
fg · bg · r-pill (18 px) · 8 / 14 px · type/button · accent on bg
fg · bg · r-pill (18 px) · 8 / 14 px · type/button · fg, opacity 85%
fg · bg · r-pill (18 px) · 8 / 14 px · type/button · accent · outline 2 px
.more .goSecondary button
A secondary link on a surface: “Message me on Telegram ↗” in a row without a case study
surface · fg · r-pill (18 px) · 8 / 14 px · type/button
fg · bg · r-pill (18 px) · 8 / 14 px · type/button
surface · fg · r-pill · type/button · accent · outline 2 px
surface · fg · r-pill (18 px) · 8 / 14 px · type/button
fg · bg · r-pill (18 px) · 8 / 14 px · type/button
surface · fg · r-pill · type/button · accent · outline 2 px
.toggleToggle
Turns specs on and switches the theme. The state reads from the dot and from the label
muted · type/mono · 6 px dot / 1 px
muted · type/mono · 6 px dot / 1 px · accent-fill
muted · type/mono · 6 px dot / 1 px · fg
muted · type/mono · 6 px dot / 1 px · accent · outline
muted · type/mono · 6 px dot / 1 px
muted · type/mono · 6 px dot / 1 px · accent-fill
muted · type/mono · 6 px dot / 1 px · fg
muted · type/mono · 6 px dot / 1 px · accent · outline
.seg · .sw · .valOption picker
The tokens panel: options on the left, the exact value on the right, in one row. The selected option is underlined: 1 px with a 4 px offset. The selected color gets a 2 px ring
type/mono · muted
type/mono · muted · fg
type/mono · muted · fg · accent-fill · underline 1 px / offset 4 px
type/mono · muted · accent · outline
accent-fill · 24 px circle
accent-fill · 24 px circle · muted
accent-fill · 24 px circle · fg · 2 px ring
accent-fill · 24 px circle · accent · outline
type/mono · fg · 8ch wide · muted · 1 px dashed
type/mono · fg · 8ch wide · muted · 1 px dashed → accent
type/mono · fg · 8ch wide · muted · 1 px dashed → accent · outline
type/mono · muted
type/mono · muted · fg
type/mono · muted · fg · accent-fill · underline 1 px / offset 4 px
type/mono · muted · accent · outline
accent-fill · 24 px circle
accent-fill · 24 px circle · muted
accent-fill · 24 px circle · fg · 2 px ring
accent-fill · 24 px circle · accent · outline
type/mono · fg · 8ch wide · muted · 1 px dashed
type/mono · fg · 8ch wide · muted · 1 px dashed → accent
type/mono · fg · 8ch wide · muted · 1 px dashed → accent · outline
.stack span · .case-tagTag and label
A tag names a stack. The “now” label marks current work; “case study” marks a row with its own page. Static
type/mono-tag · surface · r2 · 5 / 7 px · muted
type/mono-tag · surface · r2 · 5 / 7 px · muted
type/mono-strong · accent · 8 px dot
type/mono-tag · surface · r2 · 5 / 7 px · muted
type/mono-tag · surface · r2 · 5 / 7 px · muted
type/mono-strong · accent · 8 px dot
.kpiKPI
Static: a number and a caption. In an expanded row they come in groups of three
type/kpi · type/small · fg · muted
type/kpi · type/small · fg · muted
.rowExpandable row
For lists of similar items: jobs, talks, tools. A row holds the year, company, summary, label, and a plus. On expand the plus rotates 45° and turns accent. Works with the keyboard: Enter and Space
2026T-BankBlocks stream in the TUI design systemnow
type/mono · muted · type/row-strong · type/row · type/mono-strong · line · accent
2026T-BankBlocks stream in the TUI design systemnow
type/mono · muted · type/row-strong · type/row · type/mono-strong · line · accent
2026T-BankBlocks stream in the TUI design systemnow
Context
600+ shared blocks for 74 product teams
type/mono · muted · type/row-strong · type/row · type/mono-strong · line · accent · surface · r3 · type/card-title · type/text · type/button · r-pill · bg
2026T-BankBlocks stream in the TUI design systemnow
type/mono · muted · type/row-strong · type/row · type/mono-strong · line · accent · outline
2026T-BankBlocks stream in the TUI design systemnow
type/mono · muted · type/row-strong · type/row · type/mono-strong · line · accent
2026T-BankBlocks stream in the TUI design systemnow
type/mono · muted · type/row-strong · type/row · type/mono-strong · line · accent
2026T-BankBlocks stream in the TUI design systemnow
Context
600+ shared blocks for 74 product teams
type/mono · muted · type/row-strong · type/row · type/mono-strong · line · accent · surface · r3 · type/card-title · type/text · type/button · r-pill · bg
2026T-BankBlocks stream in the TUI design systemnow
type/mono · muted · type/row-strong · type/row · type/mono-strong · line · accent · outline
.frame · .sheetSheet and frame
The sheet holds the page content. Above it sits a frame/name label. The nested radius equals the outer radius minus padding. Static
Design Systems
600+ shared blocks for 74 product teams
type/mono · muted · bg · fg · r-card · edge (1 px) · shadow-sheet · type/card-title · type/body · padding clamp(20px, 6.7vw, 80px)
Design Systems
600+ shared blocks for 74 product teams
type/mono · muted · bg · fg · r-card · edge (1 px) · shadow-sheet · type/card-title · type/body · padding clamp(20px, 6.7vw, 80px)
.ovSpecs overlay
Shows sizes and tokens on top of the real elements. Turned on with the specs toggle; off by default and hidden from screen readers
bg · fg · type/display · specs hidden
accent-fill · tag · tagtext · r1 · 10.5 px / 500 / 3% · 1 px lines · sizes are read from the browser
bg · fg · type/display · specs hidden
accent-fill · tag · tagtext · r1 · 10.5 px / 500 / 3% · 1 px lines · sizes are read from the browser
Header and menu
Shared by every page. Navigation keeps Work, Tokens, About, and Contact; on a phone everything except the logo moves into the menu
The header is sticky
Pinned to the top with an s2 offset at z-index 20. Its height is the --bar-h token: 48 px on desktop, 60 px up to 820 px. Elements below rely on it: the documentation index sticks at calc(s2 + --bar-h), and anchor jumps get scroll-padding-top so a heading never hides under the header
Up to 820 px only the logo and Menu remain
The logo also links to the home page. The Menu button opens a panel with navigation, the theme toggle, and the language switch. The tap target is at least 44 px. The panel closes on Esc, on a tap outside, after choosing a link, and when the window grows past 820 px
Tokens opens as a list
The item is a native details: Site tokens leads to the card on the home page, Documentation to this page. The current page is marked aria-current="page". The list closes on Esc, on a click outside, and when another one opens
The header and lists float above the content
The header, the menu panel, and the Tokens list sit above the sheet: raise background, edge outline, and shadow-float. The shadow is stronger than the sheet’s, and in the dark theme it is the lightness of the background that sets the layer apart from the sheet
The header works without scripts
The menu and the Tokens list are enhanced by a script. If it does not load, navigation stays as plain links
Accessibility
The site can be read and operated without a mouse, without distinguishing colors, and without motion. Every rule can be checked in the code and by hand
Structure and language
The site meets level AA
The target standard is WCAG 2.2, level AA. The criteria are checked by hand and with scripts on every page; there has been no independent audit yet
Headings are in order
Each page has one h1 and no skipped levels. The language is set with lang="en", and the “RU” link is marked lang="ru"
The first link skips the header
The “Skip to content” link appears on focus and leads to main. Keyboard users do not have to tab through the whole header
Meaningful images need alt
The text says what matters in the image. Decorative images get an empty alt
Panel fields are named
Fields and groups in the Site tokens panel are tied to their labels through aria-label and aria-labelledby. Preset colors are named in words: “blue”, “green”
Screen readers: semantics and ARIA
A screen reader reads structure from tags, so the site is built from semantic elements rather than anonymous divs
Page landmarks
header, nav, main, and footer on every page. The menu is labeled: aria-label="Main"
Sections and headings
Every section is a section with aria-labelledby, and heading levels are never skipped. A screen reader lists them as a heading outline
Lists and captions
Enumerations use ul, ol, and dl. Illustrations sit in a figure with a figcaption, so the caption is read together with the image
Tables and lists in case studies
Where the layout does not use native tags, roles are set explicitly: table, row, columnheader, cell, list, and listitem
States are announced
An expandable row is built on details, the specs toggle carries aria-pressed, the current language is marked aria-current, and an unavailable one aria-disabled
Decoration stays silent
Pluses, arrows, and the specs layer are hidden with aria-hidden="true", so a screen reader skips them instead of cluttering the output
Keyboard and focus
Everything works from the keyboard
Tab order matches the visual order. Expandable rows open with Enter and Space
Focus is visible during keyboard use
A 2 px outline in accent with a 3 px offset (4 px on color swatches). It appears during Tab navigation and stays out of the way of the mouse: :focus-visible handles that
Zooming an image without a mouse
An image in a case study opens in a dialog with Enter or Space. Close it with Esc, a tap, or the Close button; focus returns to the image
The theme toggle says what it does
The toggle shows the current mode in words: “auto”, “light”, or “dark”
Contrast and color
Text meets at least AA
WCAG level AA: 4.5:1 for regular text and 3:1 for large text, in both themes. All pairs are measured in the Color section
A custom accent stays readable
When you pick a color in the tokens panel, text lightness is adjusted to 4.6:1 on bg and surface
The accent fill is never a text color
accent-fill on bg is 2.19:1 in the light theme, so text on the fill uses on-accent, and the fill is never the only carrier of meaning
Meaning never rests on color alone
The selected option is underlined or ringed, the “now” label has text, and an open row turns its plus into a cross
System settings
The site reads browser and operating system settings and adapts to them. On desktop and on phones these are the same media queries
Theme
prefers-color-scheme sets the default theme. The toggle switches it to light or dark and remembers the choice. All three modes work together
Motion
With prefers-reduced-motion: reduce, transitions and smooth scrolling are switched off. Any animation that remains only explains a change of state
Contrast
With prefers-contrast: more, secondary text and lines take the primary text color, and borders become easier to see
Forced colors
In forced-colors mode (Windows high contrast themes), blocks and the dropdown menu get a visible border, and color swatches and the menu icon stay visible
Font size
All text sizes are set in rem. The browser font size setting and Dynamic Type on iOS scale all text at once. On Android the site is ready for the system font scale through the text-scale meta tag, but Chrome does not apply it everywhere yet. Platform details are in the table below
Page zoom
Ctrl and + on desktop, pinch on a phone. The viewport meta tag does not block zooming
Target size
Targets are at least 24 px
Links in the header, footer, and contacts are at least 24 px tall (WCAG 2.5.8)
44 px on touch devices
The pointer: coarse media feature stretches toggles, color swatches, and the “default” button in the tokens panel to 44 px
Zoom: what happens when you enlarge
You can enlarge the site in two ways: zoom the page or change the text size. Platforms support them differently
Nothing breaks at 400%
A 320 px width equals 400% zoom on a 1280 px screen (WCAG 1.4.10). No page of the site scrolls horizontally
Text stays readable up to 200%
With the browser font size at 200%, text is not clipped or overlapped and there is no horizontal scrolling (WCAG 1.4.4)
The site scales smoothly, not in jumps
Large headings change size with the window width through clamp(). Body and small text keep their size while the grid reflows
Content does not stretch
The page width is capped at 1190 px. On large screens only the empty side margins grow, so lines stay at a readable length
The main breakpoint is 820 px
Here the intro and contacts collapse to one column, list rows simplify, and the timeline turns vertical. Additional breakpoints: 640 px for case studies and 480 px for narrow phones
How this maps to iOS, Android, and the web
font: -apple-system-body, and rem-based text grows with it. Page zoom works tootext-scale meta tag is already in the markup and will take effect once support ships. Pinch zoom works