Hero
The home page opening: centered name, role switch, role panel, calls to action and scroll cue, on a dot grid. Used once, on the home page.
<Hero lang={lang} />Everything this site is built from: tokens, components and the rules for using them. Examples are live, styled by the same CSS as the rest of the site, and tests fail if the dark colors drift from it.
Version 2
The JB monogram is a heavy B with a J cut through it; the J’s dot sits above the B in Hot Fuchsia.
jb-mark-snow-fuchsia.svgPrimary on dark grounds (the website)jb-mark-ink-fuchsia.svgPrimary on light grounds (CV, print)jb-mark-snow-teal.svgAlternate on darkjb-mark-ink-teal.svgAlternate on lightjb-mark-blue-ink.svgAlternate on lightjb-mark-black.svgOne color, black inkjb-mark-white.svgOne color, white inkDark is the primary theme: it is the website. Light is a reference palette for light grounds; the CV keeps its own print colors. Sea green means action and pass, blue bell means link, and fuchsia is the accent mark. Text on any colored fill is on-color.
Watch the names: the site’s --surface is the token surface-raised, while the token surface is the site’s --bg.
| Token | Dark | Light | Site variable | Usage |
|---|---|---|---|---|
ink-black | #011627 | #011627 | --ink-black | Core palette. Deep navy-black: primary text on light grounds, page background in dark theme. |
hot-fuchsia | #ff3366 | #ff3366 | --hot-fuchsia | Core palette. The brand's signal hue: the logo's dot, the rule under section titles, badges and failing tests. Pair with ink-black text (5.2:1); white text on it is only 3.5:1, so avoid it. |
light-sea-green | #2ec4b6 | #2ec4b6 | --sea-green | Core palette. The action and pass color: primary buttons, focus rings, ✓ marks, stat numbers. Pair with ink-black text (8.4:1); never white text (2.2:1). |
bright-snow | #f6f7f8 | #f6f7f8 | --bright-snow | Core palette. Off-white: page background in light theme, primary text in dark theme. |
blue-bell | #20a4f3 | #20a4f3 | --blue-bell | Core palette. Links; hover state of primary buttons. Pair with ink-black text (6.7:1); white text on it is 2.7:1, avoid. |
surface | #011627 | #f6f7f8 | --bg | Page background (the site's --bg). |
surface-alt | #04203a | #eceff2 | --bg-alt | Alternating section bands, with a border-top and border-bottom; the ground of the role switch and Inspect toggle. |
surface-raised | #0a2540 | #ffffff | --surface | Cards, stats and chips' ground (the site's --surface). |
surface-sunken | #00101e | #e4e8ec | --sunken | Code blocks in articles. |
surface-sunken-bar | #031d33 | #d9dee3 | --sunken-bar | The Inspect mode tooltip's ground. |
border | #1b3d5f | #cfd6dd | --border | Hairlines: card outlines, section edges, ghost buttons, timeline rail, the hero's dot grid (decorative, not a control boundary). |
text | #f6f7f8 | #011627 | --text | Body and heading text on every surface token. |
text-muted | #a7b4c4 | #4a5866 | --muted | Secondary text — leads, meta, labels — on surface, surface-alt and surface-raised (7.3:1 dark, 6.5:1 light). |
primary | #2ec4b6 | #2ec4b6 | --accent | Primary button fill, role switch indicator, focus ring, timeline dots. Text on it is on-color. |
primary-text | #2ec4b6 | #0f7d73 | --accent | Sea-green used as text: ✓ pass marks, stat numbers, the role line, company names (8.4:1 dark; the light value darkens to 4.7:1). |
link | #20a4f3 | #0b6fb0 | --accent-2 | Links on surface tokens (6.7:1 dark, 5.0:1 light). |
hot | #ff3366 | #ff3366 | --hot | Section-title rule, WIP badge, failing tests, the logo dot. A mark, not body text on light grounds (3.3:1 on bright-snow). |
on-color | #011627 | #011627 | --accent-ink | Text and icons on primary, blue-bell and hot fills. |
chip-bg | rgba(32, 164, 243, 0.12) | rgba(32, 164, 243, 0.12) | --chip-bg | Default chip ground (blue-bell at 12%), over surface-raised or surface-alt. |
chip-text | #9bd6fa | #0b5c8f | --chip-text | Default chip label (blue-bell mixed toward white in dark). |
chip-test-bg | rgba(46, 196, 182, 0.16) | rgba(46, 196, 182, 0.16) | --chip-test-bg | Testing-stack chip ground (sea-green at 16%). |
chip-test-text | #8cdfd7 | #0b6b62 | --chip-test-text | Testing-stack chip label. |
Every allowed text-on-ground pair, computed from the tokens. Each must reach 4.5:1 in both themes. hot is a mark, not text on light grounds (3.3:1 on bright-snow).
| Text on ground | Dark | Light |
|---|---|---|
text / surface | 17.1:1 | 17.1:1 |
text / surface-raised | 14.5:1 | 18.3:1 |
text-muted / surface | 8.7:1 | 6.8:1 |
text-muted / surface-alt | 7.8:1 | 6.3:1 |
text-muted / surface-raised | 7.4:1 | 7.3:1 |
primary-text / surface | 8.5:1 | 4.7:1 |
link / surface | 6.7:1 | 5.0:1 |
on-color / primary | 8.5:1 | 8.5:1 |
on-color / blue-bell | 6.7:1 | 6.7:1 |
on-color / hot | 5.2:1 | 5.2:1 |
chip-text / chip-bg | 8.1:1 | 6.4:1 |
chip-test-text / chip-test-bg | 7.4:1 | 5.6:1 |
Oswald for headings, numbers and small uppercase labels; Nunito for everything you read; JetBrains Mono for code and chips. JetBrains Mono isn’t bundled, so it falls back to the system monospace.
display-hero · 5.2rem / 1.05 / 600 / 0.01emThe name in the home hero. Fluid: clamp(2.8rem, 6.4vw, 5.2rem).h1 · 3.6rem / 1.15 / 600 / 0.01emPage title on every page but the home. Fluid on the site: clamp(2.2rem, 5vw, 3.6rem).h2 · 2.1rem / 1.15 / 600 / 0.04emSection titles, set UPPERCASE with a 3rem × 4px hot rule beneath. Fluid: clamp(1.6rem, 3vw, 2.1rem).h3 · 1.2rem / 1.15 / 500 / 0.01emCard, job and project titles.stat-number · 2.2rem / 1.2 / 600Stat tile numbers, in primary-text, at the end of About.headline · 1.45rem / 1.65 / 400 / 0.01emThe role line, in primary-text: the CV header, and the hero when JavaScript is off.brand-name · 1.15rem / 1.65 / 500 / 0.02emThe name beside the logo in the header.eyebrow · 0.8rem / 1.65 / 400 / 0.08emSmall UPPERCASE labels: the hero location, and above chip groups (Development, Testing).role-switch · 1rem / 1.2 / 500 / 0.03emRole switch labels (0.85rem up to 600px wide).scroll-cue · 0.75rem / 1 / 400 / 0.1emThe UPPERCASE label of the scroll cue under the hero.lead · 1.15rem / 1.65 / 400Intro paragraph under a section title, in text-muted.prose · 1.05rem / 1.65 / 400Blog article body.body · 1rem / 1.65 / 400Default running text.button · 1rem / 1.65 / 600Button labels.nav · 0.95rem / 1.65 / 400Header navigation links, text-muted until hover.meta · 0.9rem / 1.65 / 400Dates, places, stat labels, footer text — in text-muted.badge · 0.72rem / 1.65 / 700Pill badges (WIP).code-locator · 0.8rem / 1.4 / 400The locator in the Inspect mode tooltip.code-chip · 0.78rem / 1.65 / 400Chip labels (stack, skills, tags).The rem steps the site really uses. Sections size fluidly: clamp(3rem, 7vw, 5rem) top and bottom.
| Token | Value | Usage |
|---|---|---|
space-1 | 0.4rem | Gaps between chips; icon-to-label gaps are 0.5em. |
space-2 | 0.75rem | Button rows (.cta-row). |
space-3 | 1rem | Grid gaps between cards and stats. |
space-4 | 1.4rem | Card padding. |
space-5 | 3rem | Space above a secondary section title (.sub). |
container-max | 1120px | Page container width (the site's --maxw), with a 1.25rem side gutter. |
prose-max | 760px | Reading width (.narrow). |
dot-pitch | 28px | Spacing of the hero's dot grid, 1px dots in border. |
radius-xs · 4pxFocus-ring corners.radius-sm · 6pxChips; inline code uses 5px.radius-md · 10pxButtons, certification rows, code blocks, the Inspect tooltip.radius-lg · 14pxCards, stat tiles (the site's --radius).radius-full · 999pxBadges, the language switch, the role switch, the Inspect toggle, timeline dots.Depth comes from surface steps and borders. One shadow exists, for the one element that floats.
shadow-floatThe Inspect mode tooltip: the one element that floats above the page. Don't put it on cards.
Motion confirms an action or marks an entrance; it never carries information alone. Under prefers-reduced-motion: reduce all hero animation and transitions stop, and state stays correct because transforms that carry state are not removed.
| Name | Timing | Used for |
|---|---|---|
hover | 0.15s ease | Button lift (1px), border and color changes |
tip | 0.18s ease-out | Inspect tooltip entrance |
toast | 0.3s cubic-bezier(0.3, 1.4, 0.5, 1) | Toast entrance |
switch | 0.4s cubic-bezier(0.3, 1.3, 0.5, 1) | Role switch indicator |
underline | 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) | Fuchsia underline on the hero name |
swap | 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) | Role panel content, second item delayed 0.1s |
rise | 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) | Hero entrance, staggered from 0.05s to 0.5s |
loop | 1.6s, 1.8s | The Inspect LED pulses while on (turn Inspect off to stop it); the scroll cue bobs twice, then rests |
Tabler Icons (MIT), stroke 2, in currentColor, rendered to inline SVG at build time. No emoji as icons. The ✓ and ✗ glyphs are used only as pass and fail marks.
primary with a 3px offset.button and a elements. Icons next to text hide from assistive technology.The home page opening: centered name, role switch, role panel, calls to action and scroll cue, on a dot grid. Used once, on the home page.
<Hero lang={lang} />A two-option pill that swaps the role panel below it, with a sea-green indicator under the selected role.
<div class="role-switch" role="group" aria-label="Show role" data-active="engineer">
<span class="role-switch-indicator" aria-hidden="true"></span>
<button type="button" aria-pressed="true">Senior QA Automation Engineer</button>
<button type="button" aria-pressed="false">QA Lead</button>
</div>A toggle that outlines hero elements and reveals a Playwright locator, with a Copy button, on hover, focus or tap.
page.getByRole('link', { name: 'Download CV' })
<button class="inspect-toggle" type="button" aria-pressed="true">
<span class="inspect-led" aria-hidden="true"></span>
Inspect mode <span aria-hidden="true">· on</span>
</button>
<div class="inspect-tip-box" style="margin-top: 1rem; width: fit-content">
<code>page.getByRole('link', { name: 'Download CV' })</code>
<button class="inspect-copy" type="button">Copy</button>
</div>A small labeled link with a bobbing chevron that leads from the hero to About.
<a class="scroll-cue" href="/#about" style="margin: 0">About
<svg class="icon" width="20" height="20" viewBox="0 0 24 24" aria-hidden="true"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m6 9l6 6l6-6"/></svg>
</a>Sticky bar with the logo and name, the section navigation and the language switch.
<Base lang={lang}>…</Base>The pill in the header that links to the same page in the other language.
<a class="lang-switch" href="/es/" hreflang="es" lang="es">Español</a>The first focusable element on every page; it appears on focus and jumps to the main content.
<a class="skip" href="#main">…</a>Closes every page with the logo, full name and year, the testing note, the design system link and social links.
<Base lang={lang}>…</Base>The LinkedIn, GitHub and Email links with icons.
<SocialLinks />The uppercase Oswald h2 that opens every section, with a short fuchsia rule beneath it.
<h2>Experience</h2>Link-styled calls to action: a solid sea-green primary and an outlined ghost.
<div class="cta-row">
<a class="btn btn-primary" href="/#contact">Download CV</a>
<a class="btn btn-ghost" href="/#contact">Get in touch</a>
</div>The raised panel for skill groups and projects. project adds the header and pinned links; data-status="wip" dashes the border.
Evaluating a music composition coach.
<article class="card project" data-status="wip">
<header><h3>Coda · LLM evals</h3><span class="badge">In progress</span></header>
<p>Evaluating a music composition coach.</p>
<ul class="chips"><li>Promptfoo</li><li>TypeScript</li></ul>
</article>A card with a site screenshot on top, then client, description, stacks and links.
collaborations.map((c) => <article class="card collab">…</article>)Small monospace tags for stacks, skills and project tags. Plain text, never links or buttons.
<ul class="chips"><li>Astro</li><li>TypeScript</li></ul>
<ul class="chips chips-test"><li>Playwright</li><li>axe-core</li></ul>A small fuchsia pill that flags status, used for work-in-progress projects.
<span class="badge">In progress</span>A tile with one large number and a short label, in a row of four at the end of About.
<div class="stats" style="margin-top: 0">
<div class="stat"><span class="stat-value">11+</span><span class="stat-label">years in QA</span></div>
<div class="stat"><span class="stat-value">30%</span><span class="stat-label">less maintenance with AI</span></div>
</div>The work history: a vertical rail with a ringed dot per job, newest first.
<ol class="timeline">
<li class="job">
<h3>Senior QA Automation Engineer <span class="at">· Perficient Latin America</span></h3>
<p class="job-meta">Sept 2026 – Present · Bogotá</p>
<ul class="job-highlights"><li>UI test automation with Playwright.</li></ul>
</li>
</ol>Outlined rows with a certification name on the left and its issuer on the right.
<ul class="certs"><li><strong>ISTQB® Certified Tester – Foundation Level</strong><span>iSQI</span></li></ul>Blog entries: hairline rows with title and date on the home page, cards on the blog index.
<ul class="post-list"><li><a href="/blog/">Why this site tests itself</a><time>Nov 2026</time></li></ul>Article body styles: headings, inline code, code blocks and quotes.
Run it with npx playwright test.
A test that cannot fail proves nothing.
<div class="prose">
<p>Run it with <code>npx playwright test</code>.</p>
<blockquote>A test that cannot fail proves nothing.</blockquote>
</div>The JB monogram inlined as SVG, so colors follow the theme.
<Logo size="2.1rem" color="var(--bright-snow)" />A Tabler icon rendered to inline SVG at build time, in currentColor, with no client JavaScript.
<Icon name="download" />surface and surface-alt bands, each band with a hairline above and below.lead paragraph in text-muted.hreflang.Terminal. The career test-run panel left the hero in version 2, along with code-terminal. Its surface-sunken-bar, shadow-float and code-bar (now code-locator) moved to the Inspect mode tooltip.