Skip to content

Commit

Permalink
docs(*): override sb default helvetica font
Browse files Browse the repository at this point in the history
  • Loading branch information
clukhei committed Jun 12, 2024
1 parent 8708b68 commit c1caeed
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
1 change: 1 addition & 0 deletions .storybook/manager-head.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@200;400;600;700&display=swap">
5 changes: 5 additions & 0 deletions .storybook/preview-head.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
<link href='%STORYBOOK_STYLE_URL%' rel='stylesheet' type='text/css' />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@200;400;600;700&display=swap">
<style>
body {
font-family: Inter, sans-serif;
}
</style>
12 changes: 7 additions & 5 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import 'bootstrap-icons/font/bootstrap-icons.css';
import { themes } from '@storybook/theming';
// https://storybook.js.org/docs/react/writing-stories/parameters#global-parameters
export const parameters = {
// https://storybook.js.org/docs/react/essentials/actions#automatically-matching-args
actions: { argTypesRegex: '^on.*' },
// docs: {
// source: {
// type: 'code',
// },
// },
docs: {
theme: themes.sgdsTheme,
// source: {
// type: 'code',
// },
},
options: {
storySort: {
order: ['Install', 'Usage', 'Components'],
Expand Down

0 comments on commit c1caeed

Please sign in to comment.