Skip to content

Commit

Permalink
fix: remove loading default font
Browse files Browse the repository at this point in the history
  • Loading branch information
aeksandla committed Nov 25, 2024
1 parent 3d2c93b commit c028fc2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .storybook/preview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {Theme} from '../src';
import {GlobalThemeController} from './theme/utils/global-theme-controller';

import '../styles/styles.scss';
import '@gravity-ui/uikit/styles/fonts.css';

const withContextProvider: Decorator = (Story, context) => {
const theme = context.globals.theme;
Expand Down
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,12 @@ To use mixins and constructor style variables when creating custom blocks, add i
@import '~@gravity-ui/page-constructor/styles/styles.scss';
```

To use default font, add import in your file:

```css
@import '@gravity-ui/uikit/styles/fonts.css';
```

### Loadable blocks

It's sometimes necessary that a block renders itself based on data to be loaded. In this case, loadable blocks are used.
Expand Down
1 change: 1 addition & 0 deletions playwright/playwright/index.scss
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
@import '../../styles/styles.scss';
@import '@gravity-ui/uikit/styles/fonts.css';
@import '../../styles/storybook/index.scss';
1 change: 1 addition & 0 deletions src/widget/styles.scss
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
@import '../../styles/styles.scss';
@import '@gravity-ui/uikit/styles/fonts.css';
1 change: 0 additions & 1 deletion styles/styles.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@import '@gravity-ui/uikit/styles/fonts.css';
@import '~@gravity-ui/uikit/styles/styles.css';
@import './mixins.scss';
@import './variables.scss';
Expand Down

0 comments on commit c028fc2

Please sign in to comment.