@tanrei/mcp 0.0.0-stage → 0.1.0-next.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 +202 -0
- package/NOTICE +58 -0
- package/README.md +135 -2
- package/bin/tanrei-mcp.js +15 -0
- package/dist/server.js +3008 -0
- package/dist/vocabulary/docs/governance/mimicry-gaps.json +592 -0
- package/dist/vocabulary/tanrei.config.json +23 -0
- package/dist/vocabulary/tokens/AGENTS.md +15 -0
- package/dist/vocabulary/tokens/comp/accordion.tokens.json +436 -0
- package/dist/vocabulary/tokens/comp/app-bar.tokens.json +211 -0
- package/dist/vocabulary/tokens/comp/app-shell.tokens.json +248 -0
- package/dist/vocabulary/tokens/comp/avatar.tokens.json +187 -0
- package/dist/vocabulary/tokens/comp/badge.tokens.json +100 -0
- package/dist/vocabulary/tokens/comp/bottom-sheet.tokens.json +256 -0
- package/dist/vocabulary/tokens/comp/breadcrumbs.tokens.json +253 -0
- package/dist/vocabulary/tokens/comp/button-group.tokens.json +118 -0
- package/dist/vocabulary/tokens/comp/button-with-menu.tokens.json +582 -0
- package/dist/vocabulary/tokens/comp/button.tokens.json +1102 -0
- package/dist/vocabulary/tokens/comp/calendar.tokens.json +490 -0
- package/dist/vocabulary/tokens/comp/callout.tokens.json +754 -0
- package/dist/vocabulary/tokens/comp/card.tokens.json +204 -0
- package/dist/vocabulary/tokens/comp/carousel.tokens.json +409 -0
- package/dist/vocabulary/tokens/comp/chat-composer.tokens.json +309 -0
- package/dist/vocabulary/tokens/comp/checkbox.tokens.json +591 -0
- package/dist/vocabulary/tokens/comp/chip.tokens.json +665 -0
- package/dist/vocabulary/tokens/comp/code-block.tokens.json +459 -0
- package/dist/vocabulary/tokens/comp/color-input.tokens.json +49 -0
- package/dist/vocabulary/tokens/comp/combobox.tokens.json +587 -0
- package/dist/vocabulary/tokens/comp/copy-button.tokens.json +39 -0
- package/dist/vocabulary/tokens/comp/date-time-picker.tokens.json +766 -0
- package/dist/vocabulary/tokens/comp/description-list.tokens.json +181 -0
- package/dist/vocabulary/tokens/comp/dialog.tokens.json +280 -0
- package/dist/vocabulary/tokens/comp/divider.tokens.json +139 -0
- package/dist/vocabulary/tokens/comp/embedded-text-input.tokens.json +103 -0
- package/dist/vocabulary/tokens/comp/empty-state.tokens.json +154 -0
- package/dist/vocabulary/tokens/comp/fab-menu.tokens.json +509 -0
- package/dist/vocabulary/tokens/comp/field-group.tokens.json +191 -0
- package/dist/vocabulary/tokens/comp/field.tokens.json +279 -0
- package/dist/vocabulary/tokens/comp/figure.tokens.json +215 -0
- package/dist/vocabulary/tokens/comp/file-item.tokens.json +445 -0
- package/dist/vocabulary/tokens/comp/file-picker.tokens.json +282 -0
- package/dist/vocabulary/tokens/comp/file-upload.tokens.json +35 -0
- package/dist/vocabulary/tokens/comp/image-preview.tokens.json +297 -0
- package/dist/vocabulary/tokens/comp/inline-code.tokens.json +86 -0
- package/dist/vocabulary/tokens/comp/input-box.tokens.json +938 -0
- package/dist/vocabulary/tokens/comp/keyboard-shortcut.tokens.json +192 -0
- package/dist/vocabulary/tokens/comp/link-card.tokens.json +301 -0
- package/dist/vocabulary/tokens/comp/link.tokens.json +321 -0
- package/dist/vocabulary/tokens/comp/list.tokens.json +447 -0
- package/dist/vocabulary/tokens/comp/loading-indicator.tokens.json +208 -0
- package/dist/vocabulary/tokens/comp/main-action-button.tokens.json +345 -0
- package/dist/vocabulary/tokens/comp/menu.tokens.json +919 -0
- package/dist/vocabulary/tokens/comp/menubar.tokens.json +228 -0
- package/dist/vocabulary/tokens/comp/navigation-bar.tokens.json +479 -0
- package/dist/vocabulary/tokens/comp/navigation-drawer.tokens.json +770 -0
- package/dist/vocabulary/tokens/comp/navigation-rail.tokens.json +254 -0
- package/dist/vocabulary/tokens/comp/number-input.tokens.json +75 -0
- package/dist/vocabulary/tokens/comp/one-time-code-input.tokens.json +231 -0
- package/dist/vocabulary/tokens/comp/page-header.tokens.json +247 -0
- package/dist/vocabulary/tokens/comp/pagination.tokens.json +194 -0
- package/dist/vocabulary/tokens/comp/popover.tokens.json +292 -0
- package/dist/vocabulary/tokens/comp/progress-indicator.tokens.json +208 -0
- package/dist/vocabulary/tokens/comp/prose.tokens.json +267 -0
- package/dist/vocabulary/tokens/comp/radio-button.tokens.json +417 -0
- package/dist/vocabulary/tokens/comp/search.tokens.json +675 -0
- package/dist/vocabulary/tokens/comp/segmented-button.tokens.json +360 -0
- package/dist/vocabulary/tokens/comp/select.tokens.json +553 -0
- package/dist/vocabulary/tokens/comp/side-sheet.tokens.json +285 -0
- package/dist/vocabulary/tokens/comp/skeleton.tokens.json +111 -0
- package/dist/vocabulary/tokens/comp/slider.tokens.json +435 -0
- package/dist/vocabulary/tokens/comp/snackbar.tokens.json +1334 -0
- package/dist/vocabulary/tokens/comp/steps.tokens.json +190 -0
- package/dist/vocabulary/tokens/comp/switch.tokens.json +349 -0
- package/dist/vocabulary/tokens/comp/tab-view.tokens.json +142 -0
- package/dist/vocabulary/tokens/comp/table-of-contents.tokens.json +404 -0
- package/dist/vocabulary/tokens/comp/table.tokens.json +442 -0
- package/dist/vocabulary/tokens/comp/tabs.tokens.json +970 -0
- package/dist/vocabulary/tokens/comp/tag-group.tokens.json +57 -0
- package/dist/vocabulary/tokens/comp/tag.tokens.json +527 -0
- package/dist/vocabulary/tokens/comp/text-input.tokens.json +166 -0
- package/dist/vocabulary/tokens/comp/timeline.tokens.json +243 -0
- package/dist/vocabulary/tokens/comp/toolbar.tokens.json +155 -0
- package/dist/vocabulary/tokens/comp/tooltip.tokens.json +415 -0
- package/dist/vocabulary/tokens/comp/tree-view.tokens.json +393 -0
- package/dist/vocabulary/tokens/dial/dial.tokens.json +117 -0
- package/dist/vocabulary/tokens/fidelity/m3-expressive-like.fidelity.json +68 -0
- package/dist/vocabulary/tokens/fidelity/m3-like.fidelity.json +178 -0
- package/dist/vocabulary/tokens/fidelity/reference/androidx-material3-buttons.json +67 -0
- package/dist/vocabulary/tokens/fidelity/reference/material-web.json +802 -0
- package/dist/vocabulary/tokens/generated/m3-expressive-like/fidelity.json +99 -0
- package/dist/vocabulary/tokens/generated/m3-like/fidelity.json +24 -0
- package/dist/vocabulary/tokens/icon-sets/material-symbols.icon-set.json +278 -0
- package/dist/vocabulary/tokens/ref/typeface.tokens.json +116 -0
- package/dist/vocabulary/tokens/schema/icon-set.schema.json +82 -0
- package/dist/vocabulary/tokens/schema/system.schema.json +570 -0
- package/dist/vocabulary/tokens/sys/behavior.tokens.json +119 -0
- package/dist/vocabulary/tokens/sys/color.vocabulary.json +58 -0
- package/dist/vocabulary/tokens/sys/elevation.tokens.json +362 -0
- package/dist/vocabulary/tokens/sys/measure.tokens.json +358 -0
- package/dist/vocabulary/tokens/sys/motion.tokens.json +949 -0
- package/dist/vocabulary/tokens/sys/shape.tokens.json +169 -0
- package/dist/vocabulary/tokens/sys/space.tokens.json +256 -0
- package/dist/vocabulary/tokens/sys/state.tokens.json +70 -0
- package/dist/vocabulary/tokens/sys/typescale.tokens.json +551 -0
- package/dist/vocabulary/tokens/systems/cupertino.system.json +640 -0
- package/dist/vocabulary/tokens/systems/m3-expressive-like.system.json +83 -0
- package/dist/vocabulary/tokens/systems/m3-like.system.json +855 -0
- package/dist/vocabulary/tokens/systems/tanrei.system.json +409 -0
- package/dist/vocabulary/tokens/tanrei.resolver.json +358 -0
- package/dist/vocabulary/tokens/vocabulary.lock.json +7052 -0
- package/package.json +36 -3
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tanrei": {
|
|
3
|
+
"sys": {
|
|
4
|
+
"shape": {
|
|
5
|
+
"$extensions": {
|
|
6
|
+
"dev.tanrei.llm": {
|
|
7
|
+
"usage": "Corner radii by size. Components alias a step (button → corner.small); `full` is a pill or circle and is fixed, not scaled.",
|
|
8
|
+
"rules": [
|
|
9
|
+
"Re-point a component's shape token to restyle one component; change dial.shape.unit to restyle them all."
|
|
10
|
+
]
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"corner": {
|
|
14
|
+
"$type": "dimension",
|
|
15
|
+
"none": {
|
|
16
|
+
"$value": {
|
|
17
|
+
"value": 0,
|
|
18
|
+
"unit": "px"
|
|
19
|
+
},
|
|
20
|
+
"$extensions": {
|
|
21
|
+
"dev.tanrei.derive": {
|
|
22
|
+
"fn": "mul",
|
|
23
|
+
"of": "{tanrei.dial.shape.unit}",
|
|
24
|
+
"by": 0
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"extra-small": {
|
|
29
|
+
"$value": {
|
|
30
|
+
"value": 3,
|
|
31
|
+
"unit": "px"
|
|
32
|
+
},
|
|
33
|
+
"$extensions": {
|
|
34
|
+
"dev.tanrei.derive": {
|
|
35
|
+
"fn": "mul",
|
|
36
|
+
"of": "{tanrei.dial.shape.unit}",
|
|
37
|
+
"by": 1.5
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"small": {
|
|
42
|
+
"$value": {
|
|
43
|
+
"value": 6,
|
|
44
|
+
"unit": "px"
|
|
45
|
+
},
|
|
46
|
+
"$description": "Default for controls: buttons, inputs, menu items, tooltips.",
|
|
47
|
+
"$extensions": {
|
|
48
|
+
"dev.tanrei.derive": {
|
|
49
|
+
"fn": "mul",
|
|
50
|
+
"of": "{tanrei.dial.shape.unit}",
|
|
51
|
+
"by": 3
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"medium": {
|
|
56
|
+
"$value": {
|
|
57
|
+
"value": 8,
|
|
58
|
+
"unit": "px"
|
|
59
|
+
},
|
|
60
|
+
"$extensions": {
|
|
61
|
+
"dev.tanrei.derive": {
|
|
62
|
+
"fn": "mul",
|
|
63
|
+
"of": "{tanrei.dial.shape.unit}",
|
|
64
|
+
"by": 4
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
"large": {
|
|
69
|
+
"$value": {
|
|
70
|
+
"value": 12,
|
|
71
|
+
"unit": "px"
|
|
72
|
+
},
|
|
73
|
+
"$extensions": {
|
|
74
|
+
"dev.tanrei.derive": {
|
|
75
|
+
"fn": "mul",
|
|
76
|
+
"of": "{tanrei.dial.shape.unit}",
|
|
77
|
+
"by": 6
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"large-increased": {
|
|
82
|
+
"$value": {
|
|
83
|
+
"value": 14,
|
|
84
|
+
"unit": "px"
|
|
85
|
+
},
|
|
86
|
+
"$extensions": {
|
|
87
|
+
"dev.tanrei.derive": {
|
|
88
|
+
"fn": "mul",
|
|
89
|
+
"of": "{tanrei.dial.shape.unit}",
|
|
90
|
+
"by": 7
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"extra-large": {
|
|
95
|
+
"$value": {
|
|
96
|
+
"value": 16,
|
|
97
|
+
"unit": "px"
|
|
98
|
+
},
|
|
99
|
+
"$extensions": {
|
|
100
|
+
"dev.tanrei.derive": {
|
|
101
|
+
"fn": "mul",
|
|
102
|
+
"of": "{tanrei.dial.shape.unit}",
|
|
103
|
+
"by": 8
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
"extra-large-increased": {
|
|
108
|
+
"$value": {
|
|
109
|
+
"value": 20,
|
|
110
|
+
"unit": "px"
|
|
111
|
+
},
|
|
112
|
+
"$extensions": {
|
|
113
|
+
"dev.tanrei.derive": {
|
|
114
|
+
"fn": "mul",
|
|
115
|
+
"of": "{tanrei.dial.shape.unit}",
|
|
116
|
+
"by": 10
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"extra-extra-large": {
|
|
121
|
+
"$value": {
|
|
122
|
+
"value": 24,
|
|
123
|
+
"unit": "px"
|
|
124
|
+
},
|
|
125
|
+
"$extensions": {
|
|
126
|
+
"dev.tanrei.derive": {
|
|
127
|
+
"fn": "mul",
|
|
128
|
+
"of": "{tanrei.dial.shape.unit}",
|
|
129
|
+
"by": 12
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"full": {
|
|
134
|
+
"$value": {
|
|
135
|
+
"value": 9999,
|
|
136
|
+
"unit": "px"
|
|
137
|
+
},
|
|
138
|
+
"$description": "Opt-in only: avatars, badges, segmented controls, pill variants.",
|
|
139
|
+
"$extensions": {
|
|
140
|
+
"dev.tanrei.derive": {
|
|
141
|
+
"fixed": "A pill is \"as round as possible\", not a multiple of the roundness dial."
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
"$extensions": {
|
|
146
|
+
"dev.tanrei.vocabulary": {
|
|
147
|
+
"rationale": "One product rounds small controls, cards, sheets and pills differently, so it needs several corner steps at once.",
|
|
148
|
+
"since": "0.1.0"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
"corner-smoothing": {
|
|
153
|
+
"$type": "number",
|
|
154
|
+
"$value": 0,
|
|
155
|
+
"$description": "How a corner's curve eases into the straight edge, 0–1, with Figma's meaning: 0 is a quarter circle, 0.6 is the iOS continuous corner, 1 the most eased curve. The radius does not change. Platforms that only have the OS's curve draw it for any amount above 0.",
|
|
156
|
+
"$extensions": {
|
|
157
|
+
"dev.tanrei.vocabulary": {
|
|
158
|
+
"rationale": "One product decides the quality of its roundness once — a brand is as much in how a corner eases as in how large it is.",
|
|
159
|
+
"since": "0.1.0"
|
|
160
|
+
},
|
|
161
|
+
"dev.tanrei.derive": {
|
|
162
|
+
"fixed": "A choice of how a curve eases; no dial scales it."
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tanrei": {
|
|
3
|
+
"sys": {
|
|
4
|
+
"space": {
|
|
5
|
+
"$type": "dimension",
|
|
6
|
+
"$extensions": {
|
|
7
|
+
"dev.tanrei.vocabulary": {
|
|
8
|
+
"rationale": "One product uses a graded set of distances: tight inside controls, looser between groups, generous between sections.",
|
|
9
|
+
"since": "0.1.0"
|
|
10
|
+
},
|
|
11
|
+
"dev.tanrei.llm": {
|
|
12
|
+
"usage": "The only distances allowed for padding, gaps and margins. spaceN is N% of dial.space.unit × 100 (space100 = one unit, 8px by default).",
|
|
13
|
+
"rules": [
|
|
14
|
+
"Never write a literal distance; pick the nearest step.",
|
|
15
|
+
"To change one component's spacing, re-point its comp token to another step or use {\"scale\": n}; do not add steps."
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"space0": {
|
|
20
|
+
"$value": {
|
|
21
|
+
"value": 0,
|
|
22
|
+
"unit": "px"
|
|
23
|
+
},
|
|
24
|
+
"$extensions": {
|
|
25
|
+
"dev.tanrei.derive": {
|
|
26
|
+
"fn": "mul",
|
|
27
|
+
"of": "{tanrei.dial.space.unit}",
|
|
28
|
+
"by": 0
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"space25": {
|
|
33
|
+
"$value": {
|
|
34
|
+
"value": 2,
|
|
35
|
+
"unit": "px"
|
|
36
|
+
},
|
|
37
|
+
"$extensions": {
|
|
38
|
+
"dev.tanrei.derive": {
|
|
39
|
+
"fn": "mul",
|
|
40
|
+
"of": "{tanrei.dial.space.unit}",
|
|
41
|
+
"by": 0.25
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"space50": {
|
|
46
|
+
"$value": {
|
|
47
|
+
"value": 4,
|
|
48
|
+
"unit": "px"
|
|
49
|
+
},
|
|
50
|
+
"$extensions": {
|
|
51
|
+
"dev.tanrei.derive": {
|
|
52
|
+
"fn": "mul",
|
|
53
|
+
"of": "{tanrei.dial.space.unit}",
|
|
54
|
+
"by": 0.5
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"space75": {
|
|
59
|
+
"$value": {
|
|
60
|
+
"value": 6,
|
|
61
|
+
"unit": "px"
|
|
62
|
+
},
|
|
63
|
+
"$extensions": {
|
|
64
|
+
"dev.tanrei.derive": {
|
|
65
|
+
"fn": "mul",
|
|
66
|
+
"of": "{tanrei.dial.space.unit}",
|
|
67
|
+
"by": 0.75
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
"space100": {
|
|
72
|
+
"$value": {
|
|
73
|
+
"value": 8,
|
|
74
|
+
"unit": "px"
|
|
75
|
+
},
|
|
76
|
+
"$extensions": {
|
|
77
|
+
"dev.tanrei.derive": {
|
|
78
|
+
"fn": "mul",
|
|
79
|
+
"of": "{tanrei.dial.space.unit}",
|
|
80
|
+
"by": 1
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"space125": {
|
|
85
|
+
"$value": {
|
|
86
|
+
"value": 10,
|
|
87
|
+
"unit": "px"
|
|
88
|
+
},
|
|
89
|
+
"$extensions": {
|
|
90
|
+
"dev.tanrei.derive": {
|
|
91
|
+
"fn": "mul",
|
|
92
|
+
"of": "{tanrei.dial.space.unit}",
|
|
93
|
+
"by": 1.25
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
"space150": {
|
|
98
|
+
"$value": {
|
|
99
|
+
"value": 12,
|
|
100
|
+
"unit": "px"
|
|
101
|
+
},
|
|
102
|
+
"$extensions": {
|
|
103
|
+
"dev.tanrei.derive": {
|
|
104
|
+
"fn": "mul",
|
|
105
|
+
"of": "{tanrei.dial.space.unit}",
|
|
106
|
+
"by": 1.5
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"space175": {
|
|
111
|
+
"$value": {
|
|
112
|
+
"value": 14,
|
|
113
|
+
"unit": "px"
|
|
114
|
+
},
|
|
115
|
+
"$extensions": {
|
|
116
|
+
"dev.tanrei.derive": {
|
|
117
|
+
"fn": "mul",
|
|
118
|
+
"of": "{tanrei.dial.space.unit}",
|
|
119
|
+
"by": 1.75
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"space200": {
|
|
124
|
+
"$value": {
|
|
125
|
+
"value": 16,
|
|
126
|
+
"unit": "px"
|
|
127
|
+
},
|
|
128
|
+
"$extensions": {
|
|
129
|
+
"dev.tanrei.derive": {
|
|
130
|
+
"fn": "mul",
|
|
131
|
+
"of": "{tanrei.dial.space.unit}",
|
|
132
|
+
"by": 2
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
"space250": {
|
|
137
|
+
"$value": {
|
|
138
|
+
"value": 20,
|
|
139
|
+
"unit": "px"
|
|
140
|
+
},
|
|
141
|
+
"$extensions": {
|
|
142
|
+
"dev.tanrei.derive": {
|
|
143
|
+
"fn": "mul",
|
|
144
|
+
"of": "{tanrei.dial.space.unit}",
|
|
145
|
+
"by": 2.5
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"space300": {
|
|
150
|
+
"$value": {
|
|
151
|
+
"value": 24,
|
|
152
|
+
"unit": "px"
|
|
153
|
+
},
|
|
154
|
+
"$extensions": {
|
|
155
|
+
"dev.tanrei.derive": {
|
|
156
|
+
"fn": "mul",
|
|
157
|
+
"of": "{tanrei.dial.space.unit}",
|
|
158
|
+
"by": 3
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"space400": {
|
|
163
|
+
"$value": {
|
|
164
|
+
"value": 32,
|
|
165
|
+
"unit": "px"
|
|
166
|
+
},
|
|
167
|
+
"$extensions": {
|
|
168
|
+
"dev.tanrei.derive": {
|
|
169
|
+
"fn": "mul",
|
|
170
|
+
"of": "{tanrei.dial.space.unit}",
|
|
171
|
+
"by": 4
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"space450": {
|
|
176
|
+
"$value": {
|
|
177
|
+
"value": 36,
|
|
178
|
+
"unit": "px"
|
|
179
|
+
},
|
|
180
|
+
"$extensions": {
|
|
181
|
+
"dev.tanrei.derive": {
|
|
182
|
+
"fn": "mul",
|
|
183
|
+
"of": "{tanrei.dial.space.unit}",
|
|
184
|
+
"by": 4.5
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
"space500": {
|
|
189
|
+
"$value": {
|
|
190
|
+
"value": 40,
|
|
191
|
+
"unit": "px"
|
|
192
|
+
},
|
|
193
|
+
"$extensions": {
|
|
194
|
+
"dev.tanrei.derive": {
|
|
195
|
+
"fn": "mul",
|
|
196
|
+
"of": "{tanrei.dial.space.unit}",
|
|
197
|
+
"by": 5
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
"space600": {
|
|
202
|
+
"$value": {
|
|
203
|
+
"value": 48,
|
|
204
|
+
"unit": "px"
|
|
205
|
+
},
|
|
206
|
+
"$extensions": {
|
|
207
|
+
"dev.tanrei.derive": {
|
|
208
|
+
"fn": "mul",
|
|
209
|
+
"of": "{tanrei.dial.space.unit}",
|
|
210
|
+
"by": 6
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
"space700": {
|
|
215
|
+
"$value": {
|
|
216
|
+
"value": 56,
|
|
217
|
+
"unit": "px"
|
|
218
|
+
},
|
|
219
|
+
"$extensions": {
|
|
220
|
+
"dev.tanrei.derive": {
|
|
221
|
+
"fn": "mul",
|
|
222
|
+
"of": "{tanrei.dial.space.unit}",
|
|
223
|
+
"by": 7
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
"space800": {
|
|
228
|
+
"$value": {
|
|
229
|
+
"value": 64,
|
|
230
|
+
"unit": "px"
|
|
231
|
+
},
|
|
232
|
+
"$extensions": {
|
|
233
|
+
"dev.tanrei.derive": {
|
|
234
|
+
"fn": "mul",
|
|
235
|
+
"of": "{tanrei.dial.space.unit}",
|
|
236
|
+
"by": 8
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
"space900": {
|
|
241
|
+
"$value": {
|
|
242
|
+
"value": 72,
|
|
243
|
+
"unit": "px"
|
|
244
|
+
},
|
|
245
|
+
"$extensions": {
|
|
246
|
+
"dev.tanrei.derive": {
|
|
247
|
+
"fn": "mul",
|
|
248
|
+
"of": "{tanrei.dial.space.unit}",
|
|
249
|
+
"by": 9
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"tanrei": {
|
|
3
|
+
"sys": {
|
|
4
|
+
"state": {
|
|
5
|
+
"$type": "number",
|
|
6
|
+
"$description": "State layer opacities. The layer takes the color of the content (the on-* role), and only one layer is shown at a time.",
|
|
7
|
+
"$extensions": {
|
|
8
|
+
"dev.tanrei.vocabulary": {
|
|
9
|
+
"rationale": "One product shows hover, focus, press, drag and disabled differently from each other.",
|
|
10
|
+
"since": "0.1.0"
|
|
11
|
+
},
|
|
12
|
+
"dev.tanrei.llm": {
|
|
13
|
+
"usage": "Opacities used by a design system's RULES to compute state colors (hover, focus, press, drag, disabled). Components do not read these directly: they read their own per-state tokens.",
|
|
14
|
+
"rules": [
|
|
15
|
+
"To change how hover looks everywhere, change the opacity here or replace the pattern rule in your layer; do not restyle components."
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"hover-state-layer-opacity": {
|
|
20
|
+
"$value": 0.08,
|
|
21
|
+
"$extensions": {
|
|
22
|
+
"dev.tanrei.derive": {
|
|
23
|
+
"fixed": "An opacity is a proportion; no dial scales it."
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"focus-state-layer-opacity": {
|
|
28
|
+
"$value": 0.1,
|
|
29
|
+
"$extensions": {
|
|
30
|
+
"dev.tanrei.derive": {
|
|
31
|
+
"fixed": "An opacity is a proportion; no dial scales it."
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"pressed-state-layer-opacity": {
|
|
36
|
+
"$value": 0.1,
|
|
37
|
+
"$extensions": {
|
|
38
|
+
"dev.tanrei.derive": {
|
|
39
|
+
"fixed": "An opacity is a proportion; no dial scales it."
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"dragged-state-layer-opacity": {
|
|
44
|
+
"$value": 0.16,
|
|
45
|
+
"$extensions": {
|
|
46
|
+
"dev.tanrei.derive": {
|
|
47
|
+
"fixed": "An opacity is a proportion; no dial scales it."
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"disabled-content-opacity": {
|
|
52
|
+
"$value": 0.38,
|
|
53
|
+
"$extensions": {
|
|
54
|
+
"dev.tanrei.derive": {
|
|
55
|
+
"fixed": "An opacity is a proportion; no dial scales it."
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"disabled-container-opacity": {
|
|
60
|
+
"$value": 0.12,
|
|
61
|
+
"$extensions": {
|
|
62
|
+
"dev.tanrei.derive": {
|
|
63
|
+
"fixed": "An opacity is a proportion; no dial scales it."
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|