Problem/Motivation

When creating an Artisan subtheme, the theme comes with a few Tailwind CSS 4 variables overwritten. I think its better to just load Tailwind with its default values and maybe, add a comment to the official documentation showing how to overwrite them..

On the other hand, the stylesheets that ships with Artisan starterkit (such as base.css, form.css) should be using the @apply directive instead of just writing hand-made CSS, as it more compliant with Tailwind's workflow.

Proposed resolution

  • Do not override TailwindCSS 4 variables default value.
  • Use tailwind directives instead of writing custom CSS.

Issue fork artisan-3570990

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

alejandro cabarcos created an issue. See original summary.

alejandro cabarcos’s picture

Issue summary: View changes

frouco made their first commit to this issue’s fork.

frouco’s picture

Assigned: frouco » alejandro cabarcos
Status: Active » Needs review

Reduce the number of theme design tokens in favour of Tailwind defaults.

Ready for review.

alejandro cabarcos’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.