-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
45 lines (44 loc) · 1.43 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
// uno.config.ts
import { defineConfig, presetUno, presetAttributify, presetTypography, presetIcons, presetWebFonts } from 'unocss'
export default defineConfig({
shortcuts: {
'responsive-divs': 'max-w-fit px-[10px] mx-auto sm:max-w-[460px] md:max-w-[660px] lg:max-w-[860px]',
'responsive-divs-narrow': 'max-w-fit px-[10px] mx-auto sm:max-w-[460px] md:max-w-[660px] lg:max-w-[700px]',
'is-link':
'text-[--normal] hover:text-[--remark] dark:text-[--dark-normal] dark:hover:text-[--dark-remark] font-light no-underline',
'is-special-link':
'text-[--remark] dark:text-[--dark-remark] hover:text-[#424242] dark:hover:text-[#AE7373] font-bold',
'is-em': 'bg-[--remark] dark:bg-[--dark-remark] text-[--dark-normal] dark:text-[--normal]',
'is-code': '',
'trans-150': 'transition duration-150 ease-in-out',
},
theme: {
breakpoints: {
sm: '500px',
md: '700px',
lg: '900px',
},
},
presets: [
presetAttributify(), // required when using attributify mode
presetUno(),
presetTypography({
cssExtend: {},
}),
presetIcons({}),
presetWebFonts({
provider: 'google', // default provider
fonts: {
// these will extend the default theme
mono: ['Fira Code', 'Fira Mono:400,700'],
// custom ones
roboto: [
{
name: 'Roboto',
weights: ['300', '700', '900'],
},
],
},
}),
],
})