yak
galaxuslabs/yak · Public GitHub repository
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.
Open the project to try its demo, view the repository, or save it to your collection. Repository and demo actions use RepoShelf’s sign-in flow.

About this project
Author-written excerpt from the project README.
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
Requirements and intended 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.
Statements extracted from the author’s documentation · Checked 2026-10-28. Source: https://github.com/galaxuslabs/yak/blob/main/README.md
Recorded maintenance information
Last recorded source update: 2026-11-23. Saved release: storybook-addon-yak@9.10.2 · 2026-09-28. These dates do not guarantee ongoing maintenance.
- Technologies
- React, Next.js, Rust
- Licence
- MIT. Generally permits modification and commercial use, subject to the licence’s notices and conditions.
- Demo check
- A public page loaded on 2026-11-23. This does not test every feature.
Browse related categories
More projects to explore
hyperframes
heygen-com/hyperframes
Open-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
archify
tt-a1i/archify
Turn any idea, plan, or codebase into a beautiful interactive diagram. An agent skill for Claude Code, Codex, and more.
AdminLTE
ColorlibHQ/AdminLTE
AdminLTE - Free admin dashboard template based on Bootstrap 5
ppt-master
hugohe3/ppt-master
AI turns documents or topics into real, native PowerPoint decks—with native shapes, transitions and animations, data-backed charts and tables on demand, audio narration from speaker notes, and support for your own .pptx templates. · by Hugo He