ben-rogerson/twin.macro là một trong những repo tập trung giao diện mà TopGit theo dõi, hiện có 8.0k sao, viết chủ yếu bằng 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.
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
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.
ben-rogerson/twin.macro có phải mã nguồn mở không?
Có — ben-rogerson/twin.macro phát hành theo license MIT, nghĩa là mã nguồn mở để đọc, fork và (tùy license) tái sử dụng. Mã: github.com/ben-rogerson/twin.macro.
ben-rogerson/twin.macro là gì?
ben-rogerson/twin.macro (ben-rogerson/twin.macro) là dự án TypeScript trên GitHub. Theo mô tả gốc: 🦹♂️ 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.
ben-rogerson/twin.macro so với các dự án Frontend khác thế nào?
ben-rogerson/twin.macro được TopGit xếp vào nhóm Frontend, với 8.0k sao GitHub và viết bằng TypeScript. Xem trang chủ đề Frontend trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
Cùng nhóm Frontend còn repo nào?
ben-rogerson/twin.macro thuộc nhóm Frontend trên TopGit, cùng 18 topic GitHub. Trang Trending và Topics liệt kê các repo cùng số sao và cùng ngôn ngữ để so sánh.
Đọc thêm về ben-rogerson/twin.macro ở đâu?
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/ben-rogerson/twin.macro là nguồn chính thức.
Vì sao ben-rogerson/twin.macro được xếp vào nhóm Frontend?
TopGit xếp ben-rogerson/twin.macro vào nhóm Frontend dựa trên GitHub topics và mô tả của repo (gắn thẻ: "babel", "babel-macro", "css-in-js"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Vẫn đang phân vân về twin.macro?
Một cú bấm sẽ gửi câu hỏi kèm trang này cho AI — xem AI nói gì về twin.macro.