编程 · 最新文章

今日新增 29 篇 · 共 2,700 篇 · 来自 79 个博客

Josh W. Comeau··Josh W. Comeau

Chasing the Pixel-Perfect Dream

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

Svelte Blog·

What’s new in Svelte: November 2020

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.

Josh W. Comeau··Josh W. Comeau

Hands-Free Coding

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

Tailwind CSS Blog·

Tailwind CSS v1.9.0

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!

Lea Verou··Lea Verou

The -​-var: ; hack to toggle multiple values with one custom property

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.

Tailwind CSS Blog·

Introducing Tailwind Play

Tailwind Play is an advanced online playground for Tailwind CSS that lets you use all of Tailwind's build-time features directly in the browser.

Tailwind CSS Blog·

Headless UI: Unstyled, Accessible UI Components

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

Elixir Blog··José Valim

Elixir v1.11 released

Elixir v1.11 is out with improvements to the compiler and tighter integration with Erlang/OTP.

Josh W. Comeau··Josh W. Comeau

Full-Bleed Layout Using CSS Grid

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.

Svelte Blog·

What’s new in Svelte: October 2020

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.

Without Boats·

Ringbahn III: A deeper dive into drivers

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

Without Boats·

Revisiting a 'smaller Rust'

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.

Lea Verou··Lea Verou

The failed promise of Web Components

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.