The tokens, components and rules this site is built from.
01 · UI colors
Interface colors
Paper / Dark · the first square is the light theme, the second the dark one (data-theme="dark").
--paper#ecebe6 · #121211
The base surface of the page. Light, slightly cool paper — not cream.
--paper-raised#f6f5f1 · #1b1b19
Rarely: dropdown menu, form field. Not for project cards.
--paper-sunk#dfded8 · #0a0a09
Background under an image while it loads, placeholder surfaces, footer strip.
--line#cfcdc5 · #2f2e2b
Decorative hairlines between list rows and sections. Not for control borders (doesn’t reach 3:1).
--ink#141413 · #ecebe6
All text and control borders on paper, paper-raised, paper-sunk (≥13.6:1 in both themes). Primary button fill.
--ink-muted#62615b · #9d9c95
Metadata, captions, years, client — on paper, paper-raised, paper-sunk (≥4.6:1 in both themes).
--on-ink#ecebe6 · #121211
Text and icons on an ink fill (primary button, inverted section).
--cobalt#2a33c9 · #9aa2ff
The only accent: hover and active state of links, focus, text selection, active language, small badges. As text on paper, paper-raised and cobalt-soft (≥6.4:1). Never large UI surfaces.
--cobalt-soft#dadcf4 · #1d2050
Tinted background under cobalt text (accent Tag, text selection).
--on-cobalt#ffffff · #121211
Text on a cobalt fill (≥8:1).
--focus#2a33c9 · #9aa2ff
Focus outline: 2px solid, offset 3px. Alias of cobalt, ≥6.4:1 on every surface.
A work card: image without a frame, number, title, year, client — role and tags. Ratios 16/10, 4/5, 1/1, 21/9. The image is a crop of the work’s banner (16 : 10 or 4 : 5), separate in SK and EN; scripts/og-images.mjs makes it.
A before / now comparison. The left column is struck through in ink-muted.
BeforeNowCategories named “Archives”Clean category namesCopy taken from the brandsTranslations with keywordsPurchases were counted twiceFixed tracking
Prop / class
Description
rows
[[before, now], …]
beforeLabel, afterLabel
column labels
h(Matus.BeforeAfter, { rows: [['Copy taken from the brands', 'Translations with keywords']] })
Triggers
Content blocks
Dark cards for triggers or states. The top edge carries the accent of the project family (tone).
Trigger 01
Looking at a product for longer
Can’t decide.
Trigger 02
Needs advice
Browses several products.
Trigger 03
Gets stuck in the cart
Doesn’t continue with the purchase.
Prop / class
Description
items
[{ title, text }]
tone
family for the accent, e.g. ruzova
prefix
label text, Trigger by default
h(Matus.Triggers, { tone: 'ruzova', items: [{ title: 'Gets stuck in the cart', text: '…' }] })
Hero · Phone
Banner
A 21:9 case study banner on a project surface: a two-line headline (the second in the accent), a visual on the right, a big word in the background and a mono line at the bottom. Phone is a simplified mockup in the site’s design; it stays light in Dark too.
4 steps
From paper to the app.
9:41Moje VSE
Welcome back
Digital profile · 3 of 4
01Contact✓
02Moje VSE account✓
03E-invoice
04Mobile app→
Download the app
Moje VSE · digital adoption · 2022–2026
Prop / class
Description
.mt-hero + .mt-proj-*
surface by family and tone
.mt-hero-q (span)
headline, second line in the accent
.mt-hero-vis
a phone or 1–2 images
.mt-hero-big, .mt-hero-meta
word in the background, mono line
Hero
React: tone, quote [a, b], big, meta, label, children
Tools as tags. On hover and focus, the tag flips into a 3D tile with the official logo (we never draw logos, only official files). On touch devices the tag stays.
A project detail without a frame: a page element or graphic placed freely on the project color, with a shadow and a slight tilt. For the Project details section.
Lifecycle · push notification12 mo.
Moje VSE · nowCheck your advance paymentsCheck that you’re paying the right advance payments.
ProjectIndex is the work index with a grid / list toggle (mosaic 7 · 5 · 5 · 7). Gallery is a strip of project details that moves slowly and stops on hover. On mobile it doesn’t move by itself; you swipe it one image at a time. A click opens a full-screen viewer: arrows, keyboard (← → Esc), swipe and a link to the project the detail comes from.
You’ll find a live demo on the home page in the Selected work and Project details sections.
Preloader (counter 000 → 100), LineReveal (name line by line), TextReveal (manifesto word by word), Reveal (uncovering an image), ScrambleText (mono labels).
Prešov · 49.00°N 21.24°EPrešov · 49.00°N 21.24°E
Prop / class
Description
motion
'auto' · 'always' (demos only) · 'none'
h(Matus.TextReveal, { text: 'You can’t invent a working product at your desk.' })
h(Matus.Reveal, null, h('img', { src: '…', alt: '…' }))
Cursor
Motion
A custom cursor on desktop with a mouse: a dot and a lagging ring. Over a link the ring grows, over a project it turns into a cobalt target “Open →”. On touch devices and over form fields the system cursor stays. It’s on for this page, try hovering over a card.
Area with data-cursor="view"
Prop / class
Description
label
text in the target, 'Open →' by default
view, link
CSS state selectors
disabled
turns off the cursor (System tweak)
h(Matus.Cursor, { label: 'Open →' }) // once per page, last in the root
CaseNext
Navigation
A link to the next project at the end of a case study.
h(Matus.CaseNext, { href: 'CaseShift.html', title: 'Shift to digital and e-invoices', index: '02' })
ThemeSwitch
Navigation
The Paper / Dark switch in the header, the same shape as SK / EN. By default the theme follows the system (prefers-color-scheme) and reacts when it changes. A manual choice is saved (localStorage, key mt-theme); choosing the same as the system returns to following the system. A script in the page head sets the theme before rendering, so the page doesn’t flash. A manual switch reveals the dark theme with a circle that grows from the Dark button to fill the window, and on the way back to light it shrinks back along the same path (View Transitions, 620–900 ms depending on window size, soft ease-out). The button responds as soon as it’s pressed. With prefers-reduced-motion the themes only crossfade briefly (200 ms, no movement), so the brightness doesn’t jump at once. The variant is set in the site config (circle, soft crossfade or no animation). A system change and browsers without View Transitions switch instantly.
The demo is live. It switches the theme of the whole page.
Prop / class
Description
label
group name for screen readers
light, dark
button texts
<html data-theme="dark">
switches tokens to the dark theme; project surfaces don’t change
A stack of 4 work cards in the home page hero and on 404. The cards take turns; the caption below shows the work number and year and links to it. The images are banner crops (16 : 10). With reduced motion the cards only cross-fade in place.
A grid of the brands I’ve worked with (About). Official logos only, as PNGs with a transparent background, never redrawn. The logo renders in the text color, light in Dark, full strength on hover. Logo height evens out different shapes. When a brand stops the player in the game, the link leads to this section.
Energy
Cycling
Cycling
Beverages
Prop / class
Description
items
[{ name, logo, height, sector, tone, works }]
height
logo height in px
tone: 'gray'
a solid color logo stays gray (black would be a blot) and isn’t in the game
works
slugs of the works the brand unlocks in the game
<BrandGrid label="Brands I’ve worked on" items={brands.items} />
YouTube
Media
A YouTube video with no third-party scripts when the page loads. At first it’s a button on an ink surface; the player (youtube-nocookie.com) is inserted only after a click. Below the button is a note about YouTube cookies.
A custom cookie bar in the site’s design: Accept all / Reject / Settings, categories Necessary and Analytics. It isn’t modal; without a choice, Reject applies. The choice is in localStorage (mt-consent), and “Cookie settings” in the footer opens it again. GA4 loads only after consent (Consent Mode v2).
Prop / class
Description
[data-open-consent]
any element that opens the bar again
ANALYTICS.ga4Id
in src/config.ts; empty = no bar and no GA4
<CookieBar lang="en" /> // once in BaseLayout, right after “Skip to content”
Game · Cursy
Game
The “Jump the portfolio” game: Cursy runs along the page line and pieces of my work get in the way; some you jump over, others you duck under. What gets past is unlocked. Cursy on the line, any element with data-game-open or the G key opens the game. On a case study it’s a level with obstacles from that work. The engine downloads only when the game opens.
The demo is live: click Cursy above the line.
Prop / class
Description
[data-game-line]
the line where Cursy waits and the game runs; without it the game opens as a strip at the bottom of the window
[data-game-open]
opens the game
[data-game-level]
case study: a level with obstacles from one work
/api/score.php
shared top 10 leaderboard: name 2–20 characters, the score is checked against the game length