Courses / Web apps & analytics / Tailwind CSS

Free courseSelf-paced

Tailwind CSS

Build a responsive, accessible component library and landing page with Tailwind CSS v4, with every build, size and accessibility check reproducible.

  • Who it's for. Learners who already write HTML and CSS and want to build consistent interfaces faster with Tailwind.
  • Before you start. Web Foundations or equivalent: semantic HTML, cascade, box model, flexbox, grid, media queries, basic accessible interaction and npm scripts. Tailwind is taught from zero.
  • 28 to 49 hours of study with practice
  • 8 modules, 48 lessons
  • 4 guided projects and a final project

What you'll learn

  • Install and configure Tailwind CSS v4 with Vite and prove generation from the built stylesheet.
  • Build flex, grid and spacing layouts and verify them by measured geometry.
  • Define a design system with @theme tokens and verify contrast ratios.
  • Style keyboard, form, ARIA, dark-mode and reduced-motion states with variants.
  • Audit a finished site for size, accessibility and responsive behaviour.

Skills you'll gain

  • Build setup
  • Utility composition
  • Layout
  • spacing
  • Typography
  • color tokens
  • Responsive variants
  • Interaction states
  • Component extraction
  • Production design audit

Tools you'll use

  • Tailwind CSS v4
  • Vite
  • npm
  • Node.js

Details to know

  • Certificate on completionIssued after your final project is reviewed
  • 8 module checkpointsA quiz and a practical task close each module
  • Self-pacedStudy any time; your progress is saved

How every lesson works

Each lesson follows the same four steps, so you always know what comes next.

  1. 01

    Watch & Learn

    A short animated video explains one idea at a time.

  2. 02

    Guided Practice

    Work through an example step by step and check the result.

  3. 03

    Quiz & Challenge

    Short questions check the idea has landed before you move on.

  4. 04

    Mini Project

    Build something useful from a project brief.

Learn at your own pace

This is a self-paced course. There are no live classes and no fixed timetable.

  • Start any timeStudy when it suits you. Lessons are short, so they fit around work or college.
  • Pick up where you left offYour progress is saved to your account.
  • Ask when you're stuckUse Ask Mentor inside the learning platform.

Your path in 4 phases

Each phase ends with something you have built and checked.

  1. 01

    Modules 1 to 2

    Set up and compose

    Install Tailwind v4 in Vite and compose utilities with evidence.

    You build: Fieldnote project scaffold with a CSS size baseline.

  2. 02

    Modules 3 to 4

    Layout and tokens

    Build layouts with flex, grid and spacing, then define type and colour tokens.

    You build: Layout shell and a light and dark token system.

  3. 03

    Modules 5 to 6

    Responsive and interactive

    Build mobile-first and container-query layouts and style interaction states.

    You build: Responsive, interactive landing sections with a sign-up form.

  4. 04

    Modules 7 to 8

    Components and audit

    Extract components with tested contracts, then audit the finished site.

    You build: Component library with contract tests.

Full curriculum

8 modules and 48 lessons, 28 to 49 hours of study

01Build setup5 lessons, 2 to 4 hours

Lessons

  • Wire the Vite plugin and compile a first utility
  • Inspect the compiled stylesheet and prove utilities are generated on demand
  • Avoid dynamic class names the scanner cannot see
  • Register or exclude content with @source and source()
  • Produce a minified production build and record a size baseline

After this module you can

  • Install tailwindcss and @tailwindcss/vite, register the plugin in vite.config, import Tailwind from CSS and show that a utility class in HTML appears in the built stylesheet.
  • Open the emitted CSS, find the reset styles and one used utility, then add and remove a class to show the output grows and shrinks.
  • Build CSS with the standalone CLI package, compare minified against unminified output, and record the file size as a baseline number.
02Utility composition5 lessons, 2 to 4 hours

Lessons

  • Read a class as the single CSS declaration it emits
  • Resolve conflicting utilities by evidence
  • Use arbitrary values and arbitrary properties sparingly
  • Set colour opacity with the slash modifier
  • Apply the trailing important modifier

After this module you can

  • Translate utility classes into their CSS declarations by reading the compiled output, and confirm each with computed styles.
  • Predict, then verify with computed styles and generated CSS, which of two conflicting utilities on one element takes effect.
  • Use the exclamation mark at the end of a class to force a declaration, recognise the old leading position as deprecated, and decide when to refactor instead.
03Layout and spacing5 lessons, 2 to 4 hours

Lessons

  • Derive spacing utilities from the base spacing variable
  • Compose a flex toolbar with flex utilities
  • Compose a responsive card grid with grid utilities
  • Size and centre content with max-width and size utilities
  • Choose gap, space-between and child selectors for uniform lists

After this module you can

  • Convert numeric spacing utilities to pixel values from the single spacing variable and use the --spacing() function in custom CSS.
  • Build a toolbar with flex, items-center, justify-between and gap utilities and prove alignment through bounding boxes.
  • Space repeated children with gap, space-y and the direct-child variant, then explain which one fits a given structure.
04Typography and color tokens6 lessons, 3 to 4 hours

Lessons

  • Compose type with size, weight, leading and tracking utilities
  • Add a font family token with @theme
  • Define a brand colour scale as theme variables
  • Replace the default palette with initial and a controlled set
  • Reference runtime variables with @theme inline for light and dark surfaces
  • Audit colour contrast with a calculated ratio

