tfy-web-components 0.0.25 → 0.0.26
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 +6 -2
- package/dist/Input-CnGhA18d.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/theme.css +98 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -52,14 +52,17 @@ import { ThemeProvider } from 'tfy-web-components/components/theme/useTheme'
|
|
|
52
52
|
### Tailwind v4
|
|
53
53
|
|
|
54
54
|
Import the generated theme stylesheet once in your Tailwind entry CSS — it
|
|
55
|
-
declares the palette's `@theme inline` registrations
|
|
56
|
-
directive,
|
|
55
|
+
declares the palette's `@theme inline` registrations, an `@source`
|
|
56
|
+
directive, and Markdown/KaTeX styles used by the Markdown component:
|
|
57
57
|
|
|
58
58
|
```css
|
|
59
59
|
@import 'tailwindcss';
|
|
60
60
|
@import 'tfy-web-components/theme.css';
|
|
61
61
|
```
|
|
62
62
|
|
|
63
|
+
That single `theme.css` import is enough for Markdown styling — do not also
|
|
64
|
+
import `tfy-web-components/dist/style.css` for this.
|
|
65
|
+
|
|
63
66
|
If a host app/SDK already owns its theme state, pass the resolved theme to
|
|
64
67
|
`ThemeProvider`. It will apply the same value to its context and the document
|
|
65
68
|
without persisting a separate preference or listening to system-theme changes:
|
|
@@ -88,6 +91,7 @@ need `UserMessage` or `UserMessageEdit` as standalone entries.
|
|
|
88
91
|
## Package Configuration
|
|
89
92
|
|
|
90
93
|
See [PACKAGE_CHANGES.md](./PACKAGE_CHANGES.md) for details on:
|
|
94
|
+
|
|
91
95
|
- Why `sideEffects: ["**/*.css"]` is critical for proper tree-shaking
|
|
92
96
|
- Why the `exports` field has no `"require"` entry
|
|
93
97
|
|