@phis/ui 0.5.2 → 0.5.4

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.
Files changed (284) hide show
  1. package/README.md +1 -1
  2. package/components/controls/phi-border-control.js +1 -1
  3. package/components/controls/phi-bound-radius-control.js +9 -9
  4. package/components/controls/phi-brand-control.js +1 -1
  5. package/components/controls/phi-cascader-control.d.ts +9 -1
  6. package/components/controls/phi-cascader-control.js +25 -3
  7. package/components/controls/phi-drawer-control-adapter.js +4 -4
  8. package/components/controls/phi-dropdown-control.js +2 -2
  9. package/components/controls/phi-form-control.js +1 -1
  10. package/components/controls/phi-image-control.js +1 -1
  11. package/components/controls/phi-mask-picker-control.js +6 -6
  12. package/components/controls/phi-money-control.d.ts +39 -0
  13. package/components/controls/phi-money-control.js +34 -0
  14. package/components/controls/phi-number-control.d.ts +6 -1
  15. package/components/controls/phi-number-control.js +3 -3
  16. package/components/controls/phi-options-provider.d.ts +7 -0
  17. package/components/controls/phi-options-provider.js +11 -0
  18. package/components/controls/phi-select-control.js +1 -1
  19. package/components/controls/phi-theme-scope-control.js +1 -1
  20. package/components/controls/use-phi-color-control-presets.js +2 -2
  21. package/components/forms/compound-form-controls.js +2 -2
  22. package/components/forms/extended-form-field-controls.d.ts +1 -0
  23. package/components/forms/extended-form-field-controls.js +24 -2
  24. package/components/forms/form-descriptor-runtime-client.js +13 -0
  25. package/components/forms/form-provider-contract.d.ts +43 -0
  26. package/components/forms/form-provider-contract.js +40 -0
  27. package/components/forms/money-field.d.ts +27 -0
  28. package/components/forms/money-field.js +78 -0
  29. package/components/forms/shared-form-provider-registry.js +6 -2
  30. package/components/layouts/clients/phi-flex-layout-client.js +4 -4
  31. package/components/layouts/clients/phi-grid-layout-client.js +3 -3
  32. package/components/layouts/clients/phi-sequence-slot-editor.js +1 -1
  33. package/components/layouts/layout-definitions.d.ts +4 -4
  34. package/components/layouts/phi-page-region-layout.js +1 -1
  35. package/components/layouts/phi-structure-region-layout.js +3 -3
  36. package/components/media/phi-asset-focal-rect-widget.js +4 -4
  37. package/components/media/phi-asset-inspector-section.js +1 -1
  38. package/components/media/phi-media-kind-icon.js +2 -2
  39. package/components/media/phi-media-picker-binding.js +6 -1
  40. package/components/media/phi-media-restricted-icon.js +1 -1
  41. package/components/media/phi-site-font-assets.js +6 -1
  42. package/components/motion/phi-sequence-run.d.ts +14 -1
  43. package/components/motion/phi-sequence-run.js +22 -3
  44. package/components/motion/phi-sequence-viewport.js +3 -1
  45. package/components/overlays/phi-overlay-container-client.js +1 -1
  46. package/components/regions/presets/content-entry-editor-page-tree.js +3 -1
  47. package/components/regions/presets/phi-base-page-column.js +6 -2
  48. package/components/root/phi-config-provider.js +1 -1
  49. package/components/root/phi-root-background.js +1 -1
  50. package/components/root/phi-root-theme-resolver.js +1 -1
  51. package/components/shell/phi-module-icons.js +1 -1
  52. package/components/tables/client/phi-table-binding.js +16 -3
  53. package/components/trees/client/phi-tree-binding.js +6 -2
  54. package/components/widgets/built-in/builder-workspace-preview.js +8 -8
  55. package/components/widgets/client/bullet-list-entries-editor.js +2 -2
  56. package/components/widgets/client/external-document-editor.js +1 -1
  57. package/components/widgets/client/html-editor.js +3 -3
  58. package/components/widgets/client/shared/phi-collection-view-binding.js +10 -2
  59. package/components/widgets/client/shared/phi-rendered-value.d.ts +9 -1
  60. package/components/widgets/client/shared/phi-rendered-value.js +20 -1
  61. package/components/widgets/config/background.d.ts +1 -1
  62. package/components/widgets/config/background.js +1 -1
  63. package/components/widgets/config/choice-shared.d.ts +2 -2
  64. package/components/widgets/inspector-field-row.js +1 -1
  65. package/components/widgets/label-sets/gallery.js +6 -0
  66. package/components/widgets/label-sets/inspector.js +2 -0
  67. package/components/widgets/label-sets/interval.d.ts +4 -0
  68. package/components/widgets/label-sets/interval.js +31 -0
  69. package/components/widgets/label-sets/record.js +6 -1
  70. package/components/widgets/label-sets/slot-upload.d.ts +4 -0
  71. package/components/widgets/label-sets/slot-upload.js +36 -0
  72. package/components/widgets/label-sets/table.js +6 -1
  73. package/components/widgets/label-types/gallery.d.ts +7 -0
  74. package/components/widgets/label-types/gallery.js +6 -0
  75. package/components/widgets/label-types/inspector.d.ts +1 -0
  76. package/components/widgets/label-types/inspector.js +1 -0
  77. package/components/widgets/label-types/interval.d.ts +16 -0
  78. package/components/widgets/label-types/interval.js +21 -0
  79. package/components/widgets/label-types/record.d.ts +3 -0
  80. package/components/widgets/label-types/record.js +2 -0
  81. package/components/widgets/label-types/slot-upload.d.ts +24 -0
  82. package/components/widgets/label-types/slot-upload.js +16 -0
  83. package/components/widgets/label-types/table.d.ts +3 -0
  84. package/components/widgets/label-types/table.js +2 -0
  85. package/components/widgets/shared/card-body-client.js +1 -1
  86. package/components/widgets/shared/result-body-client.js +1 -1
  87. package/constants/media-library-provider-keys.d.ts +8 -1
  88. package/constants/media-library-provider-keys.js +8 -1
  89. package/constants/record-field-kinds.d.ts +6 -0
  90. package/constants/record-field-kinds.js +7 -0
  91. package/constants/runtime-module-ownership.js +2 -1
  92. package/controls.d.ts +7 -0
  93. package/controls.js +4 -0
  94. package/helpers/border-widget-style.d.ts +2 -2
  95. package/helpers/border-widget-style.js +2 -2
  96. package/helpers/cms-dialog.d.ts +43 -7
  97. package/helpers/cms-dialog.js +46 -4
  98. package/helpers/cms-layout-defaults.d.ts +2 -2
  99. package/helpers/cms-page-catalog.d.ts +13 -0
  100. package/helpers/cms-page-catalog.js +18 -2
  101. package/helpers/cms-preset-nodes.d.ts +13 -3
  102. package/helpers/cms-preset-nodes.js +3 -2
  103. package/helpers/cms-preset-page-tree.d.ts +4 -0
  104. package/helpers/cms-preset-page-tree.js +2 -0
  105. package/helpers/layout-style.d.ts +2 -2
  106. package/helpers/money-amount.d.ts +48 -0
  107. package/helpers/money-amount.js +131 -0
  108. package/helpers/page-layout-check.d.ts +4 -1
  109. package/helpers/page-layout-check.js +41 -2
  110. package/helpers/record-fields.d.ts +22 -0
  111. package/helpers/record-fields.js +109 -0
  112. package/helpers/surface-presets.d.ts +6 -6
  113. package/helpers/surface-style.d.ts +1 -1
  114. package/helpers.d.ts +0 -1
  115. package/helpers.js +0 -2
  116. package/module-page-check.d.ts +12 -0
  117. package/module-page-check.js +12 -0
  118. package/module-records.d.ts +7 -2
  119. package/module-records.js +5 -1
  120. package/next/antd-form-context-loader.mjs +31 -0
  121. package/next/config.d.mts +2 -0
  122. package/next/config.mjs +36 -3
  123. package/package.json +11 -2
  124. package/plugins/runtime-modules/accounting/module.d.ts +1 -1
  125. package/plugins/runtime-modules/app/module.d.ts +1 -1
  126. package/plugins/runtime-modules/asset/data-providers.d.ts +0 -65
  127. package/plugins/runtime-modules/asset/data-providers.js +0 -40
  128. package/plugins/runtime-modules/asset/definition.d.ts +0 -60
  129. package/plugins/runtime-modules/asset/ids.d.ts +0 -1
  130. package/plugins/runtime-modules/asset/ids.js +1 -2
  131. package/plugins/runtime-modules/asset/presets.d.ts +1 -0
  132. package/plugins/runtime-modules/asset/server.js +0 -5
  133. package/plugins/runtime-modules/asset/services/collection.js +1 -0
  134. package/plugins/runtime-modules/asset/trees/phi-default-builder-media-page-tree.js +2 -2
  135. package/plugins/runtime-modules/auth/trees/phi-default-admin-auth-settings-page-tree.js +3 -0
  136. package/plugins/runtime-modules/blog/presets.d.ts +1 -0
  137. package/plugins/runtime-modules/builder/clients/inspector-config-field.d.ts +4 -1
  138. package/plugins/runtime-modules/builder/clients/inspector-config-field.js +13 -4
  139. package/plugins/runtime-modules/builder/clients/inspector-link-target-field.js +1 -1
  140. package/plugins/runtime-modules/builder/clients/inspector-section-widget.js +14 -1
  141. package/plugins/runtime-modules/builder/clients/inspector-signal-section.js +2 -2
  142. package/plugins/runtime-modules/builder/clients/layout-inspector.js +1 -1
  143. package/plugins/runtime-modules/builder/clients/layout-scaffold-buttons.js +4 -4
  144. package/plugins/runtime-modules/builder/clients/layout-scaffold-overlays.js +1 -1
  145. package/plugins/runtime-modules/builder/clients/region-inspector.js +1 -1
  146. package/plugins/runtime-modules/builder/clients/region-visibility-fields.js +1 -1
  147. package/plugins/runtime-modules/builder/clients/shells-workspace.js +1 -1
  148. package/plugins/runtime-modules/builder/clients/structure-canvas.js +2 -2
  149. package/plugins/runtime-modules/builder/clients/widget-effects-editor.js +1 -1
  150. package/plugins/runtime-modules/builder/clients/widget-inspector.d.ts +4 -1
  151. package/plugins/runtime-modules/builder/clients/widget-inspector.js +3 -2
  152. package/plugins/runtime-modules/builder/offered-page-catalog.js +3 -3
  153. package/plugins/runtime-modules/builder/options-providers.js +7 -0
  154. package/plugins/runtime-modules/builder/page-presets.server.d.ts +6 -0
  155. package/plugins/runtime-modules/builder/page-presets.server.js +8 -0
  156. package/plugins/runtime-modules/builder/pages-workspace.js +12 -1
  157. package/plugins/runtime-modules/builder/render-root-node-scaffold.js +5 -5
  158. package/plugins/runtime-modules/builder/structure-dnd.js +2 -2
  159. package/plugins/runtime-modules/builder/trees/phi-default-builder-area-preset-tree.js +6 -3
  160. package/plugins/runtime-modules/builder/widgets/test-block/client.js +1 -1
  161. package/plugins/runtime-modules/content-entry-routes.d.ts +1 -0
  162. package/plugins/runtime-modules/contracts.js +41 -1
  163. package/plugins/runtime-modules/core/data-providers.d.ts +60 -0
  164. package/plugins/runtime-modules/core/data-providers.js +41 -0
  165. package/plugins/runtime-modules/core/definition.d.ts +98 -0
  166. package/plugins/runtime-modules/core/form-providers.d.ts +43 -0
  167. package/plugins/runtime-modules/core/server.js +5 -0
  168. package/plugins/runtime-modules/core/widgets/breadcrumb/client.d.ts +6 -3
  169. package/plugins/runtime-modules/core/widgets/breadcrumb/client.js +6 -5
  170. package/plugins/runtime-modules/core/widgets/breadcrumb/plugin.js +1 -1
  171. package/plugins/runtime-modules/core/widgets/breadcrumb/server.d.ts +9 -1
  172. package/plugins/runtime-modules/core/widgets/breadcrumb/server.js +29 -3
  173. package/plugins/runtime-modules/core/widgets/button/config.d.ts +34 -0
  174. package/plugins/runtime-modules/core/widgets/button/config.js +16 -0
  175. package/plugins/runtime-modules/core/widgets/button/plugin.js +37 -6
  176. package/plugins/runtime-modules/core/widgets/card/config.d.ts +13 -2
  177. package/plugins/runtime-modules/core/widgets/cascader/authoring.d.ts +3 -3
  178. package/plugins/runtime-modules/core/widgets/cascader/client.js +1 -1
  179. package/plugins/runtime-modules/core/widgets/cascader/config.d.ts +8 -2
  180. package/plugins/runtime-modules/core/widgets/cascader/config.js +22 -0
  181. package/plugins/runtime-modules/core/widgets/checkbox-group/config.d.ts +1 -1
  182. package/plugins/runtime-modules/core/widgets/description/config.d.ts +13 -2
  183. package/plugins/runtime-modules/core/widgets/description/editor.js +13 -13
  184. package/plugins/runtime-modules/core/widgets/entry-list/config.d.ts +11 -0
  185. package/plugins/runtime-modules/core/widgets/gallery/authoring.js +12 -3
  186. package/plugins/runtime-modules/core/widgets/gallery/client.d.ts +4 -1
  187. package/plugins/runtime-modules/core/widgets/gallery/client.js +38 -21
  188. package/plugins/runtime-modules/core/widgets/gallery/config.d.ts +18 -0
  189. package/plugins/runtime-modules/core/widgets/gallery/config.js +24 -0
  190. package/plugins/runtime-modules/core/widgets/gallery/server.d.ts +1 -1
  191. package/plugins/runtime-modules/core/widgets/gallery/server.js +11 -0
  192. package/plugins/runtime-modules/core/widgets/image/config.d.ts +35 -0
  193. package/plugins/runtime-modules/core/widgets/image/config.js +8 -0
  194. package/plugins/runtime-modules/core/widgets/image/plugin.js +19 -1
  195. package/plugins/runtime-modules/core/widgets/image/server.d.ts +3 -1
  196. package/plugins/runtime-modules/core/widgets/image/server.js +2 -2
  197. package/plugins/runtime-modules/core/widgets/markdown/config.d.ts +13 -0
  198. package/plugins/runtime-modules/core/widgets/markdown/config.js +8 -0
  199. package/plugins/runtime-modules/core/widgets/markdown/editor.js +7 -7
  200. package/plugins/runtime-modules/core/widgets/markdown/plugin.js +20 -7
  201. package/plugins/runtime-modules/core/widgets/multi-select/config.d.ts +1 -1
  202. package/plugins/runtime-modules/core/widgets/record/authoring.js +1 -1
  203. package/plugins/runtime-modules/core/widgets/record/client.js +8 -2
  204. package/plugins/runtime-modules/core/widgets/record/config.js +4 -0
  205. package/plugins/runtime-modules/core/widgets/result/config.d.ts +11 -0
  206. package/plugins/runtime-modules/core/widgets/segmented/config.d.ts +1 -1
  207. package/plugins/runtime-modules/core/widgets/select-box/config.d.ts +1 -1
  208. package/plugins/runtime-modules/core/widgets/simple-text/config.d.ts +13 -0
  209. package/plugins/runtime-modules/core/widgets/simple-text/config.js +9 -0
  210. package/plugins/runtime-modules/core/widgets/simple-text/editor.js +1 -1
  211. package/plugins/runtime-modules/core/widgets/simple-text/plugin.js +14 -1
  212. package/plugins/runtime-modules/core/widgets/slot-upload/authoring.js +2 -1
  213. package/plugins/runtime-modules/core/widgets/slot-upload/client.d.ts +3 -1
  214. package/plugins/runtime-modules/core/widgets/slot-upload/client.js +45 -24
  215. package/plugins/runtime-modules/core/widgets/slot-upload/config.d.ts +12 -4
  216. package/plugins/runtime-modules/core/widgets/slot-upload/config.js +18 -1
  217. package/plugins/runtime-modules/core/widgets/slot-upload/plugin.js +4 -2
  218. package/plugins/runtime-modules/core/widgets/slot-upload/server.d.ts +9 -3
  219. package/plugins/runtime-modules/core/widgets/slot-upload/server.js +17 -3
  220. package/plugins/runtime-modules/core/widgets/spacer/client.js +1 -1
  221. package/plugins/runtime-modules/core/widgets/steps/config.d.ts +1 -1
  222. package/plugins/runtime-modules/core/widgets/table/client.js +4 -4
  223. package/plugins/runtime-modules/core/widgets/table/config.d.ts +37 -0
  224. package/plugins/runtime-modules/core/widgets/table/config.js +3 -0
  225. package/plugins/runtime-modules/descriptor-compiler.d.ts +11 -1
  226. package/plugins/runtime-modules/descriptor-compiler.js +57 -8
  227. package/plugins/runtime-modules/editor/presets.d.ts +1 -0
  228. package/plugins/runtime-modules/groups/definition.d.ts +1 -1
  229. package/plugins/runtime-modules/groups/forms.d.ts +18 -0
  230. package/plugins/runtime-modules/groups/forms.js +2 -2
  231. package/plugins/runtime-modules/groups/trees/phi-default-admin-groups-page-tree.js +6 -4
  232. package/plugins/runtime-modules/localization/presets.d.ts +1 -0
  233. package/plugins/runtime-modules/news/presets.d.ts +1 -0
  234. package/plugins/runtime-modules/public/module.d.ts +1 -1
  235. package/plugins/runtime-modules/resolver.js +7 -0
  236. package/plugins/runtime-modules/revisions/presets.d.ts +1 -0
  237. package/plugins/runtime-modules/revisions/trees/phi-default-builder-revisions-page-tree.js +2 -2
  238. package/plugins/runtime-modules/theme/presets.d.ts +1 -0
  239. package/plugins/runtime-modules/theme/widgets/brand-controls/client.js +25 -2
  240. package/plugins/runtime-modules/threads/trees/phi-default-threads-page-tree.js +4 -2
  241. package/plugins/runtime-modules/user-management/controller/client.js +6 -1
  242. package/plugins/runtime-modules/user-management/trees/phi-default-admin-users-page-tree.js +3 -3
  243. package/runtime-render-client.d.ts +1 -1
  244. package/runtime-render-client.js +2 -1
  245. package/server-helpers/cms-page-record.d.ts +26 -0
  246. package/server-helpers/cms-page-record.js +52 -0
  247. package/server-helpers/cms-request.js +48 -4
  248. package/server-helpers/record-fields.d.ts +62 -0
  249. package/server-helpers/record-fields.js +86 -0
  250. package/server-helpers/record-samples.d.ts +21 -0
  251. package/server-helpers/record-samples.js +49 -0
  252. package/styles/builder-scaffold.css +19 -19
  253. package/styles/controls.css +109 -109
  254. package/styles/gradients.css +23 -23
  255. package/styles/layout-affordances.css +15 -15
  256. package/styles/layout-authoring-scaffold.css +20 -20
  257. package/styles/layout.css +9 -9
  258. package/styles/root.css +4 -4
  259. package/styles/shell.css +48 -17
  260. package/theme/antd-css-var-contract.d.ts +86 -80
  261. package/theme/antd-css-var-contract.js +92 -81
  262. package/theme/phi-control-shape.d.ts +1 -1
  263. package/theme/phi-theme-gradients.d.ts +2 -2
  264. package/theme/phi-theme-gradients.js +14 -14
  265. package/theme/phi-theme-palette.d.ts +1 -1
  266. package/theme/phi-theme-palette.js +2 -2
  267. package/theme/phi-theme-tokens.d.ts +8 -5
  268. package/theme/phi-theme-tokens.js +59 -28
  269. package/theme/phi-theme.d.ts +14 -2
  270. package/theme/phi-theme.js +14 -1
  271. package/theme/phi-tokens.d.ts +5 -0
  272. package/theme/phi-tokens.js +9 -0
  273. package/types/cms-module-descriptors.d.ts +9 -0
  274. package/types/cms-plugins.d.ts +27 -1
  275. package/types/collection-provider.d.ts +7 -0
  276. package/types/core-widget-placements.d.ts +42 -0
  277. package/types/record-provider.d.ts +109 -1
  278. package/types/table-widget.d.ts +33 -1
  279. package/types/table-widget.js +1 -0
  280. package/types/tree-widget.d.ts +7 -0
  281. package/types/widget-runtime.d.ts +5 -0
  282. package/types.d.ts +1 -0
  283. /package/plugins/runtime-modules/{asset/services/folder-images.server.d.ts → core/services/media-folder-images.server.d.ts} +0 -0
  284. /package/plugins/runtime-modules/{asset/services/folder-images.server.js → core/services/media-folder-images.server.js} +0 -0
