-
Notifications
You must be signed in to change notification settings - Fork 2
/
tailwind.config.js
80 lines (80 loc) · 1.82 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
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
],
theme: {
colors: {
// primary colors to use
black: "#2E312F",
blue: "#A4C5C6",
brown: "#A69F95",
cream: "#FEF1E0",
dustyRose: "#E5BABA",
green: "#B5C285",
grey: "#C4C3C2",
textGrey: "#A39C94",
salmon: "#F4A298",
yellow: "#F3DE8A",
white: "#FFFFFF",
// needed for book thumbnails/previews
linen: "#F8F3ED",
//needed for toggle switch
buttonGrey: "#D4D3D3",
},
fontFamily: {
arno: ["arno", "sans-serif"],
arnobold: ["arno-bold", "sans-serif"],
montserrat: ["Montserrat"],
sora: ["Sora", "extra-bold"],
},
dropShadow: {
// needed for book thumbnails/previews
DEFAULT: "2px 6px 20px rgba(0, 0, 0, 0.25)",
//needed for toggle switch
togglePin: "2px 1px 6px rgba(0, 0, 0, 0.25)",
// needed for add-book button
plusButton: "0px 4px 4px rgba(0, 0, 0, 0.25)",
},
extend: {
borderWidth: { 0.75: "0.75px" },
// Iphone Screen width
screens: {
sm: "414px",
},
aspectRatio: {
// needed for book thumbnails/previews
"6/9": "6 / 9",
},
backgroundImage: {
//needed for toggle switch
toggleGradient: "linear-gradient(180deg, #FFFFFF 0%, #E8EAEA 100%)",
},
boxShadow: {
//needed for toggle switch
toggleSwitch: "inset 0px 6px 8px 3px rgba(0, 0, 0, 0.1)",
},
height: {
// needed for book thumbnails/previews
45: "11.25rem /* 180 pixel*/",
54: "13.5rem /* 216 pixel*/",
89: "22.25rem /* 356pixel*/",
},
fontSize: {
"2xs": "10px",
},
width: {
mobile: "640px",
// needed for library buttons
25: "6.25rem /* 98 pixel*/",
},
},
},
plugins: [],
safelist: [
// used for storybook testing
"text-white",
"text-black",
]
};