Skip to content

Commit

Permalink
patch fix colour palette (#1383)
Browse files Browse the repository at this point in the history
* patch fix colour palette types
  • Loading branch information
oliverabrahams committed Apr 26, 2024
1 parent f7e72df commit 0854bfa
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/dry-cows-poke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@guardian/source-foundations': patch
---

fix for build issue with palette types
20 changes: 18 additions & 2 deletions libs/@guardian/source-foundations/src/colour/palette.ts
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit 0854bfa

Please sign in to comment.