@@ -18,38 +18,38 @@
18
18
  * selectors under `.phi-typography`, the same tokens through the variables the primitive publishes.
19
19
  */
20
20
  .phi-typography {
21
- color: var(--ant-color-text);
21
+ color: var(--phi-color-text);
22
22
  word-break: break-word;
23
- line-height: var(--ant-line-height);
23
+ line-height: var(--phi-line-height);
24
24
  }
25
25
 
26
26
  .phi-typography--secondary {
27
- color: var(--ant-color-text-description);
27
+ color: var(--phi-color-text-description);
28
28
  }
29
29
 
30
30
  .phi-typography--success {
31
- color: var(--ant-color-success-text);
31
+ color: var(--phi-color-success-text);
32
32
  }
33
33
 
34
34
  .phi-typography--warning {
35
- color: var(--ant-color-warning-text);
35
+ color: var(--phi-color-warning-text);
36
36
  }
37
37
 
38
38
  .phi-typography--danger {
39
- color: var(--ant-color-error-text);
39
+ color: var(--phi-color-error-text);
40
40
  }
41
41
 
42
42
  .phi-typography--danger.phi-typography--link:hover {
43
- color: var(--ant-color-error-text-hover);
43
+ color: var(--phi-color-error-text-hover);
44
44
  }
