-
Notifications
You must be signed in to change notification settings - Fork 23
/
tailwind.config.js
78 lines (77 loc) · 2.05 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
const defaultTheme = require('tailwindcss/defaultTheme');
const colors = require('tailwindcss/colors');
module.exports = {
// TODO: PostCSS plugin postcss-purgecss requires PostCSS 8
purge: {
enabled: process.env.NODE_ENV === 'production',
content: ['./**/*.html', './**/*.tsx', './**/*.js'],
},
darkMode: false, // or 'media' or 'class'
theme: {
colors: {
secondary: '#83d7bc',
black: '#000000',
grayNavBar: colors.gray[50],
graySuperLight: colors.gray[200],
grayLight: colors.gray[400],
gray: colors.gray[500],
grayDark: colors.gray[900],
primary: '#56aeaa',
red: colors.red[500],
smokeLight: 'rgba(0, 0, 0, 0.3)',
transparent: 'transparent',
white: '#fefefe',
amberLight: colors.amber[100],
amber: colors.amber[500],
amberDark: colors.amber[700],
},
container: {
padding: {
DEFAULT: '2rem',
sm: '4rem',
lg: '6rem',
xl: '12rem',
},
},
extend: {
borderRadius: {
'4xl': '2rem',
},
borderWidth: {
0.5: '0.5px',
},
boxShadow: (theme) => ({
innerBtnBorder: `inset 0 0 0 3px ${theme('colors.primary')}`,
}),
fontFamily: {
sans: ['Poppins', ...defaultTheme.fontFamily.sans],
},
fontSize: {
xxs: ['0.5rem', '1rem'],
},
gridTemplateRows: {
// https://web.dev/one-line-layouts/#04.-pancake-stack:-grid-template-rows:-auto-1fr-auto
pancakeStack: 'auto 1fr auto',
},
height: {
// Popup screen height minus header
popupContent: 'calc(100vh - 5rem)',
// Hack for Select Asset screen
25.75: '25.75rem',
// Hack for seed-reveal screen
8.6: '8.6rem',
},
inset: {
13: '3.25rem',
},
minHeight: {
80: '80%',
},
scale: {
// Mirror transform with scaleX(-1). 1 is not used by Tailwind
1: '-1',
},
},
},
plugins: [require('@tailwindcss/forms'), require('@tailwindcss/line-clamp')],
};