← Back to list

tailwind
by HuynhSang2005
⭐ 0🍴 0📅 Jan 25, 2026
SKILL.md
name: tailwind description: Quy ước Tailwind CSS trong repo này (Tailwind v4 CSS-first, tokens, cn(), không hardcode màu).
Nguồn trong repo
- Global Tailwind entry + tokens:
apps/web/src/styles/globals.css - Class merge helper:
apps/web/src/lib/utils.ts(cn) - Shadcn UI (không sửa):
apps/web/src/components/ui/**
Tailwind v4 (CSS-first)
- Repo dùng
@import "tailwindcss";trongglobals.css. - Plugins:
tailwindcss-animate,@tailwindcss/typography. - Theme tokens map qua CSS variables (
--color-*) trong@theme inline.
Quy tắc thiết kế
- Không hard-code màu/font/shadow mới trong component.
- Dùng tokens hiện có (
bg-background,text-foreground,border-border, v.v.). - Dùng
cn()để merge class conditionally.
Khi cần thêm styles
- Ưu tiên Tailwind utilities trước.
- Nếu cần utility riêng, cân nhắc pattern
@utility ...trongglobals.css(repo đã có).
MDX styles
- MDX-related styles nằm ở
apps/web/src/styles/mdx.cssvàmdx-editor*.css. - Khi đổi typography, ưu tiên chỉnh trong các file này thay vì inline class rải rác.
Score
Total Score
50/100
Based on repository quality metrics
✓SKILL.md
SKILL.mdファイルが含まれている
+20
○LICENSE
ライセンスが設定されている
0/10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
Reviews
💬
Reviews coming soon