Matúš Šarišský
Prešov
Back to homeVersion 2.1 · October 2026

Library

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.

Text pair contrast

PairPaperDark
ink on paper15,4 : 115,7 : 1
ink-muted on paper5,2 : 16,8 : 1
ink-muted on paper-sunk4,6 : 17,2 : 1
cobalt on paper7,3 : 18,0 : 1
on-cobalt on cobalt8,7 : 18,0 : 1
on-ink on ink15,4 : 115,7 : 1
02 · Project colors

Project surfaces

cobaltProduct and UX
mt-proj-kobaltAa Aa#2a33c9 · text 8.7 : 1 · accent 6.4 : 1
mt-proj-kobalt-lightAa Aa#9aa2ff · text 7.9 : 1 · accent 3.7 : 1
mt-proj-kobalt-softAa Aa#dadcf4 · text 13.6 : 1 · accent 6.4 : 1
mt-proj-ink-kobaltAa Aa#141413 · text 18.4 : 1 · accent 7.9 : 1
greenDigitalization, automation and AI
mt-proj-zelenaAa Aa#137738 · text 5.6 : 1 · accent 4.5 : 1
mt-proj-zelena-lightAa Aa#67c47e · text 8.6 : 1 · accent 3.9 : 1
mt-proj-zelena-softAa Aa#d0eed5 · text 14.8 : 1 · accent 4.5 : 1
mt-proj-ink-zelenaAa Aa#141413 · text 18.4 : 1 · accent 8.6 : 1
pinkMarketing and brands
mt-proj-ruzovaAa Aa#c4207c · text 5.5 : 1 · accent 4.2 : 1
mt-proj-ruzova-lightAa Aa#ec87b3 · text 7.6 : 1 · accent 3.7 : 1
mt-proj-ruzova-softAa Aa#fed9e7 · text 14.3 : 1 · accent 4.2 : 1
mt-proj-ink-ruzovaAa Aa#141413 · text 18.4 : 1 · accent 7.6 : 1
  • Family = type of work, tone = grid rhythm (one dark and one light card per row).
  • Accent (.mt-proj-accent) only on text from 24 px; small captions in the text color.
  • Project colors only in the project’s banner, card, gallery and graphics. Client brand colors aren’t used on surfaces.
<div class="mt-proj-zelena">
  One class sets the surface, text and --proj-accent.
  <span class="mt-proj-accent">Accent</span>
</div>
03 · Typography

Typography

Funnel Display 400/500 · Funnel Sans 400/500/400 italic · Geist Mono 400. Samples above 64 px are scaled down to 64 px.

display-xldisplay · 176px / 0.86 · 500 · -0.05em
Matúš

Only the name in the hero and the project title in the case study intro. Once per page. Fluid clamp(64px, 12.2vw, 176px).

display-ldisplay · 112px / 0.9 · 500 · -0.04em
Selected work

Main section headings. Fluid clamp(48px, 7.8vw, 112px).

display-mdisplay · 64px / 0.95 · 500 · -0.03em
Design that can be built.

Manifesto, quote, big statements in a case study. Fluid clamp(36px, 4.5vw, 64px).

headingdisplay · 40px / 1.05 · 500 · -0.02em
Problem and context

Subheadings in a case study. Fluid clamp(28px, 2.8vw, 40px).

titlesans · 24px / 1.2 · 500 · -0.01em
Shift to digital: 250,000+ customers in Moje VSE

Project title on a card, item names in the list.

leadsans · 22px / 1.4 · 400 · -0.005em
You can’t invent a working product at your desk. So I look at the data and listen to customers first.

Intro paragraph below the hero and at the start of a case study. Max 2–3 sentences, max width 30em.

bodysans · 17px / 1.55 · 400
We evaluated every activity regularly, both during the pilot and after rollout.

Body text. Max line width 64ch.

smallsans · 14px / 1.45 · 400
Client, role and year below the project title.

Image captions, footer, secondary information.

labelmono · 12px / 16px · 400 · 0.06em
CLIENT — ROLE — YEAR

Section labels, dt in MetaList, Tag. Always UPPERCASE (text-transform: uppercase).

numeralmono · 13px / 16px · 400 · 0.02em
(07) 2019—2026 Prešov 14:32

Counts, years, time, ordinal numbers in the work catalog. Tabular figures.

