This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 50
/
tailwind.config.js
99 lines (98 loc) · 3.17 KB
/
tailwind.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
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
const t = require('@thorchain/asgardex-theme').default
/** @type {import('tailwindcss').Config} */
module.exports = {
// https://tailwindcss.com/docs/dark-mode#toggling-dark-mode-manually
darkMode: 'class',
content: ['./src/**/*.{ts,tsx}'],
theme: {
extend: {
fontFamily: {
main: ['MainFontRegular'],
mainBold: ['MainFontBold'],
mainSemiBold: ['MainFontSemiBold']
},
spacing: {
'5px': '5px',
'10px': '10px',
'15px': '15px',
'20px': '20px',
'30px': '30px',
'40px': '40px',
'50px': '50px'
},
// https://tailwindcss.com/docs/font-size#providing-a-default-line-height
fontSize: {
11: ['11px', '14px'],
14: ['14px', '17px'],
16: ['16px', '19px'],
18: ['18px', '21px'],
20: ['20px', '23px']
},
// Custom colors based on `asgardex-theme`
// Light theme https://gitlab.com/thorchain/asgardex-common/asgardex-theme/-/blob/master/src/light.ts
// Dark theme https://gitlab.com/thorchain/asgardex-common/asgardex-theme/-/blob/master/src/dark.ts
colors: {
turquoise: '#23DCC8', //'#50E3C2'
red: '#FF4954',
// text
text0: t.light.palette.text[0],
text0d: t.dark.palette.text[0],
text1: t.light.palette.text[1],
text1d: t.dark.palette.text[1],
text2: t.light.palette.text[2],
text2d: t.dark.palette.text[2],
text3: t.light.palette.text[3],
text3d: t.dark.palette.text[3],
// bg
bg0: t.light.palette.background[0],
bg0d: t.dark.palette.background[0],
bg1: t.light.palette.background[1],
bg1d: t.dark.palette.background[1],
bg2: t.light.palette.background[2],
bg2d: t.dark.palette.background[2],
bg3: t.light.palette.background[3],
bg3d: t.dark.palette.background[3],
// error
error0: t.light.palette.error[0],
error0d: t.dark.palette.error[0],
error1: t.light.palette.error[1],
error1d: t.dark.palette.error[1],
error2: t.light.palette.error[2],
error2d: t.dark.palette.error[2],
error3: t.light.palette.error[3],
error3d: t.dark.palette.error[3],
// warning
warning0: t.light.palette.warning[0],
warning0d: t.dark.palette.warning[0],
// gray
gray0: t.light.palette.gray[0],
gray0d: t.dark.palette.gray[0],
gray1: t.light.palette.gray[1],
gray1d: t.dark.palette.gray[1],
gray2: t.light.palette.gray[2],
gray2d: t.dark.palette.gray[2]
},
// Custom transition props
// @see https://tailwindcss.com/docs/transition-property#customizing-your-theme
transitionProperty: {
height: 'height'
},
boxShadow: {
full: `0 0 15px ${t.light.palette.gray[1]}`,
fulld: `0 0 15px ${t.dark.palette.gray[1]}`
}
},
// Breakpoint are overridden (not extended)
// Based on `MediaQueries`
// @see `src/renderer/helpers/styleHelper.ts`
screens: {
xs: '0px',
sm: '576px',
md: '768px',
lg: '992px',
xl: '1200px',
'2xl': '1600px'
}
},
plugins: []
}