-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path_variables.scss
176 lines (161 loc) · 3.97 KB
/
_variables.scss
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
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
@use "sass:map";
@use "sass:math";
$entry-file-name: "undefined";
/**
* Variables
*/
// ==========
// Colors
// ==========
// ----
// Dark/Light colors
// ----
$color-light: #fff;
$color-dark: #000;
// ----
// Grey colors
// ----
$color-grey-100: #eee;
$color-grey-200: #ccc;
$color-grey-300: #aaa;
$color-grey-400: #999;
$color-grey-500: #888;
$color-grey-600: #777;
$color-grey-700: #555;
$color-grey-800: #333;
$color-grey-900: #111;
// ----
// Palette colors
// ----
$color-yellow-500: #ffe600;
// ----
// Theme colors
// ----
$color-primary: $color-yellow-500;
$color-secondary: $color-grey-400;
$color-text: $color-grey-900;
// ----
// Gutenberg palette
// ----
$palette: (
"primary": (
"color": $color-primary,
"isColorLight": true,
),
"secondary": (
"color": $color-secondary,
"isColorLight": false,
),
"dark": (
"color": $color-dark,
"isColorLight": false,
),
"light": (
"color": $color-light,
"isColorLight": true,
),
);
/**
* Sizes
*
* If is fluid website and for example you have a container of 1304px on figma -> column : 72px and gutter -> 40px
*
* The max width of the fluid size container is for example 2200px.
*
* $column-preset: (
* // preset for desktop
* d : (
* column-width: 121.4724, // (2220 * 72 / 1304) - Container width : 2200px (1304px on 1440px viewport) - Column width : 121px (72px on 1440px viewport)
* gutter-width: 67.4846, // (2200 * 40 / 1304) - Gutter width : 67px (40px on 1440px viewport)
* total-column: 12
* ),
* // preset for tablet
* t : (
* column-width: 121.4724,
* gutter-width: 67.4846,
* total-column: 12
* ),
* // preset for mobile
* m : (
* column-width: 36,
* gutter-width: 24,
* total-column: 6
* )
* );
*/
$column-preset: (
// preset for desktop
d : (
column-width: 60,
gutter-width: 40,
total-column: 12
),
// preset for tablet
t : (
column-width: 60,
gutter-width: 34,
total-column: 8
),
// preset for mobile
m : (
column-width: 58,
gutter-width: 31,
total-column: 4
)
);
// ----
// Containers
// ----
$container-default-column-length: 8;
$container-default: (
map.get(map.get($column-preset, d), column-width) * $container-default-column-length + map.get(map.get($column-preset, d), gutter-width) * ($container-default-column-length - 1)
) * 1px;
$container-wide: (
map.get(map.get($column-preset, d), column-width) * map.get(map.get($column-preset, d), total-column) + map.get(map.get($column-preset, d), gutter-width) * (map.get(map.get($column-preset, d), total-column) - 1)
) * 1px;
$external-gutter: 50px;
$external-gutter-mobile: 20px;
// ----
// Breakpoints
// Based on WordPress breakpoints (https://github.com/WordPress/gutenberg/blob/trunk/packages/base-styles/_breakpoints.scss)
// ----
$breakpoints: (
xs: 480,
s: 601, // 601px is a wordpress breakpoint (admin-bar become sticky)
sm: 782,
admin-bar: 784, // admin bar height change
m: 960,
md: 1080,
mdl: 1279, // Do not use 1280px, it causes a bug under Window Edge with a device pixel ratio higher than 1
l: 1440,
container-default: math.div($container-default + $external-gutter-mobile * 2, 1px),
container-wide: math.div($container-wide + $external-gutter * 2, 1px),
);
// ----
// border
// ----
$base-border-color: $color-grey-800;
$base-border: 1px solid $base-border-color;
$base-border-radius: 3px;
// ==========
// Fonts
// ==========
// ----
// Font Family
// ----
$font-family-primary: "Poppins", sans-serif;
// ----
// Font Size
// ----
$font-size-base: 16px;
$font-size-xs: 14px;
$font-size-sm: 16px;
$font-size-md: 18px;
$font-size-lg: 24px;
$font-size-xl: 32px;
$font-size-xxl: 48px;
$font-size-xxxl: 56px;
// ----
// Line Height
// ----
$line-height-base: 1.4;