@polyxd/ds-pastel 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": "Pastel primitives shared by both modes: type, spacing, radii, borders, motion. Original template by Polyxd; every value here is yours to change.",
3
+ "pastel": {
4
+ "font": {
5
+ "$type": "fontFamily",
6
+ "display": {
7
+ "$value": "Nunito, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
8
+ "$type": "fontFamily"
9
+ },
10
+ "body": {
11
+ "$value": "Nunito, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif",
12
+ "$type": "fontFamily"
13
+ },
14
+ "label": {
15
+ "$value": "Nunito, 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": 30,
28
+ "unit": "px"
29
+ }
30
+ },
31
+ "title-section": {
32
+ "$value": {
33
+ "value": 22,
34
+ "unit": "px"
35
+ }
36
+ },
37
+ "title-item": {
38
+ "$value": {
39
+ "value": 17,
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": 15,
58
+ "unit": "px"
59
+ }
60
+ },
61
+ "label-small": {
62
+ "$value": {
63
+ "value": 13,
64
+ "unit": "px"
65
+ }
66
+ },
67
+ "numeric-display": {
68
+ "$value": {
69
+ "value": 32,
70
+ "unit": "px"
71
+ }
72
+ }
73
+ },
74
+ "weight": {
75
+ "$type": "number",
76
+ "400": {
77
+ "$value": 400
78
+ },
79
+ "700": {
80
+ "$value": 700
81
+ },
82
+ "800": {
83
+ "$value": 800
84
+ }
85
+ },
86
+ "space": {
87
+ "$type": "dimension",
88
+ "inset": {
89
+ "compact": {
90
+ "$value": {
91
+ "value": 10,
92
+ "unit": "px"
93
+ }
94
+ },
95
+ "default": {
96
+ "$value": {
97
+ "value": 16,
98
+ "unit": "px"
99
+ }
100
+ },
101
+ "comfortable": {
102
+ "$value": {
103
+ "value": 24,
104
+ "unit": "px"
105
+ }
106
+ }
107
+ },
108
+ "stack": {
109
+ "tight": {
110
+ "$value": {
111
+ "value": 6,
112
+ "unit": "px"
113
+ }
114
+ },
115
+ "default": {
116
+ "$value": {
117
+ "value": 10,
118
+ "unit": "px"
119
+ }
120
+ },
121
+ "loose": {
122
+ "$value": {
123
+ "value": 16,
124
+ "unit": "px"
125
+ }
126
+ },
127
+ "section": {
128
+ "$value": {
129
+ "value": 32,
130
+ "unit": "px"
131
+ }
132
+ }
133
+ },
134
+ "inline": {
135
+ "tight": {
136
+ "$value": {
137
+ "value": 6,
138
+ "unit": "px"
139
+ }
140
+ },
141
+ "default": {
142
+ "$value": {
143
+ "value": 10,
144
+ "unit": "px"
145
+ }
146
+ },
147
+ "loose": {
148
+ "$value": {
149
+ "value": 16,
150
+ "unit": "px"
151
+ }
152
+ }
153
+ }
154
+ },
155
+ "size": {
156
+ "$type": "dimension",
157
+ "target": {
158
+ "$value": {
159
+ "value": 44,
160
+ "unit": "px"
161
+ }
162
+ },
163
+ "icon-small": {
164
+ "$value": {
165
+ "value": 16,
166
+ "unit": "px"
167
+ }
168
+ },
169
+ "icon-default": {
170
+ "$value": {
171
+ "value": 20,
172
+ "unit": "px"
173
+ }
174
+ }
175
+ },
176
+ "radius": {
177
+ "$type": "dimension",
178
+ "small": {
179
+ "$value": {
180
+ "value": 8,
181
+ "unit": "px"
182
+ }
183
+ },
184
+ "control": {
185
+ "$value": {
186
+ "value": 999,
187
+ "unit": "px"
188
+ }
189
+ },
190
+ "default": {
191
+ "$value": {
192
+ "value": 16,
193
+ "unit": "px"
194
+ }
195
+ },
196
+ "large": {
197
+ "$value": {
198
+ "value": 24,
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": 2,
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.06
247
+ },
248
+ "pressed": {
249
+ "$value": 0.12
250
+ },
251
+ "focus": {
252
+ "$value": 0.12
253
+ },
254
+ "disabled": {
255
+ "$value": 0.4
256
+ }
257
+ },
258
+ "duration": {
259
+ "$type": "duration",
260
+ "instant": {
261
+ "$value": {
262
+ "value": 80,
263
+ "unit": "ms"
264
+ }
265
+ },
266
+ "short": {
267
+ "$value": {
268
+ "value": 160,
269
+ "unit": "ms"
270
+ }
271
+ },
272
+ "medium": {
273
+ "$value": {
274
+ "value": 240,
275
+ "unit": "ms"
276
+ }
277
+ },
278
+ "long": {
279
+ "$value": {
280
+ "value": 360,
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,278 @@
1
+ {
2
+ "$description": "Pastel, 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
+ "pastel": {
4
+ "palette": {
5
+ "$type": "color",
6
+ "cream": {
7
+ "$value": "#fffdfa"
8
+ },
9
+ "lavender-wash": {
10
+ "$value": "#f3eefb"
11
+ },
12
+ "white": {
13
+ "$value": "#ffffff"
14
+ },
15
+ "plum": {
16
+ "$value": "#3d3552"
17
+ },
18
+ "plum-text": {
19
+ "$value": "#3a3346"
20
+ },
21
+ "plum-soft": {
22
+ "$value": "#66607a"
23
+ },
24
+ "lavender-line": {
25
+ "$value": "#e6dff2"
26
+ },
27
+ "lavender-strong": {
28
+ "$value": "#8b81a3"
29
+ },
30
+ "violet": {
31
+ "$value": "#6a4fbf"
32
+ },
33
+ "violet-deep": {
34
+ "$value": "#3f2f80"
35
+ },
36
+ "mint": {
37
+ "$value": "#e2f5ea"
38
+ },
39
+ "mint-deep": {
40
+ "$value": "#1f5c45"
41
+ },
42
+ "mint-line": {
43
+ "$value": "#bfe3d2"
44
+ },
45
+ "mint-emph": {
46
+ "$value": "#3f9d74"
47
+ },
48
+ "peach": {
49
+ "$value": "#fde6d8"
50
+ },
51
+ "peach-deep": {
52
+ "$value": "#7a3d1e"
53
+ },
54
+ "peach-emph": {
55
+ "$value": "#d8704f"
56
+ },
57
+ "coral": {
58
+ "$value": "#c94c3c"
59
+ },
60
+ "coral-deep": {
61
+ "$value": "#8a2f2a"
62
+ },
63
+ "coral-wash": {
64
+ "$value": "#fde3e1"
65
+ },
66
+ "sky-wash": {
67
+ "$value": "#e3eefb"
68
+ },
69
+ "sky-deep": {
70
+ "$value": "#22456f"
71
+ },
72
+ "sky": {
73
+ "$value": "#4a7fc9"
74
+ },
75
+ "butter-wash": {
76
+ "$value": "#fff0d6"
77
+ },
78
+ "butter-deep": {
79
+ "$value": "#6b4500"
80
+ },
81
+ "butter": {
82
+ "$value": "#b8761f"
83
+ },
84
+ "rose": {
85
+ "$value": "#c95a9c"
86
+ }
87
+ },
88
+ "sys": {
89
+ "$type": "color",
90
+ "surface-default": {
91
+ "$value": "{pastel.palette.cream}",
92
+ "$description": "Main page background"
93
+ },
94
+ "surface-subtle": {
95
+ "$value": "{pastel.palette.lavender-wash}",
96
+ "$description": "Grouping background: table headers, wells"
97
+ },
98
+ "surface-raised": {
99
+ "$value": "{pastel.palette.white}",
100
+ "$description": "Cards and sheets"
101
+ },
102
+ "surface-overlay": {
103
+ "$value": "{pastel.palette.white}",
104
+ "$description": "Dialogs and popovers"
105
+ },
106
+ "surface-inverse": {
107
+ "$value": "{pastel.palette.plum}",
108
+ "$description": "Snackbars and tooltips"
109
+ },
110
+ "scrim": {
111
+ "$value": "rgba(61, 53, 82, 0.4)"
112
+ },
113
+ "text-default": {
114
+ "$value": "{pastel.palette.plum-text}"
115
+ },
116
+ "text-muted": {
117
+ "$value": "{pastel.palette.plum-soft}"
118
+ },
119
+ "text-inverse": {
120
+ "$value": "{pastel.palette.cream}"
121
+ },
122
+ "text-link": {
123
+ "$value": "{pastel.palette.violet}",
124
+ "$description": "Inline links"
125
+ },
126
+ "border-default": {
127
+ "$value": "{pastel.palette.lavender-line}"
128
+ },
129
+ "border-strong": {
130
+ "$value": "{pastel.palette.lavender-strong}",
131
+ "$description": "Input outlines (3:1 on the page)"
132
+ },
133
+ "border-focus": {
134
+ "$value": "{pastel.palette.violet}",
135
+ "$description": "Keyboard focus ring (3:1 on the page)"
136
+ },
137
+ "action-primary-background": {
138
+ "$value": "{pastel.palette.violet}"
139
+ },
140
+ "action-primary-foreground": {
141
+ "$value": "{pastel.palette.white}"
142
+ },
143
+ "action-secondary-background": {
144
+ "$value": "{pastel.palette.mint}"
145
+ },
146
+ "action-secondary-foreground": {
147
+ "$value": "{pastel.palette.mint-deep}"
148
+ },
149
+ "action-secondary-border": {
150
+ "$value": "{pastel.palette.mint-line}"
151
+ },
152
+ "action-danger-background": {
153
+ "$value": "{pastel.palette.coral}"
154
+ },
155
+ "action-danger-foreground": {
156
+ "$value": "{pastel.palette.white}"
157
+ },
158
+ "selection-background": {
159
+ "$value": "{pastel.palette.peach}"
160
+ },
161
+ "selection-foreground": {
162
+ "$value": "{pastel.palette.peach-deep}"
163
+ },
164
+ "status-info-background": {
165
+ "$value": "{pastel.palette.sky-wash}"
166
+ },
167
+ "status-info-foreground": {
168
+ "$value": "{pastel.palette.sky-deep}"
169
+ },
170
+ "status-info-emphasis": {
171
+ "$value": "{pastel.palette.sky}"
172
+ },
173
+ "status-success-background": {
174
+ "$value": "{pastel.palette.mint}"
175
+ },
176
+ "status-success-foreground": {
177
+ "$value": "{pastel.palette.mint-deep}"
178
+ },
179
+ "status-success-emphasis": {
180
+ "$value": "{pastel.palette.mint-emph}"
181
+ },
182
+ "status-warning-background": {
183
+ "$value": "{pastel.palette.butter-wash}"
184
+ },
185
+ "status-warning-foreground": {
186
+ "$value": "{pastel.palette.butter-deep}"
187
+ },
188
+ "status-warning-emphasis": {
189
+ "$value": "{pastel.palette.butter}"
190
+ },
191
+ "status-danger-background": {
192
+ "$value": "{pastel.palette.coral-wash}"
193
+ },
194
+ "status-danger-foreground": {
195
+ "$value": "{pastel.palette.coral-deep}"
196
+ },
197
+ "status-danger-emphasis": {
198
+ "$value": "{pastel.palette.coral}"
199
+ },
200
+ "data-1": {
201
+ "$value": "{pastel.palette.violet}"
202
+ },
203
+ "data-2": {
204
+ "$value": "{pastel.palette.mint-emph}"
205
+ },
206
+ "data-3": {
207
+ "$value": "{pastel.palette.peach-emph}"
208
+ },
209
+ "data-4": {
210
+ "$value": "{pastel.palette.sky}"
211
+ },
212
+ "data-5": {
213
+ "$value": "{pastel.palette.butter}"
214
+ },
215
+ "data-6": {
216
+ "$value": "{pastel.palette.rose}"
217
+ },
218
+ "data-positive": {
219
+ "$value": "{pastel.palette.mint-emph}"
220
+ },
221
+ "data-negative": {
222
+ "$value": "{pastel.palette.coral}"
223
+ },
224
+ "data-neutral": {
225
+ "$value": "{pastel.palette.lavender-strong}"
226
+ }
227
+ },
228
+ "shadow": {
229
+ "$type": "shadow",
230
+ "raised": {
231
+ "$value": [
232
+ {
233
+ "offsetX": {
234
+ "value": 0,
235
+ "unit": "px"
236
+ },
237
+ "offsetY": {
238
+ "value": 4,
239
+ "unit": "px"
240
+ },
241
+ "blur": {
242
+ "value": 16,
243
+ "unit": "px"
244
+ },
245
+ "spread": {
246
+ "value": 0,
247
+ "unit": "px"
248
+ },
249
+ "color": "rgba(61, 53, 82, 0.08)"
250
+ }
251
+ ]
252
+ },
253
+ "overlay": {
254
+ "$value": [
255
+ {
256
+ "offsetX": {
257
+ "value": 0,
258
+ "unit": "px"
259
+ },
260
+ "offsetY": {
261
+ "value": 16,
262
+ "unit": "px"
263
+ },
264
+ "blur": {
265
+ "value": 40,
266
+ "unit": "px"
267
+ },
268
+ "spread": {
269
+ "value": 0,
270
+ "unit": "px"
271
+ },
272
+ "color": "rgba(61, 53, 82, 0.18)"
273
+ }
274
+ ]
275
+ }
276
+ }
277
+ }
278
+ }