frontend-rw #1

Merged
marcin merged 347 commits from frontend-rw into develop 2024-12-05 15:32:18 -08:00
2 changed files with 10 additions and 2 deletions
Showing only changes of commit 9fbfe627a1 - Show all commits

View file

@ -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,
};
}));

View file

@ -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 {