~/designkit/README.md

Guidelines

The decisions behind the design, and the conventions the code follows. Not law, but every site so far keeps to them.

~/designkit/backdrop.css

Backdrop

Every page has the same background, drawn by body::before in kit.css. You are looking at it now.

  • A purple glow top right: --accent-2 at 13%, an ellipse of 1100 × 650px.
  • A teal glow on the left: --accent at 9%, 900 × 600px.
  • A 48px grid of 1px lines in --grid-line.

It is fixed behind everything, so content scrolls over it. Do not give a full-page container its own background, or the grid disappears. Cards are translucent, so the backdrop shows through.

~/designkit/decisions.md

Interface

What makes a page feel like it belongs.

  • It looks like a developer’s editor

    File-path labels, window chrome with three dots, // comments for hints, section titles written as tags, a terminal prompt. Use it as seasoning, not on every element.

  • Playful but clear

    Microcopy can joke, but every control says what it does. If something is not obvious, it is not playful, it is unclear.

  • Dark by default

    Light is an equal option. Test every screen in both.

  • Two languages

    English at / and Dutch at /nl/, or /en/ and /nl/ for apps with locale routing. The same pages, the same structure, and the switch keeps you on the same page. Write the Dutch yourself.

  • The first screen fits

    The hero and anything meant to be seen at a glance fit from 1366 × 657 up to 2560 × 1300 without scrolling.

  • External links

    They open in a new tab with rel="noopener noreferrer" and end with ↗. The <JO/> logo always goes back to the portfolio.

  • Privacy

    No cookies except the theme cookie, cookie-less analytics, self-hosted fonts, no contact forms.

  • Accessible

    WCAG 2.2 AA: contrast through the -text tokens, a skip link, visible focus, aria-current on the active page, labelled icon buttons, <html lang> per language, reduced motion respected.

~/designkit/conventions.md

Code

The same habits in every repository.

  • TypeScript

    Everywhere, strict. Plain data and small functions before classes.

  • Formatting and linting

    Prettier with single quotes, no trailing commas and 160 columns. ESLint with the recommended TypeScript rules and the framework’s plugin. Unused variables are errors unless they start with _.

  • Content lives in data files

    Text per language in locales/en and locales/nl. The Dutch file is type-checked against the English one, and a unit test checks that both have the same keys.

  • Styles

    Tokens only: no hard-coded colours or font stacks. Component styles are scoped. Shared classes come from the kit.

  • Comments

    They explain why, not what, and they are short.

  • Tests on every pull request

    Type check, lint, unit tests, end-to-end and accessibility tests on desktop and mobile in both themes, Lighthouse budgets. Nothing merges with a red check.

  • Workflow

    Feature branch, pull request into main, checks, merge, automatic deploy. Nobody pushes to main directly.

  • Commits

    An imperative subject, a body that explains why when it is not obvious, one author.

~/designkit/new-subdomain.md

Checklist

For a new subdomain.

  1. The package and both fonts are installed; kit.css and header.css are loaded.
  2. The theme script is in <head> before the CSS, and <meta name="theme-color"> is #0a0e17.
  3. The order in <body> is: skip link, header, <main id="main">.
  4. Header links, language links and labels are filled in; <JO/> goes to joeyoosenbrug.nl.
  5. English and Dutch both exist, with <html lang> set per language.
  6. Checked in dark and light, at 390px and 1440px wide, with the keyboard only.
  7. Added to the side projects of the portfolio, so it shows in the hero and under Projects.