A clean, blank Drupal 11 Tailwind CSS theme built for Canvas.
- Drupal 11 compatible
- Tailwind CSS integration
- Single Directory Components support
- Clean, minimal structure
- Ready for customization
-
Install dependencies:
npm install
-
Build CSS:
npm run build
-
Watch for changes during development:
npm run dev
tailwind/
├── components/ # Single Directory Components (optional)
├── dist/ # Compiled CSS (gitignored)
├── js/ # JavaScript files
├── src/ # Source files
│ └── css/ # Source CSS files
├── templates/ # Twig templates
├── package.json # Node.js dependencies
├── tailwind.config.js # Tailwind CSS configuration
└── tailwind.info.yml # Theme definition
- Colors: Edit
tailwind.config.jsto add custom colors - Styles: Edit
css/styles.cssto add custom styles - Templates: Edit files in
templates/to customize markup - Components: Add Single Directory Components in
components/
-
Enable the theme:
ddev drush theme:enable tailwind
-
Set as default theme:
ddev drush config:set system.theme default tailwind
Note: The theme uses "tailwind" as the namespace throughout.
- Clear cache:
ddev drush cr
GPL-2.0-or-later