# Quillyst — full text > Clear, well-researched articles on the ideas and trends shaping technology, work and everyday life. 7 articles. Index: https://quillyst.com/llms.txt --- # Building a design system that actually lasts URL: https://quillyst.com/blog/building-a-design-system-that-lasts/ Author: Leo Martinez Published: 2026-11-18 Tags: Design Systems, CSS > Tokens, primitives and the boring decisions that keep a component library useful years after launch. Every product team eventually hits the same wall: the interface grows faster than the decisions behind it. Buttons drift, spacing becomes negotiable, and "just this once" turns into a pattern. This article walks through a practical approach that keeps things consistent without slowing anyone down. ## Start with tokens, not components Components are the visible part of a system, but **tokens** are the foundation. Color, spacing, radius and type scale should exist as named values before a single component is built. When a brand color changes, you change one line — not three hundred. ```css :root { --color-accent: oklch(0.56 0.21 275); --radius-card: 1rem; --space-section: clamp(3rem, 8vw, 7rem); } ``` ### Naming matters more than values Prefer semantic names like `--surface` and `--muted` over raw ones like `--gray-200`. Semantic names describe _intent_, which makes dark mode and theming almost free. If a token name tells you what it **looks like**, it is a primitive. If it tells you where it is **used**, it is semantic. Components should only ever reference semantic tokens. ## Build a small set of primitives Resist the urge to build everything at once. A handful of well-designed primitives covers most of an interface: - **Container** — consistent page width and gutters. - **Section** — vertical rhythm between blocks. - **Button** and **Badge** — the most reused interactive pieces. - **Card** — a predictable surface for grouped content. > A design system is not a project. It is a product serving products — and it needs an owner. ## Document the decisions Code shows _what_; documentation explains _why_. A short note next to each component describing when to use it — and when not to — saves hours of review comments later. ### Keep it alive Schedule regular audits, track adoption, and treat breaking changes with the same care as a public API. Systems that are maintained get used; systems that are used get better. Avoid "snowflake" props such as `marginTop` on every component. They feel flexible on day one and quietly dissolve your spacing scale by day ninety. ## Wrapping up Start with tokens, keep primitives small, and write down your reasoning. The result is an interface that scales with your team instead of against it. --- # Astro islands in practice: shipping less JavaScript URL: https://quillyst.com/blog/astro-islands-in-practice/ Author: Ava Thompson Published: 2026-11-10 Tags: Astro, Performance > How partial hydration changes the way you think about interactivity, with real-world patterns and trade-offs. Most pages are mostly static. A blog post, a pricing page, a docs article — the bulk of the content never changes after it reaches the browser. Yet for years we shipped entire application runtimes to render them. Astro's **islands architecture** flips that default. ## What an island is An island is an interactive component embedded in otherwise static HTML. Astro renders everything to HTML on the server, then hydrates _only_ the components you explicitly mark: ```astro --- ---

Static heading — zero JS

