Skip to content

Setup Tailwind CSS

What does this MR do and why?

Setup Tailwind CSS

Basic setup for compiling Tailwind CSS utilities

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

Make sure to run yarn && bundle to update your Node modules and Gems.

  • To build the CSS directly, run either of these commands:
    • bundle exec rake gitlab:assets:build_tailwindcss: This is the Rake task that will be executed as part of the production assets compilation step.
    • yarn tailwindcss:build: The Yarn script that the Rake task executes internally.
  • Running Vite should start Tailwind's watcher.
  • Running Webpack should start the watcher as well.
Edited by Paul Gascou-Vaillancourt

Merge request reports