@pearpages/pulp-tokens 0.0.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/LICENSE +21 -0
- package/README.md +60 -0
- package/dist/tokens.css +914 -0
- package/dist/tokens.json +10638 -0
- package/package.json +33 -0
- package/tokens/component/accordion.json +83 -0
- package/tokens/component/alert.json +93 -0
- package/tokens/component/badge.json +153 -0
- package/tokens/component/button.json +118 -0
- package/tokens/component/calendar.json +48 -0
- package/tokens/component/card.json +28 -0
- package/tokens/component/checkbox.json +77 -0
- package/tokens/component/combobox.json +113 -0
- package/tokens/component/date-picker.json +145 -0
- package/tokens/component/dialog.json +36 -0
- package/tokens/component/field.json +23 -0
- package/tokens/component/heading.json +44 -0
- package/tokens/component/icon-button.json +17 -0
- package/tokens/component/icon.json +18 -0
- package/tokens/component/inline.json +32 -0
- package/tokens/component/listbox.json +37 -0
- package/tokens/component/menu.json +101 -0
- package/tokens/component/pagination.json +22 -0
- package/tokens/component/picker.json +113 -0
- package/tokens/component/popover.json +59 -0
- package/tokens/component/progress.json +60 -0
- package/tokens/component/radio.json +73 -0
- package/tokens/component/select.json +106 -0
- package/tokens/component/skeleton.json +41 -0
- package/tokens/component/slider.json +39 -0
- package/tokens/component/spinner.json +33 -0
- package/tokens/component/stack.json +32 -0
- package/tokens/component/switch.json +77 -0
- package/tokens/component/table.json +57 -0
- package/tokens/component/tabs.json +31 -0
- package/tokens/component/text-field.json +90 -0
- package/tokens/component/text.json +31 -0
- package/tokens/component/textarea.json +90 -0
- package/tokens/component/toast.json +35 -0
- package/tokens/component/tooltip.json +49 -0
- package/tokens/component/visually-hidden.json +9 -0
- package/tokens/primitives/bitepals.json +285 -0
- package/tokens/primitives/pulp.json +216 -0
- package/tokens/semantic/bitepals.json +727 -0
- package/tokens/semantic/pulp.json +728 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Picker component tokens: the trigger button and its popover. Options are styled by --listbox-*.",
|
|
3
|
+
"picker": {
|
|
4
|
+
"radius": {
|
|
5
|
+
"$type": "dimension",
|
|
6
|
+
"$value": "{radius.control}"
|
|
7
|
+
},
|
|
8
|
+
"padding-inline": {
|
|
9
|
+
"$type": "dimension",
|
|
10
|
+
"$value": "{space.3}"
|
|
11
|
+
},
|
|
12
|
+
"gap": {
|
|
13
|
+
"$type": "dimension",
|
|
14
|
+
"$value": "{space.2}",
|
|
15
|
+
"$description": "Between the control and its popover; carried as padding on the popover so no offset lives in code."
|
|
16
|
+
},
|
|
17
|
+
"height": {
|
|
18
|
+
"$type": "dimension",
|
|
19
|
+
"sm": {
|
|
20
|
+
"$value": "{size.control.sm}"
|
|
21
|
+
},
|
|
22
|
+
"md": {
|
|
23
|
+
"$value": "{size.control.md}"
|
|
24
|
+
},
|
|
25
|
+
"lg": {
|
|
26
|
+
"$value": "{size.control.lg}"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"font": {
|
|
30
|
+
"family": {
|
|
31
|
+
"$type": "fontFamily",
|
|
32
|
+
"$value": "{font.family.body}"
|
|
33
|
+
},
|
|
34
|
+
"size": {
|
|
35
|
+
"$type": "dimension",
|
|
36
|
+
"sm": {
|
|
37
|
+
"$value": "{font.size.sm}"
|
|
38
|
+
},
|
|
39
|
+
"md": {
|
|
40
|
+
"$value": "{font.size.md}"
|
|
41
|
+
},
|
|
42
|
+
"lg": {
|
|
43
|
+
"$value": "{font.size.lg}"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"bg": {
|
|
48
|
+
"$type": "color",
|
|
49
|
+
"$value": "{color.surface.raised}"
|
|
50
|
+
},
|
|
51
|
+
"fg": {
|
|
52
|
+
"$type": "color",
|
|
53
|
+
"$value": "{color.text.default}"
|
|
54
|
+
},
|
|
55
|
+
"placeholder": {
|
|
56
|
+
"$type": "color",
|
|
57
|
+
"$value": "{color.text.faint}"
|
|
58
|
+
},
|
|
59
|
+
"icon": {
|
|
60
|
+
"$type": "color",
|
|
61
|
+
"$value": "{color.text.muted}"
|
|
62
|
+
},
|
|
63
|
+
"icon-size": {
|
|
64
|
+
"$type": "dimension",
|
|
65
|
+
"$value": "{space.6}"
|
|
66
|
+
},
|
|
67
|
+
"border": {
|
|
68
|
+
"$type": "color",
|
|
69
|
+
"default": {
|
|
70
|
+
"$value": "{color.border.default}"
|
|
71
|
+
},
|
|
72
|
+
"hover": {
|
|
73
|
+
"$value": "{color.border.strong}"
|
|
74
|
+
},
|
|
75
|
+
"focus": {
|
|
76
|
+
"$value": "{color.border.focus}"
|
|
77
|
+
},
|
|
78
|
+
"invalid": {
|
|
79
|
+
"$value": "{color.status.error}"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"popover": {
|
|
83
|
+
"shadow": {
|
|
84
|
+
"$type": "shadow",
|
|
85
|
+
"$value": "{shadow.overlay}"
|
|
86
|
+
},
|
|
87
|
+
"duration": {
|
|
88
|
+
"$type": "duration",
|
|
89
|
+
"$value": "{motion.duration.fast}"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"focus": {
|
|
93
|
+
"ring": {
|
|
94
|
+
"$type": "color",
|
|
95
|
+
"$value": "{color.border.focus}"
|
|
96
|
+
},
|
|
97
|
+
"ring-width": {
|
|
98
|
+
"$type": "dimension",
|
|
99
|
+
"$value": "{focus.ring.width}"
|
|
100
|
+
},
|
|
101
|
+
"ring-offset": {
|
|
102
|
+
"$type": "dimension",
|
|
103
|
+
"$value": "{focus.ring.offset}"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"motion": {
|
|
107
|
+
"duration": {
|
|
108
|
+
"$type": "duration",
|
|
109
|
+
"$value": "{motion.duration.fast}"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Popover component tokens.",
|
|
3
|
+
"popover": {
|
|
4
|
+
"bg": {
|
|
5
|
+
"$type": "color",
|
|
6
|
+
"$value": "{color.surface.raised}"
|
|
7
|
+
},
|
|
8
|
+
"fg": {
|
|
9
|
+
"$type": "color",
|
|
10
|
+
"$value": "{color.text.default}"
|
|
11
|
+
},
|
|
12
|
+
"border": {
|
|
13
|
+
"$type": "color",
|
|
14
|
+
"$value": "{color.border.default}"
|
|
15
|
+
},
|
|
16
|
+
"radius": {
|
|
17
|
+
"$type": "dimension",
|
|
18
|
+
"$value": "{radius.surface}"
|
|
19
|
+
},
|
|
20
|
+
"padding": {
|
|
21
|
+
"$type": "dimension",
|
|
22
|
+
"$value": "{space.4}"
|
|
23
|
+
},
|
|
24
|
+
"gap": {
|
|
25
|
+
"$type": "dimension",
|
|
26
|
+
"$value": "{space.2}"
|
|
27
|
+
},
|
|
28
|
+
"width": {
|
|
29
|
+
"$type": "dimension",
|
|
30
|
+
"$value": "{size.popover-width}"
|
|
31
|
+
},
|
|
32
|
+
"shadow": {
|
|
33
|
+
"$type": "shadow",
|
|
34
|
+
"$value": "{shadow.overlay}"
|
|
35
|
+
},
|
|
36
|
+
"layer": {
|
|
37
|
+
"$type": "number",
|
|
38
|
+
"$value": "{layer.popover}"
|
|
39
|
+
},
|
|
40
|
+
"duration": {
|
|
41
|
+
"$type": "duration",
|
|
42
|
+
"$value": "{motion.duration.fast}"
|
|
43
|
+
},
|
|
44
|
+
"focus": {
|
|
45
|
+
"ring": {
|
|
46
|
+
"$type": "color",
|
|
47
|
+
"$value": "{color.border.focus}"
|
|
48
|
+
},
|
|
49
|
+
"ring-width": {
|
|
50
|
+
"$type": "dimension",
|
|
51
|
+
"$value": "{focus.ring.width}"
|
|
52
|
+
},
|
|
53
|
+
"ring-offset": {
|
|
54
|
+
"$type": "dimension",
|
|
55
|
+
"$value": "{focus.ring.offset}"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Progress component tokens.",
|
|
3
|
+
"progress": {
|
|
4
|
+
"height": {
|
|
5
|
+
"$type": "dimension",
|
|
6
|
+
"sm": {
|
|
7
|
+
"$value": "{space.1}"
|
|
8
|
+
},
|
|
9
|
+
"md": {
|
|
10
|
+
"$value": "{space.2}"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"radius": {
|
|
14
|
+
"$type": "dimension",
|
|
15
|
+
"$value": "{radius.full}"
|
|
16
|
+
},
|
|
17
|
+
"gap": {
|
|
18
|
+
"$type": "dimension",
|
|
19
|
+
"$value": "{space.1}"
|
|
20
|
+
},
|
|
21
|
+
"track": {
|
|
22
|
+
"$type": "color",
|
|
23
|
+
"$value": "{color.surface.sunken}"
|
|
24
|
+
},
|
|
25
|
+
"label-font-size": {
|
|
26
|
+
"$type": "dimension",
|
|
27
|
+
"$value": "{font.size.sm}"
|
|
28
|
+
},
|
|
29
|
+
"label-fg": {
|
|
30
|
+
"$type": "color",
|
|
31
|
+
"$value": "{color.text.default}"
|
|
32
|
+
},
|
|
33
|
+
"value-fg": {
|
|
34
|
+
"$type": "color",
|
|
35
|
+
"$value": "{color.text.muted}"
|
|
36
|
+
},
|
|
37
|
+
"indicator": {
|
|
38
|
+
"primary": {
|
|
39
|
+
"$type": "color",
|
|
40
|
+
"$value": "{color.action.primary}"
|
|
41
|
+
},
|
|
42
|
+
"success": {
|
|
43
|
+
"$type": "color",
|
|
44
|
+
"$value": "{color.status.success}"
|
|
45
|
+
},
|
|
46
|
+
"warning": {
|
|
47
|
+
"$type": "color",
|
|
48
|
+
"$value": "{color.status.warning}"
|
|
49
|
+
},
|
|
50
|
+
"error": {
|
|
51
|
+
"$type": "color",
|
|
52
|
+
"$value": "{color.status.error}"
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"duration": {
|
|
56
|
+
"$type": "duration",
|
|
57
|
+
"$value": "{motion.duration.base}"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Radio and RadioGroup component tokens. Semantic references only.",
|
|
3
|
+
"radio": {
|
|
4
|
+
"size": {
|
|
5
|
+
"$type": "dimension",
|
|
6
|
+
"sm": {
|
|
7
|
+
"$value": "{size.toggle.sm}"
|
|
8
|
+
},
|
|
9
|
+
"md": {
|
|
10
|
+
"$value": "{size.toggle.md}"
|
|
11
|
+
},
|
|
12
|
+
"lg": {
|
|
13
|
+
"$value": "{size.toggle.lg}"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"gap": {
|
|
17
|
+
"$type": "dimension",
|
|
18
|
+
"$value": "{space.2}"
|
|
19
|
+
},
|
|
20
|
+
"group-gap": {
|
|
21
|
+
"$type": "dimension",
|
|
22
|
+
"$value": "{space.2}"
|
|
23
|
+
},
|
|
24
|
+
"radius": {
|
|
25
|
+
"$type": "dimension",
|
|
26
|
+
"$value": "{radius.full}"
|
|
27
|
+
},
|
|
28
|
+
"bg": {
|
|
29
|
+
"$type": "color",
|
|
30
|
+
"$value": "{color.surface.raised}"
|
|
31
|
+
},
|
|
32
|
+
"border": {
|
|
33
|
+
"$type": "color",
|
|
34
|
+
"$value": "{color.border.strong}"
|
|
35
|
+
},
|
|
36
|
+
"border-hover": {
|
|
37
|
+
"$type": "color",
|
|
38
|
+
"$value": "{color.action.primary}"
|
|
39
|
+
},
|
|
40
|
+
"border-checked": {
|
|
41
|
+
"$type": "color",
|
|
42
|
+
"$value": "{color.action.primary}"
|
|
43
|
+
},
|
|
44
|
+
"border-invalid": {
|
|
45
|
+
"$type": "color",
|
|
46
|
+
"$value": "{color.status.error}"
|
|
47
|
+
},
|
|
48
|
+
"dot": {
|
|
49
|
+
"$type": "color",
|
|
50
|
+
"$value": "{color.action.primary}"
|
|
51
|
+
},
|
|
52
|
+
"focus": {
|
|
53
|
+
"ring": {
|
|
54
|
+
"$type": "color",
|
|
55
|
+
"$value": "{color.border.focus}"
|
|
56
|
+
},
|
|
57
|
+
"ring-width": {
|
|
58
|
+
"$type": "dimension",
|
|
59
|
+
"$value": "{focus.ring.width}"
|
|
60
|
+
},
|
|
61
|
+
"ring-offset": {
|
|
62
|
+
"$type": "dimension",
|
|
63
|
+
"$value": "{focus.ring.offset}"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
"motion": {
|
|
67
|
+
"duration": {
|
|
68
|
+
"$type": "duration",
|
|
69
|
+
"$value": "{motion.duration.fast}"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Select (native) component tokens.",
|
|
3
|
+
"select": {
|
|
4
|
+
"radius": {
|
|
5
|
+
"$type": "dimension",
|
|
6
|
+
"$value": "{radius.control}"
|
|
7
|
+
},
|
|
8
|
+
"padding-inline": {
|
|
9
|
+
"$type": "dimension",
|
|
10
|
+
"$value": "{space.3}"
|
|
11
|
+
},
|
|
12
|
+
"chevron-inset": {
|
|
13
|
+
"$type": "dimension",
|
|
14
|
+
"$value": "{space.3}"
|
|
15
|
+
},
|
|
16
|
+
"chevron-gap": {
|
|
17
|
+
"$type": "dimension",
|
|
18
|
+
"$value": "{space.6}"
|
|
19
|
+
},
|
|
20
|
+
"height": {
|
|
21
|
+
"$type": "dimension",
|
|
22
|
+
"sm": {
|
|
23
|
+
"$value": "{size.control.sm}"
|
|
24
|
+
},
|
|
25
|
+
"md": {
|
|
26
|
+
"$value": "{size.control.md}"
|
|
27
|
+
},
|
|
28
|
+
"lg": {
|
|
29
|
+
"$value": "{size.control.lg}"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"font": {
|
|
33
|
+
"family": {
|
|
34
|
+
"$type": "fontFamily",
|
|
35
|
+
"$value": "{font.family.body}"
|
|
36
|
+
},
|
|
37
|
+
"size": {
|
|
38
|
+
"$type": "dimension",
|
|
39
|
+
"sm": {
|
|
40
|
+
"$value": "{font.size.sm}"
|
|
41
|
+
},
|
|
42
|
+
"md": {
|
|
43
|
+
"$value": "{font.size.md}"
|
|
44
|
+
},
|
|
45
|
+
"lg": {
|
|
46
|
+
"$value": "{font.size.lg}"
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"bg": {
|
|
51
|
+
"$type": "color",
|
|
52
|
+
"$value": "{color.surface.raised}"
|
|
53
|
+
},
|
|
54
|
+
"fg": {
|
|
55
|
+
"$type": "color",
|
|
56
|
+
"$value": "{color.text.default}"
|
|
57
|
+
},
|
|
58
|
+
"placeholder": {
|
|
59
|
+
"$type": "color",
|
|
60
|
+
"$value": "{color.text.faint}"
|
|
61
|
+
},
|
|
62
|
+
"chevron": {
|
|
63
|
+
"$type": "color",
|
|
64
|
+
"$value": "{color.text.muted}"
|
|
65
|
+
},
|
|
66
|
+
"chevron-width": {
|
|
67
|
+
"$type": "dimension",
|
|
68
|
+
"$value": "{focus.ring.width}"
|
|
69
|
+
},
|
|
70
|
+
"border": {
|
|
71
|
+
"$type": "color",
|
|
72
|
+
"default": {
|
|
73
|
+
"$value": "{color.border.default}"
|
|
74
|
+
},
|
|
75
|
+
"hover": {
|
|
76
|
+
"$value": "{color.border.strong}"
|
|
77
|
+
},
|
|
78
|
+
"focus": {
|
|
79
|
+
"$value": "{color.border.focus}"
|
|
80
|
+
},
|
|
81
|
+
"invalid": {
|
|
82
|
+
"$value": "{color.status.error}"
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"focus": {
|
|
86
|
+
"ring": {
|
|
87
|
+
"$type": "color",
|
|
88
|
+
"$value": "{color.border.focus}"
|
|
89
|
+
},
|
|
90
|
+
"ring-width": {
|
|
91
|
+
"$type": "dimension",
|
|
92
|
+
"$value": "{focus.ring.width}"
|
|
93
|
+
},
|
|
94
|
+
"ring-offset": {
|
|
95
|
+
"$type": "dimension",
|
|
96
|
+
"$value": "{focus.ring.offset}"
|
|
97
|
+
}
|
|
98
|
+
},
|
|
99
|
+
"motion": {
|
|
100
|
+
"duration": {
|
|
101
|
+
"$type": "duration",
|
|
102
|
+
"$value": "{motion.duration.fast}"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Skeleton component tokens.",
|
|
3
|
+
"skeleton": {
|
|
4
|
+
"base": {
|
|
5
|
+
"$type": "color",
|
|
6
|
+
"$value": "{color.surface.sunken}"
|
|
7
|
+
},
|
|
8
|
+
"highlight": {
|
|
9
|
+
"$type": "color",
|
|
10
|
+
"$value": "{color.surface.raised}"
|
|
11
|
+
},
|
|
12
|
+
"radius": {
|
|
13
|
+
"$type": "dimension",
|
|
14
|
+
"$value": "{radius.control}"
|
|
15
|
+
},
|
|
16
|
+
"text-height": {
|
|
17
|
+
"$type": "dimension",
|
|
18
|
+
"$value": "{font.size.md}"
|
|
19
|
+
},
|
|
20
|
+
"gap": {
|
|
21
|
+
"$type": "dimension",
|
|
22
|
+
"$value": "{space.2}"
|
|
23
|
+
},
|
|
24
|
+
"circle": {
|
|
25
|
+
"$type": "dimension",
|
|
26
|
+
"sm": {
|
|
27
|
+
"$value": "{size.control.sm}"
|
|
28
|
+
},
|
|
29
|
+
"md": {
|
|
30
|
+
"$value": "{size.control.md}"
|
|
31
|
+
},
|
|
32
|
+
"lg": {
|
|
33
|
+
"$value": "{size.control.lg}"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"duration": {
|
|
37
|
+
"$type": "duration",
|
|
38
|
+
"$value": "{motion.duration.base}"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Slider component tokens: track, fill and thumb. Label, description and error read --field-*.",
|
|
3
|
+
"slider": {
|
|
4
|
+
"gap": { "$type": "dimension", "$value": "{space.2}" },
|
|
5
|
+
"font": {
|
|
6
|
+
"family": { "$type": "fontFamily", "$value": "{font.family.body}" }
|
|
7
|
+
},
|
|
8
|
+
"output": {
|
|
9
|
+
"fg": { "$type": "color", "$value": "{color.text.muted}" },
|
|
10
|
+
"font-size": { "$type": "dimension", "$value": "{font.size.sm}" },
|
|
11
|
+
"font-family": { "$type": "fontFamily", "$value": "{font.family.mono}" }
|
|
12
|
+
},
|
|
13
|
+
"track": {
|
|
14
|
+
"size": { "$type": "dimension", "$value": "{space.1}" },
|
|
15
|
+
"length": { "$type": "dimension", "$value": "{size.listbox-height}", "$description": "The run of a vertical slider; horizontal ones fill their container." },
|
|
16
|
+
"bg": { "$type": "color", "$value": "{color.surface.sunken}" },
|
|
17
|
+
"radius": { "$type": "dimension", "$value": "{radius.full}" },
|
|
18
|
+
"hit-size": { "$type": "dimension", "$value": "{size.toggle.lg}", "$description": "The pointer target around the thin track." }
|
|
19
|
+
},
|
|
20
|
+
"fill": { "$type": "color", "$value": "{color.action.primary}" },
|
|
21
|
+
"thumb": {
|
|
22
|
+
"size": { "$type": "dimension", "$value": "{size.toggle.md}" },
|
|
23
|
+
"bg": { "$type": "color", "$value": "{color.surface.raised}" },
|
|
24
|
+
"border": { "$type": "color", "$value": "{color.action.primary}" },
|
|
25
|
+
"border-hover": { "$type": "color", "$value": "{color.action.primary-hover}" },
|
|
26
|
+
"border-width": { "$type": "dimension", "$value": "{focus.ring.width}" },
|
|
27
|
+
"radius": { "$type": "dimension", "$value": "{radius.full}" },
|
|
28
|
+
"shadow": { "$type": "shadow", "$value": "{shadow.raised}" }
|
|
29
|
+
},
|
|
30
|
+
"focus": {
|
|
31
|
+
"ring": { "$type": "color", "$value": "{color.border.focus}" },
|
|
32
|
+
"ring-width": { "$type": "dimension", "$value": "{focus.ring.width}" },
|
|
33
|
+
"ring-offset": { "$type": "dimension", "$value": "{focus.ring.offset}" }
|
|
34
|
+
},
|
|
35
|
+
"motion": {
|
|
36
|
+
"duration": { "$type": "duration", "$value": "{motion.duration.fast}" }
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Spinner component tokens.",
|
|
3
|
+
"spinner": {
|
|
4
|
+
"size": {
|
|
5
|
+
"$type": "dimension",
|
|
6
|
+
"sm": {
|
|
7
|
+
"$value": "{size.toggle.sm}"
|
|
8
|
+
},
|
|
9
|
+
"md": {
|
|
10
|
+
"$value": "{size.toggle.md}"
|
|
11
|
+
},
|
|
12
|
+
"lg": {
|
|
13
|
+
"$value": "{size.toggle.lg}"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"width": {
|
|
17
|
+
"$type": "dimension",
|
|
18
|
+
"$value": "{focus.ring.width}"
|
|
19
|
+
},
|
|
20
|
+
"track": {
|
|
21
|
+
"$type": "color",
|
|
22
|
+
"$value": "{color.border.default}"
|
|
23
|
+
},
|
|
24
|
+
"indicator": {
|
|
25
|
+
"$type": "color",
|
|
26
|
+
"$value": "{color.action.primary}"
|
|
27
|
+
},
|
|
28
|
+
"duration": {
|
|
29
|
+
"$type": "duration",
|
|
30
|
+
"$value": "{motion.duration.base}"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Stack layout tokens: the spacing scale as gap steps.",
|
|
3
|
+
"stack": {
|
|
4
|
+
"gap": {
|
|
5
|
+
"$type": "dimension",
|
|
6
|
+
"1": {
|
|
7
|
+
"$value": "{space.1}"
|
|
8
|
+
},
|
|
9
|
+
"2": {
|
|
10
|
+
"$value": "{space.2}"
|
|
11
|
+
},
|
|
12
|
+
"3": {
|
|
13
|
+
"$value": "{space.3}"
|
|
14
|
+
},
|
|
15
|
+
"4": {
|
|
16
|
+
"$value": "{space.4}"
|
|
17
|
+
},
|
|
18
|
+
"5": {
|
|
19
|
+
"$value": "{space.5}"
|
|
20
|
+
},
|
|
21
|
+
"6": {
|
|
22
|
+
"$value": "{space.6}"
|
|
23
|
+
},
|
|
24
|
+
"7": {
|
|
25
|
+
"$value": "{space.7}"
|
|
26
|
+
},
|
|
27
|
+
"8": {
|
|
28
|
+
"$value": "{space.8}"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$description": "Switch component tokens. The track is twice the toggle size; the thumb is inset by a hairline pair.",
|
|
3
|
+
"switch": {
|
|
4
|
+
"size": {
|
|
5
|
+
"$type": "dimension",
|
|
6
|
+
"sm": {
|
|
7
|
+
"$value": "{size.toggle.sm}"
|
|
8
|
+
},
|
|
9
|
+
"md": {
|
|
10
|
+
"$value": "{size.toggle.md}"
|
|
11
|
+
},
|
|
12
|
+
"lg": {
|
|
13
|
+
"$value": "{size.toggle.lg}"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"gap": {
|
|
17
|
+
"$type": "dimension",
|
|
18
|
+
"$value": "{space.2}"
|
|
19
|
+
},
|
|
20
|
+
"radius": {
|
|
21
|
+
"$type": "dimension",
|
|
22
|
+
"$value": "{radius.full}"
|
|
23
|
+
},
|
|
24
|
+
"thumb-inset": {
|
|
25
|
+
"$type": "dimension",
|
|
26
|
+
"$value": "{size.hairline}"
|
|
27
|
+
},
|
|
28
|
+
"track-bg": {
|
|
29
|
+
"$type": "color",
|
|
30
|
+
"$value": "{color.border.strong}"
|
|
31
|
+
},
|
|
32
|
+
"track-bg-hover": {
|
|
33
|
+
"$type": "color",
|
|
34
|
+
"$value": "{color.text.faint}"
|
|
35
|
+
},
|
|
36
|
+
"track-bg-checked": {
|
|
37
|
+
"$type": "color",
|
|
38
|
+
"$value": "{color.action.primary}"
|
|
39
|
+
},
|
|
40
|
+
"track-bg-checked-hover": {
|
|
41
|
+
"$type": "color",
|
|
42
|
+
"$value": "{color.action.primary-hover}"
|
|
43
|
+
},
|
|
44
|
+
"track-invalid": {
|
|
45
|
+
"$type": "color",
|
|
46
|
+
"$value": "{color.status.error}"
|
|
47
|
+
},
|
|
48
|
+
"thumb": {
|
|
49
|
+
"$type": "color",
|
|
50
|
+
"$value": "{color.surface.raised}"
|
|
51
|
+
},
|
|
52
|
+
"thumb-checked": {
|
|
53
|
+
"$type": "color",
|
|
54
|
+
"$value": "{color.text.on-action}"
|
|
55
|
+
},
|
|
56
|
+
"focus": {
|
|
57
|
+
"ring": {
|
|
58
|
+
"$type": "color",
|
|
59
|
+
"$value": "{color.border.focus}"
|
|
60
|
+
},
|
|
61
|
+
"ring-width": {
|
|
62
|
+
"$type": "dimension",
|
|
63
|
+
"$value": "{focus.ring.width}"
|
|
64
|
+
},
|
|
65
|
+
"ring-offset": {
|
|
66
|
+
"$type": "dimension",
|
|
67
|
+
"$value": "{focus.ring.offset}"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"motion": {
|
|
71
|
+
"duration": {
|
|
72
|
+
"$type": "duration",
|
|
73
|
+
"$value": "{motion.duration.fast}"
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|