You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.2 KiB
34 lines
1.2 KiB
import { defineConfig, presetUno, presetAttributify, presetIcons } from 'unocss';
|
|
import presetAnimations from 'unocss-preset-animations';
|
|
import { presetShadcn } from 'unocss-preset-shadcn';
|
|
|
|
export default defineConfig({
|
|
presets: [
|
|
presetUno(),
|
|
presetAttributify(),
|
|
presetAnimations(),
|
|
presetShadcn({}),
|
|
presetIcons({
|
|
extraProperties: {
|
|
display: 'inline-block',
|
|
'vertical-align': 'middle',
|
|
},
|
|
}),
|
|
],
|
|
|
|
rules: [['text-flow', { 'text-overflow': 'ellipsis', 'white-space': 'nowrap', overflow: 'hidden' }]],
|
|
|
|
shortcuts: {
|
|
'switch-animation': 'transition duration-300',
|
|
'bg-base': 'bg-[#fff] dark:bg-[#20202a] switch-animation',
|
|
'card-base': 'bg-[#ffffff] dark:bg-[#10101a] switch-animation',
|
|
'text-base': 'text-[rgba(0,0,0,0.95)] dark:text-[#f0f0f0] switch-animation',
|
|
'switch-label-base': 'bg-gray-200 dark:bg-gray-800 switch-animation',
|
|
'switch-span-base': 'bg-white dark:bg-gray-300 switch-animation',
|
|
'text-overflow': 'overflow-hidden whitespace-nowrap truncate',
|
|
'text-brand': 'text-[#C43737]',
|
|
'bg-brand': 'bg-[#C43737]',
|
|
'border-brand': 'border-[#C43737]',
|
|
},
|
|
});
|