45
45
 
46
46
  .phi-typography--danger.phi-typography--link:active,
47
47
  .phi-typography--danger.phi-typography--link:focus {
48
- color: var(--ant-color-error-text-active);
48
+ color: var(--phi-color-error-text-active);
49
49
  }
50
50
 
51
51
  .phi-typography--disabled {
52
- color: var(--ant-color-text-disabled);
52
+ color: var(--phi-color-text-disabled);
53
53
  cursor: not-allowed;
54
54
  user-select: none;
55
55
  }
@@ -65,35 +65,35 @@ h3.phi-typography, .phi-typography h3,
65
65
  h4.phi-typography, .phi-typography h4,
66
66
  h5.phi-typography, .phi-typography h5 {
67
67
  margin-bottom: 0.5em;
68
- color: var(--ant-color-text-heading);
69
- font-weight: var(--ant-font-weight-strong);
68
+ color: var(--phi-color-text-heading);
69
+ font-weight: var(--phi-font-weight-strong);
70
70
  }
71
71
 
72
72
  h1.phi-typography, .phi-typography h1 {
73
- font-size: var(--ant-font-size-heading-1);
74
- line-height: var(--ant-line-height-heading-1);
73
+ font-size: var(--phi-font-size-heading-1);
74
+ line-height: var(--phi-line-height-heading-1);
75
75
  }
