@polyxd/ds-sketch 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,310 @@
1
+ {
2
+ "$description": "Sketch primitives shared by both modes: type, spacing, radii, borders, motion. Original template by Polyxd; every value here is yours to change.",
3
+ "sketch": {
4
+ "font": {
5
+ "$type": "fontFamily",
6
+ "display": {
7
+ "$value": "Caveat, 'Segoe Print', 'Bradley Hand', cursive",
8
+ "$type": "fontFamily"
9
+ },
10
+ "label": {
11
+ "$value": "'Patrick Hand', 'Segoe Print', 'Comic Sans MS', cursive",
12
+ "$type": "fontFamily"
13
+ },
14
+ "body": {
15
+ "$value": "Nunito, 'Segoe UI', 'Trebuchet MS', Verdana, 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": 38,
28
+ "unit": "px"
29
+ }
30
+ },
31
+ "title-section": {
32
+ "$value": {
33
+ "value": 28,
34
+ "unit": "px"
35
+ }
36
+ },
37
+ "title-item": {
38
+ "$value": {
39
+ "value": 22,
40
+ "unit": "px"
41
+ }
42
+ },
43
+ "body-default": {
44
+ "$value": {
45
+ "value": 16,
46
+ "unit": "px"
47
+ }
48
+ },
49
+ "body-small": {
50
+ "$value": {
51
+ "value": 14,
52
+ "unit": "px"
53
+ }
54
+ },
55
+ "label-default": {
56
+ "$value": {
57
+ "value": 17,
58
+ "unit": "px"
59
+ }
60
+ },
61
+ "label-small": {
62
+ "$value": {
63
+ "value": 15,
64
+ "unit": "px"
65
+ }
66
+ },
67
+ "numeric-display": {
68
+ "$value": {
69
+ "value": 34,
70
+ "unit": "px"
71
+ }
72
+ }
73
+ },
74
+ "weight": {
75
+ "$type": "number",
76
+ "400": {
77
+ "$value": 400
78
+ },
79
+ "700": {
80
+ "$value": 700
81
+ }
82
+ },
83
+ "space": {
84
+ "$type": "dimension",
85
+ "inset": {
86
+ "compact": {
87
+ "$value": {
88
+ "value": 8,
89
+ "unit": "px"
90
+ }
91
+ },
92
+ "default": {
93
+ "$value": {
94
+ "value": 14,
95
+ "unit": "px"
96
+ }
97
+ },
98
+ "comfortable": {
99
+ "$value": {
100
+ "value": 22,
101
+ "unit": "px"
102
+ }
103
+ }
104
+ },
105
+ "stack": {
106
+ "tight": {
107
+ "$value": {
108
+ "value": 4,
109
+ "unit": "px"
110
+ }
111
+ },
112
+ "default": {
113
+ "$value": {
114
+ "value": 8,
115
+ "unit": "px"
116
+ }
117
+ },
118
+ "loose": {
119
+ "$value": {
120
+ "value": 14,
121
+ "unit": "px"
122
+ }
123
+ },
124
+ "section": {
125
+ "$value": {
126
+ "value": 32,
127
+ "unit": "px"
128
+ }
129
+ }
130
+ },
131
+ "inline": {
132
+ "tight": {
133
+ "$value": {
134
+ "value": 4,
135
+ "unit": "px"
136
+ }
137
+ },
138
+ "default": {
139
+ "$value": {
140
+ "value": 8,
141
+ "unit": "px"
142
+ }
143
+ },
144
+ "loose": {
145
+ "$value": {
146
+ "value": 14,
147
+ "unit": "px"
148
+ }
149
+ }
150
+ }
151
+ },
152
+ "size": {
153
+ "$type": "dimension",
154
+ "target": {
155
+ "$value": {
156
+ "value": 44,
157
+ "unit": "px"
158
+ }
159
+ },
160
+ "icon-small": {
161
+ "$value": {
162
+ "value": 16,
163
+ "unit": "px"
164
+ }
165
+ },
166
+ "icon-default": {
167
+ "$value": {
168
+ "value": 20,
169
+ "unit": "px"
170
+ }
171
+ }
172
+ },
173
+ "radius": {
174
+ "$type": "dimension",
175
+ "small": {
176
+ "$value": {
177
+ "value": 6,
178
+ "unit": "px"
179
+ }
180
+ },
181
+ "control": {
182
+ "$value": {
183
+ "value": 12,
184
+ "unit": "px"
185
+ }
186
+ },
187
+ "default": {
188
+ "$value": {
189
+ "value": 10,
190
+ "unit": "px"
191
+ }
192
+ },
193
+ "large": {
194
+ "$value": {
195
+ "value": 18,
196
+ "unit": "px"
197
+ }
198
+ },
199
+ "full": {
200
+ "$value": {
201
+ "value": 999,
202
+ "unit": "px"
203
+ }
204
+ }
205
+ },
206
+ "border": {
207
+ "$type": "dimension",
208
+ "default": {
209
+ "$value": {
210
+ "value": 2,
211
+ "unit": "px"
212
+ }
213
+ },
214
+ "strong": {
215
+ "$value": {
216
+ "value": 3,
217
+ "unit": "px"
218
+ }
219
+ }
220
+ },
221
+ "focus": {
222
+ "$type": "dimension",
223
+ "width": {
224
+ "$value": {
225
+ "value": 3,
226
+ "unit": "px"
227
+ }
228
+ },
229
+ "offset": {
230
+ "$value": {
231
+ "value": 2,
232
+ "unit": "px"
233
+ }
234
+ }
235
+ },
236
+ "measure": {
237
+ "$value": 62,
238
+ "$type": "number"
239
+ },
240
+ "opacity": {
241
+ "$type": "number",
242
+ "hover": {
243
+ "$value": 0.06
244
+ },
245
+ "pressed": {
246
+ "$value": 0.12
247
+ },
248
+ "focus": {
249
+ "$value": 0.12
250
+ },
251
+ "disabled": {
252
+ "$value": 0.4
253
+ }
254
+ },
255
+ "duration": {
256
+ "$type": "duration",
257
+ "instant": {
258
+ "$value": {
259
+ "value": 0,
260
+ "unit": "ms"
261
+ }
262
+ },
263
+ "short": {
264
+ "$value": {
265
+ "value": 120,
266
+ "unit": "ms"
267
+ }
268
+ },
269
+ "medium": {
270
+ "$value": {
271
+ "value": 180,
272
+ "unit": "ms"
273
+ }
274
+ },
275
+ "long": {
276
+ "$value": {
277
+ "value": 260,
278
+ "unit": "ms"
279
+ }
280
+ }
281
+ },
282
+ "ease": {
283
+ "$type": "cubicBezier",
284
+ "standard": {
285
+ "$value": [
286
+ 0.4,
287
+ 0,
288
+ 0.2,
289
+ 1
290
+ ]
291
+ },
292
+ "enter": {
293
+ "$value": [
294
+ 0,
295
+ 0,
296
+ 0.2,
297
+ 1
298
+ ]
299
+ },
300
+ "exit": {
301
+ "$value": [
302
+ 0.4,
303
+ 0,
304
+ 1,
305
+ 1
306
+ ]
307
+ }
308
+ }
309
+ }
310
+ }
@@ -0,0 +1,275 @@
1
+ {
2
+ "$description": "Sketch, 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
+ "sketch": {
4
+ "palette": {
5
+ "$type": "color",
6
+ "paper": {
7
+ "$value": "#fbf7ee"
8
+ },
9
+ "paper-deep": {
10
+ "$value": "#f2ebdc"
11
+ },
12
+ "paper-bright": {
13
+ "$value": "#fffdf7"
14
+ },
15
+ "ink": {
16
+ "$value": "#2b2a26"
17
+ },
18
+ "ink-soft": {
19
+ "$value": "#5c584f"
20
+ },
21
+ "pencil": {
22
+ "$value": "#a8a39a"
23
+ },
24
+ "pencil-dark": {
25
+ "$value": "#6b675f"
26
+ },
27
+ "pen-blue": {
28
+ "$value": "#1f5fa8"
29
+ },
30
+ "pen-blue-deep": {
31
+ "$value": "#1a4a80"
32
+ },
33
+ "pen-blue-wash": {
34
+ "$value": "#e4eef9"
35
+ },
36
+ "highlighter": {
37
+ "$value": "#fbe8a6"
38
+ },
39
+ "highlighter-deep": {
40
+ "$value": "#5a4300"
41
+ },
42
+ "red-pen": {
43
+ "$value": "#b3261e"
44
+ },
45
+ "red-pen-deep": {
46
+ "$value": "#8c1d18"
47
+ },
48
+ "red-wash": {
49
+ "$value": "#fae4e1"
50
+ },
51
+ "green-pen": {
52
+ "$value": "#2e7d32"
53
+ },
54
+ "green-pen-deep": {
55
+ "$value": "#1e5e2a"
56
+ },
57
+ "green-wash": {
58
+ "$value": "#e3f1e1"
59
+ },
60
+ "orange-pen": {
61
+ "$value": "#b26a00"
62
+ },
63
+ "orange-pen-deep": {
64
+ "$value": "#7a4a00"
65
+ },
66
+ "orange-wash": {
67
+ "$value": "#fdf0d5"
68
+ },
69
+ "purple-pen": {
70
+ "$value": "#7c3aed"
71
+ },
72
+ "brown-pen": {
73
+ "$value": "#b45309"
74
+ },
75
+ "teal-pen": {
76
+ "$value": "#0e7490"
77
+ },
78
+ "rust-pen": {
79
+ "$value": "#c2410c"
80
+ },
81
+ "white": {
82
+ "$value": "#ffffff"
83
+ }
84
+ },
85
+ "sys": {
86
+ "$type": "color",
87
+ "surface-default": {
88
+ "$value": "{sketch.palette.paper}",
89
+ "$description": "Main page background"
90
+ },
91
+ "surface-subtle": {
92
+ "$value": "{sketch.palette.paper-deep}",
93
+ "$description": "Grouping background: table headers, wells"
94
+ },
95
+ "surface-raised": {
96
+ "$value": "{sketch.palette.paper-bright}",
97
+ "$description": "Cards and sheets"
98
+ },
99
+ "surface-overlay": {
100
+ "$value": "{sketch.palette.paper-bright}",
101
+ "$description": "Dialogs and popovers"
102
+ },
103
+ "surface-inverse": {
104
+ "$value": "{sketch.palette.ink}",
105
+ "$description": "Snackbars and tooltips"
106
+ },
107
+ "scrim": {
108
+ "$value": "rgba(43, 42, 38, 0.5)"
109
+ },
110
+ "text-default": {
111
+ "$value": "{sketch.palette.ink}"
112
+ },
113
+ "text-muted": {
114
+ "$value": "{sketch.palette.ink-soft}"
115
+ },
116
+ "text-inverse": {
117
+ "$value": "{sketch.palette.paper}"
118
+ },
119
+ "text-link": {
120
+ "$value": "{sketch.palette.pen-blue}",
121
+ "$description": "Inline links"
122
+ },
123
+ "border-default": {
124
+ "$value": "{sketch.palette.pencil}"
125
+ },
126
+ "border-strong": {
127
+ "$value": "{sketch.palette.pencil-dark}",
128
+ "$description": "Input outlines (3:1 on the page)"
129
+ },
130
+ "border-focus": {
131
+ "$value": "{sketch.palette.pen-blue}",
132
+ "$description": "Keyboard focus ring (3:1 on the page)"
133
+ },
134
+ "action-primary-background": {
135
+ "$value": "{sketch.palette.ink}"
136
+ },
137
+ "action-primary-foreground": {
138
+ "$value": "{sketch.palette.paper}"
139
+ },
140
+ "action-secondary-background": {
141
+ "$value": "{sketch.palette.paper-bright}"
142
+ },
143
+ "action-secondary-foreground": {
144
+ "$value": "{sketch.palette.ink}"
145
+ },
146
+ "action-secondary-border": {
147
+ "$value": "{sketch.palette.ink}"
148
+ },
149
+ "action-danger-background": {
150
+ "$value": "{sketch.palette.red-pen}"
151
+ },
152
+ "action-danger-foreground": {
153
+ "$value": "{sketch.palette.white}"
154
+ },
155
+ "selection-background": {
156
+ "$value": "{sketch.palette.highlighter}"
157
+ },
158
+ "selection-foreground": {
159
+ "$value": "{sketch.palette.ink}"
160
+ },
161
+ "status-info-background": {
162
+ "$value": "{sketch.palette.pen-blue-wash}"
163
+ },
164
+ "status-info-foreground": {
165
+ "$value": "{sketch.palette.pen-blue-deep}"
166
+ },
167
+ "status-info-emphasis": {
168
+ "$value": "{sketch.palette.pen-blue}"
169
+ },
170
+ "status-success-background": {
171
+ "$value": "{sketch.palette.green-wash}"
172
+ },
173
+ "status-success-foreground": {
174
+ "$value": "{sketch.palette.green-pen-deep}"
175
+ },
176
+ "status-success-emphasis": {
177
+ "$value": "{sketch.palette.green-pen}"
178
+ },
179
+ "status-warning-background": {
180
+ "$value": "{sketch.palette.orange-wash}"
181
+ },
182
+ "status-warning-foreground": {
183
+ "$value": "{sketch.palette.orange-pen-deep}"
184
+ },
185
+ "status-warning-emphasis": {
186
+ "$value": "{sketch.palette.orange-pen}"
187
+ },
188
+ "status-danger-background": {
189
+ "$value": "{sketch.palette.red-wash}"
190
+ },
191
+ "status-danger-foreground": {
192
+ "$value": "{sketch.palette.red-pen-deep}"
193
+ },
194
+ "status-danger-emphasis": {
195
+ "$value": "{sketch.palette.red-pen}"
196
+ },
197
+ "data-1": {
198
+ "$value": "{sketch.palette.pen-blue}"
199
+ },
200
+ "data-2": {
201
+ "$value": "{sketch.palette.rust-pen}"
202
+ },
203
+ "data-3": {
204
+ "$value": "{sketch.palette.green-pen}"
205
+ },
206
+ "data-4": {
207
+ "$value": "{sketch.palette.purple-pen}"
208
+ },
209
+ "data-5": {
210
+ "$value": "{sketch.palette.brown-pen}"
211
+ },
212
+ "data-6": {
213
+ "$value": "{sketch.palette.teal-pen}"
214
+ },
215
+ "data-positive": {
216
+ "$value": "{sketch.palette.green-pen}"
217
+ },
218
+ "data-negative": {
219
+ "$value": "{sketch.palette.red-pen}"
220
+ },
221
+ "data-neutral": {
222
+ "$value": "{sketch.palette.pencil-dark}"
223
+ }
224
+ },
225
+ "shadow": {
226
+ "$type": "shadow",
227
+ "raised": {
228
+ "$value": [
229
+ {
230
+ "offsetX": {
231
+ "value": 0,
232
+ "unit": "px"
233
+ },
234
+ "offsetY": {
235
+ "value": 0,
236
+ "unit": "px"
237
+ },
238
+ "blur": {
239
+ "value": 0,
240
+ "unit": "px"
241
+ },
242
+ "spread": {
243
+ "value": 0,
244
+ "unit": "px"
245
+ },
246
+ "color": "rgba(0, 0, 0, 0)"
247
+ }
248
+ ]
249
+ },
250
+ "overlay": {
251
+ "$value": [
252
+ {
253
+ "offsetX": {
254
+ "value": 0,
255
+ "unit": "px"
256
+ },
257
+ "offsetY": {
258
+ "value": 0,
259
+ "unit": "px"
260
+ },
261
+ "blur": {
262
+ "value": 0,
263
+ "unit": "px"
264
+ },
265
+ "spread": {
266
+ "value": 0,
267
+ "unit": "px"
268
+ },
269
+ "color": "rgba(0, 0, 0, 0)"
270
+ }
271
+ ]
272
+ }
273
+ }
274
+ }
275
+ }