File tree Expand file tree Collapse file tree 3 files changed +48
-1
lines changed Expand file tree Collapse file tree 3 files changed +48
-1
lines changed Original file line number Diff line number Diff line change 1+ import { addons } from 'storybook/manager-api' ;
2+ import { create } from "storybook/theming"
3+ import './storybook.css' ;
4+
5+ addons . setConfig ( {
6+ theme : create ( {
7+ base : "light" ,
8+ fontBase : "'Inter', sans-serif" ,
9+
10+ brandTitle : "Tailscale Design System" ,
11+ brandUrl : "https://tailscale.com" ,
12+ brandImage : "/images/tailscale-logo.svg" ,
13+ brandTarget : "_self" ,
14+
15+ colorPrimary : "#4b70cc" ,
16+ colorSecondary : "#4b70cc" ,
17+
18+ // UI
19+ appBg : "#ffffff" ,
20+
21+ // Text colors
22+ textColor : "#232222" ,
23+ textInverseColor : "#ffffff" ,
24+ } ) ,
25+ } )
Original file line number Diff line number Diff line change 11import type { Preview } from "@storybook/react" ;
2- import '../src/tailwind.css' ;
2+ import { create } from "storybook/theming" ;
3+ import './storybook.css' ;
34
45const preview : Preview = {
56 parameters : {
@@ -9,6 +10,12 @@ const preview: Preview = {
910 date : / D a t e $ / i,
1011 } ,
1112 } ,
13+ docs : {
14+ theme : create ( {
15+ base : "light" ,
16+ fontBase : "'Inter', sans-serif" ,
17+ } ) ,
18+ } ,
1219 } ,
1320 tags : [ 'autodocs' ] ,
1421} ;
Original file line number Diff line number Diff line change 1+ @font-face {
2+ font-family : "Inter" ;
3+ font-weight : 100 900 ;
4+ font-style : normal;
5+ font-display : swap;
6+ src : url ("../src/assets/fonts/Inter.var.latin.woff2" ) format ("woff2-variations" );
7+ }
8+
9+ @font-face {
10+ font-family : "Inter" ;
11+ font-weight : 100 900 ;
12+ font-style : italic;
13+ font-display : swap;
14+ src : url ("../src/assets/fonts/Inter.var.italic.latin.woff2" ) format ("woff2-variations" );
15+ }
You can’t perform that action at this time.
0 commit comments