@praxisui/core 9.0.0-beta.71 → 9.0.0-beta.72
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/README.md +15 -0
- package/ai/component-registry.json +142 -93
- package/fesm2022/praxisui-core.mjs +487 -61
- package/package.json +1 -1
- package/types/praxisui-core.d.ts +97 -6
package/README.md
CHANGED
|
@@ -58,6 +58,21 @@ export class IconsComponent {}
|
|
|
58
58
|
|
|
59
59
|
Hosts should load the icon fonts they use. Without the classic Material Icons font, ligature names such as `clear` can render as visible text.
|
|
60
60
|
|
|
61
|
+
### Semantic theme surfaces
|
|
62
|
+
|
|
63
|
+
`PraxisThemeSurfaceTokens` is the public semantic bridge for runtime surfaces. It deliberately avoids Material or MDC selectors, so a host can theme Praxis overlays, borders and focus states without patching component internals.
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
import { buildPraxisThemeSurfaceCss } from '@praxisui/core';
|
|
67
|
+
|
|
68
|
+
const themeCss = buildPraxisThemeSurfaceCss({
|
|
69
|
+
surfaceOverlay: 'var(--app-overlay-surface)',
|
|
70
|
+
focusOutline: 'var(--app-focus-ring)',
|
|
71
|
+
});
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Apply the generated variables in the host stylesheet or define the `--praxis-theme-*` variables directly. Runtime libraries consume these roles with Material-token fallbacks while their existing component-specific tokens remain supported.
|
|
75
|
+
|
|
61
76
|
## Component Metadata
|
|
62
77
|
|
|
63
78
|
`ComponentMetadataRegistry` is the shared registry used by builders and runtime loaders to resolve component metadata.
|