forked from solana-foundation/explorer
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpreview.tsx
More file actions
37 lines (33 loc) · 850 Bytes
/
preview.tsx
File metadata and controls
37 lines (33 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import type { Preview } from '@storybook/react';
import React from 'react';
import { Rubik } from 'next/font/google';
// import './layout.min.css';
import '@/app/styles.css';
const rubikFont = Rubik({
display: 'auto',
subsets: ['latin'],
variable: '--explorer-default-font',
weight: ['300', '400', '700'],
});
const preview: Preview = {
parameters: {
backgrounds: {
values: [{ name: 'Dark', value: '#161b19' }],
default: 'Dark',
},
controls: {
matchers: {
color: /(background|color)$/i,
date: /Date$/i,
},
},
},
decorators: [
Story => (
<div id="storybook-outer" className={rubikFont.className}>
<Story />
</div>
),
],
};
export default preview;