From 0854bfafc6bdd05bed4fbd2836f90b292a58dd9f Mon Sep 17 00:00:00 2001 From: Oliver Abrahams Date: Fri, 26 Apr 2024 15:40:17 +0100 Subject: [PATCH] patch fix colour palette (#1383) * patch fix colour palette types --- .changeset/dry-cows-poke.md | 5 +++++ .../source-foundations/src/colour/palette.ts | 20 +++++++++++++++++-- 2 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 .changeset/dry-cows-poke.md diff --git a/.changeset/dry-cows-poke.md b/.changeset/dry-cows-poke.md new file mode 100644 index 000000000..c6ff729e6 --- /dev/null +++ b/.changeset/dry-cows-poke.md @@ -0,0 +1,5 @@ +--- +'@guardian/source-foundations': patch +--- + +fix for build issue with palette types diff --git a/libs/@guardian/source-foundations/src/colour/palette.ts b/libs/@guardian/source-foundations/src/colour/palette.ts index 006cac08a..886b880dd 100644 --- a/libs/@guardian/source-foundations/src/colour/palette.ts +++ b/libs/@guardian/source-foundations/src/colour/palette.ts @@ -1,8 +1,24 @@ +import { palette as tokens } from '@guardian/design-tokens'; + /** * [Storybook](https://guardian.github.io/csnx/?path=/docs/source-foundations_palette--palette) • * [Design System](https://theguardian.design/2a1e5182b/p/492a30-light-palette) * * Colour palette organised by type e.g. 'error', or pillar e.g. 'opinion' */ - -export { palette } from '@guardian/design-tokens'; +export const palette = { + brand: tokens.brand, + brandAlt: tokens.brandAlt, + neutral: tokens.neutral, + error: tokens.error, + success: tokens.success, + news: tokens.news, + opinion: tokens.opinion, + sport: tokens.sport, + culture: tokens.culture, + lifestyle: tokens.lifestyle, + labs: tokens.labs, + specialReport: tokens.specialReport, + specialReportAlt: tokens.specialReportAlt, + focus: tokens.focus, +} as const;