-
Notifications
You must be signed in to change notification settings - Fork 459
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the Bug
It's not possible to specify custom fonts for storefront headings. headings
defined in @storefront-ui/react/tailwind-config
takes precedence over headings
defined in the user config. This also affects body
fonts.
Components and blocks that rely on headings like the Modal and Banners don't respect the custom heading fonts by default.
Removing @storefront-ui/react/tailwind-config
breaks a few components and blocks.
Expected behavior
It should be possible to specify custom fonts for storefront headings.
Steps to reproduce
git clone https://github.com/MyFedora/storefront-ui.git
cd storefront-ui
npm i
cd apps/storefront
npm i
npm run dev
- Observe how
.typography-headline-5
,.font-headings
and.font-body
use the default font family. - Remove
tailwindConfig
frompresets
inapps/storefront/tailwind.config.ts
. - Observe how
.typography-headline-5
,.font-headings
and.font-body
use the custom font family.
SFUI version
@storefront-ui/[email protected]
Framework
React, Next.js
Node version
24.3.0
Browser
Microsoft Edge for Business 138.0.3351.95 (Official build) (64-bit)
OS
Windows 11 Enterprise 24H2 26100.4652
Relevant log output
Able to fix / change the documentation?
- Yes
- No
Code of Conduct
- I agree to follow this project's Code of Conduct
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working