04 · Grid

Grid, spacing and corners

010203040506070809101112
label 1–3content 4–10 (main)—
label 1–3content 4–12 (wide)

Spacing

--space-14px

Gap between icon and text, arrow in ArrowLink.

--space-28px

Between tags, between a label and its value.

--space-312px

Inner padding of a tag and button (vertical).

--space-416px

Page margin on mobile. Between a card’s image and text.

--space-524px

Grid gutter. Inner padding of a button (horizontal).

--space-632px

Page margin on desktop. Between cards vertically on mobile.

--space-748px

Between a section heading and its content.

--space-864px

Between project cards vertically on desktop.

--space-996px

Between blocks in a case study.

--space-10160px

Between main page sections. space-9 on mobile.

Layout and corners

--grid-columns12Desktop grid (≥1024px). Tablet 8, mobile 4.
--grid-gutter24pxGap between columns at all widths (16px below 640px).
--page-margin32pxSide margin of the page ≥1024px; 24px tablet, 16px mobile.
--content-max1680pxMax content width. Images may run the full window width.
--measure64chMax width of body text.
--radius-00Default: images, buttons, fields. The system is square.
--radius-12pxOnly the focus outline and text selection.
--radius-pill999pxOnly Tag and the language switch. Nothing else is rounded.
05 · Motion

Motion

--duration-fast160msLink color, underline, focus.
--duration-base420msHover on a project image, arrow shift.
--duration-slow900msRevealing the name in the hero line by line (LineReveal), lifting the Preloader, uncovering an image (Reveal).
--duration-reveal1400msThe lingering zoom of the image inside Reveal (1.14 → 1). It runs longer than the uncovering so the image keeps settling.
--ease-outcubic-bezier(0.2, 0.7, 0.1, 1)Everything that appears or reacts to hover. No springs or bounce.
--ease-inoutcubic-bezier(0.7, 0, 0.2, 1)Only surface moves: the Preloader leaves upwards, Reveal uncovers an image.
--stagger70msDelay between items in a sequence (name lines 80ms, cards 70ms, list rows 45ms).
  • All components have motion="auto" and respect prefers-reduced-motion.
  • No springs, parallax or magnetic buttons. The cursor is the only custom motion element, and only on desktop with a mouse.
06 · Components

Components

Nav

Navigation

Header with the name, links with counts, a live “Prešov hh:mm” clock, the language and theme switches.

Matúš Šarišský
Prešov 09:38
Prop / classDescription
namename on the left
links[{ label, href, count, active }]
placeplace before the time
showClockfalse hides the time
themePaper / Dark switch (ThemeSwitch)
h(Matus.Nav, { name: 'Matúš Šarišský', place: 'Prešov', links: [{ label: 'Work', count: 11, active: true }] })

SectionHead

Content

A mono label and a big section heading with an optional count.

Práce / Work

Selected work(11)

Prop / classDescription
labelmono label
titleheading (display-l)
countcount, shown as [010]
h(Matus.SectionHead, { label: 'Práce / Work', title: 'Selected work', count: 11 })

ProjectCard

Content

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.

Prop / classDescription
index, title, yearcatalog number, title, year
client, roleline below the title
tagsmax 3, muted tone
image, alt, ratioimage and aspect ratio
platesurface without an image, e.g. zelena-soft
h(Matus.ProjectCard, { index: '04', title: 'Shift to digital', year: '2022–2026', client: 'VSE', role: 'Digital Product Manager', tags: ['Adoption'], ratio: '4/5', image: '/img/shift.jpg', alt: '…' })

MetaList

Content

A row of facts in the case study intro.

Client
VSE
Role
Digital Product Manager
Period
2022–2026
Prop / classDescription
items[{ label, value }]
h(Matus.MetaList, { items: [{ label: 'Role', value: 'Digital Product Manager' }] })

Tag · Button · ArrowLink

Elements

Small elements. Tag is the only rounded element (pill). Buttons and links have an arrow drawn as SVG.

UX/UIEnergyNew
Back to work
Prop / classDescription
Tag tonedefault · muted · accent
Button variantprimary · secondary
Button arrow'in' · 'out' · false
ArrowLink externaltrue = arrow ↗
h(Matus.Button, { variant: 'primary' }, 'Get in touch')
h(Matus.Tag, { tone: 'muted' }, 'Energy')

