feat(module): move colors options into theme.colors

This commit is contained in:
Benjamin Canac
2024-09-18 11:28:31 +02:00
parent d3317d828e
commit 2e954467c4
24 changed files with 95 additions and 92 deletions

View File

@@ -17,7 +17,7 @@ export default (options: Required<ModuleOptions>) => ({
'elastic': ''
},
color: {
...Object.fromEntries(options.colors.map((color: string) => [color, {
...Object.fromEntries((options.theme.colors || []).map((color: string) => [color, {
indicator: `bg-${color}-500 dark:bg-${color}-400`,
steps: `text-${color}-500 dark:text-${color}-400`
}])),