Skip to content

Commit

Permalink
Update paletteDeclarations
Browse files Browse the repository at this point in the history
  • Loading branch information
frederickobrien committed Dec 12, 2024
1 parent a7a5ad6 commit 587de7b
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions dotcom-rendering/src/paletteDeclarations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1823,6 +1823,23 @@ const accordionBackgroundDark: PaletteFunction = () =>
const accordionBackgroundLight: PaletteFunction = () =>
sourcePalette.neutral[97];

const tableBlockTextLight: PaletteFunction = () => sourcePalette.neutral[7];
const tableBlockTextDark: PaletteFunction = () => sourcePalette.neutral[86];
const tableBlockBackgroundLight: PaletteFunction = () =>
sourcePalette.neutral[97];
const tableBlockBackgroundDark: PaletteFunction = () =>
sourcePalette.neutral[38];
const tableBlockStripeLight: PaletteFunction = () => sourcePalette.neutral[93];
const tableBlockStripeDark: PaletteFunction = () => sourcePalette.neutral[20];
const tableBlockTextFirstColumnLight: PaletteFunction = () =>
sourcePalette.neutral[46];
const tableBlockTextFirstColumnDark: PaletteFunction = () =>
sourcePalette.neutral[60];
const tableBlockBorderTopLight: PaletteFunction = () =>
sourcePalette.brand[500];
const tableBlockBorderTopDark: PaletteFunction = () =>
sourcePalette.neutral[60];

const tableOfContentsLight: PaletteFunction = () => sourcePalette.neutral[7];
const tableOfContentsDark: PaletteFunction = () => sourcePalette.neutral[86];
const tableOfContentsBorderLight: PaletteFunction = () =>
Expand Down Expand Up @@ -7086,6 +7103,26 @@ const paletteColours = {
light: syndicationButtonTextLight,
dark: syndicationButtonTextDark,
},
'--table-block-background': {
light: tableBlockBackgroundLight,
dark: tableBlockBackgroundDark,
},
'--table-block-border-top': {
light: tableBlockBorderTopLight,
dark: tableBlockBorderTopDark,
},
'--table-block-stripe': {
light: tableBlockStripeLight,
dark: tableBlockStripeDark,
},
'--table-block-text': {
light: tableBlockTextLight,
dark: tableBlockTextDark,
},
'--table-block-text-first-column': {
light: tableBlockTextFirstColumnLight,
dark: tableBlockTextFirstColumnDark,
},
'--table-of-contents': {
light: tableOfContentsLight,
dark: tableOfContentsDark,
Expand Down

0 comments on commit 587de7b

Please sign in to comment.