Case study layout

Layout

A block with a mono label in columns 1–3 and content in 4–10 (main) or 4–12 (wide). A hairline above the block, space-9 between blocks.

02 · Approach

4 steps to digital adoption

Body text is at most 64 characters wide with a line height of 1.6.

Prop / classDescription
.mt-cs-wrapmax width and page margin
.mt-cs-blockblock with a line and spacing
.mt-cs-side / -main / -widecolumns 1–3 / 4–10 / 4–12
.mt-cs-h2, .mt-cs-pblock heading and text
.mt-cs-bigbig number above the H1
CaseSectionReact: label, title, wide
<section class="mt-cs-wrap mt-cs-block">
  <div class="mt-cs-grid">
    <span class="mt-label mt-cs-side">02 · Approach</span>
    <div class="mt-cs-main">
      <h2 class="mt-cs-h2">4 steps to digital adoption</h2>
      <p class="mt-cs-p">…</p>
    </div>
  </div>
</section>

Steps

Content blocks

A numbered list of steps or tasks with lines.

  1. 01
    UX audit

    Critical places where the brand manual failed WCAG 2.2.

  2. 02
    Stakeholder management

    Defending the changes to marketing and brand.

  3. 03
    Building the design system

    Rules, contrast ratios and color tokens.

Prop / classDescription
items[{ title, text }]
h(Matus.Steps, { items: [{ title: 'UX audit', text: '…' }] })

Stats

Content blocks

Big numbers with a description. Only numbers that may be published (NDA: internal figures in general terms).

1.

place when searching for the brand

+50 %

impressions per month

+30 %

clicks from Google

1 000+

followers

Prop / classDescription
items[{ value, label }]
columns2 (default) to 4
h(Matus.Stats, { columns: 4, items: [{ value: '1.', label: 'place when searching for the brand' }] })

Pipe

Content blocks

A funnel or process: steps side by side, numbered, separated by a line.

01Invitation

A ride on Strava and in stories.

02Registration

A QR code on the ride ticket.

03Store

Start and finish over coffee.

04Back to the store

Remarketing and newsletter.

Prop / classDescription
items[{ title, text }]
columnsitem count by default
h(Matus.Pipe, { items: [{ title: 'Invitation', text: '…' }] })

BeforeAfter

Content blocks

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 / classDescription
rows[[before, now], …]
beforeLabel, afterLabelcolumn 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 / classDescription
items[{ title, text }]
tonefamily for the accent, e.g. ruzova
prefixlabel 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.

Prop / classDescription
.mt-hero + .mt-proj-*surface by family and tone
.mt-hero-q (span)headline, second line in the accent
.mt-hero-visa phone or 1–2 images
.mt-hero-big, .mt-hero-metaword in the background, mono line
HeroReact: tone, quote [a, b], big, meta, label, children
PhoneReact: bar [time, app], title, children
<div class="mt-hero mt-proj-zelena" role="img" aria-label="…">
  <span class="mt-hero-big" aria-hidden="true">4 steps</span>
  <p class="mt-hero-q" aria-hidden="true">From paper<br><span>to the app.</span></p>
  <div class="mt-hero-vis" aria-hidden="true">
    <div class="mt-phone"><div class="mt-phone-in">…</div></div>
  </div>
  <span class="mt-hero-meta">Moje VSE · digital adoption · 2022–2026</span>
</div>

Carousel

Galleries

A carousel like on Instagram: arrows on hover, swiping, keyboard arrows, a counter and dots. Keep the slide order of the original.

Ride #4 · x Cyklove, slide 1 of 4: TicketRide #4 · x Cyklove, slide 2 of 4: RouteRide #4 · x Cyklove, slide 3 of 4: MapRide #4 · x Cyklove, slide 4 of 4: Registration
1/4
Ride #4 · x CykloveOctober 2025
Solange · Café du Cycliste, slide 1 of 4: EmotionSolange · Café du Cycliste, slide 2 of 4: DetailSolange · Café du Cycliste, slide 3 of 4: Product and priceSolange · Café du Cycliste, slide 4 of 4: Brand
1/4
Solange · Café du CyclisteStory ad
Prop / classDescription
items[{ src, alt }] or [{ plate, alt }]
title, meta, textdescription below the carousel
ratio'4 / 5' (post) · '9 / 16' (story)
.mt-carscarousel grid, --cols
h(Matus.Carousel, { title: 'Ride #4', meta: 'October 2025', ratio: '4 / 5', items: [{ src: '/img/r4-1.jpg', alt: 'Ticket' }] })

