-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_config.scss
144 lines (141 loc) · 3.16 KB
/
_config.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
/// BASE SIZE
/// All calculations are based on this. It’s recommended that
/// you keep it at 1rem because that is the root font size. You
/// can set it to whatever you like and whatever unit you like.
///
$gorko-base-size: 1rem;
/// SIZE SCALE
/// This is a Major Third scale that powers all the utilities that
/// it is relevant for (font-size, margin, padding). All items are
/// calcuated off the base size, so change that and cascade across
/// your whole project.
///
$gorko-size-scale: (
'300': $gorko-base-size * 0.8,
'400': $gorko-base-size,
'500': $gorko-base-size * 1.25,
'600': $gorko-base-size * 1.6,
'700': $gorko-base-size * 2,
'900': $gorko-base-size * 3
);
/// COLORS
/// Colors are shared between backgrounds and text by default.
/// You can also use them to power borders, fills or shadows, for example.
///
$gorko-colors: (
'dark': #1a1a1a,
'light': #f3f3f3
);
/// CORE CONFIG
/// This powers everything from utility class generation to breakpoints
/// to enabling/disabling pre-built components/utilities.
///
$gorko-config: (
'css-vars': (
'color': $gorko-colors,
'weight': (
'bold': 700,
'black': 900
)
),
'bg': (
'items': 'color',
'css-vars': true,
'output': 'standard',
'property': 'background'
),
'color': (
'items': 'color',
'css-vars': true,
'output': 'standard',
'property': 'color'
),
'box': (
'items': (
'block': 'block',
'flex': 'flex',
'hide': 'none',
'show': 'inherit'
),
'output': 'responsive',
'property': 'display'
),
'font': (
'items': (
'base': '"Inter", Helvetica, Arial, sans-serif'
),
'output': 'standard',
'property': 'font-family'
),
'gap-top': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'margin-top'
),
'gap-right': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'margin-right'
),
'gap-bottom': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'margin-bottom'
),
'gap-left': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'margin-left'
),
'pad-top': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'padding-top'
),
'pad-right': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'padding-right'
),
'pad-bottom': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'padding-bottom'
),
'pad-left': (
'items': $gorko-size-scale,
'output': 'standard',
'property': 'padding-left'
),
'stack': (
'items': (
'300': 0,
'400': 10,
'500': 20,
'600': 30,
'700': 40
),
'output': 'standard',
'property': 'z-index'
),
'text': (
'items': $gorko-size-scale,
'output': 'responsive',
'property': 'font-size'
),
'width': (
'items': (
'full': '100%',
'half': percentage(1/2),
'quarter': percentage(1/4),
'third': percentage(1/3)
),
'output': 'responsive',
'property': 'width'
),
'breakpoints': (
'sm': '(min-width: 36em)',
'md': '(min-width: 48em)',
'lg': '(min-width: 62em)'
)
);