import type { Preview } from '@storybook/angular'; import { componentWrapperDecorator } from '@storybook/angular'; import { setCompodocJson } from '@storybook/addon-docs/angular'; import docJson from '../documentation.json'; setCompodocJson(docJson); const preview: Preview = { // Apply the Rijkshuisstijl theme classes around every story so the design // tokens cascade (global component CSS comes from the app's build target). decorators: [ componentWrapperDecorator( (story) => `
${story}
` ), ], parameters: { layout: 'padded', // Accessibility (axe) via @storybook/addon-a11y. Runs WCAG 2.0/2.1 A+AA rule // sets on every story; flag violations in the a11y panel. a11y: { config: { runOnly: { type: 'tag', values: ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa'] } }, }, controls: { matchers: { color: /(background|color)$/i, date: /Date$/i, }, }, }, }; export default preview;