microsoft/griffel

CSS-in-JS with ahead-of-time compilation ⚡️

TypeScript

1,281

812 commits

updated Oct 9, 2026

See the code

README

Griffel's logo

CSS-in-JS with ahead-of-time compilation ⚡️

NPM Downloads MIT License GitHub discussions

Griffel (German for stylus/pen) is CSS-in-JS with near-zero runtime, SSR support and styles defined with JavaScript objects.

🚀   Zero config start: Griffel has both runtime & build time implementations

🔥   Optional build time transforms to improve performance

💪   Type-safe styles via csstype

🧩   Uses Atomic CSS to reuse styles and avoid specificity issues with CSS

📝   Experimental CSS extraction with Webpack plugin

🐞   Debug using Griffel DevTools extension

Griffel with React

npm install @griffel/react
# or
yarn add @griffel/react

Learn more?

Check series episodes of Fluent UI Insights related to styling issues and Griffel 🎥

EP02: StylingEP03: Griffel
Watch EP02: StylingWatch EP03: Griffel

Contributing

This project welcomes contributions and suggestions, please see CONTRIBUTING.md to get started.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

License

This project is licensed under the MIT License, see the LICENSE.md file for details.

css
css-in-js
react

microsoft/griffel

CSS-in-JS with ahead-of-time compilation ⚡️

TypeScript

1,281

812 commits

updated Oct 9, 2026

See the code

README

Griffel's logo

CSS-in-JS with ahead-of-time compilation ⚡️

NPM Downloads MIT License GitHub discussions

Griffel (German for stylus/pen) is CSS-in-JS with near-zero runtime, SSR support and styles defined with JavaScript objects.

🚀   Zero config start: Griffel has both runtime & build time implementations

🔥   Optional build time transforms to improve performance

💪   Type-safe styles via csstype

🧩   Uses Atomic CSS to reuse styles and avoid specificity issues with CSS

📝   Experimental CSS extraction with Webpack plugin

🐞   Debug using Griffel DevTools extension

Griffel with React

npm install @griffel/react
# or
yarn add @griffel/react

Learn more?

Check series episodes of Fluent UI Insights related to styling issues and Griffel 🎥

EP02: StylingEP03: Griffel
Watch EP02: StylingWatch EP03: Griffel

Contributing

This project welcomes contributions and suggestions, please see CONTRIBUTING.md to get started.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

License

This project is licensed under the MIT License, see the LICENSE.md file for details.

css
css-in-js
react

Significant stargazers

sideshowbarker

788 followers · starred Mar 2026

Andrey Okonetchnikov

1,089 followers · starred Mar 2022

Janic Duplessis

800 followers · starred Jan 2022

Nadeshiko Manju

1,942 followers · starred Jul 2024