ToolList

Elements

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.

ToolsFigmaNotionJiraClaudeHotjar
Prop / classDescription
items[{ name, icon, size (66–90), rotate (°) }]
labelmono label before the list
h(Matus.ToolList, { label: 'Tools', items: [{ name: 'Figma', icon: '/logos/figma.svg', size: 80, rotate: -6 }] })

FloatTile

Galleries

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 notification
Moje VSE · nowCheck your advance paymentsCheck that you’re paying the right advance payments.
RimRebellion · story
Story Ride #4
Prop / classDescription
tonesurface family and tone
caption, bigmono caption, word in the background
image / childrenimage or card (is-card)
rotatetilt in degrees, -2 to -3 by default
h(Matus.FloatTile, { tone: 'zelena-light', caption: 'Lifecycle · push notification', big: '12 mo.' }, h('b', null, 'Check your advance payments'))

Gallery · ProjectIndex

Galleries

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.

Prop / classDescription
ProjectIndex items, spanscards and widths in columns
Gallery items, columns, ratio, looptiles, a grid or an endless strip
Gallery works, labels.worklink to the work in the viewer
h(Matus.ProjectIndex, { title: 'Selected work', spans: [7, 5, 5, 7], items: projects })
<Gallery loop items={details} works={works} labels={labels} />

Motion layer

Motion

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°E
Prop / classDescription
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 / classDescription
labeltext in the target, 'Open →' by default
view, linkCSS state selectors
disabledturns 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.

Prop / classDescription
href, title, indextarget, title and project number
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 / classDescription
labelgroup name for screen readers
light, darkbutton texts
<html data-theme="dark">switches tokens to the dark theme; project surfaces don’t change
<ThemeSwitch label="Téma / Theme" light="Paper" dark="Dark" />

WorkStack

Content

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.

Prop / classDescription
items[{ href, image, label, year, ariaLabel }], 4 items
casePrefixstart of the link description for screen readers
<WorkStack casePrefix="Case study" items={stack} />

BrandGrid

Content

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 / classDescription
items[{ name, logo, height, sector, tone, works }]
heightlogo height in px
tone: 'gray'a solid color logo stays gray (black would be a blot) and isn’t in the game
worksslugs 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.

Prop / classDescription
id, titlevideo ID and button title
notecookie note below the button
<YouTube id="5zSl3qImTLM" title="…" note={ui.youtube.note} />

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 / classDescription
[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.phpshared top 10 leaderboard: name 2–20 characters, the score is checked against the game length
<div class="pg-grid" data-game-line>
  <GamePeek lang="en" />
</div>
07 · Accessibility

Accessibility

  • Text 4.5:1, large text and controls 3:1 in both themes.
  • The 3:1 exception for text applies from 24 px or bold from 18.7 px.
  • Focus 2 px in --focus, offset 3 px, on every interactive element.
  • alt on every image; decorative visuals aria-hidden with a description through role="img".
  • Gallery and carousels: on-screen arrows, keyboard arrows and swipe. Esc closes the viewer and focus returns to the image.
  • With prefers-reduced-motion nothing moves by itself: not the gallery strip, the card stack or the intro sequence.
08 · Usage

Usage

The library is one stylesheet and one script without a build. Components live in the global object window.Matus and need React 18.

<link rel="stylesheet" href="ds/matus/tokens.css">
<link rel="stylesheet" href="ds/matus/components/bundle.css">
<script src="react@18.3.1/umd/react.production.min.js"></script>
<script src="react-dom@18.3.1/umd/react-dom.production.min.js"></script>
<script src="ds/matus/components/bundle.js"></script>
<script>
  const h = React.createElement;
  ReactDOM.createRoot(document.getElementById('root'))
    .render(h(Matus.Stats, { items: [{ value: '120,000+', label: 'new e-invoices' }] }));
</script>
tokens.csscolors (Paper and Dark), fonts, spacing, corners, grid, motion
bundle.csscomponents, project surfaces, case study patterns
bundle.js28 components in window.Matus
index.d.tsprop types as documentation
NextBack to selected work11 →