Added back exposed colours
This commit is contained in:
@@ -50,7 +50,7 @@ function handleGotoRelativeEvent(position: 'next' | 'prev' = 'next') {
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<UiPopoverContent
|
<UiPopoverContent
|
||||||
class="event-details w-96"
|
class="event-details w-96 bg-slate-900"
|
||||||
:align="'center'"
|
:align="'center'"
|
||||||
:align-offset="50"
|
:align-offset="50"
|
||||||
:side="'left'"
|
:side="'left'"
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ module.exports = {
|
|||||||
"./app.vue",
|
"./app.vue",
|
||||||
"./error.vue",
|
"./error.vue",
|
||||||
],
|
],
|
||||||
|
|
||||||
theme: {
|
theme: {
|
||||||
container: {
|
container: {
|
||||||
center: true,
|
center: true,
|
||||||
@@ -92,5 +92,23 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
animate,
|
animate,
|
||||||
|
function ({ addBase, theme }) {
|
||||||
|
function extractColorVars(colorObj, colorGroup = '') {
|
||||||
|
return Object.keys(colorObj).reduce((vars, colorKey) => {
|
||||||
|
const value = colorObj[colorKey]
|
||||||
|
|
||||||
|
const newVars =
|
||||||
|
typeof value === 'string'
|
||||||
|
? { [`--color${colorGroup}-${colorKey}`]: value }
|
||||||
|
: extractColorVars(value, `-${colorKey}`)
|
||||||
|
|
||||||
|
return { ...vars, ...newVars }
|
||||||
|
}, {})
|
||||||
|
}
|
||||||
|
|
||||||
|
addBase({
|
||||||
|
':root': extractColorVars(theme('colors'))
|
||||||
|
})
|
||||||
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user