@iyulab/components 2.10.0 → 2.10.1
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -68,7 +68,7 @@ changes**, because those targets are relative to the page background.
|
|
|
68
68
|
| `Theme.init(options?)` | `Promise<void>` | Initialize and apply theme |
|
|
69
69
|
| `Theme.get()` | `ThemeType \| undefined` | Get current theme |
|
|
70
70
|
| `Theme.set(theme)` | `void` | Set theme (`'light'`, `'dark'`, `'system'`) |
|
|
71
|
-
| `Theme.resolved()` | `'light'
|
|
71
|
+
| `Theme.resolved()` | `'light' \| 'dark'` | The theme actually applied — use this, not `get()`, for brightness branches |
|
|
72
72
|
| `Theme.accent(seed)` | `void` | Derive the `--u-primary-*` ramp from a brand color; `null` clears it |
|
|
73
73
|
| `Theme.isInitialized` | `boolean` | Whether `init()` has been called |
|
|
74
74
|
|