tfy-web-components 0.0.25 → 0.0.27

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 CHANGED
@@ -73,6 +73,30 @@ without persisting a separate preference or listening to system-theme changes:
73
73
  Omit `theme` when tfy-web-components should own the preference through
74
74
  `localStorage` and the system preference.
75
75
 
76
+ ### Markdown styles
77
+
78
+ GitHub Markdown base styles plus `.markdown-body` / `.markdown-table` overrides
79
+ ship in `markdown.css`. Tailwind v4 apps already get them via `theme.css`
80
+ (no extra import). Tailwind v3 apps (or anyone not using `theme.css`) should
81
+ import `markdown.css` directly:
82
+
83
+ ```css
84
+ /* Tailwind v4 — already included when you import theme.css */
85
+ @import 'tfy-web-components/theme.css';
86
+
87
+ /* Tailwind v3 / à-la-carte */
88
+ @import 'tfy-web-components/markdown.css';
89
+ ```
90
+
91
+ KaTeX styles are pulled in by the Markdown component JS import (`katex/dist/katex.min.css`);
92
+ ensure your bundler preserves CSS side effects from that dependency.
93
+
94
+ ```ts
95
+ import Markdown from 'tfy-web-components/components/molecules/Markdown'
96
+ ```
97
+
98
+ The default wrapper class is `markdown-body` (overridable via `bodyClass`).
99
+
76
100
  ### Agent chat components
77
101
 
78
102
  Import agent-chat UI from the barrel or the explicit deep entries only: