forked from rianadon/Cosmos-Keyboards
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uno.config.ts
50 lines (49 loc) · 1.73 KB
/
uno.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import extractorSvelte from '@unocss/extractor-svelte'
import transformerDirectives from '@unocss/transformer-directives'
import transformerVariantGroup from '@unocss/transformer-variant-group'
import { defineConfig, presetUno } from 'unocss'
export default defineConfig({
shortcuts: {
's-help': 'align-[-18%] inline-block text-gray-600 dark:text-gray-100',
's-link': 'text-brand-lightpink hover:underline',
's-input':
'focus:border-teal-500 border border-transparent text-gray-700 focus:outline-none border-gray-200 dark:border-transparent bg-gray-100 dark:bg-gray-700 dark:text-gray-100 appearance-none w-44 rounded mx-2 text-ellipsis',
},
rules: [
['align-[-18%]', { 'vertical-align': '-18%' }],
['text-sm', { 'font-size': '0.9rem', 'line-height': '1.25rem' }],
],
theme: {
colors: {
brand: {
lightpink: '#ff9ef9',
pink: '#f57aec',
green: '#68e4a9',
amber: '#e3c28c',
},
},
breakpoints: {
xs: '520px',
sm: '640px',
md: '768px',
lg: '1024px',
xl: '1320px',
},
fontFamily: {
system: '-apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, helvetica, Cantarell, Ubuntu, roboto, noto, arial, sans-serif',
urbanist: 'Urbanist, sans-serif',
dynapuff: 'Dynapuff, sans-serif',
loxley: 'Loxley, sans-serif',
},
animation: {
keyframes: { wiggle: '{25%,75% {transform:rotate(-1deg)} 50% {transform:rotate(1deg) scale(1.02)}}' },
durations: { wiggle: '0.5s' },
timingFns: { wiggle: 'ease-in-out' },
},
},
presets: [presetUno({
dark: 'media',
})],
extractors: [extractorSvelte()],
transformers: [transformerDirectives(), transformerVariantGroup()],
})