Next-Yak

Image of yak coding

🦀 Zero-runtime CSS-in-JS powered by Rust. Write styled-components syntax, get build-time CSS extraction and full RSC compatibility.

Performance

Validated across many thousands of real-world users:

Get started and profit from these improvements without any significant increase in build times.

Features

import styled from "styled-components";

const Title = styled.h1`
font-size: 1.5em;
color: palevioletred;
&:hover {
color: red;
}
`;

const App = () => (
<Title>
Hello World
</Title>
);
// JS output (auto-generated)

const Title = styled.h1.withConfig({
componentId: "sc-1289dod-0"
})`
font-size: 1.5em;
color: palevioletred;
&:hover {
color: red;
}
`;

const App = () => (
<Title>
Hello World
</Title>
);
/* no static css */