import { Controls, Meta } from '@storybook/blocks';
import * as DSProviderStories from '../../src/theme/DSProvider/DSProvider.stories';
In order to use Design System components you need to add styled-components theme provider.
You can extend default Design System theme with you own
values when theme prop is passed into the component. This component also includes reset CSS rules
(this is opt-out feature via config.hasIncludedGlobalStyles property).
// AppComponent.jsx
import { DSProvider } from '@securityscorecard/design-system'
...
const AppComponent = (
<Provider store={this.store}>
<DSProvider>
<Root />
</DSProvider>
</Provider>
);// AppComponent.jsx
import { DSProvider } from '@securityscorecard/design-system'
...
const customTheme = {
heights: {
header: '3rem',
footer: '2rem',
},
...
}
const AppComponent = (
<Provider store={this.store}>
<DSProvider theme={customTheme}>
<Root />
</DSProvider>
</Provider>
);