-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.config.js
136 lines (117 loc) · 3.09 KB
/
style.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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
/* eslint-disable */
/*
************************************************
* USAGE *
************************************************
This file exist as a configurations file for both
tailwind and non-tailwind supported components
In ES5 syntax for tailwind config compatibility
*/
// ===============================================
// Imports
// ===============================================
const twcolors = require("tailwindcss/colors")
// ===============================================
/*
************************************************
* OVERRIDES *
************************************************
The following overrides tailwind default options
*/
const colors = {
transparent: "transparent",
// =========================================
// Greyscales
// =========================================
white: "#FFF",
gray: {
lightest: "#D9D9D9",
lighter: "#ABABAB",
mid: "#808080",
darkest: "#454545",
"darkest-pro-max": "#222", // Henry humor
},
// =========================================
// =========================================
// Main UI
// =========================================
background: "#060620",
navbar: "#10102C",
primary: "#0B52BC",
secondary: "#326FCB",
// =========================================
// =========================================
// Utility
// =========================================
util: {
error: "#F4222F",
success: "#00CA23",
alert: "#CA9D00",
banner: "#232637",
},
// =========================================
// Providing some simple default colors for quick dev
slate: twcolors.slate,
red: twcolors.red,
orange: twcolors.orange,
yellow: twcolors.yellow,
green: twcolors.green,
blue: twcolors.blue,
purple: twcolors.purple,
pink: twcolors.pink,
black: twcolors.black,
}
const dropShadow = {
sm: "0 2px 4px rgba(0, 0, 0, 0.25)",
md: "0 4px 8px rgba(0, 0, 0, 0.4)",
lg: "0 0 16px rgba(0, 0, 0, 0.7)",
}
const borderRadius = {
none: "0",
sm: "4px",
md: "8px",
lg: "12px",
full: "9999px", // as per tailwind docs
}
const spacing = {
defaults: {
sm: "8px",
md: "16px",
lg: "24px",
xl: "32px",
"2xl": "40px",
},
spacingMultiplier: 2,
}
// ===========================================
// This currently extens the default options
// Will override once fonts are finalized
const fontSize = {
defaults: {}, // To be finalized
fontStepsMultiplier: 2, // in px
defaultStaticLineHeight: "1.2rem",
}
// ============================================
/*
************************************************
* EXTENDS *
************************************************
The following extends the default options in tailwind
*/
// !!! NOTE: deeply nested fonts are not supoprted yet
const fontFamily = {
// Lato font
lato: "Lato-400",
"lato-bold": "Lato-700",
"lato-black": "Lato-900",
// AT font or whatever that is idk
AT: "AT",
}
module.exports = {
colors,
dropShadow,
borderRadius,
spacing,
fontSize,
fontFamily,
}