forked from solidjs/solid-site
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tailwind.config.cjs
119 lines (118 loc) · 3.59 KB
/
tailwind.config.cjs
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
116
117
118
119
const theme = require('tailwindcss/defaultTheme');
module.exports = {
content: ['index.html', 'src/**/*.tsx'],
mode: 'jit',
darkMode: 'class',
theme: {
extend: {
transitionProperty: {
composite: 'transform, opacity',
},
zIndex: {
negative: -1,
},
boxShadow: {
'top-2xl': '0 -25px 50px -12px rgba(0, 0, 0, 0.25)',
'even-md-light': '0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.2)',
'even-md-dark': '0 1px 3px rgba(0,0,0,0.15), 0 1px 2px rgba(0,0,0,0.3)',
},
transitionDuration: {
0: '0ms',
5000: '5000ms',
},
fontSize: {
xxs: '.55rem',
},
screens: {
'pointer-fine': {
raw: '(pointer: fine)',
},
},
colors: {
primary: '#4483c1',
solid: {
default: '#2c4f7c',
darkbg: '#222222',
darkLighterBg: '#444444',
darkdefault: '#b8d7ff', //'#87b1e6',
darkgray: '#252525',
gray: '#414042',
mediumgray: '#9d9d9d',
lightgray: '#f3f5f7',
dark: '#07254A',
medium: '#446b9e',
light: '#4f88c6',
accent: '#0cdc73',
secondaccent: '#0dfc85',
},
},
typography: ({ theme }) => ({
DEFAULT: {
css: {
'--tw-prose-body': '#333',
'--tw-prose-invert-body': '#fff',
'--tw-prose-headings': theme('colors.solid.default'),
'--tw-prose-invert-headings': theme('colors.solid.darkdefault'),
'--tw-prose-invert-quote-borders': theme('colors.solid.mediumgray'),
color: 'var(--tw-prose-body)',
fontFamily: 'Gordita',
'blockquote p:first-of-type::before': { content: 'none' },
'blockquote p:first-of-type::after': { content: 'none' },
'code::before': { content: 'none' },
'code::after': { content: 'none' },
h1: {
fontWeight: '600',
fontSize: '1.75rem',
borderBottom: '1px solid #e5e7eb',
paddingBottom: '1rem',
marginTop: '2rem',
color: 'var(--tw-prose-headings)',
},
h2: {
fontWeight: '600',
borderBottom: '1px solid #e5e7eb',
paddingBottom: '1rem',
marginTop: '2rem',
color: 'var(--tw-prose-headings)',
},
a: {
color: '#999',
textDecoration: 'none',
'&:hover': {
color: '#2c4f7c',
},
},
},
},
}),
backgroundImage: (theme) => ({
hero: "url('/src/assets/shapes/header.svg')",
'blocks-one': "url('/src/assets/shapes/blocks1.svg')",
'blocks-one-dark': "url('/src/assets/shapes/blocks1-dark.svg')",
'blocks-two': "url('/src/assets/shapes/blocks2.svg')",
'blocks-three': "url('/src/assets/shapes/blocks3.svg')",
doc: 'linear-gradient(to left, #fff, #fff 50%, rgba(243, 244, 246) 10%)',
darkDoc: 'linear-gradient(to left, #222222, #222222 50%, #444444 10%)',
translate: "url(/img/icons/translate2.svg)",
}),
backgroundSize: {
24: '1.5rem',
},
container: {
center: true,
},
borderRadius: {
'6xl': '3.5rem',
},
fontFamily: {
display: ['Gordita', ...theme.fontFamily.sans],
},
},
},
variants: {
extend: {
backgroundColor: ['group-hover'],
},
},
plugins: [require('@tailwindcss/typography'), require('tailwindcss-dir')],
};