Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions dotcom-rendering/src/paletteDeclarations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6085,6 +6085,26 @@ const latestLinksDottedLineLight: PaletteFunction = () =>
const latestLinksDottedLineDark: PaletteFunction = () =>
sourcePalette.neutral[38];

const activePillar: PaletteFunction = (format: ArticleFormat) => {
switch (format.theme) {
case Pillar.News:
return pillarPalette(Pillar.News, 400);
case Pillar.Opinion:
return pillarPalette(Pillar.Opinion, 400);
case Pillar.Sport:
return pillarPalette(Pillar.Sport, 400);
case Pillar.Culture:
return pillarPalette(Pillar.Culture, 400);
case Pillar.Lifestyle:
return pillarPalette(Pillar.Lifestyle, 400);
case ArticleSpecial.Labs:
return sourcePalette.labs[400];
case ArticleSpecial.SpecialReport:
case ArticleSpecial.SpecialReportAlt:
return sourcePalette.specialReport[400];
}
};

const editorialButtonBackground: PaletteFunction = (format: ArticleFormat) => {
switch (format.theme) {
case Pillar.News:
Expand Down Expand Up @@ -6282,6 +6302,10 @@ const paletteColours = {
light: accordionTitleRowFillLight,
dark: accordionTitleRowFillDark,
},
'--active-pillar': {
light: activePillar,
dark: activePillar,
},
'--ad-background': {
light: adBackgroundLight,
dark: adBackgroundDark,
Expand Down
Loading