pl-fe: fix colors
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
dd3153b469
commit
0482d81c8b
1 changed files with 5 additions and 1 deletions
|
@ -52,7 +52,11 @@ const toTailwind = (config: {
|
|||
const colors: PlFeColors = config.colors;
|
||||
const legacyColors = fromLegacyColors(config);
|
||||
|
||||
return Object.fromEntries(Object.entries(legacyColors).map(([key, value]) => [key, typeof value === 'string' ? colors[key] || value : { ...value, ...colors[key] }]));
|
||||
|
||||
return {
|
||||
...colors,
|
||||
...Object.fromEntries(Object.entries(legacyColors).map(([key, value]) => [key, typeof value === 'string' ? colors[key] || value : { ...value, ...colors[key] }])),
|
||||
};
|
||||
};
|
||||
|
||||
export {
|
||||
|
|
Loading…
Reference in a new issue