frontend-rw #1
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