@polyxd/ds-civic 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,313 @@
1
+ {
2
+ "$description": "Civic primitives shared by both modes: type, spacing, radii, borders, motion. Original template by Polyxd; every value here is yours to change.",
3
+ "civic": {
4
+ "font": {
5
+ "$type": "fontFamily",
6
+ "display": {
7
+ "$value": "system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
8
+ "$type": "fontFamily"
9
+ },
10
+ "body": {
11
+ "$value": "system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
12
+ "$type": "fontFamily"
13
+ },
14
+ "label": {
15
+ "$value": "system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
16
+ "$type": "fontFamily"
17
+ },
18
+ "mono": {
19
+ "$value": "ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace",
20
+ "$type": "fontFamily"
21
+ }
22
+ },
23
+ "text": {
24
+ "$type": "dimension",
25
+ "title-page": {
26
+ "$value": {
27
+ "value": 36,
28
+ "unit": "px"
29
+ }
30
+ },
31
+ "title-section": {
32
+ "$value": {
33
+ "value": 26,
34
+ "unit": "px"
35
+ }
36
+ },
37
+ "title-item": {
38
+ "$value": {
39
+ "value": 20,
40
+ "unit": "px"
41
+ }
42
+ },
43
+ "body-default": {
44
+ "$value": {
45
+ "value": 18,
46
+ "unit": "px"
47
+ }
48
+ },
49
+ "body-small": {
50
+ "$value": {
51
+ "value": 16,
52
+ "unit": "px"
53
+ }
54
+ },
55
+ "label-default": {
56
+ "$value": {
57
+ "value": 18,
58
+ "unit": "px"
59
+ }
60
+ },
61
+ "label-small": {
62
+ "$value": {
63
+ "value": 16,
64
+ "unit": "px"
65
+ }
66
+ },
67
+ "numeric-display": {
68
+ "$value": {
69
+ "value": 36,
70
+ "unit": "px"
71
+ }
72
+ }
73
+ },
74
+ "weight": {
75
+ "$type": "number",
76
+ "400": {
77
+ "$value": 400
78
+ },
79
+ "600": {
80
+ "$value": 600
81
+ },
82
+ "700": {
83
+ "$value": 700
84
+ }
85
+ },
86
+ "space": {
87
+ "$type": "dimension",
88
+ "inset": {
89
+ "compact": {
90
+ "$value": {
91
+ "value": 12,
92
+ "unit": "px"
93
+ }
94
+ },
95
+ "default": {
96
+ "$value": {
97
+ "value": 20,
98
+ "unit": "px"
99
+ }
100
+ },
101
+ "comfortable": {
102
+ "$value": {
103
+ "value": 32,
104
+ "unit": "px"
105
+ }
106
+ }
107
+ },
108
+ "stack": {
109
+ "tight": {
110
+ "$value": {
111
+ "value": 8,
112
+ "unit": "px"
113
+ }
114
+ },
115
+ "default": {
116
+ "$value": {
117
+ "value": 12,
118
+ "unit": "px"
119
+ }
120
+ },
121
+ "loose": {
122
+ "$value": {
123
+ "value": 20,
124
+ "unit": "px"
125
+ }
126
+ },
127
+ "section": {
128
+ "$value": {
129
+ "value": 48,
130
+ "unit": "px"
131
+ }
132
+ }
133
+ },
134
+ "inline": {
135
+ "tight": {
136
+ "$value": {
137
+ "value": 8,
138
+ "unit": "px"
139
+ }
140
+ },
141
+ "default": {
142
+ "$value": {
143
+ "value": 12,
144
+ "unit": "px"
145
+ }
146
+ },
147
+ "loose": {
148
+ "$value": {
149
+ "value": 20,
150
+ "unit": "px"
151
+ }
152
+ }
153
+ }
154
+ },
155
+ "size": {
156
+ "$type": "dimension",
157
+ "target": {
158
+ "$value": {
159
+ "value": 48,
160
+ "unit": "px"
161
+ }
162
+ },
163
+ "icon-small": {
164
+ "$value": {
165
+ "value": 18,
166
+ "unit": "px"
167
+ }
168
+ },
169
+ "icon-default": {
170
+ "$value": {
171
+ "value": 24,
172
+ "unit": "px"
173
+ }
174
+ }
175
+ },
176
+ "radius": {
177
+ "$type": "dimension",
178
+ "small": {
179
+ "$value": {
180
+ "value": 2,
181
+ "unit": "px"
182
+ }
183
+ },
184
+ "control": {
185
+ "$value": {
186
+ "value": 2,
187
+ "unit": "px"
188
+ }
189
+ },
190
+ "default": {
191
+ "$value": {
192
+ "value": 4,
193
+ "unit": "px"
194
+ }
195
+ },
196
+ "large": {
197
+ "$value": {
198
+ "value": 4,
199
+ "unit": "px"
200
+ }
201
+ },
202
+ "full": {
203
+ "$value": {
204
+ "value": 999,
205
+ "unit": "px"
206
+ }
207
+ }
208
+ },
209
+ "border": {
210
+ "$type": "dimension",
211
+ "default": {
212
+ "$value": {
213
+ "value": 1,
214
+ "unit": "px"
215
+ }
216
+ },
217
+ "strong": {
218
+ "$value": {
219
+ "value": 2,
220
+ "unit": "px"
221
+ }
222
+ }
223
+ },
224
+ "focus": {
225
+ "$type": "dimension",
226
+ "width": {
227
+ "$value": {
228
+ "value": 3,
229
+ "unit": "px"
230
+ }
231
+ },
232
+ "offset": {
233
+ "$value": {
234
+ "value": 0,
235
+ "unit": "px"
236
+ }
237
+ }
238
+ },
239
+ "measure": {
240
+ "$value": 65,
241
+ "$type": "number"
242
+ },
243
+ "opacity": {
244
+ "$type": "number",
245
+ "hover": {
246
+ "$value": 0.08
247
+ },
248
+ "pressed": {
249
+ "$value": 0.16
250
+ },
251
+ "focus": {
252
+ "$value": 0.16
253
+ },
254
+ "disabled": {
255
+ "$value": 0.5
256
+ }
257
+ },
258
+ "duration": {
259
+ "$type": "duration",
260
+ "instant": {
261
+ "$value": {
262
+ "value": 0,
263
+ "unit": "ms"
264
+ }
265
+ },
266
+ "short": {
267
+ "$value": {
268
+ "value": 100,
269
+ "unit": "ms"
270
+ }
271
+ },
272
+ "medium": {
273
+ "$value": {
274
+ "value": 150,
275
+ "unit": "ms"
276
+ }
277
+ },
278
+ "long": {
279
+ "$value": {
280
+ "value": 200,
281
+ "unit": "ms"
282
+ }
283
+ }
284
+ },
285
+ "ease": {
286
+ "$type": "cubicBezier",
287
+ "standard": {
288
+ "$value": [
289
+ 0.4,
290
+ 0,
291
+ 0.2,
292
+ 1
293
+ ]
294
+ },
295
+ "enter": {
296
+ "$value": [
297
+ 0,
298
+ 0,
299
+ 0.2,
300
+ 1
301
+ ]
302
+ },
303
+ "exit": {
304
+ "$value": [
305
+ 0.4,
306
+ 0,
307
+ 1,
308
+ 1
309
+ ]
310
+ }
311
+ }
312
+ }
313
+ }
@@ -0,0 +1,257 @@
1
+ {
2
+ "$description": "Civic, light mode: the palette (named colours) and the roles that pick from it. Change a palette entry to recolour every role that uses it; point a role at a different entry to change one thing.",
3
+ "civic": {
4
+ "palette": {
5
+ "$type": "color",
6
+ "white": {
7
+ "$value": "#ffffff"
8
+ },
9
+ "grey-50": {
10
+ "$value": "#f0f0f0"
11
+ },
12
+ "black": {
13
+ "$value": "#111111"
14
+ },
15
+ "grey-700": {
16
+ "$value": "#454545"
17
+ },
18
+ "grey-500": {
19
+ "$value": "#4d4d4d"
20
+ },
21
+ "grey-300": {
22
+ "$value": "#8a8a8a"
23
+ },
24
+ "blue": {
25
+ "$value": "#0d4f9c"
26
+ },
27
+ "blue-deep": {
28
+ "$value": "#0b3a73"
29
+ },
30
+ "blue-wash": {
31
+ "$value": "#e6effa"
32
+ },
33
+ "red": {
34
+ "$value": "#b21f1f"
35
+ },
36
+ "red-deep": {
37
+ "$value": "#7d1414"
38
+ },
39
+ "red-wash": {
40
+ "$value": "#fbe3e3"
41
+ },
42
+ "green": {
43
+ "$value": "#1e7a30"
44
+ },
45
+ "green-deep": {
46
+ "$value": "#0f5a1f"
47
+ },
48
+ "green-wash": {
49
+ "$value": "#e3f3e3"
50
+ },
51
+ "gold": {
52
+ "$value": "#946c00"
53
+ },
54
+ "gold-deep": {
55
+ "$value": "#5c4300"
56
+ },
57
+ "gold-wash": {
58
+ "$value": "#fff2cc"
59
+ },
60
+ "purple": {
61
+ "$value": "#6b2f9e"
62
+ },
63
+ "teal": {
64
+ "$value": "#0b6e7a"
65
+ }
66
+ },
67
+ "sys": {
68
+ "$type": "color",
69
+ "surface-default": {
70
+ "$value": "{civic.palette.white}",
71
+ "$description": "Main page background"
72
+ },
73
+ "surface-subtle": {
74
+ "$value": "{civic.palette.grey-50}",
75
+ "$description": "Grouping background: table headers, wells"
76
+ },
77
+ "surface-raised": {
78
+ "$value": "{civic.palette.white}",
79
+ "$description": "Cards and sheets"
80
+ },
81
+ "surface-overlay": {
82
+ "$value": "{civic.palette.white}",
83
+ "$description": "Dialogs and popovers"
84
+ },
85
+ "surface-inverse": {
86
+ "$value": "{civic.palette.black}",
87
+ "$description": "Snackbars and tooltips"
88
+ },
89
+ "scrim": {
90
+ "$value": "rgba(0, 0, 0, 0.6)"
91
+ },
92
+ "text-default": {
93
+ "$value": "{civic.palette.black}"
94
+ },
95
+ "text-muted": {
96
+ "$value": "{civic.palette.grey-700}"
97
+ },
98
+ "text-inverse": {
99
+ "$value": "{civic.palette.white}"
100
+ },
101
+ "text-link": {
102
+ "$value": "{civic.palette.blue}",
103
+ "$description": "Inline links"
104
+ },
105
+ "border-default": {
106
+ "$value": "{civic.palette.grey-300}"
107
+ },
108
+ "border-strong": {
109
+ "$value": "{civic.palette.grey-500}",
110
+ "$description": "Input outlines (3:1 on the page)"
111
+ },
112
+ "border-focus": {
113
+ "$value": "{civic.palette.black}",
114
+ "$description": "Keyboard focus ring (3:1 on the page)"
115
+ },
116
+ "action-primary-background": {
117
+ "$value": "{civic.palette.blue}"
118
+ },
119
+ "action-primary-foreground": {
120
+ "$value": "{civic.palette.white}"
121
+ },
122
+ "action-secondary-background": {
123
+ "$value": "{civic.palette.white}"
124
+ },
125
+ "action-secondary-foreground": {
126
+ "$value": "{civic.palette.black}"
127
+ },
128
+ "action-secondary-border": {
129
+ "$value": "{civic.palette.black}"
130
+ },
131
+ "action-danger-background": {
132
+ "$value": "{civic.palette.red}"
133
+ },
134
+ "action-danger-foreground": {
135
+ "$value": "{civic.palette.white}"
136
+ },
137
+ "selection-background": {
138
+ "$value": "{civic.palette.blue-wash}"
139
+ },
140
+ "selection-foreground": {
141
+ "$value": "{civic.palette.blue-deep}"
142
+ },
143
+ "status-info-background": {
144
+ "$value": "{civic.palette.blue-wash}"
145
+ },
146
+ "status-info-foreground": {
147
+ "$value": "{civic.palette.blue-deep}"
148
+ },
149
+ "status-info-emphasis": {
150
+ "$value": "{civic.palette.blue}"
151
+ },
152
+ "status-success-background": {
153
+ "$value": "{civic.palette.green-wash}"
154
+ },
155
+ "status-success-foreground": {
156
+ "$value": "{civic.palette.green-deep}"
157
+ },
158
+ "status-success-emphasis": {
159
+ "$value": "{civic.palette.green}"
160
+ },
161
+ "status-warning-background": {
162
+ "$value": "{civic.palette.gold-wash}"
163
+ },
164
+ "status-warning-foreground": {
165
+ "$value": "{civic.palette.gold-deep}"
166
+ },
167
+ "status-warning-emphasis": {
168
+ "$value": "{civic.palette.gold}"
169
+ },
170
+ "status-danger-background": {
171
+ "$value": "{civic.palette.red-wash}"
172
+ },
173
+ "status-danger-foreground": {
174
+ "$value": "{civic.palette.red-deep}"
175
+ },
176
+ "status-danger-emphasis": {
177
+ "$value": "{civic.palette.red}"
178
+ },
179
+ "data-1": {
180
+ "$value": "{civic.palette.blue}"
181
+ },
182
+ "data-2": {
183
+ "$value": "{civic.palette.green}"
184
+ },
185
+ "data-3": {
186
+ "$value": "{civic.palette.red}"
187
+ },
188
+ "data-4": {
189
+ "$value": "{civic.palette.gold}"
190
+ },
191
+ "data-5": {
192
+ "$value": "{civic.palette.purple}"
193
+ },
194
+ "data-6": {
195
+ "$value": "{civic.palette.teal}"
196
+ },
197
+ "data-positive": {
198
+ "$value": "{civic.palette.green}"
199
+ },
200
+ "data-negative": {
201
+ "$value": "{civic.palette.red}"
202
+ },
203
+ "data-neutral": {
204
+ "$value": "{civic.palette.grey-500}"
205
+ }
206
+ },
207
+ "shadow": {
208
+ "$type": "shadow",
209
+ "raised": {
210
+ "$value": [
211
+ {
212
+ "offsetX": {
213
+ "value": 0,
214
+ "unit": "px"
215
+ },
216
+ "offsetY": {
217
+ "value": 0,
218
+ "unit": "px"
219
+ },
220
+ "blur": {
221
+ "value": 0,
222
+ "unit": "px"
223
+ },
224
+ "spread": {
225
+ "value": 0,
226
+ "unit": "px"
227
+ },
228
+ "color": "rgba(0, 0, 0, 0)"
229
+ }
230
+ ]
231
+ },
232
+ "overlay": {
233
+ "$value": [
234
+ {
235
+ "offsetX": {
236
+ "value": 0,
237
+ "unit": "px"
238
+ },
239
+ "offsetY": {
240
+ "value": 8,
241
+ "unit": "px"
242
+ },
243
+ "blur": {
244
+ "value": 24,
245
+ "unit": "px"
246
+ },
247
+ "spread": {
248
+ "value": 0,
249
+ "unit": "px"
250
+ },
251
+ "color": "rgba(0, 0, 0, 0.25)"
252
+ }
253
+ ]
254
+ }
255
+ }
256
+ }
257
+ }