-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.mjs
115 lines (98 loc) · 3.05 KB
/
tailwind.config.mjs
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/*
--- 01 TYPOGRAPHY SYSTEM: https://tailwindcss.com/docs/font-family
- Font sizes
(text-) xs | sm | base | lg | xl | 2xl | 3xl | 4xl | 5xl | 6xl | 7xl | 8xl | 9xl
(px) 12 | 14 | 16 | 18 | 20 | 24 | 30 | 36 | 48 | 60 | 72 | 96 | 128
- Font weights:
font-normal: 400
font-medium: 500
font-semibold: 600
font-bold: 700
- Line heights:
leading-none: 1
leading-tight: 1.25
leading-snug: 1.375
leading-relaxed: 1.625
- Letter spacing
tracking-tight: -0.025em
tracking-wide: 0.025em
--- 02 COLORS: https://www.nordtheme.com/docs/colors-and-palettes
- Primary: nord0: #2e3440 nord6: #eceff4
- Tints: nord5: #e5e9f0 nord4: #d8dee9
- Shades: nord1: #3b4252 nord2: #434c5e nord3: #4c566a
- Accents:
- Forest: nord7: #8fbcbb nord8: #88c0d0 nord9: #81a1c1 nord10: #5e81ac
- Aurora: nord11: #bf616a nord12: #d08770 nord13: #ebcb8b nord14: #a3be8c nord15: #b48ead
- Greys: #888 #767676 #6f6f6f #555 #333
--- 05 SHADOWS
--- 06 BORDER-RADIUS
Default: 50px
Small: 25px
--- 07 WHITESPACE
- Spacing system (px): https://tailwindcss.com/docs/padding
p-0.5 | p-1 | p-2 | p-3 | p-4 | p-6 | p-8 | p-12 | p-16 | p-20 | p-24 | p-32
2 | 4 | 8 | 12 | 16 | 24 | 32 | 48 | 64 | 80 | 96 | 128
*/
/** @type {import('tailwindcss').Config} */
import plugin from 'tailwindcss/plugin';
const { addDynamicIconSelectors } = require('@iconify/tailwind');
const config = {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
plugins: [
require('tailwind-nord'),
require('daisyui'),
addDynamicIconSelectors(),
plugin(function ({ addBase, theme }) {
addBase({
html: {
overflowX: 'hidden',
scrollBehavior: 'smooth',
},
h1: {
fontSize: theme('fontSize.6xl'),
fontWeight: theme('fontWeight.bold'),
},
h2: {
fontSize: theme('fontSize.4xl'),
fontWeight: theme('fontWeight.semibold'),
},
h3: {
fontSize: theme('fontSize.3xl'),
fontWeight: theme('fontWeight.semibold'),
},
});
}),
],
theme: {
fontFamily: {
sans: [
'Montserrat',
'ui-sans-serif',
'system-ui',
'-apple-system',
'BlinkMacSystemFont',
'Segoe UI',
'Roboto',
'Helvetica Neue',
'Arial',
'Noto Sans',
'sans-serif',
'Apple Color Emoji',
'Segoe UI Emoji',
'Segoe UI Symbol',
'Noto Color Emoji',
],
serif: [
'Libre Baskerville',
'ui-serif',
'Georgia',
'Cambria',
'Times New Roman',
'Times',
'serif',
],
},
extend: {},
},
};
export default config;