diff --git a/dotcom-rendering/src/components/Discussion/Badges.tsx b/dotcom-rendering/src/components/Discussion/Badges.tsx index f5353ca21d3..2023ba924ad 100644 --- a/dotcom-rendering/src/components/Discussion/Badges.tsx +++ b/dotcom-rendering/src/components/Discussion/Badges.tsx @@ -1,13 +1,7 @@ import { css } from '@emotion/react'; -import { - palette as sourcePalette, - space, - textSans, -} from '@guardian/source-foundations'; +import { space, textSans } from '@guardian/source-foundations'; import { palette as themePalette } from '../../palette'; -const white = sourcePalette.neutral[100]; - const staffBadge = css` display: flex; flex-direction: row; @@ -27,10 +21,6 @@ const labelText = css` ${textSans.xxsmall({ fontWeight: 'bold' })}; `; -const staffIcon = css` - fill: ${sourcePalette.brand[400]}; -`; - const staffLabel = css` color: ${themePalette('--discussion-staff-label-text')}; `; @@ -44,11 +34,12 @@ export const GuardianStaff = () => ( width="36" height="36" viewBox="0 0 36 36" - css={[iconStyles, staffIcon]} + css={iconStyles} + fill={themePalette('--staff-contributor-badge')} > @@ -62,11 +53,12 @@ export const GuardianContributor = () => ( width="36" height="36" viewBox="0 0 36 36" - css={[iconStyles, staffIcon]} + css={iconStyles} + fill={themePalette('--staff-contributor-badge')} > @@ -76,10 +68,16 @@ export const GuardianContributor = () => ( export const GuardianPick = () => (
- + diff --git a/dotcom-rendering/src/palette.ts b/dotcom-rendering/src/palette.ts index 5f22b45033a..90e00ede6d6 100644 --- a/dotcom-rendering/src/palette.ts +++ b/dotcom-rendering/src/palette.ts @@ -4603,10 +4603,23 @@ const topPickLinkLight: PaletteFunction = () => sourcePalette.brand[500]; const topPickLinkDark: PaletteFunction = () => sourcePalette.brand[800]; const staffLabelLight: PaletteFunction = () => sourcePalette.brand[400]; -const staffLabelDark: PaletteFunction = () => sourcePalette.brand[600]; +const staffLabelDark: PaletteFunction = () => sourcePalette.brand[800]; const staffPickLight: PaletteFunction = () => sourcePalette.neutral[7]; -const staffPickDark: PaletteFunction = () => sourcePalette.neutral[97]; +const staffPickDark: PaletteFunction = () => sourcePalette.neutral[86]; + +const staffPickBadgeLight: PaletteFunction = () => sourcePalette.neutral[7]; +const staffPickBadgeDark: PaletteFunction = () => sourcePalette.neutral[100]; + +const staffPickBadgeTextLight: PaletteFunction = () => + sourcePalette.neutral[100]; +const staffPickBadgeTextDark: PaletteFunction = () => sourcePalette.neutral[7]; + +const staffBadgeLight: PaletteFunction = () => sourcePalette.brand[400]; +const staffBadgeDark: PaletteFunction = () => sourcePalette.neutral[100]; + +const staffBadgeTextLight: PaletteFunction = () => sourcePalette.neutral[100]; +const staffBadgeTextDark: PaletteFunction = () => sourcePalette.brand[400]; const recommendationCountLight: PaletteFunction = () => sourcePalette.neutral[97]; @@ -5976,6 +5989,22 @@ const paletteColours = { light: shareButtonBorderXSmallLight, dark: shareButtonBorderXSmallLight, }, + '--staff-contributor-badge': { + light: staffBadgeLight, + dark: staffBadgeDark, + }, + '--staff-contributor-badge-text': { + light: staffBadgeTextLight, + dark: staffBadgeTextDark, + }, + '--staff-pick-badge': { + light: staffPickBadgeLight, + dark: staffPickBadgeDark, + }, + '--staff-pick-badge-text': { + light: staffPickBadgeTextLight, + dark: staffPickBadgeTextDark, + }, '--discussion-pre-mod': { light: discussionPreModLight, dark: discussionPreModDark,