diff --git a/dotcom-rendering/.storybook/decorators/themeDecorator.tsx b/dotcom-rendering/.storybook/decorators/themeDecorator.tsx index f38de153fb9..ed68aedbf86 100644 --- a/dotcom-rendering/.storybook/decorators/themeDecorator.tsx +++ b/dotcom-rendering/.storybook/decorators/themeDecorator.tsx @@ -14,6 +14,7 @@ import { import type { CSSProperties } from 'react'; import type { ArticleFormat } from '../../src/lib/articleFormat'; import { storybookPaletteDeclarations as paletteDeclarations } from '../mocks/paletteDeclarations'; +import { hostedPaletteOverrides } from '../../src/lib/hostedContentStyles'; const darkStoryCss = css` background-color: ${sourcePalette.neutral[0]}; @@ -113,3 +114,33 @@ export const browserThemeDecorator = > ); + +/** + * Colour scheme decorator specifically for hosted content pages, + * where the accent colour from the branding overrides some palette colours + */ +export const hostedPaletteDecorator = + (accentColour: string): Decorator => + (Story, context) => ( +