Is it possible to create an implementation of a design that matches to-the-pixel? Well, not really, but that shouldn't discourage us! In this article, I'll show how I became designers' best friend by leveraging a series of tricks to get my
AI 摘要This November 2020 Svelte update covers new features and bug fixes such as Promise destructuring with {#await}, slot forwarding fixes, better TypeScript typings, and various Sapper improvements including new preload types and route layout fixes. The month's Svelte Summit featured Rich Harris demoing SvelteKit, a not-yet-public project promising a first-class developer experience, alongside talks from 17 speakers available on YouTube. The article also showcases community projects like Svelte Lab, Budibase, Interference 2020, and several other tools and sites built with Svelte.
Earlier this year, I lost the ability to use a keyboard and mouse for extended periods. Fortunately, this wasn't as catastrophic as it sounds! This article chronicles my experience using adaptive tools like dictation and eye-tracking as my
We just released Tailwind CSS v1.9 which adds support for configuration presets, useful new CSS grid utilities, extended border radius, rotate, and skew scales, helpful accessibility improvements, and more!
AI 摘要The article explains the CSS 'space toggle hack,' where setting a custom property to whitespace (`--foo: ;`) or the `initial` value can conditionally append or remove values across multiple properties and rules via a single `var()` with a fallback. This effectively emulates an if() function using one custom property, demonstrated by toggling a flat button into a skeuomorphic one with a single `--is-raised` variable. The author notes limitations—such as only appending values rather than true conditionals and poor readability—while mentioning that prior art exists (Ana Tudor, James0x57) and a native `if()` function is being discussed by the CSS Working Group.
Headless UI is a set of completely unstyled, fully accessible UI components for React, Vue, and Alpine.js that make it easy to build fully accessible custom UI components, without sacrificing the ability to style them from scratch with simp
Certain layouts are surprisingly dastardly. On the modern web, one of the most common layouts is also one of the trickiest. In this tutorial, I break down how to build the "full-bleed" layout using CSS Grid. Keep reading.
AI 摘要This first edition of the monthly 'What's new in Svelte' series highlights new features such as the {#key} block, slot forwarding through child components, TypeScript support for createEventDispatcher, and various CSS and syntax improvements. It also covers the Sapper 0.28.9 release with improved CSP nonce and CSS handling, announces the upcoming Svelte Summit on October 18, and showcases community projects, plug-and-play components, and learning resources.
In the previous post in this series, I wrote about how the core state machine of ringbahn is implemented. In this post I want to talk about another central concept in ringbahn: “drivers”, external libraries which determine how ringbahn sche
AI 摘要The author reflects on a concept proposed a year ago: a 'smaller Rust,' a higher-level language that borrows Rust's type system innovations but is simpler due to targeting domains with less stringent performance and control requirements. While unemployed this year, the author sketched out this language in more detail and now shares the new conclusions reached during that work.
AI 摘要The author argues that Web Components failed to fulfill their promise of making HTML more powerful and accessible to non-programmers, as the ecosystem became dominated by JS framework developers whose components require complex dependencies, build processes, and JavaScript to use, rather than following native HTML conventions. Using examples like Google's e-shop demo, the author criticizes how HTML is treated as a mere DOM marker, excluding the many people who know HTML but not JS. The article proposes creating a curated directory of plug-and-play, dependency-free, accessible components that follow built-in HTML element conventions, and invites others to collaborate on the effort.