@haxtheweb/fluent-theme 0.0.0-stage → 26.8.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/.dddignore +36 -0
- package/.editorconfig +29 -0
- package/.github/workflows/main.yml +33 -0
- package/.nojekyll +0 -0
- package/.surgeignore +1 -0
- package/.travis.yml +15 -0
- package/LICENSE +201 -0
- package/NOTICE +44 -0
- package/README.md +47 -2
- package/custom-elements.json +310 -0
- package/demo/files/thumb-button.svg +1 -0
- package/demo/files/thumb-checks.svg +1 -0
- package/demo/files/thumb-code.svg +1 -0
- package/demo/files/thumb-color.svg +1 -0
- package/demo/files/thumb-shapes.svg +1 -0
- package/demo/files/thumb-type.svg +1 -0
- package/demo/index.html +49 -0
- package/demo/pages/item-f1e0b2c3-about/index.html +4 -0
- package/demo/pages/item-f1e0b2c3-components/index.html +4 -0
- package/demo/pages/item-f1e0b2c3-components-button/index.html +19 -0
- package/demo/pages/item-f1e0b2c3-components-learning-checks/index.html +7 -0
- package/demo/pages/item-f1e0b2c3-design-language/index.html +4 -0
- package/demo/pages/item-f1e0b2c3-design-language-color/index.html +9 -0
- package/demo/pages/item-f1e0b2c3-design-language-typography/index.html +7 -0
- package/demo/pages/item-f1e0b2c3-get-started/index.html +7 -0
- package/demo/pages/item-f1e0b2c3-get-started-develop/index.html +15 -0
- package/demo/site.json +231 -0
- package/design-system/bridge.json +405 -0
- package/fluent-theme.js +507 -0
- package/gulpfile.cjs +14 -0
- package/icons/add.svg +1 -0
- package/icons/add_circle.svg +1 -0
- package/icons/archive.svg +1 -0
- package/icons/arrow_clockwise.svg +1 -0
- package/icons/arrow_down.svg +1 -0
- package/icons/arrow_download.svg +1 -0
- package/icons/arrow_left.svg +1 -0
- package/icons/arrow_next.svg +1 -0
- package/icons/arrow_previous.svg +1 -0
- package/icons/arrow_redo.svg +1 -0
- package/icons/arrow_right.svg +1 -0
- package/icons/arrow_rotate_clockwise.svg +1 -0
- package/icons/arrow_rotate_counterclockwise.svg +1 -0
- package/icons/arrow_shuffle.svg +1 -0
- package/icons/arrow_sort.svg +1 -0
- package/icons/arrow_undo.svg +1 -0
- package/icons/arrow_up.svg +1 -0
- package/icons/arrow_upload.svg +1 -0
- package/icons/attach.svg +1 -0
- package/icons/book.svg +1 -0
- package/icons/bookmark.svg +1 -0
- package/icons/briefcase.svg +1 -0
- package/icons/calendar.svg +1 -0
- package/icons/call.svg +1 -0
- package/icons/camera.svg +1 -0
- package/icons/chat.svg +1 -0
- package/icons/checkmark.svg +1 -0
- package/icons/checkmark_circle.svg +1 -0
- package/icons/chevron_down.svg +1 -0
- package/icons/chevron_left.svg +1 -0
- package/icons/chevron_right.svg +1 -0
- package/icons/chevron_up.svg +1 -0
- package/icons/clipboard_task.svg +1 -0
- package/icons/clock.svg +1 -0
- package/icons/closed_caption.svg +1 -0
- package/icons/cloud.svg +1 -0
- package/icons/cloud_arrow_down.svg +1 -0
- package/icons/code.svg +1 -0
- package/icons/column_triple.svg +1 -0
- package/icons/copy.svg +1 -0
- package/icons/crop.svg +1 -0
- package/icons/data_bar_vertical.svg +1 -0
- package/icons/data_line.svg +1 -0
- package/icons/delete.svg +1 -0
- package/icons/desktop.svg +1 -0
- package/icons/dismiss.svg +1 -0
- package/icons/dismiss_circle.svg +1 -0
- package/icons/document.svg +1 -0
- package/icons/document_pdf.svg +1 -0
- package/icons/document_text.svg +1 -0
- package/icons/edit.svg +1 -0
- package/icons/emoji.svg +1 -0
- package/icons/error_circle.svg +1 -0
- package/icons/eye.svg +1 -0
- package/icons/eye_off.svg +1 -0
- package/icons/flag.svg +1 -0
- package/icons/folder.svg +1 -0
- package/icons/folder_open.svg +1 -0
- package/icons/full_screen_maximize.svg +1 -0
- package/icons/globe.svg +1 -0
- package/icons/grid.svg +1 -0
- package/icons/hat_graduation.svg +1 -0
- package/icons/highlight.svg +1 -0
- package/icons/history.svg +1 -0
- package/icons/home.svg +1 -0
- package/icons/image.svg +1 -0
- package/icons/image_multiple.svg +1 -0
- package/icons/info.svg +1 -0
- package/icons/keyboard.svg +1 -0
- package/icons/lightbulb.svg +1 -0
- package/icons/link.svg +1 -0
- package/icons/list.svg +1 -0
- package/icons/location.svg +1 -0
- package/icons/lock_closed.svg +1 -0
- package/icons/mail.svg +1 -0
- package/icons/mic.svg +1 -0
- package/icons/music_note_2.svg +1 -0
- package/icons/navigation.svg +1 -0
- package/icons/open.svg +1 -0
- package/icons/options.svg +1 -0
- package/icons/paint_bucket.svg +1 -0
- package/icons/pause.svg +1 -0
- package/icons/pause_circle.svg +1 -0
- package/icons/people.svg +1 -0
- package/icons/person.svg +1 -0
- package/icons/person_feedback.svg +1 -0
- package/icons/phone.svg +1 -0
- package/icons/play.svg +1 -0
- package/icons/play_circle.svg +1 -0
- package/icons/print.svg +1 -0
- package/icons/puzzle_piece.svg +1 -0
- package/icons/question_circle.svg +1 -0
- package/icons/rss.svg +1 -0
- package/icons/save.svg +1 -0
- package/icons/search.svg +1 -0
- package/icons/settings.svg +1 -0
- package/icons/share.svg +1 -0
- package/icons/shield_checkmark.svg +1 -0
- package/icons/sign_out.svg +1 -0
- package/icons/slide_layout.svg +1 -0
- package/icons/speaker_2.svg +1 -0
- package/icons/star.svg +1 -0
- package/icons/stop.svg +1 -0
- package/icons/subtract.svg +1 -0
- package/icons/table.svg +1 -0
- package/icons/tablet.svg +1 -0
- package/icons/tag.svg +1 -0
- package/icons/text_align_center.svg +1 -0
- package/icons/text_align_justify.svg +1 -0
- package/icons/text_align_left.svg +1 -0
- package/icons/text_align_right.svg +1 -0
- package/icons/text_bold.svg +1 -0
- package/icons/text_bullet_list_ltr.svg +1 -0
- package/icons/text_bullet_list_tree.svg +1 -0
- package/icons/text_font.svg +1 -0
- package/icons/text_italic.svg +1 -0
- package/icons/text_number_list_ltr.svg +1 -0
- package/icons/text_quote.svg +1 -0
- package/icons/text_strikethrough.svg +1 -0
- package/icons/text_underline.svg +1 -0
- package/icons/thumb_like.svg +1 -0
- package/icons/video.svg +1 -0
- package/icons/warning.svg +1 -0
- package/icons/zoom_in.svg +1 -0
- package/icons/zoom_out.svg +1 -0
- package/lib/FluentDDDMap.js +147 -0
- package/lib/FluentDesignSystem.js +43 -0
- package/lib/FluentIcons.js +173 -0
- package/lib/FluentTokens.js +103 -0
- package/lib/fluent-theme.docs.json +43 -0
- package/lib/fluent.ddd-map.json +1240 -0
- package/locales/fluent-theme.en.json +9 -0
- package/package.json +56 -4
- package/test/fluent-theme.test.js +73 -0
package/demo/site.json
ADDED
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "f1e0b2c3-0000-4000-8000-fluent000001",
|
|
3
|
+
"title": "Design system site",
|
|
4
|
+
"author": "",
|
|
5
|
+
"description": "A demo site for fluent-theme in the layout of the Fluent 2 documentation, built from HAX blocks.",
|
|
6
|
+
"license": "by-sa",
|
|
7
|
+
"metadata": {
|
|
8
|
+
"author": {
|
|
9
|
+
"image": "",
|
|
10
|
+
"name": "",
|
|
11
|
+
"email": "",
|
|
12
|
+
"socialLink": ""
|
|
13
|
+
},
|
|
14
|
+
"site": {
|
|
15
|
+
"name": "fluent-theme",
|
|
16
|
+
"logo": "",
|
|
17
|
+
"lang": "en",
|
|
18
|
+
"created": 1736889000,
|
|
19
|
+
"updated": 1736889000,
|
|
20
|
+
"git": {},
|
|
21
|
+
"version": "9.0.6",
|
|
22
|
+
"domain": "",
|
|
23
|
+
"static": {},
|
|
24
|
+
"settings": {
|
|
25
|
+
"pathauto": false,
|
|
26
|
+
"publishPagesOn": true,
|
|
27
|
+
"sw": false,
|
|
28
|
+
"forceUpgrade": false,
|
|
29
|
+
"lang": "",
|
|
30
|
+
"gaID": ""
|
|
31
|
+
},
|
|
32
|
+
"tags": ""
|
|
33
|
+
},
|
|
34
|
+
"theme": {
|
|
35
|
+
"element": "fluent-theme",
|
|
36
|
+
"path": "@haxtheweb/fluent-theme/fluent-theme.js",
|
|
37
|
+
"name": "fluent-theme",
|
|
38
|
+
"regions": {}
|
|
39
|
+
},
|
|
40
|
+
"node": {
|
|
41
|
+
"fields": {}
|
|
42
|
+
},
|
|
43
|
+
"build": {
|
|
44
|
+
"version": "6.0.1",
|
|
45
|
+
"structure": "flat",
|
|
46
|
+
"type": ""
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"items": [
|
|
50
|
+
{
|
|
51
|
+
"id": "item-f1e0b2c3-get-started",
|
|
52
|
+
"indent": 0,
|
|
53
|
+
"location": "pages/item-f1e0b2c3-get-started/index.html",
|
|
54
|
+
"slug": "get-started",
|
|
55
|
+
"order": 0,
|
|
56
|
+
"parent": null,
|
|
57
|
+
"title": "Get started",
|
|
58
|
+
"description": "Fluent 2 is a design system for building experiences that feel familiar and coherent across platforms. This demo shows it through HAX blocks.",
|
|
59
|
+
"metadata": {
|
|
60
|
+
"created": 1736889000,
|
|
61
|
+
"updated": 1736889000,
|
|
62
|
+
"published": true,
|
|
63
|
+
"hideInMenu": false,
|
|
64
|
+
"locked": false,
|
|
65
|
+
"readtime": 1,
|
|
66
|
+
"tags": "",
|
|
67
|
+
"status": ""
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"id": "item-f1e0b2c3-get-started-develop",
|
|
72
|
+
"indent": 1,
|
|
73
|
+
"location": "pages/item-f1e0b2c3-get-started-develop/index.html",
|
|
74
|
+
"slug": "get-started/develop",
|
|
75
|
+
"order": 0,
|
|
76
|
+
"parent": "item-f1e0b2c3-get-started",
|
|
77
|
+
"title": "Develop",
|
|
78
|
+
"description": "Use Fluent 2 as a whole theme, or keep your theme and pick Fluent 2 as the site's design system.",
|
|
79
|
+
"metadata": {
|
|
80
|
+
"created": 1736889000,
|
|
81
|
+
"updated": 1736889000,
|
|
82
|
+
"published": true,
|
|
83
|
+
"hideInMenu": false,
|
|
84
|
+
"locked": false,
|
|
85
|
+
"readtime": 1,
|
|
86
|
+
"tags": "",
|
|
87
|
+
"status": ""
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"id": "item-f1e0b2c3-design-language",
|
|
92
|
+
"indent": 0,
|
|
93
|
+
"location": "pages/item-f1e0b2c3-design-language/index.html",
|
|
94
|
+
"slug": "design-language",
|
|
95
|
+
"order": 1,
|
|
96
|
+
"parent": null,
|
|
97
|
+
"title": "Design language",
|
|
98
|
+
"description": "The foundations that make Fluent recognizable: a calm neutral palette, the brand ramp, rounded shapes and layered elevation.",
|
|
99
|
+
"metadata": {
|
|
100
|
+
"created": 1736889000,
|
|
101
|
+
"updated": 1736889000,
|
|
102
|
+
"published": true,
|
|
103
|
+
"hideInMenu": false,
|
|
104
|
+
"locked": false,
|
|
105
|
+
"readtime": 1,
|
|
106
|
+
"tags": "",
|
|
107
|
+
"status": ""
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"id": "item-f1e0b2c3-design-language-color",
|
|
112
|
+
"indent": 1,
|
|
113
|
+
"location": "pages/item-f1e0b2c3-design-language-color/index.html",
|
|
114
|
+
"slug": "design-language/color",
|
|
115
|
+
"order": 0,
|
|
116
|
+
"parent": "item-f1e0b2c3-design-language",
|
|
117
|
+
"title": "Color",
|
|
118
|
+
"description": "Fluent's palette pairs a neutral ramp for surfaces and text with a brand ramp for emphasis and shared colors for status and categories.",
|
|
119
|
+
"metadata": {
|
|
120
|
+
"created": 1736889000,
|
|
121
|
+
"updated": 1736889000,
|
|
122
|
+
"published": true,
|
|
123
|
+
"hideInMenu": false,
|
|
124
|
+
"locked": false,
|
|
125
|
+
"readtime": 1,
|
|
126
|
+
"tags": "",
|
|
127
|
+
"status": ""
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "item-f1e0b2c3-design-language-typography",
|
|
132
|
+
"indent": 1,
|
|
133
|
+
"location": "pages/item-f1e0b2c3-design-language-typography/index.html",
|
|
134
|
+
"slug": "design-language/typography",
|
|
135
|
+
"order": 1,
|
|
136
|
+
"parent": "item-f1e0b2c3-design-language",
|
|
137
|
+
"title": "Typography",
|
|
138
|
+
"description": "Fluent sets interfaces in Segoe UI with a regular, semibold and bold ramp.",
|
|
139
|
+
"metadata": {
|
|
140
|
+
"created": 1736889000,
|
|
141
|
+
"updated": 1736889000,
|
|
142
|
+
"published": true,
|
|
143
|
+
"hideInMenu": false,
|
|
144
|
+
"locked": false,
|
|
145
|
+
"readtime": 1,
|
|
146
|
+
"tags": "",
|
|
147
|
+
"status": ""
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"id": "item-f1e0b2c3-components",
|
|
152
|
+
"indent": 0,
|
|
153
|
+
"location": "pages/item-f1e0b2c3-components/index.html",
|
|
154
|
+
"slug": "components",
|
|
155
|
+
"order": 2,
|
|
156
|
+
"parent": null,
|
|
157
|
+
"title": "Components",
|
|
158
|
+
"description": "How HAX blocks look in Fluent 2: buttons, cards, notes, tables and learning checks.",
|
|
159
|
+
"metadata": {
|
|
160
|
+
"created": 1736889000,
|
|
161
|
+
"updated": 1736889000,
|
|
162
|
+
"published": true,
|
|
163
|
+
"hideInMenu": false,
|
|
164
|
+
"locked": false,
|
|
165
|
+
"readtime": 1,
|
|
166
|
+
"tags": "",
|
|
167
|
+
"status": ""
|
|
168
|
+
}
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"id": "item-f1e0b2c3-components-button",
|
|
172
|
+
"indent": 1,
|
|
173
|
+
"location": "pages/item-f1e0b2c3-components-button/index.html",
|
|
174
|
+
"slug": "components/button",
|
|
175
|
+
"order": 0,
|
|
176
|
+
"parent": "item-f1e0b2c3-components",
|
|
177
|
+
"title": "Button",
|
|
178
|
+
"description": "Buttons start actions. Use one primary button per view.",
|
|
179
|
+
"metadata": {
|
|
180
|
+
"created": 1736889000,
|
|
181
|
+
"updated": 1736889000,
|
|
182
|
+
"published": true,
|
|
183
|
+
"hideInMenu": false,
|
|
184
|
+
"locked": false,
|
|
185
|
+
"readtime": 1,
|
|
186
|
+
"tags": "",
|
|
187
|
+
"status": ""
|
|
188
|
+
}
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"id": "item-f1e0b2c3-components-learning-checks",
|
|
192
|
+
"indent": 1,
|
|
193
|
+
"location": "pages/item-f1e0b2c3-components-learning-checks/index.html",
|
|
194
|
+
"slug": "components/learning-checks",
|
|
195
|
+
"order": 1,
|
|
196
|
+
"parent": "item-f1e0b2c3-components",
|
|
197
|
+
"title": "Learning checks",
|
|
198
|
+
"description": "Answer states keep the HAX meaning channels: label, icon, line style and color.",
|
|
199
|
+
"metadata": {
|
|
200
|
+
"created": 1736889000,
|
|
201
|
+
"updated": 1736889000,
|
|
202
|
+
"published": true,
|
|
203
|
+
"hideInMenu": false,
|
|
204
|
+
"locked": false,
|
|
205
|
+
"readtime": 1,
|
|
206
|
+
"tags": "",
|
|
207
|
+
"status": ""
|
|
208
|
+
}
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"id": "item-f1e0b2c3-about",
|
|
212
|
+
"indent": 0,
|
|
213
|
+
"location": "pages/item-f1e0b2c3-about/index.html",
|
|
214
|
+
"slug": "about",
|
|
215
|
+
"order": 3,
|
|
216
|
+
"parent": null,
|
|
217
|
+
"title": "About the bridge",
|
|
218
|
+
"description": "Where the Fluent 2 values on this site come from, and what stays DDD.",
|
|
219
|
+
"metadata": {
|
|
220
|
+
"created": 1736889000,
|
|
221
|
+
"updated": 1736889000,
|
|
222
|
+
"published": true,
|
|
223
|
+
"hideInMenu": false,
|
|
224
|
+
"locked": false,
|
|
225
|
+
"readtime": 1,
|
|
226
|
+
"tags": "",
|
|
227
|
+
"status": ""
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
]
|
|
231
|
+
}
|
|
@@ -0,0 +1,405 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$comment": "DDD bridge for Microsoft Fluent 2 (web). Tiers follow elements/d-d-d/design-system/bridge/contract.json. Fluent publishes its tokens only as JavaScript (@fluentui/tokens, the token package @fluentui/react-components 9 depends on), so the source is read with the js-literals format: palettes and token objects are read for literal values and palette references, nothing is evaluated. Token names keep Fluent's own CSS names (--colorNeutralBackground1, as @fluentui/web-components writes them); palettes are written under --fluent-. Named DDD colors point at fixed Fluent shared colors and the web brand ramp by role. Kept as DDD on purpose: light and black font weights (Fluent has regular, medium, semibold and bold), state opacities (Fluent uses hover and pressed colors), border widths, and heading/body sizes (Fluent body1 is 14px, below the 16px floor). Fluent's spacing steps (2, 4, 6, 8, 10, 12, 16, 20, 24, 32px) sit close to DDD's 4px grid, so the theme chrome uses DDD spacing tokens.",
|
|
3
|
+
"system": "fluent",
|
|
4
|
+
"title": "Fluent 2",
|
|
5
|
+
"prefix": "Fluent",
|
|
6
|
+
"homepage": "https://fluent2.microsoft.design",
|
|
7
|
+
"sources": [
|
|
8
|
+
{
|
|
9
|
+
"package": "@fluentui/tokens",
|
|
10
|
+
"version": "1.0.0-alpha.24",
|
|
11
|
+
"license": "MIT",
|
|
12
|
+
"copyright": "Copyright (c) Microsoft Corporation",
|
|
13
|
+
"homepage": "https://fluent2.microsoft.design",
|
|
14
|
+
"repository": "https://github.com/microsoft/fluentui",
|
|
15
|
+
"format": "js-literals",
|
|
16
|
+
"palettePrefix": "--fluent-",
|
|
17
|
+
"prefix": "--",
|
|
18
|
+
"palettes": [
|
|
19
|
+
"lib-commonjs/global/colors.cjs",
|
|
20
|
+
"lib-commonjs/global/brandColors.cjs"
|
|
21
|
+
],
|
|
22
|
+
"refs": {
|
|
23
|
+
"brand": "brandWeb"
|
|
24
|
+
},
|
|
25
|
+
"files": {
|
|
26
|
+
"light": [
|
|
27
|
+
"lib-commonjs/global/borderRadius.cjs",
|
|
28
|
+
"lib-commonjs/global/fonts.cjs",
|
|
29
|
+
"lib-commonjs/global/durations.cjs",
|
|
30
|
+
"lib-commonjs/global/curves.cjs",
|
|
31
|
+
"lib-commonjs/global/strokeWidths.cjs",
|
|
32
|
+
"lib-commonjs/alias/lightColor.cjs"
|
|
33
|
+
],
|
|
34
|
+
"dark": [
|
|
35
|
+
"lib-commonjs/global/borderRadius.cjs",
|
|
36
|
+
"lib-commonjs/global/fonts.cjs",
|
|
37
|
+
"lib-commonjs/global/durations.cjs",
|
|
38
|
+
"lib-commonjs/global/curves.cjs",
|
|
39
|
+
"lib-commonjs/global/strokeWidths.cjs",
|
|
40
|
+
"lib-commonjs/alias/darkColor.cjs"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"fonts": [],
|
|
46
|
+
"icons": {
|
|
47
|
+
"package": "@fluentui/svg-icons",
|
|
48
|
+
"version": "1.1.346",
|
|
49
|
+
"license": "MIT",
|
|
50
|
+
"path": "icons/{name}_24_regular.svg",
|
|
51
|
+
"map": "fluent"
|
|
52
|
+
},
|
|
53
|
+
"ddd": {
|
|
54
|
+
"--ddd-theme-default-beaverBlue": {
|
|
55
|
+
"token": "--fluent-brand-web-80",
|
|
56
|
+
"note": "Fluent brand (web) 80, colorBrandBackground in light"
|
|
57
|
+
},
|
|
58
|
+
"--ddd-theme-default-nittanyNavy": {
|
|
59
|
+
"token": "--fluent-brand-web-30"
|
|
60
|
+
},
|
|
61
|
+
"--ddd-theme-default-potentialMidnight": {
|
|
62
|
+
"token": "--fluent-brand-web-20"
|
|
63
|
+
},
|
|
64
|
+
"--ddd-theme-default-pughBlue": {
|
|
65
|
+
"token": "--fluent-brand-web-130"
|
|
66
|
+
},
|
|
67
|
+
"--ddd-theme-default-accent": {
|
|
68
|
+
"token": "--fluent-brand-web-130"
|
|
69
|
+
},
|
|
70
|
+
"--ddd-theme-default-skyBlue": {
|
|
71
|
+
"token": "--fluent-brand-web-100"
|
|
72
|
+
},
|
|
73
|
+
"--ddd-theme-default-skyLight": {
|
|
74
|
+
"token": "--fluent-brand-web-150"
|
|
75
|
+
},
|
|
76
|
+
"--ddd-theme-default-skyMaxLight": {
|
|
77
|
+
"token": "--fluent-brand-web-160"
|
|
78
|
+
},
|
|
79
|
+
"--ddd-theme-default-slateGray": {
|
|
80
|
+
"token": "--fluent-grey-26",
|
|
81
|
+
"note": "colorNeutralForeground2 (light)"
|
|
82
|
+
},
|
|
83
|
+
"--ddd-theme-default-slateLight": {
|
|
84
|
+
"token": "--fluent-grey-82"
|
|
85
|
+
},
|
|
86
|
+
"--ddd-theme-default-slateMaxLight": {
|
|
87
|
+
"token": "--fluent-grey-96"
|
|
88
|
+
},
|
|
89
|
+
"--ddd-theme-default-coalyGray": {
|
|
90
|
+
"token": "--fluent-grey-14",
|
|
91
|
+
"note": "colorNeutralForeground1 (light) / colorNeutralBackground1 (dark)"
|
|
92
|
+
},
|
|
93
|
+
"--ddd-theme-default-black": {
|
|
94
|
+
"token": "--fluent-black"
|
|
95
|
+
},
|
|
96
|
+
"--ddd-theme-default-white": {
|
|
97
|
+
"token": "--fluent-white"
|
|
98
|
+
},
|
|
99
|
+
"--ddd-theme-default-limestoneGray": {
|
|
100
|
+
"token": "--fluent-grey-66"
|
|
101
|
+
},
|
|
102
|
+
"--ddd-theme-default-limestoneLight": {
|
|
103
|
+
"token": "--fluent-grey-92",
|
|
104
|
+
"note": "grey 88 is under 4.5:1 behind beaverBlue icons"
|
|
105
|
+
},
|
|
106
|
+
"--ddd-theme-default-limestoneMaxLight": {
|
|
107
|
+
"token": "--fluent-grey-96"
|
|
108
|
+
},
|
|
109
|
+
"--ddd-theme-default-background": {
|
|
110
|
+
"token": "--fluent-grey-96",
|
|
111
|
+
"note": "colorNeutralBackground2-ish page wash"
|
|
112
|
+
},
|
|
113
|
+
"--ddd-theme-default-disabled": {
|
|
114
|
+
"token": "--fluent-grey-94",
|
|
115
|
+
"note": "colorNeutralBackgroundDisabled (light)"
|
|
116
|
+
},
|
|
117
|
+
"--ddd-theme-default-keystoneYellow": {
|
|
118
|
+
"token": "--fluent-yellow-primary"
|
|
119
|
+
},
|
|
120
|
+
"--ddd-theme-default-globalNeon": {
|
|
121
|
+
"token": "--fluent-yellow-tint40"
|
|
122
|
+
},
|
|
123
|
+
"--ddd-theme-default-roarGolden": {
|
|
124
|
+
"token": "--fluent-marigold-primary"
|
|
125
|
+
},
|
|
126
|
+
"--ddd-theme-default-roarLight": {
|
|
127
|
+
"token": "--fluent-marigold-tint40"
|
|
128
|
+
},
|
|
129
|
+
"--ddd-theme-default-roarMaxlight": {
|
|
130
|
+
"token": "--fluent-marigold-tint60"
|
|
131
|
+
},
|
|
132
|
+
"--ddd-theme-default-shrineTan": {
|
|
133
|
+
"token": "--fluent-beige-tint20",
|
|
134
|
+
"note": "Fluent has no tan; beige tint 20 keeps 4.5:1 against potentialMidnight"
|
|
135
|
+
},
|
|
136
|
+
"--ddd-theme-default-shrineLight": {
|
|
137
|
+
"token": "--fluent-beige-tint40"
|
|
138
|
+
},
|
|
139
|
+
"--ddd-theme-default-shrineMaxLight": {
|
|
140
|
+
"token": "--fluent-beige-tint60"
|
|
141
|
+
},
|
|
142
|
+
"--ddd-theme-default-inventOrange": {
|
|
143
|
+
"token": "--fluent-dark-orange-tint20",
|
|
144
|
+
"note": "dark orange primary is under 4.5:1 against potentialMidnight"
|
|
145
|
+
},
|
|
146
|
+
"--ddd-theme-default-landgrantBrown": {
|
|
147
|
+
"token": "--fluent-brown-shade20"
|
|
148
|
+
},
|
|
149
|
+
"--ddd-theme-default-creekTeal": {
|
|
150
|
+
"token": "--fluent-teal-tint20",
|
|
151
|
+
"note": "teal primary is under 4.5:1 against potentialMidnight"
|
|
152
|
+
},
|
|
153
|
+
"--ddd-theme-default-creekLight": {
|
|
154
|
+
"token": "--fluent-teal-tint40"
|
|
155
|
+
},
|
|
156
|
+
"--ddd-theme-default-creekMaxLight": {
|
|
157
|
+
"token": "--fluent-teal-tint60"
|
|
158
|
+
},
|
|
159
|
+
"--ddd-theme-default-opportunityGreen": {
|
|
160
|
+
"token": "--fluent-green-primary",
|
|
161
|
+
"note": "correct signal (light)"
|
|
162
|
+
},
|
|
163
|
+
"--ddd-theme-default-forestGreen": {
|
|
164
|
+
"token": "--fluent-forest-shade10"
|
|
165
|
+
},
|
|
166
|
+
"--ddd-theme-default-futureLime": {
|
|
167
|
+
"token": "--fluent-light-green-tint30",
|
|
168
|
+
"note": "correct signal (dark)"
|
|
169
|
+
},
|
|
170
|
+
"--ddd-theme-default-athertonViolet": {
|
|
171
|
+
"token": "--fluent-lavender-tint30",
|
|
172
|
+
"note": "incorrect signal (dark)"
|
|
173
|
+
},
|
|
174
|
+
"--ddd-theme-default-wonderPurple": {
|
|
175
|
+
"token": "--fluent-purple-primary",
|
|
176
|
+
"note": "incorrect signal (light); keeps HAX purple-for-incorrect"
|
|
177
|
+
},
|
|
178
|
+
"--ddd-theme-default-original87Pink": {
|
|
179
|
+
"token": "--fluent-pink-shade20",
|
|
180
|
+
"note": "pink primary is under 4.5:1 as the stop-note ink on errorLight"
|
|
181
|
+
},
|
|
182
|
+
"--ddd-theme-default-discoveryCoral": {
|
|
183
|
+
"token": "--fluent-red-tint30"
|
|
184
|
+
},
|
|
185
|
+
"--ddd-theme-default-link": {
|
|
186
|
+
"token": "--fluent-brand-web-70",
|
|
187
|
+
"note": "colorBrandForegroundLink (light)"
|
|
188
|
+
},
|
|
189
|
+
"--ddd-theme-default-linkLight": {
|
|
190
|
+
"token": "--fluent-brand-web-110",
|
|
191
|
+
"note": "colorBrandForegroundLink (dark) is brand 100; 110 keeps 4.5:1 on dark surfaces"
|
|
192
|
+
},
|
|
193
|
+
"--ddd-theme-default-error": {
|
|
194
|
+
"token": "--fluent-red-shade10",
|
|
195
|
+
"note": "colorStatusDangerForeground1 (light)"
|
|
196
|
+
},
|
|
197
|
+
"--ddd-theme-default-errorLight": {
|
|
198
|
+
"token": "--fluent-red-tint60",
|
|
199
|
+
"note": "colorStatusDangerBackground1 (light)"
|
|
200
|
+
},
|
|
201
|
+
"--ddd-theme-default-warning": {
|
|
202
|
+
"token": "--fluent-dark-orange-shade20",
|
|
203
|
+
"note": "colorStatusWarningForeground3 (light)"
|
|
204
|
+
},
|
|
205
|
+
"--ddd-theme-default-warningLight": {
|
|
206
|
+
"token": "--fluent-dark-orange-tint60"
|
|
207
|
+
},
|
|
208
|
+
"--ddd-theme-default-info": {
|
|
209
|
+
"token": "--fluent-brand-web-70"
|
|
210
|
+
},
|
|
211
|
+
"--ddd-theme-default-infoLight": {
|
|
212
|
+
"token": "--fluent-brand-web-160"
|
|
213
|
+
},
|
|
214
|
+
"--ddd-theme-default-success": {
|
|
215
|
+
"token": "--fluent-green-shade20",
|
|
216
|
+
"note": "colorStatusSuccessForeground (light)"
|
|
217
|
+
},
|
|
218
|
+
"--ddd-theme-default-successLight": {
|
|
219
|
+
"token": "--fluent-green-tint60"
|
|
220
|
+
},
|
|
221
|
+
"--ddd-theme-default-alertImmediate": {
|
|
222
|
+
"token": "--fluent-red-tint40"
|
|
223
|
+
},
|
|
224
|
+
"--ddd-theme-default-alertUrgent": {
|
|
225
|
+
"token": "--fluent-yellow-tint60"
|
|
226
|
+
},
|
|
227
|
+
"--ddd-theme-default-alertAllClear": {
|
|
228
|
+
"token": "--fluent-green-tint60"
|
|
229
|
+
},
|
|
230
|
+
"--ddd-theme-default-alertNonEmergency": {
|
|
231
|
+
"token": "--fluent-brand-web-160"
|
|
232
|
+
},
|
|
233
|
+
"--ddd-font-primary": {
|
|
234
|
+
"token": "--fontFamilyBase",
|
|
235
|
+
"note": "Segoe UI on Windows, the platform UI font elsewhere; Fluent loads no web font"
|
|
236
|
+
},
|
|
237
|
+
"--ddd-font-secondary": {
|
|
238
|
+
"token": "--fontFamilyBase",
|
|
239
|
+
"note": "Fluent sets headings in the same family"
|
|
240
|
+
},
|
|
241
|
+
"--ddd-font-navigation": {
|
|
242
|
+
"token": "--fontFamilyBase"
|
|
243
|
+
},
|
|
244
|
+
"--ddd-font-mono": {
|
|
245
|
+
"token": "--fontFamilyMonospace"
|
|
246
|
+
},
|
|
247
|
+
"--ddd-font-weight-regular": {
|
|
248
|
+
"token": "--fontWeightRegular"
|
|
249
|
+
},
|
|
250
|
+
"--ddd-font-weight-medium": {
|
|
251
|
+
"token": "--fontWeightMedium"
|
|
252
|
+
},
|
|
253
|
+
"--ddd-font-weight-bold": {
|
|
254
|
+
"token": "--fontWeightSemibold",
|
|
255
|
+
"note": "Fluent titles and buttons are semibold"
|
|
256
|
+
},
|
|
257
|
+
"--ddd-radius-xs": {
|
|
258
|
+
"token": "--borderRadiusSmall"
|
|
259
|
+
},
|
|
260
|
+
"--ddd-radius-sm": {
|
|
261
|
+
"token": "--borderRadiusMedium",
|
|
262
|
+
"note": "Fluent's default control and card radius"
|
|
263
|
+
},
|
|
264
|
+
"--ddd-radius-md": {
|
|
265
|
+
"token": "--borderRadiusLarge"
|
|
266
|
+
},
|
|
267
|
+
"--ddd-radius-lg": {
|
|
268
|
+
"token": "--borderRadiusXLarge"
|
|
269
|
+
},
|
|
270
|
+
"--ddd-radius-xl": {
|
|
271
|
+
"token": "--borderRadius2XLarge"
|
|
272
|
+
},
|
|
273
|
+
"--ddd-boxShadow-sm": {
|
|
274
|
+
"value": "0 0 2px var(--colorNeutralShadowAmbient), 0 1px 2px var(--colorNeutralShadowKey)",
|
|
275
|
+
"note": "Fluent shadow2 (createShadowTokens)"
|
|
276
|
+
},
|
|
277
|
+
"--ddd-boxShadow-md": {
|
|
278
|
+
"value": "0 0 2px var(--colorNeutralShadowAmbient), 0 2px 4px var(--colorNeutralShadowKey)",
|
|
279
|
+
"note": "shadow4"
|
|
280
|
+
},
|
|
281
|
+
"--ddd-boxShadow-lg": {
|
|
282
|
+
"value": "0 0 2px var(--colorNeutralShadowAmbient), 0 8px 16px var(--colorNeutralShadowKey)",
|
|
283
|
+
"note": "shadow16"
|
|
284
|
+
},
|
|
285
|
+
"--ddd-boxShadow-xl": {
|
|
286
|
+
"value": "0 0 8px var(--colorNeutralShadowAmbient), 0 14px 28px var(--colorNeutralShadowKey)",
|
|
287
|
+
"note": "shadow28"
|
|
288
|
+
},
|
|
289
|
+
"--ddd-focus-ring": {
|
|
290
|
+
"value": "2px solid var(--colorStrokeFocus2)",
|
|
291
|
+
"note": "Fluent's focus indicator: colorStrokeFocus2 (black in light, white in dark)"
|
|
292
|
+
},
|
|
293
|
+
"--ddd-focus-offset": {
|
|
294
|
+
"value": "2px"
|
|
295
|
+
},
|
|
296
|
+
"--ddd-duration-fast": {
|
|
297
|
+
"token": "--durationFaster"
|
|
298
|
+
},
|
|
299
|
+
"--ddd-duration-normal": {
|
|
300
|
+
"token": "--durationNormal"
|
|
301
|
+
},
|
|
302
|
+
"--ddd-duration-slow": {
|
|
303
|
+
"token": "--durationSlow"
|
|
304
|
+
},
|
|
305
|
+
"--ddd-timing-ease": {
|
|
306
|
+
"token": "--curveEasyEase"
|
|
307
|
+
},
|
|
308
|
+
"--ddd-timing-enter": {
|
|
309
|
+
"token": "--curveDecelerateMid"
|
|
310
|
+
},
|
|
311
|
+
"--ddd-timing-exit": {
|
|
312
|
+
"token": "--curveAccelerateMid"
|
|
313
|
+
},
|
|
314
|
+
"--ddd-timing-emphasized": {
|
|
315
|
+
"token": "--curveEasyEaseMax"
|
|
316
|
+
},
|
|
317
|
+
"--ddd-control-height-xs": {
|
|
318
|
+
"value": "24px",
|
|
319
|
+
"note": "Fluent small button"
|
|
320
|
+
},
|
|
321
|
+
"--ddd-control-height-sm": {
|
|
322
|
+
"value": "32px",
|
|
323
|
+
"note": "Fluent medium button"
|
|
324
|
+
},
|
|
325
|
+
"--ddd-control-height-md": {
|
|
326
|
+
"value": "40px",
|
|
327
|
+
"note": "Fluent large button"
|
|
328
|
+
},
|
|
329
|
+
"--ddd-textfield-height-sm": {
|
|
330
|
+
"value": "24px",
|
|
331
|
+
"note": "Fluent small input"
|
|
332
|
+
},
|
|
333
|
+
"--ddd-textfield-height-md": {
|
|
334
|
+
"value": "32px",
|
|
335
|
+
"note": "Fluent medium input"
|
|
336
|
+
},
|
|
337
|
+
"--ddd-textfield-height-lg": {
|
|
338
|
+
"value": "40px",
|
|
339
|
+
"note": "Fluent large input"
|
|
340
|
+
},
|
|
341
|
+
"--ddd-surface-padding": {
|
|
342
|
+
"value": "12px",
|
|
343
|
+
"note": "Fluent card padding, spacingHorizontalM"
|
|
344
|
+
},
|
|
345
|
+
"--ddd-surface-padding-lg": {
|
|
346
|
+
"value": "24px",
|
|
347
|
+
"note": "spacingHorizontalXXL"
|
|
348
|
+
},
|
|
349
|
+
"--ddd-stack-gap": {
|
|
350
|
+
"value": "12px",
|
|
351
|
+
"note": "spacingVerticalM"
|
|
352
|
+
},
|
|
353
|
+
"--ddd-inline-gap": {
|
|
354
|
+
"value": "8px",
|
|
355
|
+
"note": "spacingHorizontalS"
|
|
356
|
+
},
|
|
357
|
+
"--ddd-control-padding-inline": {
|
|
358
|
+
"value": "12px",
|
|
359
|
+
"note": "Fluent medium button inline padding, spacingHorizontalM"
|
|
360
|
+
},
|
|
361
|
+
"--ddd-card-padding": {
|
|
362
|
+
"value": "12px",
|
|
363
|
+
"note": "Fluent card padding (a px value: HAX's root font size is 20px)"
|
|
364
|
+
},
|
|
365
|
+
"--ddd-card-border-width": {
|
|
366
|
+
"value": "1px",
|
|
367
|
+
"note": "Fluent cards draw a 1px stroke (transparent on the filled card, colorNeutralStroke1 on the outline card)"
|
|
368
|
+
},
|
|
369
|
+
"--ddd-card-shadow": {
|
|
370
|
+
"value": "0 0 2px var(--colorNeutralShadowAmbient), 0 2px 4px var(--colorNeutralShadowKey)",
|
|
371
|
+
"note": "the filled card's shadow4"
|
|
372
|
+
},
|
|
373
|
+
"--ddd-card-background": {
|
|
374
|
+
"token": "--colorNeutralCardBackground"
|
|
375
|
+
},
|
|
376
|
+
"--ddd-control-height": {
|
|
377
|
+
"value": "32px",
|
|
378
|
+
"note": "Fluent medium button"
|
|
379
|
+
},
|
|
380
|
+
"--ddd-tag-radius": {
|
|
381
|
+
"token": "--borderRadiusCircular",
|
|
382
|
+
"note": "Fluent tags and badges are pills"
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
"extraTokens": [
|
|
386
|
+
"--colorNeutralBackground1",
|
|
387
|
+
"--colorNeutralBackground2",
|
|
388
|
+
"--colorNeutralBackground1Hover",
|
|
389
|
+
"--colorNeutralForeground1",
|
|
390
|
+
"--colorNeutralForeground2",
|
|
391
|
+
"--colorNeutralForeground3",
|
|
392
|
+
"--colorNeutralStroke2",
|
|
393
|
+
"--colorBrandForeground1",
|
|
394
|
+
"--colorBrandForegroundLink",
|
|
395
|
+
"--colorBrandForegroundLinkHover",
|
|
396
|
+
"--colorSubtleBackgroundHover",
|
|
397
|
+
"--colorSubtleBackgroundSelected",
|
|
398
|
+
"--colorStrokeFocus2",
|
|
399
|
+
"--colorNeutralShadowAmbient",
|
|
400
|
+
"--colorNeutralShadowKey",
|
|
401
|
+
"--borderRadiusMedium",
|
|
402
|
+
"--borderRadiusXLarge",
|
|
403
|
+
"--fontWeightSemibold"
|
|
404
|
+
]
|
|
405
|
+
}
|