Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Add TailwindCSS support to the theme #514

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

nani-samireddy
Copy link
Member

@nani-samireddy nani-samireddy commented Jan 20, 2025

Description

This PR adds TailwindCSS support to the theme.

  • Adds an additional setup in the theme setup to confirm whether the user wants to add TailwindCSS support to the theme.
  • If the users chooses yes then it'll install the required packages and creates necessary files.

Technical Details

  • Add a step in the theme setup to ask whether user wants to add TailwindCSS.
  • If Yes then, Install tailiwindcss, postcss and autoprefixer packages and initialize the tailwind.
  • Then create/copy the config of tailwind.config.js, postcss.config.js and tailwind.scss files
  • Add the bin/templates folder to directories to delete after theme setup completion.

Checklist

  • On theme setup, a prompt should ask to set up Tailwind CSS.
  • Appropriate base stylesheets are registered and enqueued.
  • Setup should remove any unnecessary packages or files from the theme.
  • Document step to modify the Tailwind CSS configurations.

Screenshots

Add.tailiwind.support.to.theme.mov

Fixes/Covers issue

Fixes #

@nani-samireddy nani-samireddy linked an issue Jan 20, 2025 that may be closed by this pull request
4 tasks
@nani-samireddy nani-samireddy added the [Type] Enhancement Enhancement done or needs to be done for an existing feature label Jan 20, 2025
@nani-samireddy nani-samireddy self-assigned this Jan 20, 2025
@nani-samireddy nani-samireddy marked this pull request as ready for review January 20, 2025 15:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Enhancement Enhancement done or needs to be done for an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for Tailwind CSS
1 participant