# Tailwind CSS Rules > Basic Tailwind syntax (spacing scale, flex/grid, breakpoints) is assumed knowledge. This file only covers project-specific rules and non-obvious patterns. See `snippets.md` for ready-made component snippets. ## Core Rules 1. **No inline styles** — Tailwind classes only 2. **Mobile-first** — base classes target mobile, scale up with `sm:` `md:` `lg:` 3. **No hardcoded colors** — always use semantic tokens (see below) 4. **Dark mode aware** — every color token must work under `dark:` variant 5. **Arbitrary values only with justification** — `w-[789px]` needs a design reason; otherwise use the scale ## Semantic Color Tokens Map all colors to design tokens in `packages/design-tokens`. Never use raw colors like `bg-white` or `text-gray-900`. ```tsx // Good