Skip to content

Commit 6809027

Browse files
committed
fix(tools): change getColorPalette function
Changes function to skip keys starting with underscore.
1 parent 3efe787 commit 6809027

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.tools/utils/generate-theme-json.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@ import { mapValues, pick, startCase } from 'lodash-es';
1010
import { loadConfig, saveConfig } from './config.js';
1111

1212
const getColorPalette = async () =>
13-
Object.entries(await loadConfig('colors')).map(([slug, color]) => ({
14-
slug,
15-
color,
16-
name: startCase(slug),
17-
}));
13+
Object.entries(await loadConfig('colors'))
14+
.filter(([slug]) => !slug.startsWith('_'))
15+
.map(([slug, color]) => ({
16+
slug,
17+
color,
18+
name: startCase(slug),
19+
}));
1820

1921
const getLayoutSettings = async () =>
2022
mapValues(

0 commit comments

Comments
 (0)