Skip to content

Commit

Permalink
fix import fonts link
Browse files Browse the repository at this point in the history
  • Loading branch information
bityutskiyAO committed Jul 9, 2024
1 parent a31a2c1 commit b17bf82
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Themes/lib/typography/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
} from './constants';

export const createFontLinkImport = (fontLink: string) => {
return `@import(${fontLink});`;
return `@import url('${fontLink}');`;
};

export const createFontFamilyVariable = (
Expand Down
2 changes: 1 addition & 1 deletion src/components/Themes/ui/TypographyTab/Preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export const Preview = () => {
<ThemeProvider theme="dark" scoped rootClassName={`${b()} ${b({theme: 'dark'})}`}>
{themeStyles ? (
<style>
{`.gravity-ui-landing-typography-tab__preview_theme_dark {${themeStyles.dark}}`}
{`${themeStyles.fontImports}\n.gravity-ui-landing-typography-tab__preview_theme_dark {${themeStyles.dark}}`}
</style>
) : null}
<Flex gap={10} style={{padding: 80}} justifyContent="center">
Expand Down

0 comments on commit b17bf82

Please sign in to comment.