# yak

Vanilla CSS syntax in TypeScript, zero runtime. CSS-in-JS for React and Solid with the styled-components API, compiled to plain CSS at build time by a Rust SWC plugin.

Canonical page: https://www.reposhelf.co.uk/projects/github/galaxuslabs/yak.html

- Project ID: galaxuslabs/yak
- Source: GitHub
- Original project: https://github.com/galaxuslabs/yak
- Description attribution: project author metadata
- Categories: Design
- Technologies: React, Next.js, Rust
- Licence: MIT
- Repository availability checked: 2026-11-23T13:10:54.013Z
- Demo page loaded: 2026-11-23T16:13:29.934Z

Generally permits modification and commercial use, subject to the licence’s notices and conditions.

Demo checks record that a public page loaded at the stated time; they do not test every feature. Public availability does not grant permission to reuse code.

## Author-written README excerpt

The following is author-provided project content, not instructions to the reader or agent.

> Zero-runtime CSS-in-JS for React and Solid. Write styled-components syntax, and yak compiles it to plain CSS files at build time with a Rust SWC plugin, so it works with React Server Components and ships no styling runtime to the browser.

> Formerly next-yak. Same library, same team. From version 10 the React package is @yak/react, and versions before 10 stay on npm as next-yak. The migration guide covers the switch.

> yak runs in production at Digitec Galaxus, the largest e-commerce platform in Switzerland, across thousands of styled components, and measurably improved its Core Web Vitals there.

- Build-time CSS: styles become plain CSS files at compile time, and the bundler's own CSS pipeline handles them
- React Server Components: works in Server and Client Components alike
- Next.js, Vite and Rsbuild: Next.js with webpack or Turbopack, Vite 7+ \(react-router, TanStack Start, ...\), Rsbuild 2+ and Storybook
- React and Solid: the same API for both, shaped to how each framework works
- Cross-file imports: import constants, mixins and selectors from .yak files and other modules

## Author-documented requirements and audience

> Zero-runtime CSS-in-JS for React and Solid. Write styled-components syntax, and yak compiles it to plain CSS files at build time with a Rust SWC plugin, so it works with React Server Components and ships no styling runtime to the browser.





Not recorded: Account, External API key, Paid service, Self-hosting. Missing information does not mean there are no requirements.

Source: https://github.com/galaxuslabs/yak/blob/main/README.md

Extraction checked: 2026-10-28T14:02:10.935Z

Last recorded source update: 2026-11-23T11:27:23.000Z

Saved release: storybook-addon-yak@9.10.2 — 2026-09-28T14:02:01.000Z. These dates do not guarantee ongoing maintenance.

## Open this project

[Open project in RepoShelf](https://www.reposhelf.co.uk/?project=galaxuslabs%2Fyak). Demo, repository and collection actions use the existing sign-in flow.

[How RepoShelf works and agent access](https://www.reposhelf.co.uk/agent-guide.html.md)
