[bug]: New theme creation - tailwind preset issues #4289
Open
Description
Describe the bug
After new theme creation (according to: https://developer.adobe.com/commerce/pwa-studio/guides/theming/#create-a-new-theme) there are multiple error notices shown in console during compilation f.eg /components/Header/currencySwitcher.module.css The '-sm' screen does not exist in your theme
To reproduce
Steps to reproduce the behavior:
- Create
my-theme-preset.js
with following content:
module.exports = { theme: { extend: { fontFamily: { sans: ["Courier", "sans-serif"], }, }, }, };
- Import preset in
tailwind.config.js
by placing following line:
const myThemePreset = require("./my-theme-preset");
- Change presets configuration so it will look like
presets: [venia, myThemePreset]
- Run compilation
Expected behavior
Compilation process should be finished withour any errors.
Please complete the following device information:
- PWA Studio 14.0.0
Please let us know what packages this bug is in regards to:
-
venia-concept
-
venia-ui
-
pwa-buildpack
-
peregrine
-
pwa-devdocs
-
upward-js
-
upward-spec
-
create-pwa