pl-fe: fixes or sth
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
ce2ac73fbe
commit
9fbfe627a1
2 changed files with 10 additions and 2 deletions
|
@ -143,7 +143,15 @@ const plFeConfigSchema = v.pipe(coerceObject({
|
|||
...config,
|
||||
brandColor,
|
||||
accentColor,
|
||||
colors: normalizedColors,
|
||||
colors: {
|
||||
// @ts-ignore
|
||||
'gradient-start': normalizedColors.primary?.['500'],
|
||||
// @ts-ignore
|
||||
'gradient-end': normalizedColors.accent?.['500'],
|
||||
// @ts-ignore
|
||||
'accent-blue': normalizedColors.primary?.['600'],
|
||||
...normalizedColors,
|
||||
} as typeof normalizedColors,
|
||||
};
|
||||
}));
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ 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, ...config.colors[key] }]));
|
||||
return 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