Indexed by TopGit from live GitHub metadata: ben-rogerson/twin.macro has 8.0k stars, written primarily in TypeScript. 🦹♂️ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, solid-styled-components, stitches and goober) at build time.
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
When babel runs over your javascript or typescript files at compile time, twin grabs your classes and converts them into css objects.
These css objects are then passed into your chosen css-in-js library without the need for an extra client-side bundle:
💡 Works with the official tailwind vscode plugin - Avoid having to look up your classes with auto-completions straight from your Tailwind config - setup instructions →
💥 Add !important to any class with a trailing or leading bang!
Drop into our Discord server for announcements, help and styling chat.
Resources
🔥 Docs: The prop styling guide - A must-read guide to level up on prop styling
🔥 Docs: The styled component guide - A must-read guide on getting productive with styled components
Docs: Options - Learn about the features you can tweak via the twin config
Plugin: babel-plugin-twin - Use the tw and css props without adding an import
Example: Advanced theming - Add custom theming the right way using css variables
Example: React + Tailwind breakpoint syncing - Sync your tailwind.config.js breakpoints with react
Helpers: Twin VSCode snippets - For devs who want to type less
Plugins: VSCode plugins - VScode plugins that work with twin
Article: "Why I Love Tailwind" by Max Stoiber - Max (inventor of styled-components) shares his thoughts on twin
Special thanks
This project stemmed from babel-plugin-tailwind-components so a big shout out goes to Brad Cornes for the amazing work he produced. Styling with tailwind.macro has been such a pleasure.
How does ben-rogerson/twin.macro compare to other Frontend projects?
ben-rogerson/twin.macro is tracked by TopGit in the Frontend category, with 8.0k GitHub stars and written in TypeScript. Browse the Frontend topic page on TopGit to compare it against similar projects by stars and activity.
Is ben-rogerson/twin.macro open source?
Yes — ben-rogerson/twin.macro ships under the MIT license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/ben-rogerson/twin.macro.
What else is in the Frontend space?
ben-rogerson/twin.macro is tracked by TopGit under the Frontend category, alongside 18 GitHub-tagged topics. Trending and Topics pages list peer repositories of comparable stars and language.
What is ben-rogerson/twin.macro?
ben-rogerson/twin.macro (ben-rogerson/twin.macro) is a TypeScript project on GitHub. From the project's own README: 🦹♂️ Twin blends the magic of Tailwind with the flexibility of css-in-js (emotion, styled-components, solid-styled-components, stitches and goober) at build time.
Where do I read more about ben-rogerson/twin.macro?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/ben-rogerson/twin.macro is the definitive source.
Why is ben-rogerson/twin.macro categorized under Frontend?
TopGit places ben-rogerson/twin.macro in the Frontend category based on its GitHub topics and description (tagged: "babel", "babel-macro", "css-in-js"). Categories are assigned from real repository metadata, not editorial guesswork.
Read full README in the tab above.
Is twin.macro worth your time?
ChatGPT, Claude and Perplexity can all read this page. Ask one of them what it makes of twin.macro.