-
Notifications
You must be signed in to change notification settings - Fork 25
/
tailwind.config.js
95 lines (92 loc) · 2.69 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
/** @type {import('tailwindcss').Config} */
const setLineHeight = lineHeight => ( { lineHeight } );
module.exports = {
content: ["./src/**/*.{js,jsx,ts,tsx}"],
theme: {
extend: {
letterSpacing: {
tight: "-.25px",
wide: ".65px",
widest: "2px"
},
fontSize: {
// Typography: Heading1
"3xl": ["25px", setLineHeight( "30px" )],
// Typography: Heading2
"2xl": ["21px", setLineHeight( "25.2px" )],
// Typography: Subheading1
xl: ["20px", setLineHeight( "24px" )],
// Typography: Heading3
lg: ["18px", setLineHeight( "21.6px" )],
// Typography: Body1/List1
base: ["17px", setLineHeight( "20.4px" )],
// Typography: Heading4/Body2/UnderlinedLink
md: ["15px", setLineHeight( "18px" )],
// Typography: List2
sm: ["14px", setLineHeight( "16.8px" )],
// Typography: Body3
xs: ["13px", setLineHeight( "18px" )],
// Typography: Body4
"2xs": ["11px", setLineHeight( "13.2px" )],
// Typography: Heading5
"3xs": ["8px", setLineHeight( "9.6px" )]
},
height: {
22: "5.5rem"
},
fontFamily: {
"Lato-Bold": ["Lato-Bold"],
"Lato-BoldItalic": ["Lato-BoldItalic"], // working
"Lato-Italic": ["Lato-Italic"], // working
"Lato-Medium": ["Lato-Medium"],
"Lato-MediumItalic": ["Lato-MediumItalic"], // working
"Lato-Regular": ["Lato-Regular"],
// selected from list of fonts already available in RN
// https://infinitbility.com/react-native-font-family-list/
monospace: ["monospace"],
Menlo: ["Menlo"]
},
borderRadius: {
// tried using rem value here, but it wouldn't load on iOS or Android
DEFAULT: "7px",
xs: "1px",
sm: "4px",
md: "9px",
lg: "8px",
"2xl": "15px"
}
},
colors: {
accessibleGreen: "#5D8017",
black: "#000000",
darkGray: "#454545",
darkGrayDisabled: "#828181",
inatGreen: "#74AC00",
inatGreenDisabled: "#B9D580",
inatGreenDisabledDark: "#3A5600",
lightGray: "#E8E8E8",
mediumGray: "#BFBFBF",
mediumGrayGhost: "#BFBFBF33",
warningRed: "#9B1010",
warningRedDisabled: "#b06365",
warningYellow: "#E6A939",
white: "#ffffff",
yellow: "#FFD600",
// Mostly for debugging
red: "#FF0000",
green: "#00FF00",
blue: "#0000FF",
deepPink: "#FF1493",
deeppink: "#FF1493",
DeepPink: "#FF1493",
orange: "#FFA500"
},
screens: {
sm: "240px",
md: "320px",
lg: "390px",
xl: "744px",
"2xl": "1366px"
}
}
};