-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
74 lines (73 loc) · 2.8 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
import { defineConfig, presetUno, presetIcons, presetWebFonts } from 'unocss';
export default defineConfig({
content: {
filesystem: [
'src/**/*.{html,js,ts,jsx,tsx,vue,svelte,astro}',
],
},
presets: [
presetUno({
dark: 'media',
}),
presetIcons(),
presetWebFonts({
provider: 'bunny',
timeouts: {
warning: 10e3,
failure: 30e3,
},
fonts: {
sans: {
name: 'Space Grotesk',
weights: ['300', '400', '600', '700'],
},
},
}),
],
rules: [
['text-sm', { 'font-size': '9pt' }],
['text-base', { 'font-size': '10pt' }],
['text-lg', { 'font-size': '11pt' }],
['text-xl', { 'font-size': '13pt' }],
],
shortcuts: {
array: 'mt-2 flex flex-col gap-2',
between: 'flex justify-between gap-x-1',
list: 'ml-4 mt-1 list-disc list-outside font-light leading-tight marker:text-secondary',
subheading: 'font-semibold opacity-80',
summary: 'mt-1 text-justify text-pretty font-light leading-tight',
time: 'shrink-0 font-semibold tabular-nums opacity-80',
},
safelist: [
// icons for basics.profile
...['behance', 'codepen', 'codesandbox', 'dev-to', 'discord', 'dribbble', 'facebook', 'github', 'gitlab', 'instagram', 'linkedin', 'linktree', 'mastodon', 'medium', 'notion', 'patreon', 'pinterest', 'reddit', 'replit', 'skype', 'slack', 'snapchat', 'soundcloud', 'spotify', 'stack-overflow', 'telegram', 'threads', 'tiktok', 'twitch', 'twitter', 'wechat', 'whatsapp', 'x', 'youtube'].map((brand) => `i-ph-${brand}-logo-duotone`),
],
theme: {
colors: {
primary: {
DEFAULT: 'var(--c-primary)',
100: 'color-mix(in srgb, var(--c-primary) 10%, white)',
200: 'color-mix(in srgb, var(--c-primary) 30%, white)',
300: 'color-mix(in srgb, var(--c-primary) 50%, white)',
400: 'color-mix(in srgb, var(--c-primary) 70%, white)',
500: 'var(--c-primary)',
600: 'color-mix(in srgb, var(--c-primary), black 10%)',
700: 'color-mix(in srgb, var(--c-primary), black 30%)',
800: 'color-mix(in srgb, var(--c-primary), black 50%)',
900: 'color-mix(in srgb, var(--c-primary), black 70%)',
},
secondary: {
DEFAULT: 'var(--c-secondary)',
100: 'color-mix(in srgb, var(--c-secondary) 10%, white)',
200: 'color-mix(in srgb, var(--c-secondary) 30%, white)',
300: 'color-mix(in srgb, var(--c-secondary) 50%, white)',
400: 'color-mix(in srgb, var(--c-secondary) 70%, white)',
500: 'var(--c-secondary)',
600: 'color-mix(in srgb, var(--c-secondary), black 10%)',
700: 'color-mix(in srgb, var(--c-secondary), black 30%)',
800: 'color-mix(in srgb, var(--c-secondary), black 50%)',
900: 'color-mix(in srgb, var(--c-secondary), black 70%)',
},
},
},
});