fix(projects): fix update theme color

This commit is contained in:
Soybean
2024-04-16 00:14:32 +08:00
parent b7f0749170
commit 27c53cd688
2 changed files with 9 additions and 2 deletions

View File

@ -3,6 +3,7 @@ import { getColorName } from './name';
import type { ColorPalette, ColorPaletteFamily, ColorPaletteItem, ColorPaletteNumber } from './type';
import defaultPalettes from './json/palette.json';
// to do: there is a bug in the code below, when the color is '#1c5cff', the colorPaletteFamily is not similar to the provided color
/**
* Get color palette by provided color and color name
*