Section 6: Lab: CSS-first Configuration
- Define brand colours, fonts and spacing with @theme
- Theme variables become CSS variables you can reuse anywhere
- Custom utilities with @utility and custom variants with @custom-variant
- @source, @plugin and using @apply in moderation
- Lab: design tokens for a sample brand in a single CSS file
Section 7: Dark Mode, Transitions and Animation
- Dark mode from prefers-color-scheme or a toggle with @custom-variant
- transition, duration, ease and delay
- Built-in animations, and your own @keyframes in @theme
- 2D and 3D transforms, and starting: for popovers and dialogs
- Respecting users with motion-reduce and motion-safe
Section 8: Workshop: An Admin Dashboard Template
- Login, register and forgot password pages
- A collapsible sidebar and top navigation
- Summary cards, data tables and data management forms
- Making the dashboard usable on phones
- Enabling dark mode across the whole template
Section 9: Organising Components a Team Can Maintain
- Reducing repetition with partials or framework components rather than @apply
- Sorting classes automatically with the Prettier plugin
- The official @tailwindcss/typography and @tailwindcss/forms plugins
- Using an AI assistant to draft screens in Tailwind, and checking accessibility yourself
- Approaches for using it with Laravel, Vue, React or Angular
Section 10: Lab: Build, Upgrade and Deploy
- Building for production and checking the CSS file size
- Upgrading a v3 project to v4 with npx @tailwindcss/upgrade
- Browser requirements for v4, and options when older browsers must be supported
- Deploying to GitHub Pages or Netlify
- Presenting the work and planning next steps