``` The heading costs nothing. The counter loads its JavaScript only when it scrolls into view. ## Choosing a client directive Each directive answers one question: _when does this component need to be interactive?_ - `client:load` — immediately. Use for above-the-fold UI people touch right away. - `client:idle` — once the main thread is free. Good for secondary widgets. - `client:visible` — when scrolled into view. Ideal for comments, carousels and footers. - `client:media` — only at certain breakpoints, such as a mobile-only menu. ### Default to none The best directive is often no directive at all. A surprising amount of "interactivity" — tabs, accordions, theme toggles — works with a few lines of vanilla script or plain HTML like `
`. ## Trade-offs to know Islands don't share state automatically. When two islands need the same data, reach for a tiny store library or custom events instead of wrapping the page in one giant component. ## Takeaway Start static, add islands deliberately, and pick the laziest directive that still feels instant. Your users' devices will thank you. --- # A modern CSS layout cheatsheet for 2026 URL: https://quillyst.com/blog/modern-css-layout-cheatsheet/ Author: Ava Thompson Published: 2026-11-02 Tags: CSS > Container queries, subgrid and :has() — the layout features you can finally use everywhere. CSS layout has quietly become excellent. Features that needed JavaScript or fragile hacks a few years ago are now baseline in every evergreen browser. Here is the short list worth memorising. ## Container queries Media queries ask about the _viewport_. Container queries ask about the _component's own space_, which is what you actually care about when a card can live in a sidebar or a full-width grid. ```css .card-wrapper { container-type: inline-size; } @container (min-width: 28rem) { .card { grid-template-columns: 12rem 1fr; } } ``` ## Subgrid Subgrid lets nested elements align to the parent grid's tracks. Card titles, excerpts and footers finally line up across a row without fixed heights. ```css .grid { display: grid; grid-template-columns: repeat(3, 1fr); } .card { display: grid; grid-row: span 3; grid-template-rows: subgrid; } ``` ## The :has() selector `:has()` is the long-awaited parent selector. Style a form field's wrapper when the input is invalid, or change a card's layout when it contains an image: ```css .card:has(img) { grid-template-rows: auto 1fr; } .field:has(input:user-invalid) { --field-border: var(--color-danger); } ``` ## Honourable mentions - `aspect-ratio` for media boxes without padding hacks. - `gap` on flexbox, at last. - Logical properties like `margin-inline` for writing-mode-aware spacing. - `text-wrap: balance` for headlines that don't leave a lonely last word. Put these together and most layouts need no layout JavaScript at all. --- # Accessible color palettes with OKLCH URL: https://quillyst.com/blog/accessible-color-with-oklch/ Author: Leo Martinez Published: 2026-10-24 Tags: Design Systems, Accessibility > Perceptually uniform color makes contrast predictable. Here is how to build a palette that passes WCAG by design. If you have ever built a palette in HSL, you know the problem: `hsl(60 100% 50%)` and `hsl(240 100% 50%)` share the same "lightness" value, yet yellow looks far brighter than blue. Contrast becomes guesswork. **OKLCH** fixes that. ## What OKLCH gives you OKLCH describes a color with three channels: - **L** — perceived lightness, from 0 to 1. - **C** — chroma, or how colorful it is. - **H** — hue angle, from 0 to 360. Because lightness is _perceptual_, two colors with the same `L` look equally bright to the human eye, whatever their hue. ```css :root { --blue-600: oklch(0.55 0.2 260); --green-600: oklch(0.55 0.2 145); --pink-600: oklch(0.55 0.2 350); } ``` All three of these sit at roughly the same contrast against white. ## Building a scale Pick lightness stops once, then reuse them for every hue. A scale of `0.97, 0.93, 0.85, 0.75, 0.65, 0.55, 0.45, 0.35, 0.25` gives predictable steps for backgrounds, borders and text. ### Rules that keep you compliant 1. Body text sits at least 0.45 apart in lightness from its background. 2. Large text and icons can go down to about 0.35 apart. 3. Verify with a real contrast checker — perceptual is close, not exact. ## Dark mode for free Invert the lightness stops and keep hue and chroma. Because the scale is perceptual, the dark palette keeps the same relationships without hand-tuning every swatch. --- # A field guide to Core Web Vitals URL: https://quillyst.com/blog/core-web-vitals-field-guide/ Author: Ava Thompson Published: 2026-10-12 Tags: Performance > Measure what matters: practical fixes for LCP, INP and CLS that move the numbers in real user data. Lab scores are a useful smoke test, but Google ranks pages on **field data** — what real visitors experience on real devices. This guide covers the three Core Web Vitals and the fixes that reliably move them. ## Largest Contentful Paint (LCP) LCP measures when the biggest element in the viewport finishes rendering. The target is under **2.5 seconds**. ### Common fixes - Serve the hero image in a modern format at the right size. - Never lazy-load the LCP image; give it `fetchpriority="high"` instead. - Inline critical CSS and avoid render-blocking web fonts. ```html ... ``` ## Interaction to Next Paint (INP) INP measures how quickly the page responds to clicks, taps and key presses across the whole visit. Aim for under **200 milliseconds**. ### Common fixes - Break long tasks into smaller chunks and yield to the main thread. - Defer non-essential third-party scripts. - Ship less JavaScript in the first place. ## Cumulative Layout Shift (CLS) CLS measures unexpected movement of visible content. Keep it under **0.1**. ### Common fixes - Always set `width` and `height` (or `aspect-ratio`) on images and embeds. - Reserve space for ads, banners and late-loading widgets. - Use `font-display: optional` or size-adjusted fallbacks to avoid font swaps. ## Measure in the field Add a small real-user monitoring script, segment by device type, and watch the 75th percentile. That is the number that counts. --- # Typography for the web, from first principles URL: https://quillyst.com/blog/typography-for-the-web/ Author: Leo Martinez Published: 2026-09-30 Tags: Design, CSS > Measure, rhythm and scale — the timeless rules behind text that is a pleasure to read on any screen. Good typography is invisible. Readers don't notice it — they just keep reading. Bad typography is noticed immediately, even by people who couldn't tell you why. These are the principles that make the difference. ## Measure: line length The ideal line holds about **60–75 characters**. Shorter lines feel choppy; longer ones make it hard to find the start of the next line. ```css .prose { max-width: 68ch; } ``` ## Rhythm: line height and spacing Body text reads best with a line height around **1.5 to 1.8**. Headings need less, around 1.1 to 1.3, because they are short and large. Keep vertical spacing consistent by deriving it from the base line height instead of picking numbers by eye. ## Scale: sizing headings Use a modular scale — each step multiplies the previous one by a ratio such as 1.25. It produces sizes that feel related rather than random. ### Make it fluid `clamp()` lets the scale grow with the viewport without breakpoints: ```css h1 { font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem); } ``` ## Contrast and weight Pair a confident heading weight with a comfortable body weight. Avoid pure black on pure white for long reads; a very dark grey on an off-white is gentler on the eyes. ## The final check Read your page on a phone, in sunlight, at arm's length. If it's still comfortable, you've done it right. --- # View transitions without a framework URL: https://quillyst.com/blog/view-transitions-without-a-framework/ Author: Ava Thompson Published: 2026-09-15 Tags: Astro, Animation > Native page transitions are here. A walkthrough of the API and how Astro makes it a one-liner. Smooth transitions between pages used to be the exclusive territory of single-page apps. The **View Transitions API** brings them to plain multi-page sites, and Astro wraps it in a single component. ## Turning it on Add the client router to your document head: ```astro --- --- ``` Navigation now cross-fades by default, and the browser keeps scroll position and focus behaviour sensible. ## Shared elements Give the same element a matching `transition:name` on two pages, and the browser morphs one into the other — a card's image growing into an article's hero, for example. ```astro ``` Names must be unique on each page, so derive them from something stable like the post slug. ## Things to watch for ### Scripts run once Module scripts don't re-run after a client-side navigation. Re-initialise per-page behaviour by listening for the `astro:page-load` event, or use event delegation on `document`. ### Respect reduced motion Some readers find motion uncomfortable. Honour `prefers-reduced-motion` by shortening or disabling animations. ## Worth it? For content sites, yes. The cost is a few kilobytes, and the result feels noticeably more polished — without giving up the simplicity of real pages.