Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
tailwind/config: add base typography
Browse files Browse the repository at this point in the history
  • Loading branch information
arnemolland committed Jun 13, 2023
1 parent 50af5df commit 56a2fcb
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/tailwind/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,17 @@ export const getConfig = (theme: Theme = fallback): Partial<TailwindConfig> => {
},
},
plugins: [
plugin(({ addComponents }) => {
plugin(({ addComponents, addBase }) => {
addComponents(typographyComponents)
addBase({
h1: typographyComponents['header-1'],
h2: typographyComponents['header-2'],
h3: typographyComponents['header-3'],
h4: typographyComponents['header-4'],
h5: typographyComponents['header-5'],
p: typographyComponents['body-1'],
span: typographyComponents['body-1'],
})
}),
],
}
Expand Down

0 comments on commit 56a2fcb

Please sign in to comment.