After this module you can

  • Style a heading and body with text-size, font-weight, leading and tracking utilities and read back the computed font-size, line-height and letter-spacing.
  • Define a --font-* theme variable so a new font-* utility exists, and show it in dist CSS and computed font-family.
  • Compute WCAG contrast ratios for token pairs with the relative luminance formula and decide pass or fail for normal and large text.
05Responsive variants6 lessons, 3 to 4 hours

Lessons

  • Write mobile-first utilities and the viewport meta tag
  • Read the default breakpoints as inclusive minimum widths
  • Target ranges with max-* variants and stacked breakpoints
  • Customize breakpoints with --breakpoint theme variables
  • Switch layout by container width with container queries
  • Verify a responsive page has no horizontal overflow

After this module you can

  • Style the smallest screen with unprefixed utilities, add larger-screen overrides with prefixes, and show why `sm:text-center` alone does not centre on mobile.
  • Identify sm, md, lg, xl and 2xl thresholds from their rem values and prove the boundary by testing width just below and at each value.
  • Run a width sweep at 360, 768 and 1280 pixels, assert scrollWidth does not exceed clientWidth, and fix an overflowing element using utilities.
06Interaction states8 lessons, 4 to 6 hours

Lessons

  • Style hover and keyboard focus with hover and focus-visible
  • Style form states with disabled, invalid and checked variants
  • Style children from a parent with group and named groups
  • React to a previous sibling with peer
  • Style from descendants and negations with has-* and not-*
  • Drive styles from ARIA and data attributes and define a custom variant
  • Switch themes with the dark variant and a class strategy
  • Respect motion and forced-colors preferences

After this module you can

  • Add hover and focus-visible variants to a button, verify the hover variant's media gating in dist CSS, and prove a visible keyboard focus indicator.
  • Apply disabled:, invalid:, user-invalid:, checked: and required: variants to form controls and verify each with a real input value or attribute change.
  • Gate transitions and a spinner with motion-safe and motion-reduce, and keep custom controls visible under forced-colors, verified with emulated media features.
07Component extraction7 lessons, 3 to 5 hours

Lessons

  • Spot repetition and extract a template function
  • Model component variants with a literal-class lookup map
  • Create overridable component classes with @layer components
  • Register custom utilities with @utility
  • Inline utilities into custom CSS with @apply and @reference
  • Write a testable component contract
  • Render a state gallery and assert its coverage

After this module you can

  • Find a repeated utility block of three or more occurrences, extract it into a function returning markup, and prove rendered HTML is unchanged while duplicated class strings drop to one.
  • Build a button helper whose variants and sizes are object lookups of complete class strings, with a defined fallback for unknown keys, and test six combinations.
  • Generate a gallery page that renders every component variant, size and state once, and assert the rendered count and accessible names.
08Production design audit6 lessons, 3 to 4 hours

Lessons

  • Gate the CSS size with a budget check
  • Scan for accessibility findings and fix them
  • Fill a responsive evidence matrix
  • Audit token discipline and arbitrary values
  • Audit the codebase for v3-to-v4 risks
  • Assemble the release evidence and demonstrate the capstone

After this module you can

  • Turn the module 1 baseline into a budget and write a script that exits non-zero when the minified CSS grows past it.
  • Run axe-core on the landing page and gallery, record rule ids, fix every serious and critical finding, and re-run to zero.
  • Run every gate in one command, assemble the evidence bundle and prepare a trainer-reviewed demonstration of the component library and landing page.

What you'll build

4 guided projects along the way, then a final project.

  • Fieldnote project scaffold and utility discipline

    after module 2
  • Layout shell and token system

    after module 4
  • Responsive, interactive landing sections

    after module 6
  • Component library with contract tests

    after module 7

Final project

Choose one: Fieldnote, ClinicDesk or GardenShare, each a component library of at least eight components plus a one-page landing site.

What you submit

Repository with the Vite and Tailwind v4 project, lock file and built CSS; an npm run audit covering build, size budget, accessibility, responsive matrix, tokens and contract tests.

How it's reviewed

Rubric: build and audit gates 30%, accessibility and contrast 20%, responsive correctness 20%, token and component discipline 15%, setup and demonstration 15%, plus a live demonstration at 360, 768 and 1280px.

Where you'll use it

  • Turn repeated markup into a reusable button or card component with variant maps.
  • Check a landing page at phone, tablet and desktop widths for overflow and focus visibility.

Roles that use these skills

  • Frontend developer
  • UI developer
  • Web designer

Earn the certificate by building, not watching

  1. Complete the lessons and pass each module checkpoint.
  2. Build your final project and demonstrate it.
  3. OUTLEARN reviews your project and issues your certificate. It is not issued automatically.

Frequently asked questions

Do I need to know Tailwind?

No. Tailwind is taught from zero; you need HTML and CSS from the earlier course.

How much JavaScript is needed?

Only reading and calling small functions; component lessons use plain template functions.

Which screen widths are checked in the demonstration?

360, 768 and 1280px, with keyboard-only use, dark mode and reduced motion.

Be first in when Tailwind CSS opens

Email us and we will tell you as soon as enrolment opens.

Notify me when it opens
FreeOpens soon
Notify me