What problem does it solve?
Tailwind v4 configuration for Phoenix projects can be confusing due to new import syntax, bundling constraints, and UI/UX considerations. This guide consolidates configuration, design principles, and best practices to deliver consistent, high-quality interfaces.
Core Features & Use Cases
- Tailwind v4 Configuration: Explains the new import syntax in app.css and the removal of tailwind.config.js, guiding correct project setup.
- Asset Bundling & Performance: States that only app.js and app.css are bundled, and advises against external vendor scripts and inline tags.
- UI/UX Design Principles: Provides guidance on typography, spacing, color, motion, dark mode, and accessibility to build premium interfaces.
- Best Practices: Covers responsive design, theming, typography, and accessible design standards.
Quick Start
Apply Tailwind v4 import syntax in your Phoenix app.css to start building components with Tailwind classes.