-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuno.config.ts
81 lines (78 loc) · 2.3 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
75
76
77
78
79
80
81
import type { Theme } from '@unocss/preset-wind'
import { defineConfig, presetWind, transformerDirectives } from 'unocss'
export default defineConfig<Theme>({
theme: {
// Color combination: https://coolors.co/3a455b-e7e6d1-f08a4b-9e2b25-646f4b
colors: {
primary: {
DEFAULT: '#3A455B',
'50': '#C4CCDA',
'100': '#B8C1D2',
'200': '#9FABC2',
'300': '#8695B2',
'400': '#6D7FA2',
'500': '#5A6B8D',
'600': '#4A5874',
'700': '#3A455B', // Original input color
'800': '#242B39',
'900': '#0E1116',
},
secondary: {
DEFAULT: '#E7E6D1',
'50': '#FCFCF9',
'100': '#F5F5EC',
'200': '#E7E6D1', // Original input color
'300': '#D4D2AC',
'400': '#C1BE87',
'500': '#ADAA62',
'600': '#8E8B4A',
'700': '#696737',
'800': '#444223',
'900': '#1F1E10',
},
},
fontFamily: {
heading: 'Henrietta, ui-sans-serif, system-ui, sans-serif',
'heading-condensed':
'Henrietta Condensed, ui-sans-serif, system-ui, sans-serif',
serif: 'Fraunces, serif',
},
},
rules: [
[
'text-underline',
{
'text-decoration-line': 'underline',
'text-decoration-color': 'currentColor',
'text-decoration-thickness': 'var(--decoration-width)',
'text-underline-offset': 'var(--decoration-width)',
},
],
[
'hyphenate',
{
'overflow-wrap': 'break-word',
'-webkit-hyphens': 'auto',
'-webkit-hyphenate-limit-before': '3',
'-webkit-hyphenate-limit-after': '3',
'-webkit-hyphenate-limit-chars': '6 3 3',
'-webkit-hyphenate-limit-lines': '2',
'-webkit-hyphenate-limit-last': 'always',
'-webkit-hyphenate-limit-zone': '8%',
hyphens: 'auto',
'hyphenate-limit-chars': '6 3 3',
'hyphenate-limit-lines': '2',
'hyphenate-limit-last': 'always',
'hyphenate-limit-zone': '8%',
},
],
],
shortcuts: {
'page-title':
'text-4xl text-primary-600 font-heading-condensed font-medium md:text-6xl',
'padding-content': 'px-4 sm:px-6 lg:px-8',
'breakout-content': 'w-screen ml-[calc(50%-50vw)]',
},
transformers: [transformerDirectives()],
presets: [presetWind()],
})