mood-ui 0.8.0 → 0.8.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.
@@ -11,18 +11,18 @@
11
11
  export type ColorMode = "light" | "dark" | "system";
12
12
  export interface ColorModeOptions {
13
13
  /**
14
- * Class name added to `<html>` when the resolved mode is `'dark'`.
15
- * Defaults to `'dark'` (the convention Tailwind v4 uses out of the box).
14
+ * Additional class to toggle on `<html>` when the resolved mode is
15
+ * `'dark'`. The lib **always** toggles its own internal `'dark'`
16
+ * class as well — its compiled CSS (Tailwind v4 `dark:` variants)
17
+ * is keyed off `.dark` and cannot work without it. Use this option
18
+ * when your application's CSS keys off a different class, e.g.
19
+ * `useColorMode({ darkClass: 'appdark' })`. With that call, `<html>`
20
+ * will carry both `appdark` (for your rules) and `dark` (for the
21
+ * lib's rules) whenever the resolved mode is dark.
16
22
  *
17
- * Override it when your app's CSS already keys off a custom class
18
- * — e.g. `useColorMode({ darkClass: 'appdark' })`. Calling this with
19
- * a new value swaps the class on `<html>` immediately, so existing
20
- * dark-mode rules keep firing.
21
- *
22
- * Note: mood-ui's own dark-mode CSS is compiled against `.dark`. If
23
- * you need both your `appdark` selectors AND the lib's dark variants
24
- * to work, configure Tailwind so `dark:` resolves to your custom
25
- * selector, or keep both classes in sync via `darkClassExtras`.
23
+ * Calling this with a new value swaps the previous extra class for
24
+ * the new one immediately; the lib's internal `dark` is never
25
+ * removed.
26
26
  */
27
27
  darkClass?: string;
28
28
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mood-ui",
3
- "version": "0.8.0",
3
+ "version": "0.8.2",
4
4
  "description": "Vue 3 component library with full theming, dark mode, palettes, calendar, scheduler, table and AppShell.",
5
5
  "type": "module",
6
6
  "license": "MIT",