From deab5f6ce969c201661ac48c81ee10da9cebefab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aliz=C3=A9=20Debray?= Date: Mon, 11 Nov 2024 17:38:40 +0100 Subject: [PATCH] Add missing palettes --- packages/styles/src/tokens/_palettes.scss | 6 ++++++ packages/tokens/_build/configs/palettes.js | 8 ++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/packages/styles/src/tokens/_palettes.scss b/packages/styles/src/tokens/_palettes.scss index d3a119bb57..fff9c54307 100644 --- a/packages/styles/src/tokens/_palettes.scss +++ b/packages/styles/src/tokens/_palettes.scss @@ -1,5 +1,11 @@ @use './temp/palettes/post-light' as post-light; +@use './temp/palettes/post-dark' as post-dark; +@use './temp/palettes/cargo-light' as cargo-light; +@use './temp/palettes/cargo-dark' as cargo-dark; @forward './temp/palettes'; $post-light: post-light.$post-palettes; +$post-dark: post-dark.$post-palettes; +$cargo-light: cargo-light.$post-palettes; +$cargo-dark: cargo-dark.$post-palettes; diff --git a/packages/tokens/_build/configs/palettes.js b/packages/tokens/_build/configs/palettes.js index e0bba322f3..f4fdf5aa94 100644 --- a/packages/tokens/_build/configs/palettes.js +++ b/packages/tokens/_build/configs/palettes.js @@ -13,12 +13,8 @@ registerConfigMethod((tokenSets, { sourcePath, buildPath }) => { const { type, layer, filePath, sets } = paletteSet; - // temporary: waiting for new tokens - const themes = ['theme/post']; - const schemes = ['scheme/light']; - - // const themes = Object.keys(tokenSets.source).filter(source => source.startsWith('theme/')); - // const schemes = Object.keys(tokenSets.source).filter(source => source.startsWith('scheme/')); + const themes = Object.keys(tokenSets.source).filter(source => source.startsWith('theme/')); + const schemes = Object.keys(tokenSets.source).filter(source => source.startsWith('scheme/')); const otherSources = Object.keys(tokenSets.source).filter( source => !source.startsWith('theme/') && !source.startsWith('scheme/'),