Skip to content

Commit

Permalink
style(font): font from parent
Browse files Browse the repository at this point in the history
  • Loading branch information
SySagar committed Sep 14, 2024
1 parent 3ad0e4b commit af238ef
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/unlucky-flowers-worry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@groovy-box/ui': patch
---

style: font from parent
3 changes: 1 addition & 2 deletions apps/ui/lib/components/Typography/Text.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,8 @@ export const Text: React.FC<TextProps> = ({

const Comp = asChild ? Slot : 'p';
const classNames = VARIANT_MAPPINGS[variant as keyof typeof VARIANT_MAPPINGS];
console.log('test', classNames?.slice(1));
const mergedClasses = cn(style.text, classNames?.slice(1), props.className);
console.log('merged classes', mergedClasses);

return (
<div>
<Comp
Expand Down
2 changes: 1 addition & 1 deletion packages/tokens/src/typography/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const createTypographyClass = (
fontSize,
lineHeight,
fontWeight,
fontFamily: 'Inter, sans-serif',
fontFamily: groovyFontFamily,
letterSpacing,
},
});
Expand Down

0 comments on commit af238ef

Please sign in to comment.