76
76
 
77
77
  h2.phi-typography, .phi-typography h2 {
78
- font-size: var(--ant-font-size-heading-2);
79
- line-height: var(--ant-line-height-heading-2);
78
+ font-size: var(--phi-font-size-heading-2);
79
+ line-height: var(--phi-line-height-heading-2);
80
80
  }
81
81
 
82
82
  h3.phi-typography, .phi-typography h3 {
83
- font-size: var(--ant-font-size-heading-3);
84
- line-height: var(--ant-line-height-heading-3);
83
+ font-size: var(--phi-font-size-heading-3);
84
+ line-height: var(--phi-line-height-heading-3);
85
85
  }
86
86
 
87
87
  h4.phi-typography, .phi-typography h4 {
88
- font-size: var(--ant-font-size-heading-4);
89
- line-height: var(--ant-line-height-heading-4);
88
+ font-size: var(--phi-font-size-heading-4);
89
+ line-height: var(--phi-line-height-heading-4);
90
90
  }
91
91
 
92
92
  /* The same size as `h4` (`theme/phi-tokens.ts`); the colour is what sets it below. */
93
93
  h5.phi-typography, .phi-typography h5 {
94
- font-size: var(--ant-font-size-heading-5);
95
- line-height: var(--ant-line-height-heading-5);
96
- color: var(--ant-color-text-secondary);
94
+ font-size: var(--phi-font-size-heading-5);
95
+ line-height: var(--phi-line-height-heading-5);
96
+ color: var(--phi-color-text-secondary);
97
97
  }
98
98
 
99
99
  .phi-typography + h1.phi-typography,
@@ -110,9 +110,9 @@ h5.phi-typography, .phi-typography h5 {
110
110
  padding-inline: 0.4em;
111
111
  padding-block: 0.2em 0.1em;
112
112
  font-size: 85%;
113
- font-family: var(--ant-font-family-code);
113
+ font-family: var(--phi-font-family-code);
114
114
  background: rgba(150, 150, 150, 0.1);
115
- border: var(--ant-line-width) var(--ant-line-type) rgba(100, 100, 100, 0.2);
115
+ border: var(--phi-line-width) var(--phi-line-type) rgba(100, 100, 100, 0.2);
116
116
  border-radius: 3px;
117
117
  }
118
118
 
@@ -121,9 +121,9 @@ h5.phi-typography, .phi-typography h5 {
121
121
  padding-inline: 0.4em;
122
122
  padding-block: 0.15em 0.1em;
123
123
  font-size: 90%;
124
- font-family: var(--ant-font-family-code);
124
+ font-family: var(--phi-font-family-code);
125
125
  background: rgba(150, 150, 150, 0.06);
126
- border: var(--ant-line-width) var(--ant-line-type) rgba(100, 100, 100, 0.2);
126
+ border: var(--phi-line-width) var(--phi-line-type) rgba(100, 100, 100, 0.2);
127
127
  border-bottom-width: 2px;
128
128
  border-radius: 3px;
129
129
  }
@@ -144,7 +144,7 @@ h5.phi-typography, .phi-typography h5 {
144
144
  }
145
145
 
146
146
  .phi-typography strong {
147
- font-weight: var(--ant-font-weight-strong);
147
+ font-weight: var(--phi-font-weight-strong);
148
148
  }
149
149
 
