Skip to content

Commit

Permalink
Remove media card kicker colour variations
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmockett committed Dec 12, 2024
1 parent ee0f864 commit 8ddf117
Showing 1 changed file with 14 additions and 38 deletions.
52 changes: 14 additions & 38 deletions dotcom-rendering/src/paletteDeclarations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2520,44 +2520,20 @@ const liveKickerPulsingDot: PaletteFunction = () =>
transparentColour(sourcePalette.neutral[97], 0.75);

const cardKickerTextLight: PaletteFunction = (format) => {
switch (format.design) {
case ArticleDesign.Gallery:
case ArticleDesign.Audio:
case ArticleDesign.Video:
switch (format.theme) {
case Pillar.News:
return sourcePalette.news[550];
case Pillar.Sport:
return sourcePalette.sport[600];
case Pillar.Opinion:
return sourcePalette.opinion[550];
case Pillar.Lifestyle:
return sourcePalette.lifestyle[500];
case Pillar.Culture:
return sourcePalette.culture[500];
case ArticleSpecial.Labs:
return sourcePalette.labs[400];
case ArticleSpecial.SpecialReport:
return sourcePalette.news[400];
case ArticleSpecial.SpecialReportAlt:
return sourcePalette.specialReportAlt[200];
}
default:
switch (format.theme) {
case Pillar.Opinion:
return pillarPalette(format.theme, 300);
case Pillar.Sport:
case Pillar.Culture:
case Pillar.Lifestyle:
case Pillar.News:
return pillarPalette(format.theme, 400);
case ArticleSpecial.Labs:
return sourcePalette.labs[200];
case ArticleSpecial.SpecialReport:
return sourcePalette.news[400];
case ArticleSpecial.SpecialReportAlt:
return sourcePalette.specialReportAlt[200];
}
switch (format.theme) {
case Pillar.Opinion:
return pillarPalette(format.theme, 300);
case Pillar.Sport:
case Pillar.Culture:
case Pillar.Lifestyle:
case Pillar.News:
return pillarPalette(format.theme, 400);
case ArticleSpecial.Labs:
return sourcePalette.labs[200];
case ArticleSpecial.SpecialReport:
return sourcePalette.news[400];
case ArticleSpecial.SpecialReportAlt:
return sourcePalette.specialReportAlt[200];
}
};

Expand Down

0 comments on commit 8ddf117

Please sign in to comment.