@ahrowe/ui 0.17.0 → 0.17.2

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.
@@ -41,3 +41,20 @@ import { ProgressBar } from '@ahrowe/ui';
41
41
  ```ts
42
42
  { amount: number; label?: string; color?: string; class?: string }
43
43
  ```
44
+
45
+ **Theming:** override theme-wide via `ThemeProvider`'s `variables`, or per instance via `style`; falls back to a built-in default when unset:
46
+
47
+ | Variable | Falls back to |
48
+ |----------|---------------|
49
+ | `--progress-bar-track-color` | `var(--background-accent)` |
50
+
51
+ ```tsx
52
+ // Theme-wide, via ThemeProvider
53
+ const theme: Theme = {
54
+ id: 'brand',
55
+ variables: { '--progress-bar-track-color': '#2a2a2a' },
56
+ };
57
+
58
+ // Or one-off via style
59
+ <ProgressBar progress={60} style={{ '--progress-bar-track-color': '#2a2a2a' } as React.CSSProperties} />
60
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ahrowe/ui",
3
- "version": "0.17.0",
3
+ "version": "0.17.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },