Skip to content

[bug]: New theme creation - tailwind preset issues #4289

Open
@jemoon

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:

  1. Create my-theme-preset.js with following content:
    module.exports = { theme: { extend: { fontFamily: { sans: ["Courier", "sans-serif"], }, }, }, };
  2. Import preset in tailwind.config.js by placing following line:
    const myThemePreset = require("./my-theme-preset");
  3. Change presets configuration so it will look like presets: [venia, myThemePreset]
  4. 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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions