@@ -20,20 +20,20 @@ $color-dark: #000;
2020// ----
2121// Grey colors
2222// ----
23- $color-grey-100 : #eee ;
24- $color-grey-200 : #ccc ;
25- $color-grey-300 : #aaa ;
26- $color-grey-400 : #999 ;
27- $color-grey-500 : #888 ;
28- $color-grey-600 : #777 ;
29- $color-grey-700 : #555 ;
30- $color-grey-800 : #333 ;
31- $color-grey-900 : #111 ;
23+ $color-grey-100 : var ( --wp--preset--color--grey-100 ) ;
24+ $color-grey-200 : var ( --wp--preset--color--grey-200 ) ;
25+ $color-grey-300 : var ( --wp--preset--color--grey-300 ) ;
26+ $color-grey-400 : var ( --wp--preset--color--grey-400 ) ;
27+ $color-grey-500 : var ( --wp--preset--color--grey-500 ) ;
28+ $color-grey-600 : var ( --wp--preset--color--grey-600 ) ;
29+ $color-grey-700 : var ( --wp--preset--color--grey-700 ) ;
30+ $color-grey-800 : var ( --wp--preset--color--grey-800 ) ;
31+ $color-grey-900 : var ( --wp--preset--color--grey-900 ) ;
3232
3333// ----
3434// Palette colors
3535// ----
36- $color-yellow-500 : #ffe600 ;
36+ $color-yellow-500 : var ( --wp--preset--color--yellow-500 ) ;
3737
3838// ----
3939// Theme colors
@@ -42,55 +42,11 @@ $color-primary: $color-yellow-500;
4242$color-secondary : $color-grey-400 ;
4343$color-text : $color-grey-900 ;
4444
45- // ----
46- // Gutenberg palette
47- // ----
48- $palette : (
49- " primary" : (
50- " color" : $color-primary ,
51- " isColorLight" : true,
52- ),
53- " secondary" : (
54- " color" : $color-secondary ,
55- " isColorLight" : false,
56- ),
57- " dark" : (
58- " color" : $color-dark ,
59- " isColorLight" : false,
60- ),
61- " light" : (
62- " color" : $color-light ,
63- " isColorLight" : true,
64- ),
65- );
66-
6745/* *
6846* Sizes
6947*
70- * If is fluid website and for example you have a container of 1304px on figma -> column : 72px and gutter -> 40px
71- *
72- * The max width of the fluid size container is for example 2200px.
73- *
74- * $column-preset: (
75- * // preset for desktop
76- * d : (
77- * column-width: 121.4724, // (2220 * 72 / 1304) - Container width : 2200px (1304px on 1440px viewport) - Column width : 121px (72px on 1440px viewport)
78- * gutter-width: 67.4846, // (2200 * 40 / 1304) - Gutter width : 67px (40px on 1440px viewport)
79- * total-column: 12
80- * ),
81- * // preset for tablet
82- * t : (
83- * column-width: 121.4724,
84- * gutter-width: 67.4846,
85- * total-column: 12
86- * ),
87- * // preset for mobile
88- * m : (
89- * column-width: 36,
90- * gutter-width: 24,
91- * total-column: 6
92- * )
93- * );
48+ * Only use for setup the grid to use the column mixin -> Corresponding to the layout settings in theme.json (1160px)
49+ * The default and wide size is defined in the theme.json file.
9450*/
9551$column-preset : (
9652 // preset for desktop
@@ -113,19 +69,6 @@ $column-preset: (
11369 )
11470);
11571
116- // ----
117- // Containers
118- // ----
119- $container-default-column-length : 8 ;
120- $container-default : (
121- 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 )
122- ) * 1px ;
123- $container-wide : (
124- 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 )
125- ) * 1px ;
126- $external-gutter : 50px ;
127- $external-gutter-mobile : 20px ;
128-
12972// ----
13073// Breakpoints
13174// Based on WordPress breakpoints (https://github.com/WordPress/gutenberg/blob/trunk/packages/base-styles/_breakpoints.scss)
@@ -139,8 +82,6 @@ $breakpoints: (
13982 md : 1080 ,
14083 mdl : 1279 , // Do not use 1280px, it causes a bug under Window Edge with a device pixel ratio higher than 1
14184 l : 1440 ,
142- container-default : math .div ($container-default + $external-gutter-mobile * 2 , 1px ),
143- container-wide : math .div ($container-wide + $external-gutter * 2 , 1px ),
14485);
14586
14687// ----
@@ -156,12 +97,12 @@ $base-border-radius: 3px;
15697// ----
15798// Font Family
15899// ----
159- $font-family-primary : " Poppins" , sans-serif ;
100+ $font-family-primary : " Poppins" , " Poppins-fallback " , sans-serif ;
160101
161102// ----
162103// Font Size
163104// ----
164- $font-size-base : 16 px ;
105+ $font-size-base : var ( --paragraph--font-size-default ) ;
165106$font-size-xs : 14px ;
166107$font-size-sm : 16px ;
167108$font-size-md : 18px ;
@@ -173,4 +114,4 @@ $font-size-xxxl: 56px;
173114// ----
174115// Line Height
175116// ----
176- $line-height-base : 1.4 ;
117+ $line-height-base : var ( --paragraph--line-height-default ) ;
0 commit comments