@directus/themes 0.2.0 → 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.
package/dist/schema.json DELETED
@@ -1,605 +0,0 @@
1
- {
2
- "type": "object",
3
- "properties": {
4
- "name": {
5
- "type": "string"
6
- },
7
- "appearance": {
8
- "anyOf": [
9
- {
10
- "const": "light",
11
- "type": "string"
12
- },
13
- {
14
- "const": "dark",
15
- "type": "string"
16
- }
17
- ]
18
- },
19
- "rules": {
20
- "type": "object",
21
- "properties": {
22
- "foreground": {
23
- "$ref": "Color"
24
- },
25
- "foregroundSubdued": {
26
- "$ref": "Color"
27
- },
28
- "foregroundAccent": {
29
- "$ref": "Color"
30
- },
31
- "background": {
32
- "$ref": "Color"
33
- },
34
- "primary": {
35
- "$ref": "Color"
36
- },
37
- "primaryBackground": {
38
- "$ref": "Color"
39
- },
40
- "primarySubdued": {
41
- "$ref": "Color"
42
- },
43
- "primaryAccent": {
44
- "$ref": "Color"
45
- },
46
- "secondary": {
47
- "$ref": "Color"
48
- },
49
- "secondaryBackground": {
50
- "$ref": "Color"
51
- },
52
- "secondarySubdued": {
53
- "$ref": "Color"
54
- },
55
- "secondaryAccent": {
56
- "$ref": "Color"
57
- },
58
- "success": {
59
- "$ref": "Color"
60
- },
61
- "successBackground": {
62
- "$ref": "Color"
63
- },
64
- "successSubdued": {
65
- "$ref": "Color"
66
- },
67
- "successAccent": {
68
- "$ref": "Color"
69
- },
70
- "warning": {
71
- "$ref": "Color"
72
- },
73
- "warningBackground": {
74
- "$ref": "Color"
75
- },
76
- "warningSubdued": {
77
- "$ref": "Color"
78
- },
79
- "warningAccent": {
80
- "$ref": "Color"
81
- },
82
- "danger": {
83
- "$ref": "Color"
84
- },
85
- "dangerBackground": {
86
- "$ref": "Color"
87
- },
88
- "dangerSubdued": {
89
- "$ref": "Color"
90
- },
91
- "dangerAccent": {
92
- "$ref": "Color"
93
- },
94
- "fontFamilyDisplay": {
95
- "$ref": "FamilyName"
96
- },
97
- "fontFamilySansSerif": {
98
- "$ref": "FamilyName"
99
- },
100
- "fontFamilySerif": {
101
- "$ref": "FamilyName"
102
- },
103
- "fontFamilyMonospace": {
104
- "$ref": "FamilyName"
105
- },
106
- "borderRadius": {
107
- "anyOf": [
108
- {
109
- "$ref": "Length"
110
- },
111
- {
112
- "$ref": "Percentage"
113
- }
114
- ]
115
- },
116
- "borderWidth": {
117
- "$ref": "LineWidth"
118
- },
119
- "navigation": {
120
- "type": "object",
121
- "properties": {
122
- "background": {
123
- "$ref": "Color"
124
- },
125
- "borderWidth": {
126
- "$ref": "LineWidth"
127
- },
128
- "borderColor": {
129
- "$ref": "Color"
130
- },
131
- "project": {
132
- "type": "object",
133
- "properties": {
134
- "background": {
135
- "$ref": "Color"
136
- },
137
- "foreground": {
138
- "$ref": "Color"
139
- },
140
- "fontFamily": {
141
- "$ref": "FamilyName"
142
- },
143
- "borderWidth": {
144
- "$ref": "LineWidth"
145
- },
146
- "borderColor": {
147
- "$ref": "Color"
148
- }
149
- },
150
- "required": [
151
- "background",
152
- "foreground",
153
- "fontFamily",
154
- "borderWidth",
155
- "borderColor"
156
- ]
157
- },
158
- "modules": {
159
- "type": "object",
160
- "properties": {
161
- "background": {
162
- "$ref": "Color"
163
- },
164
- "borderWidth": {
165
- "$ref": "LineWidth"
166
- },
167
- "borderColor": {
168
- "$ref": "Color"
169
- },
170
- "button": {
171
- "type": "object",
172
- "properties": {
173
- "foreground": {
174
- "$ref": "Color"
175
- },
176
- "foregroundHover": {
177
- "$ref": "Color"
178
- },
179
- "foregroundActive": {
180
- "$ref": "Color"
181
- },
182
- "background": {
183
- "$ref": "Color"
184
- },
185
- "backgroundHover": {
186
- "$ref": "Color"
187
- },
188
- "backgroundActive": {
189
- "$ref": "Color"
190
- }
191
- },
192
- "required": [
193
- "foreground",
194
- "foregroundHover",
195
- "foregroundActive",
196
- "background",
197
- "backgroundHover",
198
- "backgroundActive"
199
- ]
200
- }
201
- },
202
- "required": [
203
- "background",
204
- "borderWidth",
205
- "borderColor",
206
- "button"
207
- ]
208
- },
209
- "list": {
210
- "type": "object",
211
- "properties": {
212
- "icon": {
213
- "type": "object",
214
- "properties": {
215
- "foreground": {
216
- "$ref": "Color"
217
- },
218
- "foregroundHover": {
219
- "$ref": "Color"
220
- },
221
- "foregroundActive": {
222
- "$ref": "Color"
223
- }
224
- },
225
- "required": [
226
- "foreground",
227
- "foregroundHover",
228
- "foregroundActive"
229
- ]
230
- },
231
- "foreground": {
232
- "$ref": "Color"
233
- },
234
- "foregroundHover": {
235
- "$ref": "Color"
236
- },
237
- "foregroundActive": {
238
- "$ref": "Color"
239
- },
240
- "background": {
241
- "$ref": "Color"
242
- },
243
- "backgroundHover": {
244
- "$ref": "Color"
245
- },
246
- "backgroundActive": {
247
- "$ref": "Color"
248
- },
249
- "fontFamily": {
250
- "$ref": "FamilyName"
251
- },
252
- "divider": {
253
- "type": "object",
254
- "properties": {
255
- "borderColor": {
256
- "$ref": "Color"
257
- },
258
- "borderWidth": {
259
- "$ref": "LineWidth"
260
- }
261
- },
262
- "required": [
263
- "borderColor",
264
- "borderWidth"
265
- ]
266
- }
267
- },
268
- "required": [
269
- "icon",
270
- "foreground",
271
- "foregroundHover",
272
- "foregroundActive",
273
- "background",
274
- "backgroundHover",
275
- "backgroundActive",
276
- "fontFamily",
277
- "divider"
278
- ]
279
- }
280
- },
281
- "required": [
282
- "background",
283
- "borderWidth",
284
- "borderColor",
285
- "project",
286
- "modules",
287
- "list"
288
- ]
289
- },
290
- "header": {
291
- "type": "object",
292
- "properties": {
293
- "background": {
294
- "$ref": "Color"
295
- },
296
- "borderWidth": {
297
- "$ref": "LineWidth"
298
- },
299
- "borderColor": {
300
- "$ref": "Color"
301
- },
302
- "boxShadow": {
303
- "$ref": "BoxShadow"
304
- },
305
- "headline": {
306
- "type": "object",
307
- "properties": {
308
- "foreground": {
309
- "$ref": "Color"
310
- },
311
- "fontFamily": {
312
- "$ref": "FamilyName"
313
- }
314
- },
315
- "required": [
316
- "foreground",
317
- "fontFamily"
318
- ]
319
- },
320
- "title": {
321
- "type": "object",
322
- "properties": {
323
- "foreground": {
324
- "$ref": "Color"
325
- },
326
- "fontFamily": {
327
- "$ref": "FamilyName"
328
- }
329
- },
330
- "required": [
331
- "foreground",
332
- "fontFamily"
333
- ]
334
- }
335
- },
336
- "required": [
337
- "background",
338
- "borderWidth",
339
- "borderColor",
340
- "boxShadow",
341
- "headline",
342
- "title"
343
- ]
344
- },
345
- "form": {
346
- "type": "object",
347
- "properties": {
348
- "field": {
349
- "type": "object",
350
- "properties": {
351
- "label": {
352
- "type": "object",
353
- "properties": {
354
- "foreground": {
355
- "$ref": "Color"
356
- },
357
- "fontFamily": {
358
- "$ref": "FamilyName"
359
- }
360
- },
361
- "required": [
362
- "foreground",
363
- "fontFamily"
364
- ]
365
- },
366
- "input": {
367
- "type": "object",
368
- "properties": {
369
- "background": {
370
- "$ref": "Color"
371
- },
372
- "foreground": {
373
- "$ref": "Color"
374
- },
375
- "foregroundSubdued": {
376
- "$ref": "Color"
377
- },
378
- "borderColor": {
379
- "$ref": "Color"
380
- },
381
- "borderColorHover": {
382
- "$ref": "Color"
383
- },
384
- "borderColorFocus": {
385
- "$ref": "Color"
386
- },
387
- "boxShadow": {
388
- "$ref": "BoxShadow"
389
- },
390
- "boxShadowHover": {
391
- "$ref": "BoxShadow"
392
- },
393
- "boxShadowFocus": {
394
- "$ref": "BoxShadow"
395
- }
396
- },
397
- "required": [
398
- "background",
399
- "foreground",
400
- "foregroundSubdued",
401
- "borderColor",
402
- "borderColorHover",
403
- "borderColorFocus",
404
- "boxShadow",
405
- "boxShadowHover",
406
- "boxShadowFocus"
407
- ]
408
- }
409
- },
410
- "required": [
411
- "label",
412
- "input"
413
- ]
414
- }
415
- },
416
- "required": [
417
- "field"
418
- ]
419
- },
420
- "sidebar": {
421
- "type": "object",
422
- "properties": {
423
- "background": {
424
- "$ref": "Color"
425
- },
426
- "foreground": {
427
- "$ref": "Color"
428
- },
429
- "fontFamily": {
430
- "$ref": "FamilyName"
431
- },
432
- "borderWidth": {
433
- "$ref": "LineWidth"
434
- },
435
- "borderColor": {
436
- "$ref": "Color"
437
- },
438
- "section": {
439
- "type": "object",
440
- "properties": {
441
- "toggle": {
442
- "type": "object",
443
- "properties": {
444
- "icon": {
445
- "type": "object",
446
- "properties": {
447
- "foreground": {
448
- "$ref": "Color"
449
- },
450
- "foregroundHover": {
451
- "$ref": "Color"
452
- },
453
- "foregroundActive": {
454
- "$ref": "Color"
455
- }
456
- },
457
- "required": [
458
- "foreground",
459
- "foregroundHover",
460
- "foregroundActive"
461
- ]
462
- },
463
- "foreground": {
464
- "$ref": "Color"
465
- },
466
- "foregroundHover": {
467
- "$ref": "Color"
468
- },
469
- "foregroundActive": {
470
- "$ref": "Color"
471
- },
472
- "background": {
473
- "$ref": "Color"
474
- },
475
- "backgroundHover": {
476
- "$ref": "Color"
477
- },
478
- "backgroundActive": {
479
- "$ref": "Color"
480
- },
481
- "fontFamily": {
482
- "$ref": "FamilyName"
483
- },
484
- "borderWidth": {
485
- "$ref": "LineWidth"
486
- },
487
- "borderColor": {
488
- "$ref": "Color"
489
- }
490
- },
491
- "required": [
492
- "icon",
493
- "foreground",
494
- "foregroundHover",
495
- "foregroundActive",
496
- "background",
497
- "backgroundHover",
498
- "backgroundActive",
499
- "fontFamily",
500
- "borderWidth",
501
- "borderColor"
502
- ]
503
- }
504
- },
505
- "required": [
506
- "toggle"
507
- ]
508
- }
509
- },
510
- "required": [
511
- "background",
512
- "foreground",
513
- "fontFamily",
514
- "borderWidth",
515
- "borderColor",
516
- "section"
517
- ]
518
- }
519
- },
520
- "required": [
521
- "foreground",
522
- "foregroundSubdued",
523
- "foregroundAccent",
524
- "background",
525
- "primary",
526
- "primaryBackground",
527
- "primarySubdued",
528
- "primaryAccent",
529
- "secondary",
530
- "secondaryBackground",
531
- "secondarySubdued",
532
- "secondaryAccent",
533
- "success",
534
- "successBackground",
535
- "successSubdued",
536
- "successAccent",
537
- "warning",
538
- "warningBackground",
539
- "warningSubdued",
540
- "warningAccent",
541
- "danger",
542
- "dangerBackground",
543
- "dangerSubdued",
544
- "dangerAccent",
545
- "fontFamilyDisplay",
546
- "fontFamilySansSerif",
547
- "fontFamilySerif",
548
- "fontFamilyMonospace",
549
- "borderRadius",
550
- "borderWidth",
551
- "navigation",
552
- "header",
553
- "form",
554
- "sidebar"
555
- ]
556
- }
557
- },
558
- "required": [
559
- "name",
560
- "appearance",
561
- "rules"
562
- ],
563
- "$defs": {
564
- "Color": {
565
- "$id": "Color",
566
- "type": "string"
567
- },
568
- "FamilyName": {
569
- "$id": "FamilyName",
570
- "type": "string"
571
- },
572
- "Length": {
573
- "$id": "Length",
574
- "type": "string"
575
- },
576
- "Percentage": {
577
- "$id": "Percentage",
578
- "type": "string"
579
- },
580
- "LineWidth": {
581
- "$id": "LineWidth",
582
- "anyOf": [
583
- {
584
- "type": "string"
585
- },
586
- {
587
- "const": "thin",
588
- "type": "string"
589
- },
590
- {
591
- "const": "medium",
592
- "type": "string"
593
- },
594
- {
595
- "const": "thick",
596
- "type": "string"
597
- }
598
- ]
599
- },
600
- "BoxShadow": {
601
- "$id": "BoxShadow",
602
- "type": "string"
603
- }
604
- }
605
- }