Skip to content

Commit

Permalink
Add missing palettes
Browse files Browse the repository at this point in the history
  • Loading branch information
alizedebray committed Nov 11, 2024
1 parent 6741bc3 commit deab5f6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
6 changes: 6 additions & 0 deletions packages/styles/src/tokens/_palettes.scss
Original file line number Diff line number Diff line change
@@ -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;
8 changes: 2 additions & 6 deletions packages/tokens/_build/configs/palettes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/'),
Expand Down

0 comments on commit deab5f6

Please sign in to comment.