Skip to content

Commit db7453f

Browse files
authored
Add crossword colours to palette (#13618)
1 parent 5f98690 commit db7453f

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

dotcom-rendering/src/components/CrosswordComponent.importable.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,5 +235,9 @@ export const CrosswordComponent = ({
235235
data={data}
236236
Layout={Layout}
237237
MobileBannerAd={canRenderAds ? MobileBannerAdComponent : undefined}
238+
textColor={palette('--crossword-text')}
239+
anagramHelperBackgroundColor={palette(
240+
'--crossword-anagram-helper-background',
241+
)}
238242
/>
239243
);

dotcom-rendering/src/paletteDeclarations.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5770,10 +5770,16 @@ const pillDivider: PaletteFunction = () =>
57705770
transparentColour(sourcePalette.neutral[100], 0.5);
57715771
const pillLiveBullet: PaletteFunction = () => sourcePalette.news[500];
57725772

5773+
const crosswordAnagramHelperBackgroundLight: PaletteFunction = () =>
5774+
sourcePalette.neutral[97];
5775+
const crosswordAnagramHelperBackgroundDark: PaletteFunction = () =>
5776+
sourcePalette.neutral[20];
57735777
const crosswordCluesHeaderBorderTop: PaletteFunction = () =>
57745778
sourcePalette.lifestyle[400];
57755779
const crosswordCluesHeaderBorderBottom: PaletteFunction = () =>
57765780
sourcePalette.neutral[86];
5781+
const crosswordTextLight: PaletteFunction = () => sourcePalette.neutral[7];
5782+
const crosswordTextDark: PaletteFunction = () => sourcePalette.neutral[86];
57775783

57785784
// ----- Palette ----- //
57795785

@@ -6248,6 +6254,10 @@ const paletteColours = {
62486254
light: cricketScoreboardLinkText,
62496255
dark: cricketScoreboardLinkText,
62506256
},
6257+
'--crossword-anagram-helper-background': {
6258+
light: crosswordAnagramHelperBackgroundLight,
6259+
dark: crosswordAnagramHelperBackgroundDark,
6260+
},
62516261
'--crossword-clues-header-border-bottom': {
62526262
light: crosswordCluesHeaderBorderBottom,
62536263
dark: crosswordCluesHeaderBorderBottom,
@@ -6256,6 +6266,10 @@ const paletteColours = {
62566266
light: crosswordCluesHeaderBorderTop,
62576267
dark: crosswordCluesHeaderBorderTop,
62586268
},
6269+
'--crossword-text': {
6270+
light: crosswordTextLight,
6271+
dark: crosswordTextDark,
6272+
},
62596273
'--dateline': {
62606274
light: datelineLight,
62616275
dark: datelineDark,

0 commit comments

Comments
 (0)