feat(module): add DEFAULT shade to primary color (#493)

This commit is contained in:
Benjamin Canac
2023-08-03 16:27:23 +02:00
parent 7008df0988
commit c6056ed133
6 changed files with 58 additions and 42 deletions

View File

@@ -20,8 +20,15 @@ export default defineNuxtPlugin(() => {
return `:root {
${Object.entries(primary || colors.green).map(([key, value]) => `--color-primary-${key}: ${hexToRgb(value)};`).join('\n')}
--color-primary-DEFAULT: var(--color-primary-500);
${Object.entries(gray || colors.cool).map(([key, value]) => `--color-gray-${key}: ${hexToRgb(value)};`).join('\n')}
}`
}
.dark {
--color-primary-DEFAULT: var(--color-primary-400);
}
`
})
// Head