1
0
mirror of https://github.com/amir20/dozzle.git synced 2026-01-01 02:27:25 +01:00
Files
dozzle/docs/unocss.config.ts
2023-03-01 12:15:04 -08:00

46 lines
1.1 KiB
TypeScript

import {
defineConfig,
presetAttributify,
presetIcons,
presetUno,
presetWebFonts,
} from 'unocss'
import { presetTypography } from '@unocss/preset-typography'
export default defineConfig({
shortcuts: [
['btn', 'px-4 py-1 rounded inline-block bg-teal-600 text-white cursor-pointer hover:bg-teal-700 disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50'],
['icon-btn', 'text-[0.9em] inline-block cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:opacity-100 hover:text-teal-600 !outline-none'],
[/^circle-(\w+)$/, ([, c]) => `rounded-full bg-${c}500 w-3 h-3 `],
],
presets: [
presetUno(),
presetAttributify(),
presetTypography(),
presetIcons({
scale: 1.2,
warn: true,
}),
presetWebFonts({
fonts: {
sans: 'Roboto:200',
playfair: [
{
name: 'Playfair Display',
weights: [100, 200, 400, 700],
},
],
},
}),
],
theme: {
colors: {
brand: 'hsl(44, 100%, 77%)',
bgLight: '#eff0eb',
bgDark: '#1e1e20',
},
},
})