WebDevStudios / wd_s

A starter theme from WebDevStudios.
https://wdunderscores.com
GNU General Public License v2.0
662 stars 138 forks source link

theme.json color slugs need a dash or they don't work with tailwind #1109

Closed itsamoreh closed 6 months ago

itsamoreh commented 10 months ago

Slugs for colors in theme.json will not work in tailwind @apply statements if they are missing a dash.

e.g. the following colors will not all be available to tailwind and if you try to use them, the theme will not build.

theme.json

{
  "color": "blue",
  "slug": "primary",
  "name": "blue"
},
{
  "color": "red",
  "slug": "secondary",
  "name": "red"
},

example.scss

@apply text-primary