@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
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "1.0.0",
|
|
3
|
+
"readme": "",
|
|
4
|
+
"modules": [
|
|
5
|
+
{
|
|
6
|
+
"kind": "javascript-module",
|
|
7
|
+
"path": "fluent-theme.js",
|
|
8
|
+
"declarations": [
|
|
9
|
+
{
|
|
10
|
+
"kind": "class",
|
|
11
|
+
"description": "`fluent-theme`\nA HAXcms theme in the layout of the Fluent 2 documentation site: a light\n56px header, a navigation drawer on the neutral background 2 surface whose\nselected item carries Fluent's brand pill, and page content on a rounded\ncard surface. Built on the Fluent 2 DDD bridge: every HAX block reads\n--ddd-* tokens, which point at Fluent tokens while this theme is active.",
|
|
12
|
+
"name": "FluentTheme",
|
|
13
|
+
"members": [
|
|
14
|
+
{
|
|
15
|
+
"kind": "field",
|
|
16
|
+
"name": "tag",
|
|
17
|
+
"static": true,
|
|
18
|
+
"readonly": true
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"kind": "method",
|
|
22
|
+
"name": "HAXCMSGlobalStyleSheetContent"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"kind": "method",
|
|
26
|
+
"name": "toggleSidebar"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"kind": "method",
|
|
30
|
+
"name": "toggleDarkMode"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"kind": "field",
|
|
34
|
+
"name": "t",
|
|
35
|
+
"type": {
|
|
36
|
+
"text": "object"
|
|
37
|
+
},
|
|
38
|
+
"default": "{ ...this.t, skipToContent: \"Skip to content\", toggleSiteMenu: \"Toggle site menu\", siteNavigation: \"Site navigation\", searchSite: \"Search site\", search: \"Search\", toggleDarkMode: \"Toggle dark mode\", pageNavigation: \"Page navigation\", }"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"kind": "field",
|
|
42
|
+
"name": "autoScroll",
|
|
43
|
+
"type": {
|
|
44
|
+
"text": "boolean"
|
|
45
|
+
},
|
|
46
|
+
"default": "true"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"kind": "field",
|
|
50
|
+
"name": "sidebarOpen",
|
|
51
|
+
"privacy": "public",
|
|
52
|
+
"type": {
|
|
53
|
+
"text": "boolean"
|
|
54
|
+
},
|
|
55
|
+
"default": "true",
|
|
56
|
+
"attribute": "sidebar-open",
|
|
57
|
+
"reflects": true
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"kind": "field",
|
|
61
|
+
"name": "_mobile",
|
|
62
|
+
"privacy": "public",
|
|
63
|
+
"type": {
|
|
64
|
+
"text": "boolean"
|
|
65
|
+
},
|
|
66
|
+
"default": "false",
|
|
67
|
+
"attribute": "_mobile"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"kind": "field",
|
|
71
|
+
"name": "__fluentDisposers",
|
|
72
|
+
"type": {
|
|
73
|
+
"text": "array"
|
|
74
|
+
},
|
|
75
|
+
"default": "[]"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"kind": "field",
|
|
79
|
+
"name": "_dark",
|
|
80
|
+
"privacy": "public",
|
|
81
|
+
"type": {
|
|
82
|
+
"text": "boolean"
|
|
83
|
+
},
|
|
84
|
+
"attribute": "_dark"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"kind": "field",
|
|
88
|
+
"name": "_lead",
|
|
89
|
+
"privacy": "public",
|
|
90
|
+
"type": {
|
|
91
|
+
"text": "string"
|
|
92
|
+
},
|
|
93
|
+
"attribute": "_lead"
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
"attributes": [
|
|
97
|
+
{
|
|
98
|
+
"name": "sidebar-open",
|
|
99
|
+
"type": {
|
|
100
|
+
"text": "boolean"
|
|
101
|
+
},
|
|
102
|
+
"default": "true",
|
|
103
|
+
"fieldName": "sidebarOpen"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"name": "_mobile",
|
|
107
|
+
"type": {
|
|
108
|
+
"text": "boolean"
|
|
109
|
+
},
|
|
110
|
+
"default": "false",
|
|
111
|
+
"fieldName": "_mobile"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "_dark",
|
|
115
|
+
"type": {
|
|
116
|
+
"text": "boolean"
|
|
117
|
+
},
|
|
118
|
+
"fieldName": "_dark"
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"name": "_lead",
|
|
122
|
+
"type": {
|
|
123
|
+
"text": "string"
|
|
124
|
+
},
|
|
125
|
+
"fieldName": "_lead"
|
|
126
|
+
}
|
|
127
|
+
],
|
|
128
|
+
"mixins": [
|
|
129
|
+
{
|
|
130
|
+
"name": "HAXCMSThemeParts",
|
|
131
|
+
"package": "@haxtheweb/haxcms-elements/lib/core/utils/HAXCMSThemeParts.js"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "DDDSuper",
|
|
135
|
+
"package": "@haxtheweb/d-d-d/d-d-d.js"
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
"superclass": {
|
|
139
|
+
"name": "HAXCMSLitElementTheme",
|
|
140
|
+
"package": "@haxtheweb/haxcms-elements/lib/core/HAXCMSLitElementTheme.js"
|
|
141
|
+
},
|
|
142
|
+
"tagName": "fluent-theme",
|
|
143
|
+
"customElement": true
|
|
144
|
+
}
|
|
145
|
+
],
|
|
146
|
+
"exports": [
|
|
147
|
+
{
|
|
148
|
+
"kind": "custom-element-definition",
|
|
149
|
+
"declaration": {
|
|
150
|
+
"name": "FluentTheme",
|
|
151
|
+
"module": "fluent-theme.js"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
{
|
|
155
|
+
"kind": "js",
|
|
156
|
+
"name": "FluentTheme",
|
|
157
|
+
"declaration": {
|
|
158
|
+
"name": "FluentTheme",
|
|
159
|
+
"module": "fluent-theme.js"
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
]
|
|
163
|
+
},
|
|
164
|
+
{
|
|
165
|
+
"kind": "javascript-module",
|
|
166
|
+
"path": "lib/FluentDDDMap.js",
|
|
167
|
+
"declarations": [
|
|
168
|
+
{
|
|
169
|
+
"kind": "variable",
|
|
170
|
+
"name": "FluentDDDMap",
|
|
171
|
+
"default": "css` :root, :host { --ddd-theme-default-beaverBlue: var(--fluent-brand-web-80); --ddd-theme-default-nittanyNavy: var(--fluent-brand-web-30); --ddd-theme-default-potentialMidnight: var(--fluent-brand-web-20); --ddd-theme-default-pughBlue: var(--fluent-brand-web-130); --ddd-theme-default-accent: var(--fluent-brand-web-130); --ddd-theme-default-skyBlue: var(--fluent-brand-web-100); --ddd-theme-default-skyLight: var(--fluent-brand-web-150); --ddd-theme-default-skyMaxLight: var(--fluent-brand-web-160); --ddd-theme-default-slateGray: var(--fluent-grey-26); --ddd-theme-default-slateLight: var(--fluent-grey-82); --ddd-theme-default-slateMaxLight: var(--fluent-grey-96); --ddd-theme-default-coalyGray: var(--fluent-grey-14); --ddd-theme-default-black: var(--fluent-black); --ddd-theme-default-white: var(--fluent-white); --ddd-theme-default-limestoneGray: var(--fluent-grey-66); --ddd-theme-default-limestoneLight: var(--fluent-grey-92); --ddd-theme-default-limestoneMaxLight: var(--fluent-grey-96); --ddd-theme-default-background: var(--fluent-grey-96); --ddd-theme-default-disabled: var(--fluent-grey-94); --ddd-theme-default-keystoneYellow: var(--fluent-yellow-primary); --ddd-theme-default-globalNeon: var(--fluent-yellow-tint40); --ddd-theme-default-roarGolden: var(--fluent-marigold-primary); --ddd-theme-default-roarLight: var(--fluent-marigold-tint40); --ddd-theme-default-roarMaxlight: var(--fluent-marigold-tint60); --ddd-theme-default-shrineTan: var(--fluent-beige-tint20); --ddd-theme-default-shrineLight: var(--fluent-beige-tint40); --ddd-theme-default-shrineMaxLight: var(--fluent-beige-tint60); --ddd-theme-default-inventOrange: var(--fluent-dark-orange-tint20); --ddd-theme-default-landgrantBrown: var(--fluent-brown-shade20); --ddd-theme-default-creekTeal: var(--fluent-teal-tint20); --ddd-theme-default-creekLight: var(--fluent-teal-tint40); --ddd-theme-default-creekMaxLight: var(--fluent-teal-tint60); --ddd-theme-default-opportunityGreen: var(--fluent-green-primary); --ddd-theme-default-forestGreen: var(--fluent-forest-shade10); --ddd-theme-default-futureLime: var(--fluent-light-green-tint30); --ddd-theme-default-athertonViolet: var(--fluent-lavender-tint30); --ddd-theme-default-wonderPurple: var(--fluent-purple-primary); --ddd-theme-default-original87Pink: var(--fluent-pink-shade20); --ddd-theme-default-discoveryCoral: var(--fluent-red-tint30); --ddd-theme-default-link: var(--fluent-brand-web-70); --ddd-theme-default-linkLight: var(--fluent-brand-web-110); --ddd-theme-default-error: var(--fluent-red-shade10); --ddd-theme-default-errorLight: var(--fluent-red-tint60); --ddd-theme-default-warning: var(--fluent-dark-orange-shade20); --ddd-theme-default-warningLight: var(--fluent-dark-orange-tint60); --ddd-theme-default-info: var(--fluent-brand-web-70); --ddd-theme-default-infoLight: var(--fluent-brand-web-160); --ddd-theme-default-success: var(--fluent-green-shade20); --ddd-theme-default-successLight: var(--fluent-green-tint60); --ddd-theme-default-alertImmediate: var(--fluent-red-tint40); --ddd-theme-default-alertUrgent: var(--fluent-yellow-tint60); --ddd-theme-default-alertAllClear: var(--fluent-green-tint60); --ddd-theme-default-alertNonEmergency: var(--fluent-brand-web-160); --ddd-font-primary: var(--fontFamilyBase); --ddd-font-secondary: var(--fontFamilyBase); --ddd-font-navigation: var(--fontFamilyBase); --ddd-font-mono: var(--fontFamilyMonospace); --ddd-font-weight-regular: var(--fontWeightRegular); --ddd-font-weight-medium: var(--fontWeightMedium); --ddd-font-weight-bold: var(--fontWeightSemibold); --ddd-radius-xs: var(--borderRadiusSmall); --ddd-radius-sm: var(--borderRadiusMedium); --ddd-radius-md: var(--borderRadiusLarge); --ddd-radius-lg: var(--borderRadiusXLarge); --ddd-radius-xl: var(--borderRadius2XLarge); --ddd-boxShadow-sm: 0 0 2px var(--colorNeutralShadowAmbient), 0 1px 2px var(--colorNeutralShadowKey); --ddd-boxShadow-md: 0 0 2px var(--colorNeutralShadowAmbient), 0 2px 4px var(--colorNeutralShadowKey); --ddd-boxShadow-lg: 0 0 2px var(--colorNeutralShadowAmbient), 0 8px 16px var(--colorNeutralShadowKey); --ddd-boxShadow-xl: 0 0 8px var(--colorNeutralShadowAmbient), 0 14px 28px var(--colorNeutralShadowKey); --ddd-focus-ring: 2px solid var(--colorStrokeFocus2); --ddd-focus-offset: 2px; --ddd-duration-fast: var(--durationFaster); --ddd-duration-normal: var(--durationNormal); --ddd-duration-slow: var(--durationSlow); --ddd-timing-ease: var(--curveEasyEase); --ddd-timing-enter: var(--curveDecelerateMid); --ddd-timing-exit: var(--curveAccelerateMid); --ddd-timing-emphasized: var(--curveEasyEaseMax); --ddd-control-height-xs: 24px; --ddd-control-height-sm: 32px; --ddd-control-height-md: 40px; --ddd-textfield-height-sm: 24px; --ddd-textfield-height-md: 32px; --ddd-textfield-height-lg: 40px; --ddd-surface-padding: 12px; --ddd-surface-padding-lg: 24px; --ddd-stack-gap: 12px; --ddd-inline-gap: 8px; --ddd-control-padding-inline: 12px; --ddd-card-padding: 12px; --ddd-card-border-width: 1px; --ddd-card-shadow: 0 0 2px var(--colorNeutralShadowAmbient), 0 2px 4px var(--colorNeutralShadowKey); --ddd-card-background: var(--colorNeutralCardBackground); --ddd-control-height: 32px; --ddd-tag-radius: var(--borderRadiusCircular); /* rgb channels follow their mapped color */ --ddd-primary-0-rgb: 150, 198, 250, 0.7; --ddd-primary-1-rgb: 15, 108, 189; --ddd-primary-2-rgb: 10, 46, 74; --ddd-primary-3-rgb: 8, 35, 56; --ddd-primary-4-rgb: 36, 36, 36; --ddd-primary-5-rgb: 168, 168, 168; --ddd-primary-6-rgb: 66, 66, 66; --ddd-primary-7-rgb: 42, 160, 164; --ddd-primary-8-rgb: 71, 158, 245; --ddd-primary-9-rgb: 154, 149, 148; --ddd-primary-10-rgb: 234, 163, 0; --ddd-primary-11-rgb: 173, 45, 126, 0.7; --ddd-primary-12-rgb: 227, 125, 128; --ddd-primary-13-rgb: 92, 46, 145; --ddd-primary-14-rgb: 167, 156, 241; --ddd-primary-15-rgb: 227, 101, 55; --ddd-primary-16-rgb: 253, 227, 0; --ddd-primary-17-rgb: 16, 124, 16; --ddd-primary-18-rgb: 94, 199, 90; --ddd-primary-19-rgb: 66, 117, 5; --ddd-primary-20-rgb: 108, 65, 35; --ddd-primary-21-rgb: 254, 247, 178; --ddd-primary-22-rgb: 188, 47, 50; --ddd-primary-23-rgb: 166, 45, 1; --ddd-primary-24-rgb: 17, 94, 163; --ddd-primary-25-rgb: 12, 94, 12; /* text color paired with each remapped palette, where DDD's own no longer reads */ --ddd-primary-17-on: white; } `"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
"exports": [
|
|
175
|
+
{
|
|
176
|
+
"kind": "js",
|
|
177
|
+
"name": "FluentDDDMap",
|
|
178
|
+
"declaration": {
|
|
179
|
+
"name": "FluentDDDMap",
|
|
180
|
+
"module": "lib/FluentDDDMap.js"
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"kind": "javascript-module",
|
|
187
|
+
"path": "lib/FluentDesignSystem.js",
|
|
188
|
+
"declarations": [
|
|
189
|
+
{
|
|
190
|
+
"kind": "variable",
|
|
191
|
+
"name": "FLUENT_SYSTEM",
|
|
192
|
+
"type": {
|
|
193
|
+
"text": "string"
|
|
194
|
+
},
|
|
195
|
+
"default": "\"fluent\""
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"kind": "function",
|
|
199
|
+
"name": "registerFluentDesignSystem",
|
|
200
|
+
"parameters": [
|
|
201
|
+
{
|
|
202
|
+
"name": "manager",
|
|
203
|
+
"default": "DesignSystemManager"
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
"description": "register Fluent with the design system manager (once)"
|
|
207
|
+
},
|
|
208
|
+
{
|
|
209
|
+
"kind": "function",
|
|
210
|
+
"name": "activateFluentDesignSystem",
|
|
211
|
+
"parameters": [
|
|
212
|
+
{
|
|
213
|
+
"name": "manager",
|
|
214
|
+
"default": "DesignSystemManager"
|
|
215
|
+
}
|
|
216
|
+
],
|
|
217
|
+
"description": "make Fluent the active design system"
|
|
218
|
+
}
|
|
219
|
+
],
|
|
220
|
+
"exports": [
|
|
221
|
+
{
|
|
222
|
+
"kind": "js",
|
|
223
|
+
"name": "FLUENT_SYSTEM",
|
|
224
|
+
"declaration": {
|
|
225
|
+
"name": "FLUENT_SYSTEM",
|
|
226
|
+
"module": "lib/FluentDesignSystem.js"
|
|
227
|
+
}
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"kind": "js",
|
|
231
|
+
"name": "registerFluentDesignSystem",
|
|
232
|
+
"declaration": {
|
|
233
|
+
"name": "registerFluentDesignSystem",
|
|
234
|
+
"module": "lib/FluentDesignSystem.js"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"kind": "js",
|
|
239
|
+
"name": "activateFluentDesignSystem",
|
|
240
|
+
"declaration": {
|
|
241
|
+
"name": "activateFluentDesignSystem",
|
|
242
|
+
"module": "lib/FluentDesignSystem.js"
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"kind": "javascript-module",
|
|
249
|
+
"path": "lib/FluentIcons.js",
|
|
250
|
+
"declarations": [
|
|
251
|
+
{
|
|
252
|
+
"kind": "variable",
|
|
253
|
+
"name": "FluentIcons",
|
|
254
|
+
"type": {
|
|
255
|
+
"text": "object"
|
|
256
|
+
},
|
|
257
|
+
"default": "{ set: \"fluent-icons\", basePath: new URL(\"../icons/\", import.meta.url).href, aliases: { \"av:closed-caption\": \"fluent-icons:closed_caption\", \"av:mic\": \"fluent-icons:mic\", \"av:music-note\": \"fluent-icons:music_note_2\", \"av:pause\": \"fluent-icons:pause\", \"av:pause-circle-outline\": \"fluent-icons:pause_circle\", \"av:play-arrow\": \"fluent-icons:play\", \"av:play-circle-filled\": \"fluent-icons:play_circle\", \"av:play-circle-outline\": \"fluent-icons:play_circle\", \"av:shuffle\": \"fluent-icons:arrow_shuffle\", \"av:stop\": \"fluent-icons:stop\", \"av:videocam\": \"fluent-icons:video\", \"av:volume-up\": \"fluent-icons:speaker_2\", \"communication:call\": \"fluent-icons:call\", \"communication:chat\": \"fluent-icons:chat\", \"communication:email\": \"fluent-icons:mail\", \"communication:location-on\": \"fluent-icons:location\", \"communication:message\": \"fluent-icons:chat\", \"communication:phone\": \"fluent-icons:call\", \"communication:rss-feed\": \"fluent-icons:rss\", \"device:access-time\": \"fluent-icons:clock\", \"editor:attach-file\": \"fluent-icons:attach\", \"editor:border-all\": \"fluent-icons:table\", \"editor:format-align-center\": \"fluent-icons:text_align_center\", \"editor:format-align-justify\": \"fluent-icons:text_align_justify\", \"editor:format-align-left\": \"fluent-icons:text_align_left\", \"editor:format-align-right\": \"fluent-icons:text_align_right\", \"editor:format-bold\": \"fluent-icons:text_bold\", \"editor:format-color-fill\": \"fluent-icons:paint_bucket\", \"editor:format-italic\": \"fluent-icons:text_italic\", \"editor:format-list-bulleted\": \"fluent-icons:text_bullet_list_ltr\", \"editor:format-list-numbered\": \"fluent-icons:text_number_list_ltr\", \"editor:format-quote\": \"fluent-icons:text_quote\", \"editor:format-strikethrough\": \"fluent-icons:text_strikethrough\", \"editor:format-underlined\": \"fluent-icons:text_underline\", \"editor:highlight\": \"fluent-icons:highlight\", \"editor:insert-chart\": \"fluent-icons:data_bar_vertical\", \"editor:insert-drive-file\": \"fluent-icons:document\", \"editor:insert-emoticon\": \"fluent-icons:emoji\", \"editor:insert-link\": \"fluent-icons:link\", \"editor:insert-photo\": \"fluent-icons:image\", \"editor:mode-edit\": \"fluent-icons:edit\", \"editor:show-chart\": \"fluent-icons:data_line\", \"editor:title\": \"fluent-icons:text_font\", \"hardware:computer\": \"fluent-icons:desktop\", \"hardware:desktop-windows\": \"fluent-icons:desktop\", \"hardware:keyboard\": \"fluent-icons:keyboard\", \"hardware:keyboard-arrow-down\": \"fluent-icons:chevron_down\", \"hardware:keyboard-arrow-left\": \"fluent-icons:chevron_left\", \"hardware:keyboard-arrow-right\": \"fluent-icons:chevron_right\", \"hardware:keyboard-arrow-up\": \"fluent-icons:chevron_up\", \"hardware:phone-iphone\": \"fluent-icons:phone\", \"hardware:tablet\": \"fluent-icons:tablet\", \"icons:add\": \"fluent-icons:add\", \"icons:add-circle\": \"fluent-icons:add_circle\", \"icons:add-circle-outline\": \"fluent-icons:add_circle\", \"icons:archive\": \"fluent-icons:archive\", \"icons:arrow-back\": \"fluent-icons:arrow_left\", \"icons:arrow-downward\": \"fluent-icons:arrow_down\", \"icons:arrow-drop-down\": \"fluent-icons:chevron_down\", \"icons:arrow-forward\": \"fluent-icons:arrow_right\", \"icons:arrow-upward\": \"fluent-icons:arrow_up\", \"icons:assignment\": \"fluent-icons:clipboard_task\", \"icons:book\": \"fluent-icons:book\", \"icons:bookmark\": \"fluent-icons:bookmark\", \"icons:bookmark-border\": \"fluent-icons:bookmark\", \"icons:cancel\": \"fluent-icons:dismiss_circle\", \"icons:check\": \"fluent-icons:checkmark\", \"icons:check-circle\": \"fluent-icons:checkmark_circle\", \"icons:chevron-left\": \"fluent-icons:chevron_left\", \"icons:chevron-right\": \"fluent-icons:chevron_right\", \"icons:clear\": \"fluent-icons:dismiss\", \"icons:close\": \"fluent-icons:dismiss\", \"icons:cloud\": \"fluent-icons:cloud\", \"icons:cloud-download\": \"fluent-icons:cloud_arrow_down\", \"icons:code\": \"fluent-icons:code\", \"icons:content-copy\": \"fluent-icons:copy\", \"icons:create\": \"fluent-icons:edit\", \"icons:dashboard\": \"fluent-icons:grid\", \"icons:date-range\": \"fluent-icons:calendar\", \"icons:delete\": \"fluent-icons:delete\", \"icons:description\": \"fluent-icons:document_text\", \"icons:error\": \"fluent-icons:error_circle\", \"icons:exit-to-app\": \"fluent-icons:sign_out\", \"icons:expand-less\": \"fluent-icons:chevron_up\", \"icons:expand-more\": \"fluent-icons:chevron_down\", \"icons:extension\": \"fluent-icons:puzzle_piece\", \"icons:face\": \"fluent-icons:emoji\", \"icons:feedback\": \"fluent-icons:person_feedback\", \"icons:file-download\": \"fluent-icons:arrow_download\", \"icons:file-upload\": \"fluent-icons:arrow_upload\", \"icons:first-page\": \"fluent-icons:arrow_previous\", \"icons:flag\": \"fluent-icons:flag\", \"icons:folder\": \"fluent-icons:folder\", \"icons:folder-open\": \"fluent-icons:folder_open\", \"icons:fullscreen\": \"fluent-icons:full_screen_maximize\", \"icons:help-outline\": \"fluent-icons:question_circle\", \"icons:history\": \"fluent-icons:history\", \"icons:home\": \"fluent-icons:home\", \"icons:info\": \"fluent-icons:info\", \"icons:info-outline\": \"fluent-icons:info\", \"icons:label\": \"fluent-icons:tag\", \"icons:label-outline\": \"fluent-icons:tag\", \"icons:language\": \"fluent-icons:globe\", \"icons:last-page\": \"fluent-icons:arrow_next\", \"icons:launch\": \"fluent-icons:open\", \"icons:lightbulb-outline\": \"fluent-icons:lightbulb\", \"icons:link\": \"fluent-icons:link\", \"icons:list\": \"fluent-icons:list\", \"icons:lock\": \"fluent-icons:lock_closed\", \"icons:mail\": \"fluent-icons:mail\", \"icons:menu\": \"fluent-icons:navigation\", \"icons:open-in-browser\": \"fluent-icons:open\", \"icons:open-in-new\": \"fluent-icons:open\", \"icons:print\": \"fluent-icons:print\", \"icons:redo\": \"fluent-icons:arrow_redo\", \"icons:refresh\": \"fluent-icons:arrow_clockwise\", \"icons:remove\": \"fluent-icons:subtract\", \"icons:room\": \"fluent-icons:location\", \"icons:save\": \"fluent-icons:save\", \"icons:search\": \"fluent-icons:search\", \"icons:settings\": \"fluent-icons:settings\", \"icons:sort\": \"fluent-icons:arrow_sort\", \"icons:star\": \"fluent-icons:star\", \"icons:swap-vert\": \"fluent-icons:arrow_sort\", \"icons:thumbs-up-down\": \"fluent-icons:thumb_like\", \"icons:toc\": \"fluent-icons:text_bullet_list_tree\", \"icons:undo\": \"fluent-icons:arrow_undo\", \"icons:verified-user\": \"fluent-icons:shield_checkmark\", \"icons:view-column\": \"fluent-icons:column_triple\", \"icons:view-module\": \"fluent-icons:grid\", \"icons:visibility\": \"fluent-icons:eye\", \"icons:visibility-off\": \"fluent-icons:eye_off\", \"icons:warning\": \"fluent-icons:warning\", \"icons:work\": \"fluent-icons:briefcase\", \"icons:zoom-in\": \"fluent-icons:zoom_in\", \"icons:zoom-out\": \"fluent-icons:zoom_out\", \"image:audiotrack\": \"fluent-icons:music_note_2\", \"image:camera-alt\": \"fluent-icons:camera\", \"image:collections\": \"fluent-icons:image_multiple\", \"image:crop-landscape\": \"fluent-icons:crop\", \"image:grid-on\": \"fluent-icons:grid\", \"image:image\": \"fluent-icons:image\", \"image:music-note\": \"fluent-icons:music_note_2\", \"image:photo\": \"fluent-icons:image\", \"image:photo-camera\": \"fluent-icons:camera\", \"image:photo-library\": \"fluent-icons:image_multiple\", \"image:picture-as-pdf\": \"fluent-icons:document_pdf\", \"image:remove-red-eye\": \"fluent-icons:eye\", \"image:rotate-left\": \"fluent-icons:arrow_rotate_counterclockwise\", \"image:rotate-right\": \"fluent-icons:arrow_rotate_clockwise\", \"image:slideshow\": \"fluent-icons:slide_layout\", \"image:tune\": \"fluent-icons:options\", \"maps:place\": \"fluent-icons:location\", \"social:mood\": \"fluent-icons:emoji\", \"social:people\": \"fluent-icons:people\", \"social:person\": \"fluent-icons:person\", \"social:public\": \"fluent-icons:globe\", \"social:school\": \"fluent-icons:hat_graduation\", \"social:share\": \"fluent-icons:share\", }, }",
|
|
258
|
+
"description": "Generated by elements/d-d-d/design-system/bridge/build-bridge.js from"
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
"exports": [
|
|
262
|
+
{
|
|
263
|
+
"kind": "js",
|
|
264
|
+
"name": "FluentIcons",
|
|
265
|
+
"declaration": {
|
|
266
|
+
"name": "FluentIcons",
|
|
267
|
+
"module": "lib/FluentIcons.js"
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
{
|
|
273
|
+
"kind": "javascript-module",
|
|
274
|
+
"path": "lib/FluentTokens.js",
|
|
275
|
+
"declarations": [
|
|
276
|
+
{
|
|
277
|
+
"kind": "variable",
|
|
278
|
+
"name": "FluentTokens",
|
|
279
|
+
"default": "css` :root, :host { --borderRadius2XLarge: 12px; --borderRadiusCircular: 10000px; --borderRadiusLarge: 6px; --borderRadiusMedium: 4px; --borderRadiusSmall: 2px; --borderRadiusXLarge: 8px; --colorBrandForeground1: light-dark(#0f6cbd, #479ef5); --colorBrandForegroundLink: light-dark(#115ea3, #479ef5); --colorBrandForegroundLinkHover: light-dark(#0f548c, #62abf5); --colorNeutralBackground1: light-dark(#ffffff, #292929); --colorNeutralBackground1Hover: light-dark(#f5f5f5, #3d3d3d); --colorNeutralBackground2: light-dark(#fafafa, #1f1f1f); --colorNeutralCardBackground: light-dark(#fafafa, #333333); --colorNeutralForeground1: light-dark(#242424, #ffffff); --colorNeutralForeground2: light-dark(#424242, #d6d6d6); --colorNeutralForeground3: light-dark(#616161, #adadad); --colorNeutralShadowAmbient: light-dark( rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.24) ); --colorNeutralShadowKey: light-dark( rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.28) ); --colorNeutralStroke2: light-dark(#e0e0e0, #525252); --colorStrokeFocus2: light-dark(#000000, #ffffff); --colorSubtleBackgroundHover: light-dark(#f5f5f5, #383838); --colorSubtleBackgroundSelected: light-dark(#ebebeb, #333333); --curveAccelerateMid: cubic-bezier(1, 0, 1, 1); --curveDecelerateMid: cubic-bezier(0, 0, 0, 1); --curveEasyEase: cubic-bezier(0.33, 0, 0.67, 1); --curveEasyEaseMax: cubic-bezier(0.8, 0, 0.2, 1); --durationFaster: 100ms; --durationNormal: 200ms; --durationSlow: 300ms; --fluent-beige-tint20: #9a9594; --fluent-beige-tint40: #d7d4d4; --fluent-beige-tint60: #faf9f9; --fluent-black: #000000; --fluent-brand-web-100: #479ef5; --fluent-brand-web-110: #62abf5; --fluent-brand-web-130: #96c6fa; --fluent-brand-web-150: #cfe4fa; --fluent-brand-web-160: #ebf3fc; --fluent-brand-web-20: #082338; --fluent-brand-web-30: #0a2e4a; --fluent-brand-web-70: #115ea3; --fluent-brand-web-80: #0f6cbd; --fluent-brown-shade20: #6c4123; --fluent-dark-orange-shade20: #a62d01; --fluent-dark-orange-tint20: #e36537; --fluent-dark-orange-tint60: #fdf6f3; --fluent-forest-shade10: #427505; --fluent-green-primary: #107c10; --fluent-green-shade20: #0c5e0c; --fluent-green-tint60: #f1faf1; --fluent-grey-14: #242424; --fluent-grey-26: #424242; --fluent-grey-66: #a8a8a8; --fluent-grey-82: #d1d1d1; --fluent-grey-92: #ebebeb; --fluent-grey-94: #f0f0f0; --fluent-grey-96: #f5f5f5; --fluent-lavender-tint30: #a79cf1; --fluent-light-green-tint30: #5ec75a; --fluent-marigold-primary: #eaa300; --fluent-marigold-tint40: #f9e2ae; --fluent-marigold-tint60: #fefbf4; --fluent-pink-shade20: #ad2d7e; --fluent-purple-primary: #5c2e91; --fluent-red-shade10: #bc2f32; --fluent-red-tint30: #e37d80; --fluent-red-tint40: #f1bbbc; --fluent-red-tint60: #fdf6f6; --fluent-teal-tint20: #2aa0a4; --fluent-teal-tint40: #9bd9db; --fluent-teal-tint60: #f0fafa; --fluent-white: #ffffff; --fluent-yellow-primary: #fde300; --fluent-yellow-tint40: #fef7b2; --fluent-yellow-tint60: #fffef5; --fontFamilyBase: \"Segoe UI\", \"Segoe UI Web (West European)\", -apple-system, BlinkMacSystemFont, Roboto, \"Helvetica Neue\", sans-serif; --fontFamilyMonospace: Consolas, \"Courier New\", Courier, monospace; --fontWeightMedium: 500; --fontWeightRegular: 400; --fontWeightSemibold: 600; } `"
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
"kind": "variable",
|
|
283
|
+
"name": "FluentFonts",
|
|
284
|
+
"type": {
|
|
285
|
+
"text": "array"
|
|
286
|
+
},
|
|
287
|
+
"default": "[]"
|
|
288
|
+
}
|
|
289
|
+
],
|
|
290
|
+
"exports": [
|
|
291
|
+
{
|
|
292
|
+
"kind": "js",
|
|
293
|
+
"name": "FluentTokens",
|
|
294
|
+
"declaration": {
|
|
295
|
+
"name": "FluentTokens",
|
|
296
|
+
"module": "lib/FluentTokens.js"
|
|
297
|
+
}
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"kind": "js",
|
|
301
|
+
"name": "FluentFonts",
|
|
302
|
+
"declaration": {
|
|
303
|
+
"name": "FluentFonts",
|
|
304
|
+
"module": "lib/FluentTokens.js"
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
]
|
|
308
|
+
}
|
|
309
|
+
]
|
|
310
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 225" aria-label="A primary and an outline button"><path fill="#fafafa" d="M0 0h400v225H0z"/><rect x="92" y="94" width="112" height="36" rx="4" fill="#0f6cbd"/><rect x="110" y="108" width="76" height="8" rx="4" fill="#fff"/><rect x="220" y="94" width="96" height="36" rx="4" fill="#fff" stroke="#d1d1d1"/><rect x="238" y="108" width="60" height="8" rx="4" fill="#242424"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 225" aria-label="A checked and an unchecked answer"><path fill="#fafafa" d="M0 0h400v225H0z"/><rect x="96" y="74" width="24" height="24" rx="4" fill="#0f6cbd"/><path d="m102 86 5 5 8-10" stroke="#fff" stroke-width="3" fill="none"/><rect x="132" y="80" width="160" height="12" rx="4" fill="#424242"/><rect x="96" y="124" width="24" height="24" rx="4" fill="#fff" stroke="#616161"/><rect x="132" y="130" width="120" height="12" rx="4" fill="#424242"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 225" aria-label="Code in a rounded panel"><path fill="#f5f5f5" d="M0 0h400v225H0z"/><rect x="60" y="56" width="280" height="112" rx="8" fill="#292929"/><rect x="80" y="80" width="80" height="10" rx="4" fill="#77b7f7"/><rect x="170" y="80" width="110" height="10" rx="4" fill="#fff"/><rect x="96" y="104" width="160" height="10" rx="4" fill="#9ccc9c"/><rect x="80" y="128" width="60" height="10" rx="4" fill="#77b7f7"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 225" aria-label="Brand, neutral and status color swatches"><path fill="#fafafa" d="M0 0h400v225H0z"/><rect x="60" y="72" width="64" height="64" rx="8" fill="#0f6cbd"/><rect x="140" y="72" width="64" height="64" rx="8" fill="#242424"/><rect x="220" y="72" width="64" height="64" rx="8" fill="#107c10"/><rect x="300" y="72" width="40" height="64" rx="8" fill="#d13438"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 225" aria-label="Cards with rounded corners and soft shadows"><path fill="#f5f5f5" d="M0 0h400v225H0z"/><rect x="64" y="60" width="128" height="104" rx="8" fill="#fff" stroke="#e0e0e0"/><rect x="208" y="60" width="128" height="104" rx="16" fill="#fff" stroke="#e0e0e0"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 225" aria-label="A title and lines of body text"><path fill="#fafafa" d="M0 0h400v225H0z"/><rect x="60" y="64" width="200" height="22" rx="4" fill="#242424"/><rect x="60" y="104" width="280" height="10" rx="4" fill="#616161"/><rect x="60" y="126" width="240" height="10" rx="4" fill="#616161"/><rect x="60" y="148" width="260" height="10" rx="4" fill="#616161"/></svg>
|
package/demo/index.html
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<script>
|
|
6
|
+
// anchor the HAXcms router + relative paths to this demo folder so the
|
|
7
|
+
// site renders whether served from the element or the monorepo root
|
|
8
|
+
(() => {
|
|
9
|
+
const loc = globalThis.location;
|
|
10
|
+
if (loc.pathname.endsWith("/index.html")) {
|
|
11
|
+
globalThis.history.replaceState(null, "", loc.pathname.replace(/index\.html$/, "") + loc.search + loc.hash);
|
|
12
|
+
}
|
|
13
|
+
const i = loc.pathname.lastIndexOf("/demo/");
|
|
14
|
+
const base = globalThis.document.createElement("base");
|
|
15
|
+
base.href = i === -1 ? "./" : loc.pathname.slice(0, i + 6);
|
|
16
|
+
globalThis.document.head.appendChild(base);
|
|
17
|
+
})();
|
|
18
|
+
</script>
|
|
19
|
+
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
|
|
20
|
+
<meta name="Description" content="Demonstration for fluent-theme">
|
|
21
|
+
<title>Fluent 2 theme: fluent-theme Demo</title>
|
|
22
|
+
<script src="../../../node_modules/@haxtheweb/deduping-fix/deduping-fix.js"></script>
|
|
23
|
+
<script>
|
|
24
|
+
globalThis.process = globalThis.process || {
|
|
25
|
+
env: {
|
|
26
|
+
NODE_ENV: "production"
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
</script>
|
|
30
|
+
<script>
|
|
31
|
+
// a static demo of the theme: there is no backend to ask for editing
|
|
32
|
+
// settings, and the site's components load through the registry the
|
|
33
|
+
// HAXcms demo uses (otherwise the menu and other lazily loaded parts
|
|
34
|
+
// stay as "Loading" placeholders)
|
|
35
|
+
globalThis.HAXCMSContext = globalThis.HAXCMSContext || "published";
|
|
36
|
+
globalThis.WCAutoloadRegistryFile =
|
|
37
|
+
globalThis.WCAutoloadRegistryFile ||
|
|
38
|
+
"../../haxcms-elements/demo/wc-registry.json";
|
|
39
|
+
globalThis.WCGlobalBasePath = globalThis.WCGlobalBasePath || "/node_modules/";
|
|
40
|
+
</script>
|
|
41
|
+
<script type="module">
|
|
42
|
+
import "@haxtheweb/haxcms-elements/lib/core/haxcms-site-builder.js";
|
|
43
|
+
import '../fluent-theme.js';
|
|
44
|
+
</script>
|
|
45
|
+
</head>
|
|
46
|
+
<body>
|
|
47
|
+
<haxcms-site-builder id="site" file="site.json"></haxcms-site-builder>
|
|
48
|
+
</body>
|
|
49
|
+
</html>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<p>The token values are read from <code>@fluentui/tokens</code> 1.0.0-alpha.24 (MIT), the token package Fluent UI React 9 builds its themes from (<a href="https://fluent2.microsoft.design">fluent2.microsoft.design</a>). Fluent publishes its tokens as JavaScript; the bridge reads their literal values and keeps Fluent's own CSS names. No Fluent stylesheet or script is loaded.</p>
|
|
2
|
+
<p>Icons are Fluent UI System Icons (MIT), copied for the HAX icon names the bridge maps.</p>
|
|
3
|
+
<p>Microsoft and Fluent are trademarks of Microsoft Corporation. This theme is an independent HAX integration and is not affiliated with or endorsed by Microsoft.</p>
|
|
4
|
+
<p>The full map ships as <code>lib/fluent.ddd-map.json</code>.</p>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<grid-plate layout="1-1">
|
|
2
|
+
<ddd-card slot="col-1" title="Button" href="components/button" label="Open" src="files/thumb-button.svg" alt=""><p>Primary and outline calls to action.</p></ddd-card>
|
|
3
|
+
<ddd-card slot="col-2" title="Learning checks" href="components/learning-checks" label="Open" src="files/thumb-checks.svg" alt=""><p>Answer states keep their meaning in Fluent colors.</p></ddd-card>
|
|
4
|
+
</grid-plate>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<a11y-tabs>
|
|
2
|
+
<a11y-tab label="Usage">
|
|
3
|
+
<h2>When to use</h2>
|
|
4
|
+
<p>Use a button for an action, such as submitting or starting a task. Use a link to go somewhere.</p>
|
|
5
|
+
<p><simple-cta link="components" label="Primary action" data-primary="1"></simple-cta> <simple-cta link="components" label="Secondary action" data-primary="4"></simple-cta></p>
|
|
6
|
+
<stop-note status="warning" title="One primary button"><span slot="message">Two primary buttons compete for attention. Make the second one secondary.</span></stop-note>
|
|
7
|
+
</a11y-tab>
|
|
8
|
+
<a11y-tab label="Style">
|
|
9
|
+
<h2>Tokens</h2>
|
|
10
|
+
<editable-table bordered>
|
|
11
|
+
<table><caption>Tokens a primary button reads</caption><thead><tr><th scope="col">Part</th><th scope="col">DDD token</th><th scope="col">Fluent value</th></tr></thead>
|
|
12
|
+
<tbody><tr><td>Background</td><td>--ddd-theme-default-beaverBlue</td><td>web brand 80</td></tr><tr><td>Corner</td><td>--ddd-radius-sm</td><td>borderRadiusMedium, 4px</td></tr><tr><td>Focus</td><td>--ddd-focus-ring</td><td>2px colorStrokeFocus2</td></tr></tbody></table>
|
|
13
|
+
</editable-table>
|
|
14
|
+
</a11y-tab>
|
|
15
|
+
<a11y-tab label="Code">
|
|
16
|
+
<h2>Markup</h2>
|
|
17
|
+
<code-sample type="html"><template preserve-content="preserve-content"><simple-cta link="/next" label="Primary action"></simple-cta></template></code-sample>
|
|
18
|
+
</a11y-tab>
|
|
19
|
+
</a11y-tabs>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<p>Correct stays green and incorrect stays purple, drawn from Fluent's shared green and purple.</p>
|
|
2
|
+
<multiple-choice question="Which of these does the Fluent 2 bridge change?">
|
|
3
|
+
<input data-correct="true" value="Brand colors"/>
|
|
4
|
+
<input data-correct="true" value="Corner radius"/>
|
|
5
|
+
<input value="The content you authored"/>
|
|
6
|
+
<input value="Block settings in the editor"/>
|
|
7
|
+
</multiple-choice>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
<grid-plate layout="1-1">
|
|
2
|
+
<ddd-card slot="col-1" title="Color" href="design-language/color" label="Read" src="files/thumb-color.svg" alt=""><p>Neutrals, the web brand ramp and shared colors.</p></ddd-card>
|
|
3
|
+
<ddd-card slot="col-2" title="Typography" href="design-language/typography" label="Read" src="files/thumb-type.svg" alt=""><p>The Segoe UI type ramp and weights.</p></ddd-card>
|
|
4
|
+
</grid-plate>
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<p>DDD palettes are set with <code>data-primary</code> and <code>data-accent</code>. Each named DDD color points at the Fluent color with the same role, so palettes stay distinct.</p>
|
|
2
|
+
<grid-plate layout="1-1">
|
|
3
|
+
<ddd-card slot="col-1" title="Primary 1" data-primary="1" href="#" label="Brand" src="files/thumb-color.svg" alt=""><p>DDD beaverBlue → Fluent web brand 80.</p></ddd-card>
|
|
4
|
+
<ddd-card slot="col-2" title="Primary 2" data-primary="2" href="#" label="Dark brand" src="files/thumb-color.svg" alt=""><p>DDD nittanyNavy → web brand 30.</p></ddd-card>
|
|
5
|
+
<ddd-card slot="col-1" title="Primary 7" data-primary="7" href="#" label="Teal" src="files/thumb-shapes.svg" alt=""><p>DDD creekTeal → shared teal, tint 20.</p></ddd-card>
|
|
6
|
+
<ddd-card slot="col-2" title="Primary 13" data-primary="13" href="#" label="Purple" src="files/thumb-shapes.svg" alt=""><p>DDD wonderPurple → shared purple.</p></ddd-card>
|
|
7
|
+
</grid-plate>
|
|
8
|
+
<p data-accent="1" data-padding="m" data-border-radius="sm">An accent surface on Fluent grey 96, with Fluent's 4px medium corner radius.</p>
|
|
9
|
+
<stop-note status="info" title="Status colors"><span slot="message">Error, warning and success messages use Fluent's shared red, dark orange and green, at shades that keep 4.5:1 contrast.</span></stop-note>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<p>Segoe UI is the platform font on Windows. Fluent loads no web font; on other platforms the stack falls back to the system UI font.</p>
|
|
2
|
+
<h2>Weights</h2>
|
|
3
|
+
<editable-table bordered>
|
|
4
|
+
<table><caption>Fluent weights as DDD tokens</caption><thead><tr><th scope="col">DDD token</th><th scope="col">Fluent token</th><th scope="col">Value</th></tr></thead>
|
|
5
|
+
<tbody><tr><td>--ddd-font-weight-regular</td><td>fontWeightRegular</td><td>400</td></tr><tr><td>--ddd-font-weight-medium</td><td>fontWeightMedium</td><td>500</td></tr><tr><td>--ddd-font-weight-bold</td><td>fontWeightSemibold</td><td>600</td></tr></tbody></table>
|
|
6
|
+
</editable-table>
|
|
7
|
+
<p>Reading sizes stay on the DDD scale. Fluent's body size is 14px, below the 16px floor HAX keeps for reading text.</p>
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
<p>This demo site follows the layout of the Fluent 2 documentation: a light header, a navigation drawer on a soft gray surface, and pages on a rounded card. Every page is plain HAX content that renders in any other theme.</p>
|
|
2
|
+
<grid-plate layout="1-1">
|
|
3
|
+
<ddd-card slot="col-1" title="Design language" href="design-language" label="Explore" src="files/thumb-color.svg" alt=""><p>Color, typography, shapes and elevation.</p></ddd-card>
|
|
4
|
+
<ddd-card slot="col-2" title="Components" href="components" label="Explore" src="files/thumb-button.svg" alt=""><p>How HAX blocks look and behave in Fluent.</p></ddd-card>
|
|
5
|
+
<ddd-card slot="col-1" title="Develop" href="get-started/develop" label="Explore" src="files/thumb-code.svg" alt=""><p>Turn the theme or the design system on for a site.</p></ddd-card>
|
|
6
|
+
<ddd-card slot="col-2" title="About the bridge" href="about" label="Explore" src="files/thumb-shapes.svg" alt=""><p>Where the token values come from.</p></ddd-card>
|
|
7
|
+
</grid-plate>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<h2>Two ways to use it</h2>
|
|
2
|
+
<ddd-steps-list>
|
|
3
|
+
<ddd-steps-list-item title="As a theme"><p>Choose Fluent 2 from the theme list in site settings. The layout and the blocks both take on Fluent.</p></ddd-steps-list-item>
|
|
4
|
+
<ddd-steps-list-item title="As a design system"><p>Keep a theme such as Clean One and pick Fluent 2 as the design system. Blocks take on Fluent colors, type and corners inside your layout.</p></ddd-steps-list-item>
|
|
5
|
+
<ddd-steps-list-item title="Author as usual"><p>Blocks read DDD tokens and the bridge answers with Fluent values, so nothing in your content changes.</p></ddd-steps-list-item>
|
|
6
|
+
</ddd-steps-list>
|
|
7
|
+
<h2>Set it in site.json</h2>
|
|
8
|
+
<code-sample type="json"><template preserve-content="preserve-content">{
|
|
9
|
+
"metadata": {
|
|
10
|
+
"theme": {
|
|
11
|
+
"element": "fluent-theme",
|
|
12
|
+
"path": "@haxtheweb/fluent-theme/fluent-theme.js"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}</template></code-sample>
|