mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-20 09:22:49 +03:00
6630fd1cb4
refs https://github.com/TryGhost/Team/issues/3151 - splits font loading between css files that are loaded locally for storybook/demo app vs the exported App - uses local Inter font for exported App vs local asset for demo
27 lines
533 B
TypeScript
27 lines
533 B
TypeScript
import React from 'react';
|
|
|
|
import '../src/styles/demo.css';
|
|
import type { Preview } from "@storybook/react";
|
|
|
|
const preview: Preview = {
|
|
parameters: {
|
|
actions: { argTypesRegex: "^on[A-Z].*" },
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/,
|
|
},
|
|
},
|
|
},
|
|
decorators: [
|
|
(Story) => (
|
|
<div className="admin-x-settings">
|
|
{/* 👇 Decorators in Storybook also accept a function. Replace <Story/> with Story() to enable it */}
|
|
<Story />
|
|
</div>
|
|
),
|
|
],
|
|
};
|
|
|
|
export default preview;
|