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

Commit

Permalink
Fix incorrect variables generated from theme.headings in vanilla ex…
Browse files Browse the repository at this point in the history
…tract package (#58)
  • Loading branch information
soudai-s authored Sep 11, 2023
1 parent 155728e commit e20c770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mantine-vanilla-extract/src/theme-to-vars.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export function themeToVars(theme: MantineThemeOverride): MantineVars {
const radius = getSizesVariables<Radius>(mergedTheme, 'radius', 'radius');
const spacing = getSizesVariables<Spacing>(mergedTheme, 'spacing', 'spacing');

const headings = Object.keys(mergedTheme.headings).reduce(
const headings = Object.keys(mergedTheme.headings.sizes).reduce(
(acc: Record<string, Heading>, heading) => {
acc[heading] = {
fontSize: `var(--mantine-${heading}-font-size)`,
Expand Down

0 comments on commit e20c770

Please sign in to comment.