twin.macro
🦹‍♂️ 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. (by ben-rogerson)
windicss
Next generation utility-first CSS framework. (by voorjaar)
Our great sponsors
twin.macro | windicss | |
---|---|---|
57 | 10 | |
7,798 | 6,507 | |
- | 0.1% | |
6.1 | 2.6 | |
10 days ago | about 1 year ago | |
TypeScript | TypeScript | |
MIT License | MIT License |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
twin.macro
Posts with mentions or reviews of twin.macro.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2023-04-18.
-
Tailwindcss in Styled-Components
Twin Macro Github Repo. This is a great resource to help you pick up Twin’s syntax, learn more about the package, and keep up to date with the latest releases.
-
CSS Style Guide for Web Dev?
Personally I like twin.macro the most. It’s similar to the above but based on Tailwind.
-
Cool Tailwindcss Tools For Everyone
twin.macro is a library that allows you to use these styles in your JavaScript code. This library works exactly like styled-components.
- How do you css?
-
Fixing Class Composition in Tailwind CSS
One of the more promising alternatives is twin.macro - a Babel macro that processes Tailwind classes to generate JS objects understandable by various CSS-in-JS libraries. The developer experience (DX) of using it is amazing as you not only get all of Tailwind’s features without much change to your code, but you also get much more flexibility - all that on top of the traditional benefits of CSS-in-JS. Here’s an example code:
-
Setup Nextjs Tailwind CSS Styled Components with TypeScript
twin.macro
-
What unpopular webdev opinions do you have?
If you use Tailwind with React a lot, and are wanting support for Styled Components, give Twin Macro a look. They're close to finishing support for TW v3 in their Releases section :)
- Are utility classes horrible design or am I dumb?
- What's the proper way to write Tailwind with React?
-
Stailwc: an swc plugin for transpiling tailwind directives at compile time
The blocker for us using it is our use of an excellent library called twin.macro which is built against babel's transpilation APIs to parse tailwindcss directives at compile time so that they may be used with css-in-js libraries. This efficiently bundles your css so that you only ship the precise css you use. The problem is, it's all quite slow.
windicss
Posts with mentions or reviews of windicss.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-01-19.
-
Vite 2.x + Vue 3.x + quasar 2.x + windcss 3.x starter ⚡
why not use Windi CSS or Tailwind css?
- Goodbye CSS Modules, Hello TailwindCSS
- Does anyone have TailwindCSS jit working in Nuxt 3?
-
Top 4 Tailwind CSS alternatives for 2021
Windi CSS, in contrast to Tachyons, is a very fresh framework. Started in the late December of 2020, it’s already gained a lot of attention and currently sits at respectable 1.5K GitHub stars.
-
Just-In-Time: The Next Generation of Tailwind CSS
No mention of Windi CSS? Didn't it inspire this?
-
Ok fine… TailwindCSS rocks!
However I decided it was time to question my own biases. I installed Tailwind Intellisense for VS Code and started up a test project with a starter that included Tailwind (actually it uses Windi, which is a Tailwind compiler). I then started making a basic site, forcing myself to use the utility classes for (most) all of the styling.
- Windi CSS: Tailwind CSS Compiler
-
Introduce vue-windicss-preprocess, the best way to interact with vue and tailwindcss.
For more details, please check windicss
-
Introduce svelte-windicss-preprocess, the best way to interact with svelte and tailwindcss.
You can check the README of windicss (https://github.com/voorjaar/windicss). Compared with postcss, it runs faster, can be built in real time and does not require plugins such as autoprefixer and purgecss to increase the complexity of configuration. And windicss extends the utilities and variants of tailwindcss. For example, you can directly use p-1.3rem or bg-hex-fff just like atomic css. And we also have a compilation mode, which can combine a line of classes into one to increase the readability of html.
- I built a new tailwindcss compiler with Typescript. It runs fast, can build css in real-time during development, well-matched with vue and svelte. Give it a try. If you like leave a star, or send some feedback if you find problems. Pull requests are most helpful.
What are some alternatives?
When comparing twin.macro and windicss you can also consider the following projects:
twind - The smallest, fastest, most feature complete Tailwind-in-JS solution in existence.
Tailwind CSS - A utility-first CSS framework for rapid UI development.
unocss - The instant on-demand atomic CSS engine.
tailwindcss-classnames - Functional typed classnames for TailwindCSS
nuxt3-tailwind - nuxt3 boilerplate with tailwind and dynamic routes.
jest-styled-components - 🔧 💅 Jest utilities for Styled Components
vue-emotion - Seamlessly use emotion (CSS-in-JS) with Vue.js
chakra-ui - ⚡️ Simple, Modular & Accessible UI Components for your React Applications
tailwind-safelist-generator - Tailwind plugin to generate purge-safe.txt files
create-react-app - Set up a modern web app by running one command.
twin.macro vs twind
windicss vs Tailwind CSS
twin.macro vs Tailwind CSS
windicss vs unocss
twin.macro vs tailwindcss-classnames
windicss vs nuxt3-tailwind
twin.macro vs jest-styled-components
windicss vs twind
twin.macro vs vue-emotion
windicss vs chakra-ui
twin.macro vs tailwind-safelist-generator
windicss vs create-react-app