-
Notifications
You must be signed in to change notification settings - Fork 5
/
base-complete.css
135 lines (117 loc) · 2.7 KB
/
base-complete.css
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
/*
What we'll need:
- Basic reset
- Colors
- Spacings
- Font sizes
- Radii
- Borders
- Shadows
- Transitions
- Opacities
*/
* {
margin: 0;
padding: 0;
}
*,
*:before,
*:after {
box-sizing: border-box;
font-weight: normal;
font-family: sans-serif;
}
body,
html {
height: 100%;
}
body {
/* Centering content for demo purposes */
display: flex;
justify-content: center;
align-items: center;
padding: var(--space-4);
/* Global styles */
background-color: var(--color-blue-100);
}
:root {
/* Blues */
--color-blue-100: #f5faff;
--color-blue-200: #b8dcff;
--color-blue-300: #7ab8ff;
--color-blue-400: #3d90ff;
--color-blue-500: #0064fe;
--color-blue-600: #0046d1;
--color-blue-700: #002ba3;
--color-blue-800: #001575;
--color-blue-900: #000647;
/* Greens */
--color-green-100: #f0fcf5;
--color-green-200: #b4eece;
--color-green-300: #78e0a7;
--color-green-400: #3cd180;
--color-green-500: #00c159;
--color-green-600: #009645;
--color-green-700: #006a31;
--color-green-800: #003f1d;
--color-green-900: #001309;
/* Grays */
--color-gray-100: #f3f5f6;
--color-gray-200: #d0d8dd;
--color-gray-300: #aebac2;
--color-gray-400: #8d9ca7;
--color-gray-500: #6c7d8b;
--color-gray-600: #576674;
--color-gray-700: #424e5c;
--color-gray-800: #2e3843;
--color-gray-900: #1c212a;
/* Neutrals */
--color-white: white;
--color-black: black;
/* Misc */
--color-border: var(--color-gray-200);
/* Spacing */
--space-0: 0;
--space-1: 0.25rem;
--space-2: 0.5rem;
--space-3: 0.75rem;
--space-4: 1rem;
--space-5: 1.25rem;
--space-6: 1.5rem;
--space-8: 2rem;
--space-10: 2.5rem;
--space-12: 3rem;
--space-16: 4rem;
--space-20: 5rem;
--space-24: 6rem;
/* Font sizes */
--text-sm: 0.875rem;
--text-md: 1rem;
--text-lg: 1.25rem;
--text-xl: 1.5rem;
/* Border radius */
--radius: 6px;
--round: 1000px;
/* Borders */
--border: 1px solid var(--color-border);
/* Shadows */
--shadow: 0px 2px 8px rgba(0, 0, 0, 0.06), 0px 1px 3px rgba(0, 0, 0, 0.05);
--shadow-large: 0px 5px 18px rgba(0, 0, 0, 0.1),
0px 1px 3px rgba(0, 0, 0, 0.05);
--shadow-focus: 0 0 0 var(--space-1) var(--color-blue-200);
/* Transition curves */
--transition-curve: cubic-bezier(0.2, 0.7, 0.3, 1);
--transition-curve-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
/* Transition speeds */
--transition-speed: 0.25s;
--transition-speed-slow: 1s;
/* Transition */
--transition: all var(--transition-speed) var(--transition-curve);
--transition-bounce: all var(--transition-speed)
var(--transition-curve-bounce);
/* Opacities */
--opacity-25: 0.25;
--opacity-50: 0.5;
--opacity-75: 0.75;
--opacity-100: 1;
}