Allow selecting between Bootstrap 5 and TailwindCSS on first setup of vlsuite utility submodule

Created on 14 April 2025, 10 days ago

Problem/Motivation

The vlsuite module currently supports Bootstrap as its default CSS utility framework during the initial configuration of its utility submodule.
As TailwindCSS is also widely used, we want to provide an option for users to choose between Bootstrap 5 and TailwindCSS during the first-time installation or setup of the utility class submodule.

This will improve flexibility and developer experience by aligning the vlsuite utility class system with the frontend framework already used in the project.

Steps to reproduce

  1. Install the vlsuite module on a clean Drupal 10/11 site.
  2. Enable the utility submodule that manages utility classes.
  3. Observe that only Bootstrap 5 is configured without offering a choice.

Proposed resolution

Modify the module's installation or configuration process to include a configuration form allowing the site builder to choose between Bootstrap 5 and TailwindCSS.

This selection should:

  • Only occur during the first-time setup of the utility submodule.
  • Store the selection in configuration.
  • Load the appropriate utility classes and logic based on the selection.

Remaining tasks

  • Design a configuration form for framework selection.
  • Implement logic to load the correct utility class definitions.
  • Add test coverage if applicable.
  • Update README/documentation to mention Tailwind support.

User interface changes

A new selection form for choosing between Bootstrap and Tailwind will be introduced during the submodule setup.

API changes

None anticipated, unless utility class helpers or services are altered to handle framework-specific logic.

Data model changes

Possibly a new config setting (e.g., vlsuite.settings.framework) to persist the selected CSS framework.

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇪🇸Spain eduardo morales alberti Spain, 🇪🇺

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024