150
150
  .phi-typography :is(ul, ol) {
@@ -181,9 +181,9 @@ h5.phi-typography, .phi-typography h5 {
181
181
  white-space: pre-wrap;
182
182
  overflow-wrap: break-word;
183
183
  background: rgba(150, 150, 150, 0.1);
184
- border: var(--ant-line-width) var(--ant-line-type) rgba(100, 100, 100, 0.2);
184
+ border: var(--phi-line-width) var(--phi-line-type) rgba(100, 100, 100, 0.2);
185
185
  border-radius: 3px;
186
- font-family: var(--ant-font-family-code);
186
+ font-family: var(--phi-font-family-code);
187
187
  }
188
188
 
189
189
  .phi-typography pre code {
@@ -204,44 +204,44 @@ h5.phi-typography, .phi-typography h5 {
204
204
  }
205
205
 
206
206
  .phi-typography--link {
207
- color: var(--ant-color-link);
207
+ color: var(--phi-color-link);
208
208
  text-decoration: none;
209
209
  outline: none;
210
210
  cursor: pointer;
211
211
  user-select: text;
212
- transition: color var(--ant-motion-duration-slow);
212
+ transition: color var(--phi-motion-duration-slow);
213
213
  }
214
214
 
215
215
  .phi-typography--link:hover,
216
216
  .phi-typography--link:focus {
217
- color: var(--ant-color-link-hover);
217
+ color: var(--phi-color-link-hover);
218
218
  }
219
219
 
220
220
  .phi-typography--link:active {
221
- color: var(--ant-color-link-active);
221
+ color: var(--phi-color-link-active);
222
222
  }
223
223
 
224
224
  .phi-typography--link.phi-typography--disabled,
225
225
  .phi-typography--link.phi-typography--disabled:hover,
226
226
  .phi-typography--link.phi-typography--disabled:active {
227
- color: var(--ant-color-text-disabled);
227
+ color: var(--phi-color-text-disabled);
228
228
  cursor: not-allowed;
229
229
  }
230
230
 
231
231
  .phi-typography--secondary.phi-typography--link {
232
- color: var(--ant-color-text-description);
232
+ color: var(--phi-color-text-description);
233
233
  }
234
234
 
235
235
  .phi-typography--success.phi-typography--link {
236
- color: var(--ant-color-success-text);
236
+ color: var(--phi-color-success-text);
237
237
  }
238
238
 
239
239
  .phi-typography--warning.phi-typography--link {
240
- color: var(--ant-color-warning-text);
240
+ color: var(--phi-color-warning-text);
241
241
  }
242
242
 
243
243
  .phi-typography--danger.phi-typography--link {
244
- color: var(--ant-color-error-text);
244
+ color: var(--phi-color-error-text);
245
245
  }
246
246
 
247
247
  /* --- Menu -------------------------------------------------------------------------------------------- */
@@ -259,27 +259,27 @@ h5.phi-typography, .phi-typography h5 {
259
259
  .phi-menu-control--inline.ant-menu-root .ant-menu.ant-menu-sub,
260
260
  .phi-menu-control--inline.phi-menu-control__popup.ant-menu,
261
261
  .phi-menu-control--inline.phi-menu-control__popup .ant-menu.ant-menu-sub {
262
- --ant-menu-item-margin-block: var(--ant-margin-xxs);
263
- --ant-menu-item-margin-inline: 0px;
264
- --ant-menu-item-width: calc(100% - 0px);
265
- --ant-menu-item-bg: transparent;
266
- --ant-menu-sub-menu-item-bg: transparent;
267
- --ant-menu-dark-item-bg: transparent;
268
- --ant-menu-dark-sub-menu-item-bg: transparent;
262
+ --phi-menu-item-margin-block: var(--phi-margin-xxs);
263
+ --phi-menu-item-margin-inline: 0px;
264
+ --phi-menu-item-width: calc(100% - 0px);
265
+ --phi-menu-item-bg: transparent;
266
+ --phi-menu-sub-menu-item-bg: transparent;
267
+ --phi-menu-dark-item-bg: transparent;
268
+ --phi-menu-dark-sub-menu-item-bg: transparent;
269
269
  }
270
270
 
271
271
  .phi-menu-control--collapsed-width.ant-menu.ant-menu-root,
272
272
  .phi-menu-control--collapsed-width.ant-menu-root .ant-menu.ant-menu-sub,
273
273
  .phi-menu-control--collapsed-width.phi-menu-control__popup.ant-menu,
274
274
  .phi-menu-control--collapsed-width.phi-menu-control__popup .ant-menu.ant-menu-sub {
275
- --ant-menu-collapsed-width: var(--phi-menu-collapsed-width);
275
+ --phi-menu-collapsed-width: var(--phi-menu-collapsed-width);
276
276
  }
277
277
 
278
278
  .phi-menu-control--font-family.ant-menu.ant-menu-root,
279
279
  .phi-menu-control--font-family.ant-menu-root .ant-menu.ant-menu-sub,
280
280
  .phi-menu-control--font-family.phi-menu-control__popup.ant-menu,
281
281
  .phi-menu-control--font-family.phi-menu-control__popup .ant-menu.ant-menu-sub {
282
- --ant-font-family: var(--phi-menu-font-family);
282
+ --phi-font-family: var(--phi-menu-font-family);
283
283
  }
284
284
 
285
285
  /* The Menu's tokens that Ant Design derives from the base size, derived the same way. */
@@ -287,10 +287,10 @@ h5.phi-typography, .phi-typography h5 {
287
287
  .phi-menu-control--font-size.ant-menu-root .ant-menu.ant-menu-sub,
288
288
  .phi-menu-control--font-size.phi-menu-control__popup.ant-menu,
289
289
  .phi-menu-control--font-size.phi-menu-control__popup .ant-menu.ant-menu-sub {
290
- --ant-font-size: var(--phi-menu-font-size);
291
- --ant-menu-icon-size: var(--phi-menu-font-size);
292
- --ant-menu-group-title-font-size: var(--phi-menu-font-size);
293
- --ant-menu-icon-margin-inline-end: calc(var(--ant-control-height-sm) - var(--phi-menu-font-size));
290
+ --phi-font-size: var(--phi-menu-font-size);
291
+ --phi-menu-icon-size: var(--phi-menu-font-size);
292
+ --phi-menu-group-title-font-size: var(--phi-menu-font-size);
293
+ --phi-menu-icon-margin-inline-end: calc(var(--phi-control-height-sm) - var(--phi-menu-font-size));
294
294
  }
295
295
 
296
296
  /*
@@ -303,7 +303,7 @@ h5.phi-typography, .phi-typography h5 {
303
303
  .phi-header-nav .ant-menu-horizontal > :is(.ant-menu-item, .ant-menu-submenu) {
304
304
  display: flex;
305
305
  align-items: center;
306
- line-height: var(--ant-control-height);
306
+ line-height: var(--phi-control-height);
307
307
  }
308
308
 
309
309
  /*
@@ -316,21 +316,21 @@ h5.phi-typography, .phi-typography h5 {
316
316
  */
317
317
  .phi-menu-control--selection-pill.ant-menu.ant-menu-root.ant-menu-horizontal,
318
318
  .phi-menu-control--selection-auto.ant-menu-dark.ant-menu-root.ant-menu-horizontal {
319
- --ant-menu-active-bar-height: 0px;
319
+ --phi-menu-active-bar-height: 0px;
320
320
  /*
321
321
  * The Theme's Control shape at the default size: one Control line tall, so the radius a grown Control
322
322
  * holds is exactly this entry's -- the shape's number, or the capsule under `pill`.
323
323
  */
324
- --ant-menu-horizontal-item-border-radius: var(--phi-control-radius-grown-md, var(--ant-border-radius));
325
- --ant-menu-horizontal-item-selected-bg: var(--ant-color-primary-bg);
326
- --ant-menu-dark-item-selected-bg: color-mix(in srgb, var(--ant-color-primary) 30%, transparent);
324
+ --phi-menu-horizontal-item-border-radius: var(--phi-control-radius-grown-md, var(--phi-border-radius));
325
+ --phi-menu-horizontal-item-selected-bg: var(--phi-color-primary-bg);
326
+ --phi-menu-dark-item-selected-bg: color-mix(in srgb, var(--phi-color-primary) 30%, transparent);
327
327
  }
328
328
 
329
329
  .phi-menu-control--selection-pill.ant-menu-horizontal > :is(.ant-menu-item, .ant-menu-submenu),
330
330
  .phi-menu-control--selection-auto.ant-menu-dark.ant-menu-horizontal > :is(.ant-menu-item, .ant-menu-submenu) {
331
331
  align-self: center;
332
- height: var(--ant-control-height);
333
- line-height: var(--ant-control-height);
332
+ height: var(--phi-control-height);
333
+ line-height: var(--phi-control-height);
334
334
  }
335
335
 
336
336
  .phi-menu-control--selection-pill.ant-menu-horizontal > :is(.ant-menu-item, .ant-menu-submenu)::after,
@@ -340,15 +340,15 @@ h5.phi-typography, .phi-typography h5 {
340
340
 
341
341
  /* The bar in dark mode as well: no ground, and the bar Ant Design leaves out under a dark menu. */
342
342
  .phi-menu-control--selection-underline.ant-menu-dark.ant-menu-root.ant-menu-horizontal {
343
- --ant-menu-dark-item-selected-bg: transparent;
344
- --ant-menu-dark-item-selected-color: var(--ant-color-primary);
343
+ --phi-menu-dark-item-selected-bg: transparent;
344
+ --phi-menu-dark-item-selected-color: var(--phi-color-primary);
345
345
  }
346
346
 
347
347
  .phi-menu-control--selection-underline.ant-menu-dark.ant-menu-horizontal
348
348
  > :is(.ant-menu-item-selected, .ant-menu-submenu-selected)::after {
349
349
  /* Ant Design's own `lineWidthBold`, which it derives as `lineWidth + 1`. */
350
- border-bottom-width: calc(var(--ant-line-width) + 1px);
351
- border-bottom-color: var(--ant-color-primary);
350
+ border-bottom-width: calc(var(--phi-line-width) + 1px);
351
+ border-bottom-color: var(--phi-color-primary);
352
352
  }
353
353
 
354
354
  /*
@@ -356,7 +356,7 @@ h5.phi-typography, .phi-typography h5 {
356
356
  * so a list of them reads as a list while every one is closed.
357
357
  */
358
358
  .phi-markdown-folds :where(.ant-collapse-item + .ant-collapse-item) {
359
- border-block-start: var(--ant-line-width, 1px) solid var(--ant-color-split);
359
+ border-block-start: var(--phi-line-width, 1px) solid var(--phi-color-split);
360
360
  }
361
361
 
362
362
  /* --- Labeled control ---------------------------------------------------------------------------- */
@@ -380,7 +380,7 @@ h5.phi-typography, .phi-typography h5 {
380
380
  */
381
381
  .phi-card-control {
382
382
  --phi-card-control-radius: var(--phi-surface-radius);
383
- --phi-card-control-line: var(--ant-line-width) var(--ant-line-type) var(--ant-color-border-secondary);
383
+ --phi-card-control-line: var(--phi-line-width) var(--phi-line-type) var(--phi-color-border-secondary);
384
384
  position: relative;
385
385
  display: flex;
386
386
  flex-direction: column;
@@ -388,23 +388,23 @@ h5.phi-typography, .phi-typography h5 {
388
388
  min-width: 0;
389
389
  border: var(--phi-card-control-line);
390
390
  border-radius: var(--phi-card-control-radius);
391
- background: var(--ant-color-bg-container);
392
- color: var(--ant-color-text);
393
- font-size: var(--ant-font-size);
394
- line-height: var(--ant-line-height);
391
+ background: var(--phi-color-bg-container);
392
+ color: var(--phi-color-text);
393
+ font-size: var(--phi-font-size);
394
+ line-height: var(--phi-line-height);
395
395
  }
396
396
 
397
397
  .phi-card-control__head {
398
398
  display: flex;
399
399
  align-items: center;
400
- gap: var(--ant-padding-xs);
401
- min-height: calc(var(--ant-font-size-lg) * var(--ant-line-height-lg) + var(--ant-padding) * 2);
402
- padding: 0 var(--ant-padding-lg);
400
+ gap: var(--phi-padding-xs);
401
+ min-height: calc(var(--phi-font-size-lg) * var(--phi-line-height-lg) + var(--phi-padding) * 2);
402
+ padding: 0 var(--phi-padding-lg);
403
403
  border-bottom: var(--phi-card-control-line);
404
404
  border-radius: var(--phi-card-control-radius) var(--phi-card-control-radius) 0 0;
405
- color: var(--ant-color-text-heading);
406
- font-size: var(--ant-font-size-lg);
407
- font-weight: var(--ant-font-weight-strong);
405
+ color: var(--phi-color-text-heading);
406
+ font-size: var(--phi-font-size-lg);
407
+ font-weight: var(--phi-font-weight-strong);
408
408
  }
409
409
 
410
410
  .phi-card-control__title {
@@ -417,20 +417,20 @@ h5.phi-typography, .phi-typography h5 {
417
417
 
418
418
  .phi-card-control__toolbar {
419
419
  margin-inline-start: auto;
420
- color: var(--ant-color-text);
421
- font-size: var(--ant-font-size);
420
+ color: var(--phi-color-text);
421
+ font-size: var(--phi-font-size);
422
422
  font-weight: normal;
423
423
  }
424
424
 
425
425
  .phi-card-control--small > .phi-card-control__head {
426
- min-height: calc(var(--ant-font-size) * var(--ant-line-height) + var(--ant-padding-xs) * 2);
427
- padding: 0 var(--ant-padding-sm);
428
- font-size: var(--ant-font-size);
426
+ min-height: calc(var(--phi-font-size) * var(--phi-line-height) + var(--phi-padding-xs) * 2);
427
+ padding: 0 var(--phi-padding-sm);
428
+ font-size: var(--phi-font-size);
429
429
  }
430
430
 
431
431
  /* The cover runs to the frame's outer edge and takes its upper corners when nothing sits above it. */
432
432
  .phi-card-control__cover {
433
- margin: calc(var(--ant-line-width) * -1) calc(var(--ant-line-width) * -1) 0;
433
+ margin: calc(var(--phi-line-width) * -1) calc(var(--phi-line-width) * -1) 0;
434
434
  }
435
435
 
436
436
  .phi-card-control__cover > * {
@@ -465,13 +465,13 @@ h5.phi-typography, .phi-typography h5 {
465
465
  .phi-card-control--hoverable {
466
466
  cursor: pointer;
467
467
  transition:
468
- box-shadow var(--ant-motion-duration-mid),
469
- border-color var(--ant-motion-duration-mid);
468
+ box-shadow var(--phi-motion-duration-mid),
469
+ border-color var(--phi-motion-duration-mid);
470
470
  }
471
471
 
472
472
  .phi-card-control--hoverable:hover {
473
473
  border-color: transparent;
474
- box-shadow: var(--ant-box-shadow);
474
+ box-shadow: var(--phi-box-shadow);
475
475
  }
476
476
 
477
477
  /* --- Dropdown ------------------------------------------------------------------------------------ */
@@ -490,8 +490,8 @@ h5.phi-typography, .phi-typography h5 {
490
490
  align-items: center;
491
491
  justify-content: center;
492
492
  min-width: 3.5rem;
493
- padding: var(--ant-padding-xxs) var(--ant-padding-sm);
494
- border: var(--ant-line-width) solid var(--ant-color-border);
493
+ padding: var(--phi-padding-xxs) var(--phi-padding-sm);
494
+ border: var(--phi-line-width) solid var(--phi-color-border);
495
495
  border-radius: var(--phi-control-radius-sm);
496
496
  color: inherit;
497
497
  font-size: inherit;
@@ -500,14 +500,14 @@ h5.phi-typography, .phi-typography h5 {
500
500
  white-space: nowrap;
501
501
  flex-shrink: 0;
502
502
  transition:
503
- color var(--ant-motion-duration-mid),
504
- border-color var(--ant-motion-duration-mid);
503
+ color var(--phi-motion-duration-mid),
504
+ border-color var(--phi-motion-duration-mid);
505
505
  }
506
506
 
507
507
  /* Hovering anywhere on the trigger lights the pill -- the account avatar beside it included. */
508
508
  .phi-dropdown-control:hover .phi-dropdown-control__pill {
509
- border-color: var(--ant-color-primary-hover);
510
- color: var(--ant-color-primary-hover);
509
+ border-color: var(--phi-color-primary-hover);
510
+ color: var(--phi-color-primary-hover);
511
511
  }
512
512
 
513
513
  /*
@@ -516,7 +516,7 @@ h5.phi-typography, .phi-typography h5 {
516
516
  * an icon glyph never matches it. Centred in its box, so it lines up with the label beside it.
517
517
  */
518
518
  .phi-dropdown-control__chevron {
519
- --phi-chevron-size: calc(var(--ant-font-size) / 7 * 5);
519
+ --phi-chevron-size: calc(var(--phi-font-size) / 7 * 5);
520
520
  position: relative;
521
521
  display: inline-block;
522
522
  flex-shrink: 0;
@@ -532,7 +532,7 @@ h5.phi-typography, .phi-typography h5 {
532
532
  left: calc(50% - var(--phi-chevron-size) * 0.3);
533
533
  width: calc(var(--phi-chevron-size) * 0.6);
534
534
  height: calc(var(--phi-chevron-size) * 0.15);
535
- border-radius: var(--ant-border-radius);
535
+ border-radius: var(--phi-border-radius);
536
536
  background-color: currentcolor;
537
537
  content: "";
538
538
  }
@@ -620,11 +620,11 @@ h5.phi-typography, .phi-typography h5 {
620
620
  * and its stylesheet is injected after this one.
621
621
  */
622
622
  .phi-table-control.phi-table-control [class~="ant-table-summary"] {
623
- background: var(--ant-table-footer-bg, var(--ant-color-fill-alter));
623
+ background: var(--phi-table-footer-bg, var(--phi-color-fill-alter));
624
624
  }
625
625
 
626
626
  .phi-table-control [class~="ant-table-pagination"][class~="ant-pagination"] {
627
- margin-block: var(--ant-padding-sm) 0 !important;
627
+ margin-block: var(--phi-padding-sm) 0 !important;
628
628
  }
629
629
 
630
630
  .phi-table-control
@@ -670,7 +670,7 @@ h5.phi-typography, .phi-typography h5 {
670
670
  display: inline-flex;
671
671
  align-items: center;
672
672
  justify-content: center;
673
- min-block-size: var(--ant-control-height-sm);
673
+ min-block-size: var(--phi-control-height-sm);
674
674
  }
675
675
 
676
676
  /* --- Compact Select ------------------------------------------------------------------------------ */
@@ -683,13 +683,13 @@ h5.phi-typography, .phi-typography h5 {
683
683
  * height would leave the box short of `controlHeightSM` by the difference.
684
684
  */
685
685
  [class~="ant-select"][class~="ant-select-sm"] {
686
- --ant-select-font-size: var(--ant-font-size-sm);
687
- --ant-select-font-height: calc(var(--ant-font-size-sm) * var(--ant-select-line-height));
686
+ --phi-select-font-size: var(--phi-font-size-sm);
687
+ --phi-select-font-height: calc(var(--phi-font-size-sm) * var(--phi-select-line-height));
688
688
  }
689
689
 
690
690
  /* The list a compact Select opens writes as the field does; Ant Design gives every Select's list the body size. */
691
691
  .phi-select-popup--sm [class~="ant-select-item"] {
692
- font-size: var(--ant-font-size-sm);
692
+ font-size: var(--phi-font-size-sm);
693
693
  }
694
694
 
695
695
  /* --- Running text --------------------------------------------------------------------------------- */
@@ -722,9 +722,9 @@ h5.phi-typography, .phi-typography h5 {
722
722
  .phi-plain-table {
723
723
  width: 100%;
724
724
  border-collapse: collapse;
725
- font-size: var(--ant-font-size-sm);
726
- line-height: var(--ant-line-height-sm);
727
- color: var(--ant-color-text);
725
+ font-size: var(--phi-font-size-sm);
726
+ line-height: var(--phi-line-height-sm);
727
+ color: var(--phi-color-text);
728
728
  }
729
729
 
730
730
  /*
@@ -734,7 +734,7 @@ h5.phi-typography, .phi-typography h5 {
734
734
  */
735
735
  .phi-plain-table th,
736
736
  .phi-plain-table td {
737
- padding: var(--ant-padding-xs) var(--ant-padding-sm);
737
+ padding: var(--phi-padding-xs) var(--phi-padding-sm);
738
738
  text-align: start;
739
739
  vertical-align: top;
740
740
  hyphens: manual;
@@ -746,13 +746,13 @@ h5.phi-typography, .phi-typography h5 {
746
746
  }
747
747
 
748
748
  .phi-plain-table th {
749
- font-weight: var(--ant-font-weight-strong);
750
- color: var(--ant-color-text-heading);
751
- border-block-end: 1px solid var(--ant-color-border-secondary);
749
+ font-weight: var(--phi-font-weight-strong);
750
+ color: var(--phi-color-text-heading);
751
+ border-block-end: 1px solid var(--phi-color-border-secondary);
752
752
  }
753
753
 
754
754
  .phi-plain-table td {
755
- border-block-end: 1px solid var(--ant-color-split);
755
+ border-block-end: 1px solid var(--phi-color-split);
756
756
  }
757
757
 
758
758
  .phi-plain-table tbody tr:last-child td {
@@ -768,17 +768,17 @@ h5.phi-typography, .phi-typography h5 {
768
768
  * Beside the words the line is shared in the golden ratio: what is left after the gap between them goes
769
769
  * 1 : φ to picture and text (`PHI_GOLDEN_RATIO`, 1 + φ = 2.618), so the text is 1.618 times as wide as the
770
770
  * picture at any column width -- 415 px of picture beside 671 px of text in a 1120 px column, with the
771
- * Phi scale's `md` (34 px) between them. Every distance here is the Phi scale's, never `--ant-margin-*`.
771
+ * Phi scale's `md` (34 px) between them. Every distance here is the Phi scale's, never `--phi-margin-*`.
772
772
  */
773
773
  .phi-markdown-body {
774
774
  /* The gap between picture and text, on the Phi scale (`PHI_SPACE.md`), not Ant Design's margins. */
775
- --phi-markdown-float-gap: var(--ant-padding-md, 34px);
775
+ --phi-markdown-float-gap: var(--phi-padding-md, 34px);
776
776
  --phi-markdown-float-width: calc((100% - var(--phi-markdown-float-gap)) / 2.618034);
777
777
  }
778
778
 
779
779
  .phi-markdown-body :is(img):not(:where(.phi-markdown-figure *)) {
780
780
  display: block;
781
- margin-block-end: var(--ant-padding, 21px);
781
+ margin-block-end: var(--phi-padding, 21px);
782
782
  /*
783
783
  * A picture is a surface, so its corners are the Theme's surface step (`--phi-surface-radius`, THEME.md
784
784
  * "Control shape"): square under `square`, the widest step of the scale under `pill`.
@@ -806,7 +806,7 @@ h5.phi-typography, .phi-typography h5 {
806
806
  * address says (`float=start|end|none`), in the same golden share and from the same container width as above.
807
807
  */
808
808
  .phi-markdown-figure {
809
- margin: 0 0 var(--ant-padding, 21px);
809
+ margin: 0 0 var(--phi-padding, 21px);
810
810
  }
811
811
 
812
812
  .phi-markdown-figure__frame {
@@ -2,7 +2,7 @@
2
2
  * Gradients and glass on Controls (theme/phi-theme-gradients.ts).
3
3
  *
4
4
  * Ant Design 6 draws a Button's ground with `background-color` from its own variables
5
- * (`--ant-btn-bg-color`, `-hover`, `-active`) and never sets `background-image`. So a run laid on as
5
+ * (`--phi-btn-bg-color`, `-hover`, `-active`) and never sets `background-image`. So a run laid on as
6
6
  * `background-image` sits over Ant Design's colour without fighting it and keeps that colour as the edge
7
7
  * a gradient cannot draw. A disabled Button is left out of every rule here: its run would outweigh the
8
8
  * `background` shorthand Ant Design greys it out with. Text colour goes through Ant Design's text variables, which is
@@ -17,21 +17,21 @@
17
17
  * A Button of the `gradient` variant is primary underneath and has a run of its own, so it is left out.
18
18
  */
19
19
  .ant-btn.ant-btn.ant-btn-color-primary.ant-btn-variant-solid:not(.ant-btn-background-ghost):not(.phi-btn-gradient):not(:disabled):not(.ant-btn-disabled) {
20
- background-image: var(--ant-phi-primary-button-gradient, none);
20
+ background-image: var(--phi-primary-button-gradient, none);
21
21
  /* From the outer edge and once: from the padding box it tiled again under the border, and a pill's
22
22
  ends showed the other end of the run. */
23
23
  background-origin: border-box;
24
24
  background-repeat: no-repeat;
25
25
  will-change: filter;
26
- --ant-btn-text-color: var(--ant-phi-primary-button-gradient-text, var(--ant-color-text-light-solid));
26
+ --phi-btn-text-color: var(--phi-primary-button-gradient-text, var(--phi-color-text-light-solid));
27
27
  }
28
28
 
29
29
  .ant-btn.ant-btn.ant-btn-color-primary.ant-btn-variant-solid:not(.ant-btn-background-ghost):not(.phi-btn-gradient):not(:disabled):not(.ant-btn-disabled):hover {
30
- filter: var(--ant-phi-primary-button-gradient-hover, none);
30
+ filter: var(--phi-primary-button-gradient-hover, none);
31
31
  }
32
32
 
33
33
  .ant-btn.ant-btn.ant-btn-color-primary.ant-btn-variant-solid:not(.ant-btn-background-ghost):not(.phi-btn-gradient):not(:disabled):not(.ant-btn-disabled):active {
34
- filter: var(--ant-phi-primary-button-gradient-active, none);
34
+ filter: var(--phi-primary-button-gradient-active, none);
35
35
  }
36
36
 
37
37
  /*
@@ -46,15 +46,15 @@
46
46
  filter eases, rasterises its rounded rim there, and the pill seemed to change size twice. */
47
47
  will-change: filter;
48
48
  /* The run is the whole ground: a colour beneath it showed through the anti-aliased rim of a pill. */
49
- --ant-btn-bg-color: transparent;
50
- --ant-btn-bg-color-hover: transparent;
51
- --ant-btn-bg-color-active: transparent;
52
- --ant-btn-border-color: transparent;
53
- --ant-btn-border-color-hover: transparent;
54
- --ant-btn-border-color-active: transparent;
55
- --ant-btn-text-color: var(--phi-control-gradient-text);
56
- --ant-btn-text-color-hover: var(--phi-control-gradient-text);
57
- --ant-btn-text-color-active: var(--phi-control-gradient-text);
49
+ --phi-btn-bg-color: transparent;
50
+ --phi-btn-bg-color-hover: transparent;
51
+ --phi-btn-bg-color-active: transparent;
52
+ --phi-btn-border-color: transparent;
53
+ --phi-btn-border-color-hover: transparent;
54
+ --phi-btn-border-color-active: transparent;
55
+ --phi-btn-text-color: var(--phi-control-gradient-text);
56
+ --phi-btn-text-color-hover: var(--phi-control-gradient-text);
57
+ --phi-btn-text-color-active: var(--phi-control-gradient-text);
58
58
  }
59
59
 
60
60
  /*
@@ -76,15 +76,15 @@
76
76
  * one, so the pane darkens instead of misting a dark picture white.
77
77
  */
78
78
  .ant-btn.ant-btn.phi-btn-glass.phi-btn-glass {
79
- --ant-btn-bg-color: color-mix(in srgb, var(--ant-color-bg-container) 24%, transparent);
80
- --ant-btn-bg-color-hover: color-mix(in srgb, var(--ant-color-bg-container) 38%, transparent);
81
- --ant-btn-bg-color-active: color-mix(in srgb, var(--ant-color-bg-container) 48%, transparent);
82
- --ant-btn-border-color: color-mix(in srgb, var(--ant-color-text) 24%, transparent);
83
- --ant-btn-border-color-hover: color-mix(in srgb, var(--ant-color-text) 40%, transparent);
84
- --ant-btn-border-color-active: color-mix(in srgb, var(--ant-color-text) 40%, transparent);
85
- --ant-btn-text-color: var(--ant-color-text);
86
- --ant-btn-text-color-hover: var(--ant-color-text);
87
- --ant-btn-text-color-active: var(--ant-color-text);
79
+ --phi-btn-bg-color: color-mix(in srgb, var(--phi-color-bg-container) 24%, transparent);
80
+ --phi-btn-bg-color-hover: color-mix(in srgb, var(--phi-color-bg-container) 38%, transparent);
81
+ --phi-btn-bg-color-active: color-mix(in srgb, var(--phi-color-bg-container) 48%, transparent);
82
+ --phi-btn-border-color: color-mix(in srgb, var(--phi-color-text) 24%, transparent);
83
+ --phi-btn-border-color-hover: color-mix(in srgb, var(--phi-color-text) 40%, transparent);
84
+ --phi-btn-border-color-active: color-mix(in srgb, var(--phi-color-text) 40%, transparent);
85
+ --phi-btn-text-color: var(--phi-color-text);
86
+ --phi-btn-text-color-hover: var(--phi-color-text);
87
+ --phi-btn-text-color-active: var(--phi-color-text);
88
88
  /* The frost itself is inline on the Button: a `backdrop-filter` in a stylesheet does not survive the build (styles/shell.css). */
89
89
  }
90
90