forked from DA0-DA0/dao-dao-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
65 lines (62 loc) · 2.06 KB
/
config.js
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
const defaultTheme = require('tailwindcss/defaultTheme')
const { animation } = require('./animation')
const {
backgroundColor,
borderColor,
ringColor,
colors,
textColor,
} = require('./colors')
const { keyframes } = require('./keyframes')
/** @type {import("tailwindcss/tailwind-config").TailwindConfig} */
const tailwindConfig = {
darkMode: 'class',
options: {
safelist: [/data-theme$/],
},
plugins: [
require('./button'),
require('@tailwindcss/typography'),
require('tailwindcss-safe-area'),
],
theme: {
screens: {
// xs = 410px chosen because in the tiers of mobile screen sizes, the
// larger phone viewport widths start just above 410px (Google Pixels at
// 412px, iPhones at 414px).
// https://mediag.com/blog/popular-screen-resolutions-designing-for-all/
xs: '410px',
...defaultTheme.screens,
mdlg: '896px',
'3xl': '1920px',
},
extend: {
backgroundImage: {
'gradient-radial-t':
'radial-gradient(ellipse at top, var(--tw-gradient-stops))',
'gradient-radial': 'radial-gradient(ellipse, var(--tw-gradient-stops))',
'gradient-radial-t-wide':
'radial-gradient(80% 50% at top, var(--tw-gradient-stops))',
'gradient-test':
'linear-gradient(270deg, #06090B 0%, rgba(6, 9, 11, 0) 49.62%, rgba(6, 9, 11, 0) 51.87%, #06090B 100%)',
},
boxShadow: {
dp2: '0px 1px 2px rgba(0, 0, 0, 0.12), 0px 2px 4px rgba(0, 0, 0, 0.08), 0px 1px 8px rgba(6, 9, 11, 0.04)',
dp4: '0px 2px 4px rgba(0, 0, 0, 0.16), 0px 4px 8px rgba(0, 0, 0, 0.12), 0px 1px 12px rgba(6, 9, 11, 0.08)',
dp8: '0px 6px 12px rgba(0, 0, 0, 0.24), 0px 12px 16px rgba(6, 9, 11, 0.2), 0px 1px 20px rgba(0, 0, 0, 0.16)',
},
fontFamily: {
mono: ['JetBrains Mono', ...defaultTheme.fontFamily.mono],
sans: ['inter', ...defaultTheme.fontFamily.sans],
},
animation,
backgroundColor,
borderColor,
ringColor,
colors,
keyframes,
textColor,
},
},
}
module.exports = tailwindConfig