@@ -140,7 +140,7 @@ $colors: (
140
140
' dark' : hsl (200 , 19% , 18% ),
141
141
' default-font-color' : #fff , // AAA
142
142
)
143
- );
143
+ ) !default ;
144
144
145
145
@function color ($color , $variant : ' default' ) {
146
146
@return map-get (map-get ($colors , $color ), $variant );
@@ -149,47 +149,45 @@ $colors: (
149
149
/* *
150
150
* 2. Base
151
151
*/
152
- $base-background-color : color (' gray' , ' background' );
153
- $base-body-gutter : 0 ;
154
- $base-font-color : hsl (200 , 19% , 18% );
155
- $base-font-family : ' Inter, apple-sf-pro-text, Helvetica, Arial, sans-serif' ;
156
- $base-border-color : hsl (0 , 0% , 88% );
157
- $base-border-hover-color : hsl (0 , 0% , 74% );
158
- $base-border-radius : 4px ;
159
- $base-gutter : 1rem ;
160
- $base-gutter-steps : 0.25 ;
152
+ $base-background-color : color (' gray' , ' background' ) !default ;
153
+ $base-body-gutter : 0 !default ;
154
+ $base-font-color : hsl (200 , 19% , 18% ) !default ;
155
+ $base-border-color : hsl (0 , 0% , 88% ) !default ;
156
+ $base-border-hover-color : hsl (0 , 0% , 74% ) !default ;
157
+ $base-border-radius : 4px !default ;
158
+ $base-gutter : 1rem !default ;
159
+ $base-gutter-steps : 0.25 !default ;
161
160
162
161
$breakpoints : (
163
162
' sm' : ' 640px' ,
164
163
' md' : ' 768px' ,
165
164
' lg' : ' 1024px' ,
166
165
' xl' : ' 1280px'
167
- );
166
+ ) !default ;
168
167
169
168
:root {
170
169
--base-body-background : #{$base-background-color } ;
171
170
--base-body-gutter : #{$base-body-gutter } ;
172
171
--base-font-color : #{$base-font-color } ;
173
- --base-font-family : #{$base-font-family } ;
174
172
--base-border-color : #{$base-border-color } ;
175
173
--base-border-hover-color : #{$base-border-hover-color } ;
176
174
--base-border-radius : #{$base-border-radius } ;
177
175
--base-gutter : #{$base-gutter } ;
178
176
}
179
177
180
- $primary-color : color (' deep-purple' , ' default' );
181
- $primary-color-hover : color (' deep-purple' , ' hover' );
182
- $primary-color-active : color (' deep-purple' , ' active' );
183
- $primary-color-light-background : color (' deep-purple' , ' background' );
178
+ $primary-color : color (' deep-purple' , ' default' ) !default ;
179
+ $primary-color-hover : color (' deep-purple' , ' hover' ) !default ;
180
+ $primary-color-active : color (' deep-purple' , ' active' ) !default ;
181
+ $primary-color-light-background : color (' deep-purple' , ' background' ) !default ;
184
182
185
- $danger-color : color (' red' , ' default' );
186
- $danger-color-hover : color (' red' , ' hover' );
187
- $danger-color-active : color (' red' , ' active' );
188
- $danger-color-light-background : color (' red' , ' background' );
183
+ $danger-color : color (' red' , ' default' ) !default ;
184
+ $danger-color-hover : color (' red' , ' hover' ) !default ;
185
+ $danger-color-active : color (' red' , ' active' ) !default ;
186
+ $danger-color-light-background : color (' red' , ' background' ) !default ;
189
187
190
- $success-color : color (' green' , ' default' );
191
- $success-color-hover : color (' green' , ' hover' );
192
- $success-color-active : color (' green' , ' active' );
188
+ $success-color : color (' green' , ' default' ) !default ;
189
+ $success-color-hover : color (' green' , ' hover' ) !default ;
190
+ $success-color-active : color (' green' , ' active' ) !default ;
193
191
194
192
:root {
195
193
--primary-color : #{$primary-color } ;
@@ -210,8 +208,8 @@ $success-color-active: color('green', 'active');
210
208
/* *
211
209
* 3. Panel
212
210
*/
213
- $panel-background : #fff ;
214
- $panel-gutter : 2rem ;
211
+ $panel-background : #fff !default ;
212
+ $panel-gutter : 2rem !default ;
215
213
216
214
:root {
217
215
--panel-background : #{$panel-background } ;
@@ -221,7 +219,7 @@ $panel-gutter: 2rem;
221
219
/* *
222
220
* 4. Page
223
221
*/
224
- $page-gutter : 2rem ;
222
+ $page-gutter : 2rem !default ;
225
223
226
224
:root {
227
225
--page-gutter : #{$page-gutter } ;
@@ -230,19 +228,19 @@ $page-gutter: 2rem;
230
228
/* *
231
229
* 5. Button
232
230
*/
233
- $button-padding : 1rem ;
234
- $button-font-weight : 600 ;
235
- $button-font-size : 1rem ;
231
+ $button-padding : 1rem !default ;
232
+ $button-font-weight : 600 !default ;
233
+ $button-font-size : 1rem !default ;
236
234
237
- $primary-button-ghost-hover-background : color (' deep-purple' , ' background' );
238
- $primary-button-ghost-active-background : color (' deep-purple' , ' background-hover' );
235
+ $primary-button-ghost-hover-background : color (' deep-purple' , ' background' ) !default ;
236
+ $primary-button-ghost-active-background : color (' deep-purple' , ' background-hover' ) !default ;
239
237
240
- $secondary-button-background : transparent ;
241
- $secondary-button-hover-background : color (' deep-purple' , ' background' );
242
- $secondary-button-active-background : color (' deep-purple' , ' background-hover' );
238
+ $secondary-button-background : transparent !default ;
239
+ $secondary-button-hover-background : color (' deep-purple' , ' background' ) !default ;
240
+ $secondary-button-active-background : color (' deep-purple' , ' background-hover' ) !default ;
243
241
244
- $danger-button-ghost-hover-background : color (' red' , ' background' );
245
- $danger-button-ghost-active-background : color (' red' , ' background-hover' );
242
+ $danger-button-ghost-hover-background : color (' red' , ' background' ) !default ;
243
+ $danger-button-ghost-active-background : color (' red' , ' background-hover' ) !default ;
246
244
247
245
:root {
248
246
--button-padding : #{$button-padding } ;
@@ -281,8 +279,8 @@ $danger-button-ghost-active-background: color('red', 'background-hover');
281
279
/* *
282
280
* 6. Cards
283
281
*/
284
- $card-padding : 1.5rem ;
285
- $card-background : #fff ;
282
+ $card-padding : 1.5rem !default ;
283
+ $card-background : #fff !default ;
286
284
287
285
:root {
288
286
--card-padding : #{$card-padding } ;
@@ -292,9 +290,9 @@ $card-background: #fff;
292
290
/* *
293
291
* 7. Form fields
294
292
*/
295
- $form-field-padding : 1rem ;
296
- $form-field-font-weight : 500 ;
297
- $form-field-font-size : 1rem ;
293
+ $form-field-padding : 1rem !default ;
294
+ $form-field-font-weight : 500 !default ;
295
+ $form-field-font-size : 1rem !default ;
298
296
299
297
:root {
300
298
--form-field-padding : #{$form-field-padding } ;
@@ -305,6 +303,7 @@ $form-field-font-size: 1rem;
305
303
/* *
306
304
* 8. Icons
307
305
*/
306
+ $iconPath : ' ../icons' !default ;
308
307
$icons : (
309
308
' activity' : ' \e900 ' ,
310
309
' alert-circle' : ' \e901 ' ,
@@ -559,9 +558,9 @@ $icons: (
559
558
/* *
560
559
* 8. Form fields
561
560
*/
562
- $form-field-padding : 1rem ;
563
- $form-field-font-weight : 500 ;
564
- $form-field-font-size : 1rem ;
561
+ $form-field-padding : 1rem !default ;
562
+ $form-field-font-weight : 500 !default ;
563
+ $form-field-font-size : 1rem !default ;
565
564
566
565
:root {
567
566
--form-field-padding : #{$form-field-padding } ;
0 commit comments