css
9 posts
- Your codebase already has a design system
The design system a team actually has lives in its code, not its docs. Saer, a CLI I built, reads that system, and a read-only MCP server lets coding agents read it too.
- Twenty-five ways to write a colour down
A family tree of colour spaces from Munsell in 1905 to CSS Color 4 in 2022, in six lanes by purpose. Hover OKLCH and the whole lineage lights up, back through a blog post, a 1998 paper and a 1931 experiment.
- Getting the menu out of the card
The sequel to z-index: 9999. The same dropdown three ways inside a scrolling, transformed card: clipped, escaped into the top layer and chased by JavaScript, then held to its button by CSS anchor positioning.
- Kern: exploring variable fonts and generating fluid type
How Kern turns the axes of a variable font into sliders, compares two fonts side by side, and works out the clamp() values for a fluid type scale.
- The kerning pair problem: why I built Kern
Variable fonts, type scales, and the specific pain of tuning typography in a browser. Kern is a typography explorer at kern.sammii.dev with real-time axis manipulation, side-by-side comparison, and shareable URL state. Here is how it works.
- Why your design system needs OKLCH, not HSL
HSL lies about lightness. A 50% yellow does not look like a 50% blue. OKLCH fixes this, and once you see it you cannot unsee it. Here is the colour space, the maths, and the one binary search that keeps palettes inside the sRGB gamut.
- One colour formula: how I made my developer portfolio feel alive
How I built a cursor-reactive colour system that runs through every interactive element on my portfolio: logo, background, card borders, cursor follower, all from a single formula.
- Building a vertical snap carousel with touch-drag pagination
I needed a vertical carousel for my portfolio that snaps cleanly between items and has pagination you can drag on mobile, without a 50kb library. Here's how I built it with CSS scroll-snap, a minimal React hook, and custom touch handling.
- Cursor-Reactive Gradients: Making CSS Respond to Mouse Position
How the colour-changing logo on my portfolio works — 15 lines of maths, a CSS mask, sine waves for scroll, and a lerp function. No library, no canvas, no WebGL.