bestax-mcp 1.18.63 → 1.18.64

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.
@@ -98,8 +98,8 @@
98
98
  "name": "data",
99
99
  "type": "AutocompleteItem[] | string[]",
100
100
  "default": "[]",
101
- "description": "The options data to display (required). The list shows the options that contain what's typed, ignoring case, and inside a `LocaleProvider` with a `locale`, ignoring accents too where that language does, so \"cafe\" finds \"Café\".",
102
- "required": false,
101
+ "description": "The options data to display. The list shows the options that contain what's typed, ignoring case, and inside a `LocaleProvider` with a `locale`, ignoring accents too where that language does, so \"cafe\" finds \"Café\".",
102
+ "required": true,
103
103
  "inherited": false,
104
104
  "deprecated": false
105
105
  },
@@ -130,7 +130,7 @@
130
130
  "type": "React.ReactNode",
131
131
  "default": null,
132
132
  "description": "The button elements to render inside the group.",
133
- "required": false,
133
+ "required": true,
134
134
  "inherited": false,
135
135
  "deprecated": false
136
136
  }
@@ -896,7 +896,7 @@
896
896
  "type": "string",
897
897
  "default": null,
898
898
  "description": "The text it copies. This is not the `<button>`'s form value, which it doesn't render.",
899
- "required": false,
899
+ "required": true,
900
900
  "inherited": false,
901
901
  "deprecated": false
902
902
  },
@@ -65,8 +65,8 @@
65
65
  "name": "data",
66
66
  "type": "TreeItemData[]",
67
67
  "default": null,
68
- "description": "**Required.** The tree, as nodes nested through `children`. The same nodes TreeSelect takes.",
69
- "required": false,
68
+ "description": "The tree, as nodes nested through `children`. The same nodes TreeSelect takes.",
69
+ "required": true,
70
70
  "inherited": false,
71
71
  "deprecated": false
72
72
  },
@@ -53,7 +53,7 @@
53
53
  "type": "string",
54
54
  "default": null,
55
55
  "description": "The color it shows: any CSS color, such as `#1e6b99`, `hsl(202, 67%, 36%)` or `var(--bulma-primary)`. A see-through color shows a checkerboard behind it.",
56
- "required": false,
56
+ "required": true,
57
57
  "inherited": false,
58
58
  "deprecated": false
59
59
  },
@@ -671,7 +671,7 @@
671
671
  "type": "string",
672
672
  "default": null,
673
673
  "description": "What `onSelect` hands back. Unique within the Combobox.",
674
- "required": false,
674
+ "required": true,
675
675
  "inherited": false,
676
676
  "deprecated": false
677
677
  },
@@ -726,7 +726,7 @@
726
726
  "type": "React.ReactNode",
727
727
  "default": null,
728
728
  "description": "The heading, which also names the group for assistive tech, unless you give the group an `aria-label` or `aria-labelledby` of its own.",
729
- "required": false,
729
+ "required": true,
730
730
  "inherited": false,
731
731
  "deprecated": false
732
732
  },
@@ -430,7 +430,7 @@
430
430
  "type": "React.ReactNode",
431
431
  "default": null,
432
432
  "description": "The heading, which also names the group for assistive tech, unless you give the group an `aria-label` or `aria-labelledby` of its own.",
433
- "required": false,
433
+ "required": true,
434
434
  "inherited": false,
435
435
  "deprecated": false
436
436
  },
@@ -467,7 +467,7 @@
467
467
  "type": "string",
468
468
  "default": null,
469
469
  "description": "What the Command's `onSelect` hands back. Unique within the Command.",
470
- "required": false,
470
+ "required": true,
471
471
  "inherited": false,
472
472
  "deprecated": false
473
473
  },
@@ -23,7 +23,7 @@
23
23
  "type": "ReactNode",
24
24
  "default": null,
25
25
  "description": "Child components to receive configuration.",
26
- "required": false,
26
+ "required": true,
27
27
  "inherited": false,
28
28
  "deprecated": false
29
29
  },
@@ -61,5 +61,5 @@
61
61
  }
62
62
  ],
63
63
  "cssVars": [],
64
- "doc": "# ConfigProvider\n\n## Overview\n\nThe `ConfigProvider` component provides a React context for configuring global settings across all Bulma UI components. Its `classPrefix` is applied automatically to **all Bulma CSS classes**, including both main component classes (like `button`, `box`, `title`) and helper/modifier classes (like `is-primary`, `has-text-centered`, `m-4`), allowing you to namespace Bulma classes to avoid conflicts with other CSS frameworks or customize the class naming convention.\n\n---\n\n## Import\n\n```tsx\nimport { ConfigProvider, useConfig } from '@allxsmith/bestax-bulma';\n```\n\n---\n\n## Hooks\n\n### useConfig\n\nReturns the current configuration context values.\n\n```tsx\nconst { classPrefix } = useConfig();\n```\n\n### useClassPrefix\n\nConvenience hook that returns just the classPrefix string (or empty string if not set).\n\n```tsx\nconst classPrefix = useClassPrefix();\n```\n\n---\n\n## Usage Examples\n\n### Basic Usage with Class Prefix\n\nUse `ConfigProvider` to add a prefix to all Bulma CSS classes within its scope:\n\n```tsx\nimport {\n ConfigProvider,\n Box,\n Title,\n Button,\n Notification,\n} from '@allxsmith/bestax-bulma';\n\nfunction App() {\n return (\n <div>\n <Title size=\"3\">Prefixed Bulma Components</Title>\n <p>\n This demonstrates using ConfigProvider with{' '}\n <code>classPrefix=\"bestax-\"</code> to add the \"bestax-\" prefix to all\n component CSS classes. This is useful when integrating Bulma with other\n CSS frameworks or when you need to namespace Bulma classes to avoid\n conflicts.\n </p>\n\n <Notification color=\"info\" mt=\"4\">\n <strong>Tip:</strong> Open your browser's developer tools and inspect\n the DOM elements below. You'll see that all Bulma CSS classes have the\n \"bestax-\" prefix applied.\n </Notification>\n\n <ConfigProvider classPrefix=\"bestax-\">\n <Box mt=\"4\" p=\"4\">\n {/* \n This Box will have classes:\n - bestax-box (main class)\n - bestax-mt-4 (helper class)\n - bestax-p-4 (helper class)\n */}\n <Title size=\"4\">Prefixed Components</Title>\n {/* \n This Title will have classes:\n - bestax-title (main class)\n - bestax-is-4 (modifier class)\n */}\n <p>\n All components inside this ConfigProvider will have their CSS\n classes prefixed with \"bestax-\". This allows you to use Bulma\n alongside other CSS frameworks without class name conflicts.\n </p>\n <Button color=\"primary\" mt=\"3\" isRounded>\n {/* \n This Button will have classes:\n - bestax-button (main class)\n - bestax-is-primary (modifier class)\n - bestax-is-rounded (modifier class)\n - bestax-mt-3 (helper class)\n */}\n Bulma-Prefixed Button\n </Button>\n </Box>\n </ConfigProvider>\n\n <Box mt=\"4\" p=\"4\">\n <Title size=\"4\">Standard Components (No Prefix)</Title>\n <p>\n Components outside the ConfigProvider use standard Bulma classes\n without any prefix.\n </p>\n <Button color=\"info\">Standard Button</Button>\n </Box>\n </div>\n );\n}\n```\n\n### Nested ConfigProviders\n\nConfigProviders can be nested. An inner provider replaces the outer one's settings rather than adding to them, so inside it any setting it leaves out is back to its default:\n\n```tsx\nfunction NestedExample() {\n return (\n <ConfigProvider classPrefix=\"outer-\">\n <Box p=\"4\">\n <Title>Outer Prefix (outer-)</Title>\n\n <ConfigProvider classPrefix=\"inner-\">\n <Box p=\"4\" mt=\"3\">\n <Title>Inner Prefix (inner-)</Title>\n <Button color=\"primary\">Inner Button</Button>\n </Box>\n </ConfigProvider>\n\n <Button color=\"info\" mt=\"3\">\n Outer Button\n </Button>\n </Box>\n </ConfigProvider>\n );\n}\n```\n\n### Where Portaled Content Goes\n\n`portalContainer` sets where portaled content goes when it has no target of its own. That covers a [`Portal`](https://bestax.io/docs/api/helpers/portal) with no `container`, and what the library's components portal, such as the panel `Popover` renders with `appendToBody`, a `Modal` or `Dialog` with `portal` set to `true`, a `Toast`, or a `Sidebar`. It takes an element or a `document.querySelector` selector. Unset, that content goes to `document.body`.\n\nA popup opened inside a `Modal`, `Dialog` or `Command.Dialog`, such as a `Popover`, `HoverCard` or `ContextMenu` panel, or a `Combobox` menu or picker popover with `appendToBody`, goes into that dialog instead of `document.body`. Each of those sets `aria-modal`, and a screen reader that honors it hides everything outside the dialog. AppFrame's nav takes its popups too while it's a drawer, which draws over the page, so a popup opened in it shows above the drawer. A `portalContainer` you set still takes those popups, so with one set outside the dialog, point a `ConfigProvider` inside the dialog at an element there.\n\nA `Sidebar` doesn't take its popups: its open panel is transformed, which would place a fixed popup against the panel rather than the viewport. A `Popover` or a picker with `appendToBody` opened in an open sidebar renders under it, and with an overlay, the sidebar's `aria-modal` hides it from screen readers that honor it. A `portalContainer` pointing at an element of your own outside the sidebar that stacks above it shows the popup above, as the [Sidebar page](https://bestax.io/docs/api/components/sidebar#popups-in-the-sidebar) shows.\n\nA target a component is given still wins, such as a `Modal`'s `portal` selector or a `Toast`'s `container`. And `portalContainer` only changes where portaled content goes: a component that renders in place, like a `Modal` without `portal` or a `Toast` with `inline`, still does.\n\n`document.body` is outside any styles scoped to where the content was declared: a scoped `Theme`'s variables, or a shadow root's stylesheets. To keep them, render an element inside that area and make it the `portalContainer`, held in state from a ref callback. Below, the panel keeps the purple primary its `Theme` sets, which it would lose at the end of the page:\n\n```tsx live\nfunction ThemedOverlays() {\n const [overlays, setOverlays] = useState<HTMLElement | null>(null);\n\n return (\n <Theme primaryH=\"270\" primaryS=\"100%\" primaryL=\"50%\">\n <ConfigProvider portalContainer={overlays ?? undefined}>\n <Popover\n appendToBody\n ariaLabel=\"Themed panel\"\n trigger={<Button color=\"primary\">Open</Button>}\n >\n <Popover.Body>\n <Button color=\"primary\">Still purple</Button>\n </Popover.Body>\n </Popover>\n </ConfigProvider>\n <div ref={setOverlays} />\n </Theme>\n );\n}\n```\n\nA selector can't find an element inside a shadow root, since `document.querySelector` doesn't look there, so in a shadow root pass the element itself, as above. Content that portals before the element is set goes to `document.body` and moves when it is, which remounts it and resets its state, as [`Portal`'s `container`](https://bestax.io/docs/api/helpers/portal#into-a-container) describes. A nested provider like this one needs the class prefix and icon library repeated if your app sets them (see [Nested ConfigProviders](https://bestax.io/docs/api/helpers/config#nested-configproviders)).\n\nWhat gets portaled is `position: fixed`, so put the element where no ancestor has a `transform`, `filter`, `backdrop-filter`, `perspective`, `will-change: transform`, or a `contain` that includes `paint` or `layout`. Any of those becomes the containing block for the overlays and panels, which then cover or line up against that ancestor instead of the viewport. An ancestor that starts a stacking context, with a `z-index` or `isolation: isolate`, keeps them inside it, under anything the page stacks above it.\n\n`NotificationContainer` portals its status region along with its notifications, so the `portalContainer` also decides where announcements come from. Keep it out of any `aria-hidden` ancestor, which takes the region out of the accessibility tree and silences them.\n\n### Using Configuration in Custom Components\n\nAccess the configuration in your own components using the `useConfig` hook:\n\n```tsx\nimport { useConfig } from '@allxsmith/bestax-bulma';\n\nfunction CustomComponent() {\n const { classPrefix } = useConfig();\n const className = classPrefix\n ? `${classPrefix}custom-component`\n : 'custom-component';\n\n return (\n <div className={className}>\n My custom component with prefix: {classPrefix || 'none'}\n </div>\n );\n}\n```\n\n---\n\n## Use Cases\n\n### Framework Integration\n\nWhen integrating Bulma with other CSS frameworks like Bootstrap or Tailwind CSS:\n\n```tsx\n<ConfigProvider classPrefix=\"bestax-\">\n <App />\n</ConfigProvider>\n```\n\nThis ensures all Bulma classes are prefixed with `bestax-`, preventing conflicts with other framework classes.\n\n### Multi-tenant Applications\n\nFor applications that need to support different styling themes or brands:\n\n```tsx\n<ConfigProvider classPrefix={`${tenantName}-`}>\n <TenantApp />\n</ConfigProvider>\n```\n\n### Component Library Wrapping\n\nWhen wrapping Bulma UI components in your own component library:\n\n```tsx\n<ConfigProvider classPrefix=\"mylib-\">\n <MyComponentLibrary />\n</ConfigProvider>\n```\n\n---\n\n## Notes\n\n- The `classPrefix` is applied to **all Bulma classes**:\n - Main component classes (e.g., `button` → `bestax-button`, `box` → `bestax-box`)\n - Helper/modifier classes (e.g., `is-primary` → `bestax-is-primary`, `has-text-centered` → `bestax-has-text-centered`)\n - Spacing classes (e.g., `m-4` → `bestax-m-4`, `p-2` → `bestax-p-2`)\n - All other Bulma utility classes\n- Changes to the `classPrefix` will affect all child components immediately\n- If no `classPrefix` is provided, components use standard Bulma class names\n- The ConfigProvider must wrap all components that should inherit the configuration\n\n---\n\n## TypeScript Support\n\nFull TypeScript support is included:\n\n```tsx\ninterface ConfigContextProps {\n classPrefix?: string;\n iconLibrary?: 'fa' | 'mdi' | 'ion' | 'material-icons' | 'material-symbols';\n portalContainer?: string | HTMLElement;\n}\n\ninterface ConfigProviderProps {\n children: ReactNode;\n classPrefix?: string;\n iconLibrary?: 'fa' | 'mdi' | 'ion' | 'material-icons' | 'material-symbols';\n portalContainer?: string | HTMLElement;\n}\n```\n\n---\n\n## Props\n\n| Prop | Type | Description |\n| ----------------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `children` | `ReactNode` | The child components that will inherit the configuration settings. |\n| `classPrefix` | `string` | Optional prefix to add to all Bulma CSS classes. Useful for namespacing when integrating with other frameworks. |\n| `iconLibrary` | `'fa' \\| 'mdi' \\| 'ion' \\| 'material-icons' \\| 'material-symbols'` | Default icon library for all child components. |\n| `portalContainer` | `string` \\| `HTMLElement` | Where portaled content goes when it has no target of its own: what a `Portal` without a `container` renders, and what the library's components portal, such as `Popover`'s `appendToBody` panel or a `Modal` with `portal`. An element, or a `document.querySelector` selector. Unset, or a selector that matches nothing, it goes to `document.body`. A target a component is given still wins. |"
64
+ "doc": "# ConfigProvider\n\n## Overview\n\nThe `ConfigProvider` component provides a React context for configuring global settings across all Bulma UI components. Its `classPrefix` is applied automatically to **all Bulma CSS classes**, including both main component classes (like `button`, `box`, `title`) and helper/modifier classes (like `is-primary`, `has-text-centered`, `m-4`), allowing you to namespace Bulma classes to avoid conflicts with other CSS frameworks or customize the class naming convention.\n\n---\n\n## Import\n\n```tsx\nimport { ConfigProvider, useConfig } from '@allxsmith/bestax-bulma';\n```\n\n---\n\n## Hooks\n\n### useConfig\n\nReturns the current configuration context values.\n\n```tsx\nconst { classPrefix } = useConfig();\n```\n\n### useClassPrefix\n\nConvenience hook that returns just the classPrefix string (or empty string if not set).\n\n```tsx\nconst classPrefix = useClassPrefix();\n```\n\n---\n\n## Usage Examples\n\n### Basic Usage with Class Prefix\n\nUse `ConfigProvider` to add a prefix to all Bulma CSS classes within its scope:\n\n```tsx\nimport {\n ConfigProvider,\n Box,\n Title,\n Button,\n Notification,\n} from '@allxsmith/bestax-bulma';\n\nfunction App() {\n return (\n <div>\n <Title size=\"3\">Prefixed Bulma Components</Title>\n <p>\n This demonstrates using ConfigProvider with{' '}\n <code>classPrefix=\"bestax-\"</code> to add the \"bestax-\" prefix to all\n component CSS classes. This is useful when integrating Bulma with other\n CSS frameworks or when you need to namespace Bulma classes to avoid\n conflicts.\n </p>\n\n <Notification color=\"info\" mt=\"4\">\n <strong>Tip:</strong> Open your browser's developer tools and inspect\n the DOM elements below. You'll see that all Bulma CSS classes have the\n \"bestax-\" prefix applied.\n </Notification>\n\n <ConfigProvider classPrefix=\"bestax-\">\n <Box mt=\"4\" p=\"4\">\n {/* \n This Box will have classes:\n - bestax-box (main class)\n - bestax-mt-4 (helper class)\n - bestax-p-4 (helper class)\n */}\n <Title size=\"4\">Prefixed Components</Title>\n {/* \n This Title will have classes:\n - bestax-title (main class)\n - bestax-is-4 (modifier class)\n */}\n <p>\n All components inside this ConfigProvider will have their CSS\n classes prefixed with \"bestax-\". This allows you to use Bulma\n alongside other CSS frameworks without class name conflicts.\n </p>\n <Button color=\"primary\" mt=\"3\" isRounded>\n {/* \n This Button will have classes:\n - bestax-button (main class)\n - bestax-is-primary (modifier class)\n - bestax-is-rounded (modifier class)\n - bestax-mt-3 (helper class)\n */}\n Bulma-Prefixed Button\n </Button>\n </Box>\n </ConfigProvider>\n\n <Box mt=\"4\" p=\"4\">\n <Title size=\"4\">Standard Components (No Prefix)</Title>\n <p>\n Components outside the ConfigProvider use standard Bulma classes\n without any prefix.\n </p>\n <Button color=\"info\">Standard Button</Button>\n </Box>\n </div>\n );\n}\n```\n\n### Nested ConfigProviders\n\nConfigProviders can be nested. An inner provider replaces the outer one's settings rather than adding to them, so inside it any setting it leaves out is back to its default:\n\n```tsx\nfunction NestedExample() {\n return (\n <ConfigProvider classPrefix=\"outer-\">\n <Box p=\"4\">\n <Title>Outer Prefix (outer-)</Title>\n\n <ConfigProvider classPrefix=\"inner-\">\n <Box p=\"4\" mt=\"3\">\n <Title>Inner Prefix (inner-)</Title>\n <Button color=\"primary\">Inner Button</Button>\n </Box>\n </ConfigProvider>\n\n <Button color=\"info\" mt=\"3\">\n Outer Button\n </Button>\n </Box>\n </ConfigProvider>\n );\n}\n```\n\n### Where Portaled Content Goes\n\n`portalContainer` sets where portaled content goes when it has no target of its own. That covers a [`Portal`](https://bestax.io/docs/api/helpers/portal) with no `container`, and what the library's components portal, such as the panel `Popover` renders with `appendToBody`, a `Modal` or `Dialog` with `portal` set to `true`, a `Toast`, or a `Sidebar`. It takes an element or a `document.querySelector` selector. Unset, that content goes to `document.body`.\n\nA popup opened inside a `Modal`, `Dialog` or `Command.Dialog`, such as a `Popover`, `HoverCard` or `ContextMenu` panel, or a `Combobox` menu or picker popover with `appendToBody`, goes into that dialog instead of `document.body`. Each of those sets `aria-modal`, and a screen reader that honors it hides everything outside the dialog. AppFrame's nav takes its popups too while it's a drawer, which draws over the page, so a popup opened in it shows above the drawer. A `portalContainer` you set still takes those popups, so with one set outside the dialog, point a `ConfigProvider` inside the dialog at an element there.\n\nA `Sidebar` doesn't take its popups: its open panel is transformed, which would place a fixed popup against the panel rather than the viewport. A `Popover` or a picker with `appendToBody` opened in an open sidebar renders under it, and with an overlay, the sidebar's `aria-modal` hides it from screen readers that honor it. A `portalContainer` pointing at an element of your own outside the sidebar that stacks above it shows the popup above, as the [Sidebar page](https://bestax.io/docs/api/components/sidebar#popups-in-the-sidebar) shows.\n\nA target a component is given still wins, such as a `Modal`'s `portal` selector or a `Toast`'s `container`. And `portalContainer` only changes where portaled content goes: a component that renders in place, like a `Modal` without `portal` or a `Toast` with `inline`, still does.\n\n`document.body` is outside any styles scoped to where the content was declared: a scoped `Theme`'s variables, or a shadow root's stylesheets. To keep them, render an element inside that area and make it the `portalContainer`, held in state from a ref callback. Below, the panel keeps the purple primary its `Theme` sets, which it would lose at the end of the page:\n\n```tsx live\nfunction ThemedOverlays() {\n const [overlays, setOverlays] = useState<HTMLElement | null>(null);\n\n return (\n <Theme primaryH=\"270\" primaryS=\"100%\" primaryL=\"50%\">\n <ConfigProvider portalContainer={overlays ?? undefined}>\n <Popover\n appendToBody\n ariaLabel=\"Themed panel\"\n trigger={<Button color=\"primary\">Open</Button>}\n >\n <Popover.Body>\n <Button color=\"primary\">Still purple</Button>\n </Popover.Body>\n </Popover>\n </ConfigProvider>\n <div ref={setOverlays} />\n </Theme>\n );\n}\n```\n\nA selector can't find an element inside a shadow root, since `document.querySelector` doesn't look there, so in a shadow root pass the element itself, as above. Content that portals before the element is set goes to `document.body` and moves when it is, which remounts it and resets its state, as [`Portal`'s `container`](https://bestax.io/docs/api/helpers/portal#into-a-container) describes. A nested provider like this one needs the class prefix and icon library repeated if your app sets them (see [Nested ConfigProviders](https://bestax.io/docs/api/helpers/config#nested-configproviders)).\n\nWhat gets portaled is `position: fixed`, so put the element where no ancestor has a `transform`, `filter`, `backdrop-filter`, `perspective`, `will-change: transform`, or a `contain` that includes `paint` or `layout`. Any of those becomes the containing block for the overlays and panels, which then cover or line up against that ancestor instead of the viewport. An ancestor that starts a stacking context, with a `z-index` or `isolation: isolate`, keeps them inside it, under anything the page stacks above it.\n\n`NotificationContainer` portals its status region along with its notifications, so the `portalContainer` also decides where announcements come from. Keep it out of any `aria-hidden` ancestor, which takes the region out of the accessibility tree and silences them.\n\n### Using Configuration in Custom Components\n\nAccess the configuration in your own components using the `useConfig` hook:\n\n```tsx\nimport { useConfig } from '@allxsmith/bestax-bulma';\n\nfunction CustomComponent() {\n const { classPrefix } = useConfig();\n const className = classPrefix\n ? `${classPrefix}custom-component`\n : 'custom-component';\n\n return (\n <div className={className}>\n My custom component with prefix: {classPrefix || 'none'}\n </div>\n );\n}\n```\n\n---\n\n## Use Cases\n\n### Framework Integration\n\nWhen integrating Bulma with other CSS frameworks like Bootstrap or Tailwind CSS:\n\n```tsx\n<ConfigProvider classPrefix=\"bestax-\">\n <App />\n</ConfigProvider>\n```\n\nThis ensures all Bulma classes are prefixed with `bestax-`, preventing conflicts with other framework classes.\n\n### Multi-tenant Applications\n\nFor applications that need to support different styling themes or brands:\n\n```tsx\n<ConfigProvider classPrefix={`${tenantName}-`}>\n <TenantApp />\n</ConfigProvider>\n```\n\n### Component Library Wrapping\n\nWhen wrapping Bulma UI components in your own component library:\n\n```tsx\n<ConfigProvider classPrefix=\"mylib-\">\n <MyComponentLibrary />\n</ConfigProvider>\n```\n\n---\n\n## Notes\n\n- The `classPrefix` is applied to **all Bulma classes**:\n - Main component classes (e.g., `button` → `bestax-button`, `box` → `bestax-box`)\n - Helper/modifier classes (e.g., `is-primary` → `bestax-is-primary`, `has-text-centered` → `bestax-has-text-centered`)\n - Spacing classes (e.g., `m-4` → `bestax-m-4`, `p-2` → `bestax-p-2`)\n - All other Bulma utility classes\n- Changes to the `classPrefix` will affect all child components immediately\n- If no `classPrefix` is provided, components use standard Bulma class names\n- The ConfigProvider must wrap all components that should inherit the configuration\n\n---\n\n## TypeScript Support\n\nFull TypeScript support is included:\n\n```tsx\ninterface ConfigContextProps {\n classPrefix?: string;\n iconLibrary?: 'fa' | 'mdi' | 'ion' | 'material-icons' | 'material-symbols';\n portalContainer?: string | HTMLElement;\n}\n\ninterface ConfigProviderProps {\n children: ReactNode;\n classPrefix?: string;\n iconLibrary?: 'fa' | 'mdi' | 'ion' | 'material-icons' | 'material-symbols';\n portalContainer?: string | HTMLElement;\n}\n```\n\n---\n\n## Props\n\n| Prop | Type | Description |\n| ----------------- | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |\n| `children` | `ReactNode` | **Required.** The child components that will inherit the configuration settings. |\n| `classPrefix` | `string` | Optional prefix to add to all Bulma CSS classes. Useful for namespacing when integrating with other frameworks. |\n| `iconLibrary` | `'fa' \\| 'mdi' \\| 'ion' \\| 'material-icons' \\| 'material-symbols'` | Default icon library for all child components. |\n| `portalContainer` | `string` \\| `HTMLElement` | Where portaled content goes when it has no target of its own: what a `Portal` without a `container` renders, and what the library's components portal, such as `Popover`'s `appendToBody` panel or a `Modal` with `portal`. An element, or a `document.querySelector` selector. Unset, or a selector that matches nothing, it goes to `document.body`. A target a component is given still wins. |"
65
65
  }
@@ -63,7 +63,7 @@
63
63
  "type": "React.ReactElement",
64
64
  "default": null,
65
65
  "description": "The element a right-click, Shift+F10, the context menu key or a long press opens the menu from: a table row, a card, an image. It's cloned, not wrapped, so a row stays a row, which means it has to be a single element that passes `className` and the `onContextMenu`, `onPointerDown`, `onPointerMove`, `onPointerUp`, `onPointerCancel` and `onTouchEnd` handlers to its DOM node. Its own handlers for those run first, and one that calls `preventDefault()` on `contextmenu` keeps the menu closed. A `ContextMenu` inside it opens instead of this one. It gets no ARIA and no tab stop, since it can be any element and a right-click isn't an activation. Keyboard users reach it through something focusable inside it, such as the row's own `Dropdown` button, or a `tabIndex={0}` you give it, and press Shift+F10 or the context menu key there. It gets `-webkit-touch-callout: none`, so iOS doesn't put its own callout for a link or an image over the menu. A long press still selects text the way it does anywhere, so give a region where it shouldn't `interaction=\"unselectable\"`.",
66
- "required": false,
66
+ "required": true,
67
67
  "inherited": false,
68
68
  "deprecated": false
69
69
  },
@@ -72,7 +72,7 @@
72
72
  "type": "React.ReactNode",
73
73
  "default": null,
74
74
  "description": "The menu's items: `ContextMenu.Item` and `ContextMenu.Divider`, the same components as `Dropdown.Item` and `Dropdown.Divider`. Every action in it needs a visible way in as well, such as a `Dropdown` on the same row: nothing tells a screen reader user the menu is there, and on macOS only VoiceOver opens it from the keyboard.",
75
- "required": false,
75
+ "required": true,
76
76
  "inherited": false,
77
77
  "deprecated": false
78
78
  },
@@ -77,7 +77,7 @@
77
77
  "type": "string",
78
78
  "default": null,
79
79
  "description": "The text it copies. This is not the `<button>`'s form value, which it doesn't render.",
80
- "required": false,
80
+ "required": true,
81
81
  "inherited": false,
82
82
  "deprecated": false
83
83
  },
@@ -47,8 +47,8 @@
47
47
  "name": "isOpen",
48
48
  "type": "boolean",
49
49
  "default": null,
50
- "description": "Whether the dialog is open (required).",
51
- "required": false,
50
+ "description": "Whether the dialog is open.",
51
+ "required": true,
52
52
  "inherited": false,
53
53
  "deprecated": false
54
54
  },
@@ -65,8 +65,8 @@
65
65
  "name": "message",
66
66
  "type": "string | React.ReactNode",
67
67
  "default": null,
68
- "description": "Dialog message/content (required).",
69
- "required": false,
68
+ "description": "Dialog message/content.",
69
+ "required": true,
70
70
  "inherited": false,
71
71
  "deprecated": false
72
72
  },
@@ -60,7 +60,7 @@
60
60
  "type": "React.ReactNode",
61
61
  "default": null,
62
62
  "description": "The dropdown button/trigger content.",
63
- "required": false,
63
+ "required": true,
64
64
  "inherited": false,
65
65
  "deprecated": false
66
66
  },
@@ -69,7 +69,7 @@
69
69
  "type": "React.ReactNode",
70
70
  "default": null,
71
71
  "description": "Dropdown menu items and dividers.",
72
- "required": false,
72
+ "required": true,
73
73
  "inherited": false,
74
74
  "deprecated": false
75
75
  },
@@ -431,7 +431,7 @@
431
431
  "type": "React.ReactNode",
432
432
  "default": null,
433
433
  "description": "The button elements to render inside the group.",
434
- "required": false,
434
+ "required": true,
435
435
  "inherited": true,
436
436
  "deprecated": false
437
437
  }
@@ -48,7 +48,7 @@
48
48
  "type": "React.ReactElement",
49
49
  "default": null,
50
50
  "description": "The element the card previews, such as a link or a `Button`. The element itself has to take focus, so keyboard users can open the card too: a link inside a `<span>` doesn't do, since focus comes back to the trigger and its ARIA is on it. HoverCard gives it no role and no tab stop, since it can't know what the element is, and a development build warns when it can't take focus: use a link or a button, or give the element `tabIndex={0}`. A disabled button can't take focus either. HoverCard adds `aria-expanded` and `aria-controls`, both naming the card only while it is on the page, so it has to be a single element that passes those to its DOM node. Its own click and keys stay its own, and the card doesn't toggle on them, except Escape while the card is open, which closes the card before the trigger sees it.",
51
- "required": false,
51
+ "required": true,
52
52
  "inherited": false,
53
53
  "deprecated": false
54
54
  },
@@ -59,8 +59,8 @@
59
59
  "name": "items",
60
60
  "type": "LightboxItem[]",
61
61
  "default": null,
62
- "description": "**Required.** The images, in order.",
63
- "required": false,
62
+ "description": "The images, in order.",
63
+ "required": true,
64
64
  "inherited": false,
65
65
  "deprecated": false
66
66
  },
@@ -241,8 +241,8 @@
241
241
  "name": "index",
242
242
  "type": "number",
243
243
  "default": null,
244
- "description": "**Required.** The index in `items` the viewer opens at.",
245
- "required": false,
244
+ "description": "The index in `items` the viewer opens at.",
245
+ "required": true,
246
246
  "inherited": false,
247
247
  "deprecated": false
248
248
  },
@@ -69,7 +69,7 @@
69
69
  "type": "React.ReactNode",
70
70
  "default": null,
71
71
  "description": "Menu content (labels, lists, items, etc).",
72
- "required": false,
72
+ "required": true,
73
73
  "inherited": false,
74
74
  "deprecated": false
75
75
  }
@@ -97,7 +97,7 @@
97
97
  "type": "React.ReactNode",
98
98
  "default": null,
99
99
  "description": "Label content.",
100
- "required": false,
100
+ "required": true,
101
101
  "inherited": false,
102
102
  "deprecated": false
103
103
  }
@@ -125,7 +125,7 @@
125
125
  "type": "React.ReactNode",
126
126
  "default": null,
127
127
  "description": "List items.",
128
- "required": false,
128
+ "required": true,
129
129
  "inherited": false,
130
130
  "deprecated": false
131
131
  }
@@ -172,7 +172,7 @@
172
172
  "type": "React.ReactNode",
173
173
  "default": null,
174
174
  "description": "Item content and optional nested MenuList.",
175
- "required": false,
175
+ "required": true,
176
176
  "inherited": false,
177
177
  "deprecated": false
178
178
  },
@@ -281,8 +281,8 @@
281
281
  "name": "label",
282
282
  "type": "React.ReactNode",
283
283
  "default": null,
284
- "description": "**Required.** The section's heading, drawn like `Menu.Label` inside the button that opens and closes it. Keep links and buttons out of it, since it's inside one.",
285
- "required": false,
284
+ "description": "The section's heading, drawn like `Menu.Label` inside the button that opens and closes it. Keep links and buttons out of it, since it's inside one.",
285
+ "required": true,
286
286
  "inherited": false,
287
287
  "deprecated": false
288
288
  },
@@ -300,7 +300,7 @@
300
300
  "type": "React.ReactNode",
301
301
  "default": null,
302
302
  "description": "The `Menu.List` of links the section shows while it's open. The section itself goes directly in `Menu`, beside its labels and lists: inside a `Menu.Item` it would render inside the item's link, and inside a `Menu.List` it wouldn't be a list item.",
303
- "required": false,
303
+ "required": true,
304
304
  "inherited": false,
305
305
  "deprecated": false
306
306
  },
@@ -78,7 +78,7 @@
78
78
  "type": "number",
79
79
  "default": null,
80
80
  "description": "The number. The text is what `Intl.NumberFormat` writes for it, `NaN` and `Infinity` included. The `<data>` element's `value` attribute holds it as `String()` writes it, except that `-0` keeps its sign, so `Number()` reads it back: `1234.5`, `1e+21` for a very large one and `1e-7` for a very small one, `NaN`, `Infinity` and `-0`.",
81
- "required": false,
81
+ "required": true,
82
82
  "inherited": false,
83
83
  "deprecated": false
84
84
  },
@@ -65,7 +65,7 @@
65
65
  "type": "React.ReactElement",
66
66
  "default": null,
67
67
  "description": "The element that opens and closes the popover, such as a `Button`. Popover gives it `aria-haspopup=\"dialog\"`, `aria-expanded`, `aria-controls` while the panel is open, and click and key handlers that run after its own (call `preventDefault()` in yours to keep the popover from toggling). It has to be a single element that passes `onClick` and `onKeyDown` to its DOM node. Enter and Space toggle a trigger the browser doesn't click on its own, and an intrinsic element that isn't already a control (a `<span>`) also gets `role=\"button\"` and `tabIndex={0}` unless it sets them; a component that renders one has to take those itself.",
68
- "required": false,
68
+ "required": true,
69
69
  "inherited": false,
70
70
  "deprecated": false
71
71
  },
@@ -111,7 +111,7 @@
111
111
  "type": "React.ReactNode",
112
112
  "default": null,
113
113
  "description": "Radio elements to render in the group.",
114
- "required": false,
114
+ "required": true,
115
115
  "inherited": false,
116
116
  "deprecated": false
117
117
  },
@@ -202,8 +202,8 @@
202
202
  "name": "value",
203
203
  "type": "string",
204
204
  "default": null,
205
- "description": "**Required.** What `onChange` reports when this segment is checked, and what the group's `value` and `defaultValue` name it by. Unique within the group.",
206
- "required": false,
205
+ "description": "What `onChange` reports when this segment is checked, and what the group's `value` and `defaultValue` name it by. Unique within the group.",
206
+ "required": true,
207
207
  "inherited": false,
208
208
  "deprecated": false
209
209
  },
@@ -59,8 +59,8 @@
59
59
  "name": "isOpen",
60
60
  "type": "boolean",
61
61
  "default": null,
62
- "description": "Whether the sidebar is open (required). Opening moves focus into the sidebar, to its first tab stop or the sidebar itself, except for a sidebar without an overlay opened while a modal overlay, such as a Modal, is open: that one leaves focus where it is. That's decided as it opens, and changing `overlay` while it's open doesn't move focus. Closing hands focus back to whatever had it when the sidebar opened, unless focus has already left the sidebar, as it does for an overlay opened over it. A closed sidebar stays in the page, so it can slide out, and is `inert` and `aria-hidden` there: Tab passes over its content and assistive technology doesn't read it.",
63
- "required": false,
62
+ "description": "Whether the sidebar is open. Opening moves focus into the sidebar, to its first tab stop or the sidebar itself, except for a sidebar without an overlay opened while a modal overlay, such as a Modal, is open: that one leaves focus where it is. That's decided as it opens, and changing `overlay` while it's open doesn't move focus. Closing hands focus back to whatever had it when the sidebar opened, unless focus has already left the sidebar, as it does for an overlay opened over it. A closed sidebar stays in the page, so it can slide out, and is `inert` and `aria-hidden` there: Tab passes over its content and assistive technology doesn't read it.",
63
+ "required": true,
64
64
  "inherited": false,
65
65
  "deprecated": false
66
66
  },
@@ -352,7 +352,7 @@
352
352
  "type": "number",
353
353
  "default": null,
354
354
  "description": "The change, as Stat's `change`. One that rounds to zero in its format, such as `0.0004` at one decimal place of a percentage, reads as zero, so it gets no arrow and no color of its own.",
355
- "required": false,
355
+ "required": true,
356
356
  "inherited": false,
357
357
  "deprecated": false
358
358
  },
@@ -52,8 +52,8 @@
52
52
  "name": "items",
53
53
  "type": "{ id: string; label: React.ReactNode; children?: TableOfContentsItem[] }[]",
54
54
  "default": null,
55
- "description": "**Required.** The sections, in page order, as links to their ids. Each link is a plain `<a href=\"#id\">`, so following one is the browser's own jump: put `scroll-padding-top` on the page to land clear of a sticky header, and smooth scrolling, if you want it, in page CSS inside `@media (prefers-reduced-motion: no-preference)`.",
56
- "required": false,
55
+ "description": "The sections, in page order, as links to their ids. Each link is a plain `<a href=\"#id\">`, so following one is the browser's own jump: put `scroll-padding-top` on the page to land clear of a sticky header, and smooth scrolling, if you want it, in page CSS inside `@media (prefers-reduced-motion: no-preference)`.",
56
+ "required": true,
57
57
  "inherited": false,
58
58
  "deprecated": false
59
59
  },
@@ -273,8 +273,8 @@
273
273
  "name": "index",
274
274
  "type": "number",
275
275
  "default": null,
276
- "description": "**Required.** Tab index for matching with content.",
277
- "required": false,
276
+ "description": "Tab index for matching with content.",
277
+ "required": true,
278
278
  "inherited": false,
279
279
  "deprecated": false
280
280
  },
@@ -457,8 +457,8 @@
457
457
  "name": "index",
458
458
  "type": "number",
459
459
  "default": null,
460
- "description": "**Required.** Tab index for matching with content.",
461
- "required": false,
460
+ "description": "Tab index for matching with content.",
461
+ "required": true,
462
462
  "inherited": false,
463
463
  "deprecated": false
464
464
  },
@@ -76,7 +76,7 @@
76
76
  "type": "ReactNode",
77
77
  "default": null,
78
78
  "description": "The content the theme applies to.",
79
- "required": false,
79
+ "required": true,
80
80
  "inherited": false,
81
81
  "deprecated": false
82
82
  },
@@ -471,5 +471,5 @@
471
471
  }
472
472
  ],
473
473
  "cssVars": [],
474
- "doc": "# Theme\n\n## Overview\n\nThe `Theme` component provides a powerful way to customize Bulma's appearance using CSS custom properties (CSS variables). It allows you to override Bulma's design tokens like colors, spacing, typography, and other visual properties either globally or locally within specific component trees. The Theme component supports both CSS variable injection via props and direct CSS variable objects.\n\n---\n\n## Import\n\n```tsx\nimport { Theme } from '@allxsmith/bestax-bulma';\n```\n\n---\n\n## Usage\n\n### Basic Theme Customization\n\n```tsx\nfunction BasicThemeCustomization() {\n return (\n <Theme\n primaryH=\"262\"\n primaryS=\"52%\"\n primaryL=\"56%\"\n bulmaVars={{ '--bulma-primary-invert-l': '100%' }}\n >\n <Box p=\"4\">\n <Button color=\"primary\">Violet Primary Button</Button>\n </Box>\n </Theme>\n );\n}\n```\n\n### Global Theme (Root Level)\n\n```tsx\nfunction GlobalTheme() {\n return (\n <Theme\n isRoot={true}\n primaryH=\"262\"\n primaryS=\"52%\"\n primaryL=\"56%\"\n bulmaVars={{ '--bulma-primary-invert-l': '100%' }}\n >\n <div>\n <Button color=\"primary\">Global Violet Theme</Button>\n <Button color=\"info\">Info Button</Button>\n </div>\n </Theme>\n );\n}\n```\n\nA root theme writes its variables before the browser paints what it rendered, so an app rendered\nin the browser shows them from its first frame of content. A server render doesn't include them,\nso a page rendered on the server paints with the stylesheet's values until it hydrates. Put the\nvalues that page needs from its first paint in your CSS, on `:root`.\n\n### Dark Mode\n\nThe `colorMode` prop sets Bulma's `data-theme` on `<html>`, flipping the light/dark scheme globally.\nUse `'system'` to follow the OS preference.\n\nA prefixed stylesheet reads Bulma's prefixed attribute instead (`data-bestax-theme` for\n`bestax-prefixed.css` and `bestax-no-helpers-prefixed.css`). Under a `ConfigProvider`\n`classPrefix`, `colorMode` writes that attribute as well as `data-theme`, so it works with the\nprefixed builds.\n\n:::warning Single-mode designs should pin the scheme\n\nOmitting `colorMode` preserves whatever `data-theme` is already set — and when nothing has set\none (the usual case), the scheme follows the visitor's OS: Bulma's text colors flip on a\ndark-mode machine even if your design is light-only, breaking contrast against any fixed custom\nbackgrounds. If you support only one mode, pin it on the `<html>` in your `index.html`\n(`<html lang=\"en\" data-theme=\"light\">`); if you support both, don't hardcode surface/text\ncolors — see [Dark Mode & Contrast](https://bestax.io/docs/guides/features/css-variables#dark-mode--contrast).\n\n:::\n\n`colorMode` writes the attribute before the browser paints what `Theme` rendered, but the page can\npaint before the app's script runs at all, with whatever `<html>` already has, which is why a\nfixed scheme belongs in `index.html`. A toggle that remembers the visitor's choice has two parts.\nFirst, an inline script in the `<head>` of `index.html` writes the saved choice, or else the OS\npreference, before the first paint. Make it a plain `<script>`, not `type=\"module\"`, so it runs\nbefore the body renders. With a prefixed stylesheet, have it set `data-bestax-theme` as well.\n\n```html\n<script>\n // Bulma's scheme on <html> before the first paint: the saved choice,\n // or else the OS preference. The app saves under the same key.\n (() => {\n let saved = null;\n try {\n saved = localStorage.getItem('theme');\n } catch {\n // Storage is blocked, so fall back to the OS preference.\n }\n const dark =\n saved === 'light' || saved === 'dark'\n ? saved === 'dark'\n : window.matchMedia('(prefers-color-scheme: dark)').matches;\n document.documentElement.setAttribute(\n 'data-theme',\n dark ? 'dark' : 'light'\n );\n })();\n</script>\n```\n\nSecond, the app starts `colorMode` from the attribute the script wrote, and saves each choice\nunder the key the script reads. The `bestax-theming` skill's\n[dark-mode example](https://github.com/allxsmith/bestax/blob/main/skills/bestax-theming/examples/dark-mode.tsx)\nis the same recipe, and also covers a page that has no script.\n\n```tsx\n// Pairs with an inline <head> script in index.html that writes data-theme\n// before the first paint: the choice saved under STORAGE_KEY, or else the\n// OS preference. The Theme API page's Dark Mode section has the script.\nimport { useState } from 'react';\nimport { Theme, ToggleButton } from '@allxsmith/bestax-bulma';\n\ntype ColorMode = 'light' | 'dark';\n\n// The key the index.html script reads the saved choice from.\nconst STORAGE_KEY = 'theme';\n\n// The scheme the index.html script wrote on <html>.\nfunction initialColorMode(): ColorMode {\n if (typeof document === 'undefined') return 'light';\n return document.documentElement.getAttribute('data-theme') === 'dark'\n ? 'dark'\n : 'light';\n}\n\nfunction App() {\n const [mode, setMode] = useState<ColorMode>(initialColorMode);\n\n const setDark = (dark: boolean) => {\n const next: ColorMode = dark ? 'dark' : 'light';\n setMode(next);\n try {\n localStorage.setItem(STORAGE_KEY, next);\n } catch {\n // Storage is blocked, so the choice lasts until the page reloads.\n }\n };\n\n return (\n <Theme isRoot colorMode={mode}>\n <ToggleButton pressed={mode === 'dark'} onPressedChange={setDark}>\n Dark mode\n </ToggleButton>\n </Theme>\n );\n}\n```\n\n### Label and Text Lightnesses\n\nA color's trio recolors the color, but two of its lightnesses stay where the stylesheet's Sass\nbuild put them for the color it was built with: its label on a solid surface,\n`--bulma-<color>-invert-l`, and its text on the page, `--bulma-<color>-on-scheme-l`. bestax builds\nits primary from a dark blue, so a light primary set through the trio alone keeps white labels\nit can't carry. A color that reads lighter or darker than the built one sets both through\n`bulmaVars`.\n\nThe text has to read on a light page and on a dark one, so Bulma gives each scheme its own\non-scheme lightness. On a root theme, an on-scheme key takes `{ light, dark }`, and each value\napplies wherever Bulma's own value for that scheme would. A scheme you leave out keeps the\nstylesheet's value, and a string sets one value for both. On the dark scheme, bestax's\nstylesheets give `textColor=\"<color>\"` the on-scheme lightness wherever it's lighter than the\ntrio's, so a darker color set through the trio alone takes the build's lightness there.\n\n```tsx\nfunction StockTurquoise() {\n // Stock Bulma's turquoise, with the values from bulma/css/bulma.css.\n return (\n <Theme\n isRoot\n primaryH=\"171deg\"\n primaryS=\"100%\"\n primaryL=\"41%\"\n bulmaVars={{\n '--bulma-primary-invert-l': 'var(--bulma-primary-05-l)',\n '--bulma-primary-on-scheme-l': { light: '21%', dark: '41%' },\n }}\n >\n <Button color=\"primary\">Dark label</Button>\n <Block textColor=\"primary\" colorShade=\"on-scheme\">\n Turquoise text that reads in both schemes\n </Block>\n </Theme>\n );\n}\n```\n\nA local theme writes its variables as an inline style, which can't hold a value per scheme, so it\nskips `{ light, dark }` and warns in development. Give it a string, or set the per-scheme values\nin your CSS. `bestax-no-dark-mode.css` has no dark scheme, so with it give a string. The\n`bestax-theming` skill's\n[CSS variables reference](https://github.com/allxsmith/bestax/blob/main/skills/bestax-theming/references/css-variables.md)\nsays what reads each lightness and how to pick the values.\n\n### Local Theme (Component Level)\n\n```tsx\nfunction LocalTheme() {\n return (\n <div>\n <Button color=\"primary\">Standard Primary</Button>\n\n <Theme\n primaryH=\"158\"\n primaryS=\"64%\"\n primaryL=\"30%\"\n bulmaVars={{ '--bulma-primary-invert-l': '100%' }}\n >\n <Button color=\"primary\">Emerald Primary</Button>\n </Theme>\n\n <Button color=\"primary\">Standard Primary Again</Button>\n </div>\n );\n}\n```\n\n### Using CSS Variables Object\n\n```tsx\nfunction SunsetTheme() {\n // Amber, coral, rose and violet on warm neutrals. A new color keeps the\n // label lightness the stylesheet was built with, so each sets its own.\n const sunsetTheme = {\n '--bulma-scheme-h': '24',\n '--bulma-scheme-s': '22%',\n '--bulma-primary-h': '12',\n '--bulma-primary-s': '76%',\n '--bulma-primary-l': '44%',\n '--bulma-primary-invert-l': '100%',\n '--bulma-link-h': '340',\n '--bulma-link-s': '62%',\n '--bulma-link-l': '48%',\n '--bulma-link-invert-l': '100%',\n '--bulma-info-h': '262',\n '--bulma-info-s': '52%',\n '--bulma-info-l': '56%',\n '--bulma-info-invert-l': '100%',\n '--bulma-warning-h': '38',\n '--bulma-warning-s': '95%',\n '--bulma-warning-l': '54%',\n '--bulma-warning-invert-l': '10%',\n };\n\n return (\n <Theme bulmaVars={sunsetTheme} isRoot>\n <Box p=\"4\">\n <Title>Sunset Theme</Title>\n <Button color=\"primary\">Sunset Button</Button>\n <Button color=\"info\">Info Button</Button>\n </Box>\n </Theme>\n );\n}\n```\n\n### Advanced CSS Variables Usage\n\nBulma derives the body font and the control radius from these variables at `:root`, so set\ntypography and radius on an `isRoot` theme.\n\n```tsx\nfunction TypographyTheme() {\n const typographyTheme = {\n '--bulma-family-primary': '\"Helvetica Neue\", sans-serif',\n '--bulma-family-code': '\"Fira Code\", monospace',\n '--bulma-size-normal': '16px',\n '--bulma-weight-bold': '700',\n };\n\n return (\n <Theme isRoot bulmaVars={typographyTheme}>\n <Title>Custom Typography</Title>\n <SubTitle>With custom fonts and weights</SubTitle>\n </Theme>\n );\n}\n```\n\n```tsx\nfunction RadiusTheme() {\n // `radius` is the border radius helper, as on every component, so the radius scale goes through bulmaVars\n const radii = {\n '--bulma-radius-small': '6px',\n '--bulma-radius': '12px',\n '--bulma-radius-medium': '16px',\n '--bulma-radius-large': '20px',\n };\n\n return (\n <Theme isRoot bulmaVars={radii}>\n <Button color=\"primary\">Rounder Button</Button>\n </Theme>\n );\n}\n```\n\nSpacing that Bulma reads where it is used, such as the block and column gaps, works on a scoped\ntheme:\n\n```tsx\nfunction SpacingTheme() {\n const spacingTheme = {\n '--bulma-block-spacing': '2rem',\n '--bulma-column-gap': '1rem',\n };\n\n return (\n <Theme bulmaVars={spacingTheme}>\n <Columns>\n <Column>\n <Box>Wider column gap</Box>\n <Box>Wider block spacing</Box>\n </Column>\n <Column>\n <Box>Wider column gap</Box>\n </Column>\n </Columns>\n </Theme>\n );\n}\n```\n\n### Complete Color Scheme\n\n```tsx\nfunction ForestTheme() {\n // Pine, lake, fern, ochre and berry on cool green neutrals\n const forestScheme = {\n schemeH: '140',\n schemeS: '16%',\n primaryH: '152',\n primaryS: '50%',\n primaryL: '32%',\n linkH: '195',\n linkS: '65%',\n linkL: '34%',\n successH: '95',\n successS: '40%',\n successL: '33%',\n warningH: '36',\n warningS: '85%',\n warningL: '52%',\n dangerH: '352',\n dangerS: '60%',\n dangerL: '48%',\n };\n // The label lightnesses have no named prop, so they go through bulmaVars\n const forestLabels = {\n '--bulma-primary-invert-l': '100%',\n '--bulma-link-invert-l': '100%',\n '--bulma-success-invert-l': '100%',\n '--bulma-warning-invert-l': '10%',\n '--bulma-danger-invert-l': '100%',\n };\n\n return (\n <Theme {...forestScheme} bulmaVars={forestLabels} isRoot>\n <Box p=\"4\">\n <Title>Forest Theme</Title>\n <Button color=\"primary\">Forest Primary</Button>\n <Button color=\"link\">Link</Button>\n <Button color=\"success\">Success</Button>\n <Button color=\"warning\">Warning</Button>\n <Button color=\"danger\">Danger</Button>\n </Box>\n </Theme>\n );\n}\n```\n\n### Theme with Styling\n\n```tsx\nfunction StyledTheme() {\n return (\n <Theme\n className=\"has-background-primary-soft has-text-primary-bold\"\n primaryH=\"40\"\n primaryS=\"92%\"\n primaryL=\"52%\"\n bulmaVars={{ '--bulma-primary-invert-l': '10%' }}\n p=\"5\"\n m=\"3\"\n radius=\"large\"\n textAlign=\"centered\"\n >\n <Title>Amber Panel</Title>\n <Button color=\"primary\">Amber Primary</Button>\n </Theme>\n );\n}\n```\n\n### Nested Themes\n\n```tsx\nfunction NestedThemes() {\n return (\n <Theme\n primaryH=\"218\"\n primaryS=\"52%\"\n primaryL=\"48%\"\n bulmaVars={{ '--bulma-primary-invert-l': '100%' }}\n p=\"4\"\n >\n <Title>Outer Theme (Ink Blue)</Title>\n <Button color=\"primary\">Ink Blue Primary</Button>\n\n {/* Sets only the trio: the white label comes from the outer Theme */}\n <Theme primaryH=\"160\" primaryS=\"45%\" primaryL=\"32%\" p=\"3\" mt=\"4\">\n <Title size=\"4\">Inner Theme (Green)</Title>\n <Button color=\"primary\">Green Primary</Button>\n </Theme>\n\n <Button color=\"primary\" mt=\"3\">\n Ink Blue Primary Again\n </Button>\n </Theme>\n );\n}\n```\n\n### Theme with ConfigProvider\n\n```tsx\nfunction PrefixedTheme() {\n return (\n <ConfigProvider classPrefix=\"bestax-\">\n <Theme\n primaryH=\"236\"\n primaryS=\"55%\"\n primaryL=\"58%\"\n bulmaVars={{ '--bulma-primary-invert-l': '100%' }}\n isRoot\n >\n <Button color=\"primary\">Prefixed & Themed Button</Button>\n </Theme>\n </ConfigProvider>\n );\n}\n```\n\n---\n\n## Best Practices\n\n### Global vs Local Themes\n\n- Use `isRoot={true}` for application-wide themes that should affect all components\n- Use local themes (default `isRoot={false}`) for component-specific styling or theme variations\n- Local themes inherit from parent themes and can override specific variables\n- Several `isRoot` themes can be mounted at once, such as a color theme at the app root and a\n typography theme next to it. Each adds its own variables at `:root`; where two set the same\n variable, the inner or later-mounted one wins, as with nested local themes, and unmounting one\n removes only its own variables\n\n### CSS Variable Naming\n\n- All Bulma CSS variables follow the `--bulma-*` naming convention\n- Named props exist for the scheme and color variables only (like `primaryH`); every other variable, typography and radius included, goes through `bulmaVars`\n- `bulmaVars` keys are the full variable names (`'--bulma-family-primary'`), not camelCase\n- `bulmaVars` also accepts the scheme surface variables — `--bulma-scheme-main`, `--bulma-scheme-main-bis`, `--bulma-scheme-main-ter`, `--bulma-scheme-invert`, `--bulma-scheme-invert-bis`, `--bulma-scheme-invert-ter` — so overriding `--bulma-scheme-main-bis`/`-ter` re-tints every scheme-background band (e.g., `<Section bgColor=\"scheme-main-bis\">`) at once\n- `bulmaVars` also accepts each color's label and text lightnesses, `--bulma-<color>-invert-l` and `--bulma-<color>-on-scheme-l`, which a new trio does not move. On a root theme the on-scheme ones take a value per scheme (see [Label and Text Lightnesses](https://bestax.io/docs/api/helpers/theme#label-and-text-lightnesses))\n- `bulmaVars` also accepts `--bulma-shadow` (plus `--bulma-shadow-h`/`-s`/`-l`) — the upstream token that `.box`, `.card`, `.dropdown`, and `.panel` derive their own shadow variables from. Those selectors re-declare their derived variable (e.g. `--bulma-box-shadow`) on themselves, so setting it from an ancestor `Theme` is only inherited and never wins; overriding `--bulma-shadow` itself is the one override that cascades. There is no individual `shadow` prop for this — `shadow` already names the unrelated `shadowless` helper class — so reach it through `bulmaVars`\n\n### Performance Considerations\n\n- Prefer setting themes at higher levels in your component tree rather than deeply nested\n- CSS variables are inherited, so child themes only need to override specific variables\n\n### Color System\n\n- Bulma uses HSL (Hue, Saturation, Lightness) for its color system\n- Hue values range from 0-360 (color wheel degrees)\n- Saturation and Lightness are typically percentages (e.g., '50%')\n- The scheme variables control the base color relationships\n\n---\n\n## API Reference\n\n### Named Props and `bulmaVars`\n\n`ThemeProps` has a named, camelCase prop for each scheme and color variable, listed under\n[CSS Variable Props](https://bestax.io/docs/api/helpers/theme#css-variable-props). Each converts to its CSS variable by the same rule:\n\n```\npropName → --bulma-prop-name\n```\n\n- `primaryH` → `--bulma-primary-h`\n- `schemeS` → `--bulma-scheme-s`\n- `lightL` → `--bulma-light-l`\n- `hoverBackgroundLDelta` → `--bulma-hover-background-l-delta`\n\nEvery other variable (typography, radius, spacing, and the rest) has no named prop in\n`ThemeProps` and goes through `bulmaVars`, keyed by its full `--bulma-*` name. JavaScript code\nthat passes one as a camelCase prop (`familyPrimary`) may still render, but it is outside the\ntyped API, so move it to `bulmaVars`:\n\n```tsx\n<Theme\n isRoot\n primaryH=\"350\"\n primaryS=\"73%\"\n primaryL=\"44%\"\n bulmaVars={{\n '--bulma-primary-invert-l': '100%',\n '--bulma-radius': '2px',\n '--bulma-radius-small': '1px',\n '--bulma-family-primary': '\"IBM Plex Sans\", system-ui, sans-serif',\n '--bulma-family-code': '\"IBM Plex Mono\", ui-monospace, monospace',\n }}\n>\n <App />\n</Theme>\n```\n\nSome of those names are already helper props, so they cannot double as CSS-variable props:\n\n- `radius` is the border radius helper, as on every other component, so `<Theme radius=\"radiusless\">`\n adds `is-radiusless` to the wrapper. On a Theme it also sets `--bulma-radius` to `0`, so what\n is inside the Theme loses its radius too; under `isRoot` it writes that at `:root`, squaring\n everything on the page that takes its radius from it. The sizes (`small`, `normal`, `large`,\n `rounded`) add their `has-radius-*` class to the wrapper and set no variable, so they round\n the wrapper and leave what is inside alone; under `isRoot` there is no wrapper, so they do\n nothing and warn in development. Set any other `--bulma-radius` through\n `bulmaVars`. `<Theme radius=\"2px\" />` is a type error; in JavaScript it still sets\n `--bulma-radius`, which is how the prop used to behave, but that route is deprecated and logs\n a warning in development.\n- `shadow` is the `shadowless` helper. Set `--bulma-shadow` through `bulmaVars`.\n- `columnGap` is the column gap helper, as on every other component, so `<Theme columnGap=\"2\">`\n adds `is-column-gap-2` to the wrapper and sets no variable; under `isRoot` there is no wrapper,\n so it does nothing and warns in development. Set the columns gutter, `--bulma-column-gap`,\n through `bulmaVars`. Before the gap helpers, JavaScript could pass `columnGap` to set that\n variable. A string that is not a gap step (`columnGap=\"1rem\"`) still does, through a\n deprecated route that logs a warning in development, but a gap step does not:\n `columnGap=\"0\"`, which used to zero the gutters inside the Theme, now adds `is-column-gap-0`\n to the wrapper.\n\n### Props vs bulmaVars\n\nYou can set the scheme and color variables in two ways:\n\n1. **Named Props** (recommended where one exists):\n\n ```tsx\n <Theme\n primaryH=\"262\"\n primaryS=\"52%\"\n primaryL=\"56%\"\n bulmaVars={{ '--bulma-primary-invert-l': '100%' }} // the label has no named prop\n >\n <App />\n </Theme>\n ```\n\n2. **bulmaVars Object** (for every other variable, or when you have many to set):\n\n ```tsx\n <Theme\n bulmaVars={{\n '--bulma-primary-h': '262',\n '--bulma-primary-s': '52%',\n '--bulma-primary-l': '56%',\n '--bulma-primary-invert-l': '100%',\n '--bulma-block-spacing': '2rem',\n }}\n >\n <App />\n </Theme>\n ```\n\n3. **Combined** (props take precedence over bulmaVars):\n ```tsx\n <Theme\n primaryH=\"262\" // This takes precedence\n bulmaVars={{\n '--bulma-primary-h': '180', // This is overridden\n '--bulma-primary-invert-l': '100%',\n '--bulma-block-spacing': '2rem',\n }}\n >\n <App />\n </Theme>\n ```\n\n### TypeScript Support\n\n`bulmaVars` is typed as a partial record keyed by the union of every variable `Theme` accepts.\nWrite it as an object literal and your editor autocompletes the keys and flags a misspelled or\nunsupported one as a type error. A separately declared object only has to share one valid key\nto typecheck, so a typo in it is silently dropped; annotate it with\n`satisfies ThemeProps['bulmaVars']` to keep the check:\n\n```tsx\n<Theme\n primaryH=\"262\"\n bulmaVars={{\n '--bulma-primary-invert-l': '100%',\n '--bulma-block-spacing': '2rem', // start typing '--bulma-' to list the rest\n }}\n>\n <App />\n</Theme>\n```\n\n---\n\n## See Also\n\n- [ConfigProvider](https://bestax.io/docs/api/helpers/config) - For class prefixing and configuration\n- [useBulmaClasses](https://bestax.io/docs/api/helpers/usebulmaclasses) - For applying Bulma helper classes\n- [Bulma CSS Variables Documentation](https://bulma.io/documentation/features/css-variables/) - Official Bulma CSS variables reference\n\n---\n\n## Props\n\n| Prop | Type | Description |\n| ----------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `children` | `ReactNode` | The child components to apply the theme to. |\n| `className` | `string` | Additional CSS classes for the theme wrapper. A root theme has no wrapper, so under `isRoot` it does nothing and warns in development. |\n| `isRoot` | `boolean` | When `true`, applies CSS variables globally at `:root` level. When `false` (default), applies variables only to the wrapper div. Several root themes compose; an inner or later-mounted one wins a variable they share. The variables are written before the browser paints the theme's content, and a server render doesn't include them. A root theme renders no wrapper, so `className` and the helper props, such as `m` or `shadow`, do nothing on it and warn in development. |\n| `colorMode` | `'light' \\| 'dark' \\| 'system'` | Sets Bulma's light/dark scheme by writing the `data-theme` attribute on `<html>`, plus `data-<prefix>theme` inside a `ConfigProvider` with a `classPrefix`. If the prefix cannot form an attribute name, `'light'` and `'dark'` write only `data-theme` and warn in development. Always global (even on a scoped `Theme`). `'system'` removes them so Bulma follows the OS `prefers-color-scheme`. Omit to leave the current setting untouched. |\n| `bulmaVars` | `ThemeProps['bulmaVars']` | Object mapping Bulma CSS variable names to string values (e.g., `{'--bulma-primary-h': '210'}`). Keys are limited to the `BulmaVars` type; anything else is not applied. Each color's `--bulma-<color>-on-scheme-l` also takes `{ light, dark }` on a root theme, as [Label and Text Lightnesses](https://bestax.io/docs/api/helpers/theme#label-and-text-lightnesses) says. A variable Bulma declares on the component itself changes nothing from here and warns in development; see [Which Variables a Theme Can Change](https://bestax.io/docs/api/helpers/theme#which-variables-a-theme-can-change). |\n| `columnGap` | [`BulmaGapStep`](https://bestax.io/docs/api/helpers/valid-values) | The column gap helper: a gap step adds `is-column-gap-<step>` to the wrapper div and sets no variable, so under `isRoot` it does nothing and warns in development. Set `--bulma-column-gap` through `bulmaVars`. Any other string still sets `--bulma-column-gap`, a deprecated route that warns in development. |\n| `radius` | `'radiusless' \\| 'small' \\| 'normal' \\| 'large' \\| 'rounded'` | The border radius helper. `radiusless` adds `is-radiusless` to the wrapper div and sets `--bulma-radius` to `0`, at `:root` under `isRoot`. The sizes add their `has-radius-*` class to the wrapper and set no variable, so under `isRoot` they do nothing and warn in development. Any other string still sets `--bulma-radius`, a deprecated route that warns in development. |\n\n### CSS Variable Props\n\nThe Theme component accepts individual CSS variable props that correspond to Bulma's design tokens. These props are automatically converted to their corresponding CSS custom properties (e.g., `primaryH` → `--bulma-primary-h`).\n\n#### Scheme Variables\n\n| Prop | Type | Description | CSS Variable |\n| ------------------------ | -------- | ------------------------------------------------- | ----------------------------------- |\n| `schemeH` | `string` | Base hue for the color scheme (0-360) | `--bulma-scheme-h` |\n| `schemeS` | `string` | Base saturation for the color scheme (percentage) | `--bulma-scheme-s` |\n| `lightL` | `string` | Lightness value for light backgrounds | `--bulma-light-l` |\n| `lightInvertL` | `string` | Inverted lightness for light backgrounds | `--bulma-light-invert-l` |\n| `darkL` | `string` | Lightness value for dark backgrounds | `--bulma-dark-l` |\n| `darkInvertL` | `string` | Inverted lightness for dark backgrounds | `--bulma-dark-invert-l` |\n| `softL` | `string` | Lightness value for soft colors | `--bulma-soft-l` |\n| `boldL` | `string` | Lightness value for bold colors | `--bulma-bold-l` |\n| `softInvertL` | `string` | Inverted lightness for soft colors | `--bulma-soft-invert-l` |\n| `boldInvertL` | `string` | Inverted lightness for bold colors | `--bulma-bold-invert-l` |\n| `hoverBackgroundLDelta` | `string` | Lightness delta for hover background states | `--bulma-hover-background-l-delta` |\n| `activeBackgroundLDelta` | `string` | Lightness delta for active background states | `--bulma-active-background-l-delta` |\n| `hoverBorderLDelta` | `string` | Lightness delta for hover border states | `--bulma-hover-border-l-delta` |\n| `activeBorderLDelta` | `string` | Lightness delta for active border states | `--bulma-active-border-l-delta` |\n| `hoverColorLDelta` | `string` | Lightness delta for hover text color states | `--bulma-hover-color-l-delta` |\n| `activeColorLDelta` | `string` | Lightness delta for active text color states | `--bulma-active-color-l-delta` |\n| `hoverShadowADelta` | `string` | Alpha delta for hover shadow states | `--bulma-hover-shadow-a-delta` |\n| `activeShadowADelta` | `string` | Alpha delta for active shadow states | `--bulma-active-shadow-a-delta` |\n\n#### Color Variables\n\n| Prop | Type | Description | CSS Variable |\n| ---------- | -------- | ------------------------------------- | ------------------- |\n| `primaryH` | `string` | Primary color hue (0-360) | `--bulma-primary-h` |\n| `primaryS` | `string` | Primary color saturation (percentage) | `--bulma-primary-s` |\n| `primaryL` | `string` | Primary color lightness (percentage) | `--bulma-primary-l` |\n| `linkH` | `string` | Link color hue (0-360) | `--bulma-link-h` |\n| `linkS` | `string` | Link color saturation (percentage) | `--bulma-link-s` |\n| `linkL` | `string` | Link color lightness (percentage) | `--bulma-link-l` |\n| `infoH` | `string` | Info color hue (0-360) | `--bulma-info-h` |\n| `infoS` | `string` | Info color saturation (percentage) | `--bulma-info-s` |\n| `infoL` | `string` | Info color lightness (percentage) | `--bulma-info-l` |\n| `successH` | `string` | Success color hue (0-360) | `--bulma-success-h` |\n| `successS` | `string` | Success color saturation (percentage) | `--bulma-success-s` |\n| `successL` | `string` | Success color lightness (percentage) | `--bulma-success-l` |\n| `warningH` | `string` | Warning color hue (0-360) | `--bulma-warning-h` |\n| `warningS` | `string` | Warning color saturation (percentage) | `--bulma-warning-s` |\n| `warningL` | `string` | Warning color lightness (percentage) | `--bulma-warning-l` |\n| `dangerH` | `string` | Danger color hue (0-360) | `--bulma-danger-h` |\n| `dangerS` | `string` | Danger color saturation (percentage) | `--bulma-danger-s` |\n| `dangerL` | `string` | Danger color lightness (percentage) | `--bulma-danger-l` |\n\n#### Shadow Variables\n\nReachable only through `bulmaVars` — there is no individual prop, since `shadow` already names\nthe `BulmaOtherProps` `shadowless` helper class. As noted above, `--bulma-shadow` is the one\noverride that cascades into `.box`/`.card`/`.dropdown`/`.panel` shadows.\n\n| CSS Variable | Description |\n| ------------------ | ----------------------------------------------------------------------------------------------------- |\n| `--bulma-shadow-h` | Shadow color hue (0-360) |\n| `--bulma-shadow-s` | Shadow color saturation (percentage) |\n| `--bulma-shadow-l` | Shadow color lightness (percentage) |\n| `--bulma-shadow` | The full shadow value that `.box`/`.card`/`.dropdown`/`.panel` derive their own shadow variables from |\n\n#### Which Variables a Theme Can Change\n\n`bulmaVars` takes any key of the `BulmaVars` type. Write it as an object literal and your editor\nlists them as you type `'--bulma-'`. Not every one of those keys does something from a `Theme`,\nthough, and the reason is where Bulma declares the variable.\n\nA `Theme` writes its variables on its wrapper `div`, or at `:root` under `isRoot`. A component\ninherits them from there only if it declares no value of its own, because an element's own\ndeclaration always beats an inherited one.\n\n- **Global variables reach everything under the Theme.** Bulma declares the scheme, color and\n shadow variables above, and the typography, radius, spacing and timing tokens (such as\n `--bulma-family-primary` and `--bulma-radius`), on `:root`. Set them on a `Theme`, or on any\n ancestor. Some of them Bulma also declares again on one component, which keeps its own value\n while everything else takes the Theme's. That component's API page lists the variable as\n declared on it.\n- **Component variables have to be set on the component.** Where Bulma declares a variable on\n the component's own element, as it does `--bulma-card-radius`, `--bulma-tag-h` and\n `--bulma-delete-dimensions`, a value a `Theme` sets never reaches it. Those keys are still\n accepted, so existing code keeps compiling, but they change nothing, and `Theme` logs a\n warning in development naming them. Set them on the component instead, with\n `className` (a class in your own stylesheet) or the `style` prop, or at build time through\n [Sass](https://bestax.io/docs/guides/features/sass-customization).\n\nEach component's API page lists its variables under **CSS & Sass Variables** and says where Bulma\ndeclares them, so check there before reaching for a `Theme`. The\n[shadow note](https://bestax.io/docs/api/helpers/theme#css-variable-naming) above is the same rule in action: `--bulma-box-shadow` lives on\n`.box`, so the way to change box shadows from a `Theme` is the global `--bulma-shadow` they derive\nfrom.\n\nThe Theme component also supports all [Bulma helper class props](https://bestax.io/docs/api/helpers/usebulmaclasses) for styling the wrapper element."
474
+ "doc": "# Theme\n\n## Overview\n\nThe `Theme` component provides a powerful way to customize Bulma's appearance using CSS custom properties (CSS variables). It allows you to override Bulma's design tokens like colors, spacing, typography, and other visual properties either globally or locally within specific component trees. The Theme component supports both CSS variable injection via props and direct CSS variable objects.\n\n---\n\n## Import\n\n```tsx\nimport { Theme } from '@allxsmith/bestax-bulma';\n```\n\n---\n\n## Usage\n\n### Basic Theme Customization\n\n```tsx\nfunction BasicThemeCustomization() {\n return (\n <Theme\n primaryH=\"262\"\n primaryS=\"52%\"\n primaryL=\"56%\"\n bulmaVars={{ '--bulma-primary-invert-l': '100%' }}\n >\n <Box p=\"4\">\n <Button color=\"primary\">Violet Primary Button</Button>\n </Box>\n </Theme>\n );\n}\n```\n\n### Global Theme (Root Level)\n\n```tsx\nfunction GlobalTheme() {\n return (\n <Theme\n isRoot={true}\n primaryH=\"262\"\n primaryS=\"52%\"\n primaryL=\"56%\"\n bulmaVars={{ '--bulma-primary-invert-l': '100%' }}\n >\n <div>\n <Button color=\"primary\">Global Violet Theme</Button>\n <Button color=\"info\">Info Button</Button>\n </div>\n </Theme>\n );\n}\n```\n\nA root theme writes its variables before the browser paints what it rendered, so an app rendered\nin the browser shows them from its first frame of content. A server render doesn't include them,\nso a page rendered on the server paints with the stylesheet's values until it hydrates. Put the\nvalues that page needs from its first paint in your CSS, on `:root`.\n\n### Dark Mode\n\nThe `colorMode` prop sets Bulma's `data-theme` on `<html>`, flipping the light/dark scheme globally.\nUse `'system'` to follow the OS preference.\n\nA prefixed stylesheet reads Bulma's prefixed attribute instead (`data-bestax-theme` for\n`bestax-prefixed.css` and `bestax-no-helpers-prefixed.css`). Under a `ConfigProvider`\n`classPrefix`, `colorMode` writes that attribute as well as `data-theme`, so it works with the\nprefixed builds.\n\n:::warning Single-mode designs should pin the scheme\n\nOmitting `colorMode` preserves whatever `data-theme` is already set — and when nothing has set\none (the usual case), the scheme follows the visitor's OS: Bulma's text colors flip on a\ndark-mode machine even if your design is light-only, breaking contrast against any fixed custom\nbackgrounds. If you support only one mode, pin it on the `<html>` in your `index.html`\n(`<html lang=\"en\" data-theme=\"light\">`); if you support both, don't hardcode surface/text\ncolors — see [Dark Mode & Contrast](https://bestax.io/docs/guides/features/css-variables#dark-mode--contrast).\n\n:::\n\n`colorMode` writes the attribute before the browser paints what `Theme` rendered, but the page can\npaint before the app's script runs at all, with whatever `<html>` already has, which is why a\nfixed scheme belongs in `index.html`. A toggle that remembers the visitor's choice has two parts.\nFirst, an inline script in the `<head>` of `index.html` writes the saved choice, or else the OS\npreference, before the first paint. Make it a plain `<script>`, not `type=\"module\"`, so it runs\nbefore the body renders. With a prefixed stylesheet, have it set `data-bestax-theme` as well.\n\n```html\n<script>\n // Bulma's scheme on <html> before the first paint: the saved choice,\n // or else the OS preference. The app saves under the same key.\n (() => {\n let saved = null;\n try {\n saved = localStorage.getItem('theme');\n } catch {\n // Storage is blocked, so fall back to the OS preference.\n }\n const dark =\n saved === 'light' || saved === 'dark'\n ? saved === 'dark'\n : window.matchMedia('(prefers-color-scheme: dark)').matches;\n document.documentElement.setAttribute(\n 'data-theme',\n dark ? 'dark' : 'light'\n );\n })();\n</script>\n```\n\nSecond, the app starts `colorMode` from the attribute the script wrote, and saves each choice\nunder the key the script reads. The `bestax-theming` skill's\n[dark-mode example](https://github.com/allxsmith/bestax/blob/main/skills/bestax-theming/examples/dark-mode.tsx)\nis the same recipe, and also covers a page that has no script.\n\n```tsx\n// Pairs with an inline <head> script in index.html that writes data-theme\n// before the first paint: the choice saved under STORAGE_KEY, or else the\n// OS preference. The Theme API page's Dark Mode section has the script.\nimport { useState } from 'react';\nimport { Theme, ToggleButton } from '@allxsmith/bestax-bulma';\n\ntype ColorMode = 'light' | 'dark';\n\n// The key the index.html script reads the saved choice from.\nconst STORAGE_KEY = 'theme';\n\n// The scheme the index.html script wrote on <html>.\nfunction initialColorMode(): ColorMode {\n if (typeof document === 'undefined') return 'light';\n return document.documentElement.getAttribute('data-theme') === 'dark'\n ? 'dark'\n : 'light';\n}\n\nfunction App() {\n const [mode, setMode] = useState<ColorMode>(initialColorMode);\n\n const setDark = (dark: boolean) => {\n const next: ColorMode = dark ? 'dark' : 'light';\n setMode(next);\n try {\n localStorage.setItem(STORAGE_KEY, next);\n } catch {\n // Storage is blocked, so the choice lasts until the page reloads.\n }\n };\n\n return (\n <Theme isRoot colorMode={mode}>\n <ToggleButton pressed={mode === 'dark'} onPressedChange={setDark}>\n Dark mode\n </ToggleButton>\n </Theme>\n );\n}\n```\n\n### Label and Text Lightnesses\n\nA color's trio recolors the color, but two of its lightnesses stay where the stylesheet's Sass\nbuild put them for the color it was built with: its label on a solid surface,\n`--bulma-<color>-invert-l`, and its text on the page, `--bulma-<color>-on-scheme-l`. bestax builds\nits primary from a dark blue, so a light primary set through the trio alone keeps white labels\nit can't carry. A color that reads lighter or darker than the built one sets both through\n`bulmaVars`.\n\nThe text has to read on a light page and on a dark one, so Bulma gives each scheme its own\non-scheme lightness. On a root theme, an on-scheme key takes `{ light, dark }`, and each value\napplies wherever Bulma's own value for that scheme would. A scheme you leave out keeps the\nstylesheet's value, and a string sets one value for both. On the dark scheme, bestax's\nstylesheets give `textColor=\"<color>\"` the on-scheme lightness wherever it's lighter than the\ntrio's, so a darker color set through the trio alone takes the build's lightness there.\n\n```tsx\nfunction StockTurquoise() {\n // Stock Bulma's turquoise, with the values from bulma/css/bulma.css.\n return (\n <Theme\n isRoot\n primaryH=\"171deg\"\n primaryS=\"100%\"\n primaryL=\"41%\"\n bulmaVars={{\n '--bulma-primary-invert-l': 'var(--bulma-primary-05-l)',\n '--bulma-primary-on-scheme-l': { light: '21%', dark: '41%' },\n }}\n >\n <Button color=\"primary\">Dark label</Button>\n <Block textColor=\"primary\" colorShade=\"on-scheme\">\n Turquoise text that reads in both schemes\n </Block>\n </Theme>\n );\n}\n```\n\nA local theme writes its variables as an inline style, which can't hold a value per scheme, so it\nskips `{ light, dark }` and warns in development. Give it a string, or set the per-scheme values\nin your CSS. `bestax-no-dark-mode.css` has no dark scheme, so with it give a string. The\n`bestax-theming` skill's\n[CSS variables reference](https://github.com/allxsmith/bestax/blob/main/skills/bestax-theming/references/css-variables.md)\nsays what reads each lightness and how to pick the values.\n\n### Local Theme (Component Level)\n\n```tsx\nfunction LocalTheme() {\n return (\n <div>\n <Button color=\"primary\">Standard Primary</Button>\n\n <Theme\n primaryH=\"158\"\n primaryS=\"64%\"\n primaryL=\"30%\"\n bulmaVars={{ '--bulma-primary-invert-l': '100%' }}\n >\n <Button color=\"primary\">Emerald Primary</Button>\n </Theme>\n\n <Button color=\"primary\">Standard Primary Again</Button>\n </div>\n );\n}\n```\n\n### Using CSS Variables Object\n\n```tsx\nfunction SunsetTheme() {\n // Amber, coral, rose and violet on warm neutrals. A new color keeps the\n // label lightness the stylesheet was built with, so each sets its own.\n const sunsetTheme = {\n '--bulma-scheme-h': '24',\n '--bulma-scheme-s': '22%',\n '--bulma-primary-h': '12',\n '--bulma-primary-s': '76%',\n '--bulma-primary-l': '44%',\n '--bulma-primary-invert-l': '100%',\n '--bulma-link-h': '340',\n '--bulma-link-s': '62%',\n '--bulma-link-l': '48%',\n '--bulma-link-invert-l': '100%',\n '--bulma-info-h': '262',\n '--bulma-info-s': '52%',\n '--bulma-info-l': '56%',\n '--bulma-info-invert-l': '100%',\n '--bulma-warning-h': '38',\n '--bulma-warning-s': '95%',\n '--bulma-warning-l': '54%',\n '--bulma-warning-invert-l': '10%',\n };\n\n return (\n <Theme bulmaVars={sunsetTheme} isRoot>\n <Box p=\"4\">\n <Title>Sunset Theme</Title>\n <Button color=\"primary\">Sunset Button</Button>\n <Button color=\"info\">Info Button</Button>\n </Box>\n </Theme>\n );\n}\n```\n\n### Advanced CSS Variables Usage\n\nBulma derives the body font and the control radius from these variables at `:root`, so set\ntypography and radius on an `isRoot` theme.\n\n```tsx\nfunction TypographyTheme() {\n const typographyTheme = {\n '--bulma-family-primary': '\"Helvetica Neue\", sans-serif',\n '--bulma-family-code': '\"Fira Code\", monospace',\n '--bulma-size-normal': '16px',\n '--bulma-weight-bold': '700',\n };\n\n return (\n <Theme isRoot bulmaVars={typographyTheme}>\n <Title>Custom Typography</Title>\n <SubTitle>With custom fonts and weights</SubTitle>\n </Theme>\n );\n}\n```\n\n```tsx\nfunction RadiusTheme() {\n // `radius` is the border radius helper, as on every component, so the radius scale goes through bulmaVars\n const radii = {\n '--bulma-radius-small': '6px',\n '--bulma-radius': '12px',\n '--bulma-radius-medium': '16px',\n '--bulma-radius-large': '20px',\n };\n\n return (\n <Theme isRoot bulmaVars={radii}>\n <Button color=\"primary\">Rounder Button</Button>\n </Theme>\n );\n}\n```\n\nSpacing that Bulma reads where it is used, such as the block and column gaps, works on a scoped\ntheme:\n\n```tsx\nfunction SpacingTheme() {\n const spacingTheme = {\n '--bulma-block-spacing': '2rem',\n '--bulma-column-gap': '1rem',\n };\n\n return (\n <Theme bulmaVars={spacingTheme}>\n <Columns>\n <Column>\n <Box>Wider column gap</Box>\n <Box>Wider block spacing</Box>\n </Column>\n <Column>\n <Box>Wider column gap</Box>\n </Column>\n </Columns>\n </Theme>\n );\n}\n```\n\n### Complete Color Scheme\n\n```tsx\nfunction ForestTheme() {\n // Pine, lake, fern, ochre and berry on cool green neutrals\n const forestScheme = {\n schemeH: '140',\n schemeS: '16%',\n primaryH: '152',\n primaryS: '50%',\n primaryL: '32%',\n linkH: '195',\n linkS: '65%',\n linkL: '34%',\n successH: '95',\n successS: '40%',\n successL: '33%',\n warningH: '36',\n warningS: '85%',\n warningL: '52%',\n dangerH: '352',\n dangerS: '60%',\n dangerL: '48%',\n };\n // The label lightnesses have no named prop, so they go through bulmaVars\n const forestLabels = {\n '--bulma-primary-invert-l': '100%',\n '--bulma-link-invert-l': '100%',\n '--bulma-success-invert-l': '100%',\n '--bulma-warning-invert-l': '10%',\n '--bulma-danger-invert-l': '100%',\n };\n\n return (\n <Theme {...forestScheme} bulmaVars={forestLabels} isRoot>\n <Box p=\"4\">\n <Title>Forest Theme</Title>\n <Button color=\"primary\">Forest Primary</Button>\n <Button color=\"link\">Link</Button>\n <Button color=\"success\">Success</Button>\n <Button color=\"warning\">Warning</Button>\n <Button color=\"danger\">Danger</Button>\n </Box>\n </Theme>\n );\n}\n```\n\n### Theme with Styling\n\n```tsx\nfunction StyledTheme() {\n return (\n <Theme\n className=\"has-background-primary-soft has-text-primary-bold\"\n primaryH=\"40\"\n primaryS=\"92%\"\n primaryL=\"52%\"\n bulmaVars={{ '--bulma-primary-invert-l': '10%' }}\n p=\"5\"\n m=\"3\"\n radius=\"large\"\n textAlign=\"centered\"\n >\n <Title>Amber Panel</Title>\n <Button color=\"primary\">Amber Primary</Button>\n </Theme>\n );\n}\n```\n\n### Nested Themes\n\n```tsx\nfunction NestedThemes() {\n return (\n <Theme\n primaryH=\"218\"\n primaryS=\"52%\"\n primaryL=\"48%\"\n bulmaVars={{ '--bulma-primary-invert-l': '100%' }}\n p=\"4\"\n >\n <Title>Outer Theme (Ink Blue)</Title>\n <Button color=\"primary\">Ink Blue Primary</Button>\n\n {/* Sets only the trio: the white label comes from the outer Theme */}\n <Theme primaryH=\"160\" primaryS=\"45%\" primaryL=\"32%\" p=\"3\" mt=\"4\">\n <Title size=\"4\">Inner Theme (Green)</Title>\n <Button color=\"primary\">Green Primary</Button>\n </Theme>\n\n <Button color=\"primary\" mt=\"3\">\n Ink Blue Primary Again\n </Button>\n </Theme>\n );\n}\n```\n\n### Theme with ConfigProvider\n\n```tsx\nfunction PrefixedTheme() {\n return (\n <ConfigProvider classPrefix=\"bestax-\">\n <Theme\n primaryH=\"236\"\n primaryS=\"55%\"\n primaryL=\"58%\"\n bulmaVars={{ '--bulma-primary-invert-l': '100%' }}\n isRoot\n >\n <Button color=\"primary\">Prefixed & Themed Button</Button>\n </Theme>\n </ConfigProvider>\n );\n}\n```\n\n---\n\n## Best Practices\n\n### Global vs Local Themes\n\n- Use `isRoot={true}` for application-wide themes that should affect all components\n- Use local themes (default `isRoot={false}`) for component-specific styling or theme variations\n- Local themes inherit from parent themes and can override specific variables\n- Several `isRoot` themes can be mounted at once, such as a color theme at the app root and a\n typography theme next to it. Each adds its own variables at `:root`; where two set the same\n variable, the inner or later-mounted one wins, as with nested local themes, and unmounting one\n removes only its own variables\n\n### CSS Variable Naming\n\n- All Bulma CSS variables follow the `--bulma-*` naming convention\n- Named props exist for the scheme and color variables only (like `primaryH`); every other variable, typography and radius included, goes through `bulmaVars`\n- `bulmaVars` keys are the full variable names (`'--bulma-family-primary'`), not camelCase\n- `bulmaVars` also accepts the scheme surface variables — `--bulma-scheme-main`, `--bulma-scheme-main-bis`, `--bulma-scheme-main-ter`, `--bulma-scheme-invert`, `--bulma-scheme-invert-bis`, `--bulma-scheme-invert-ter` — so overriding `--bulma-scheme-main-bis`/`-ter` re-tints every scheme-background band (e.g., `<Section bgColor=\"scheme-main-bis\">`) at once\n- `bulmaVars` also accepts each color's label and text lightnesses, `--bulma-<color>-invert-l` and `--bulma-<color>-on-scheme-l`, which a new trio does not move. On a root theme the on-scheme ones take a value per scheme (see [Label and Text Lightnesses](https://bestax.io/docs/api/helpers/theme#label-and-text-lightnesses))\n- `bulmaVars` also accepts `--bulma-shadow` (plus `--bulma-shadow-h`/`-s`/`-l`) — the upstream token that `.box`, `.card`, `.dropdown`, and `.panel` derive their own shadow variables from. Those selectors re-declare their derived variable (e.g. `--bulma-box-shadow`) on themselves, so setting it from an ancestor `Theme` is only inherited and never wins; overriding `--bulma-shadow` itself is the one override that cascades. There is no individual `shadow` prop for this — `shadow` already names the unrelated `shadowless` helper class — so reach it through `bulmaVars`\n\n### Performance Considerations\n\n- Prefer setting themes at higher levels in your component tree rather than deeply nested\n- CSS variables are inherited, so child themes only need to override specific variables\n\n### Color System\n\n- Bulma uses HSL (Hue, Saturation, Lightness) for its color system\n- Hue values range from 0-360 (color wheel degrees)\n- Saturation and Lightness are typically percentages (e.g., '50%')\n- The scheme variables control the base color relationships\n\n---\n\n## API Reference\n\n### Named Props and `bulmaVars`\n\n`ThemeProps` has a named, camelCase prop for each scheme and color variable, listed under\n[CSS Variable Props](https://bestax.io/docs/api/helpers/theme#css-variable-props). Each converts to its CSS variable by the same rule:\n\n```\npropName → --bulma-prop-name\n```\n\n- `primaryH` → `--bulma-primary-h`\n- `schemeS` → `--bulma-scheme-s`\n- `lightL` → `--bulma-light-l`\n- `hoverBackgroundLDelta` → `--bulma-hover-background-l-delta`\n\nEvery other variable (typography, radius, spacing, and the rest) has no named prop in\n`ThemeProps` and goes through `bulmaVars`, keyed by its full `--bulma-*` name. JavaScript code\nthat passes one as a camelCase prop (`familyPrimary`) may still render, but it is outside the\ntyped API, so move it to `bulmaVars`:\n\n```tsx\n<Theme\n isRoot\n primaryH=\"350\"\n primaryS=\"73%\"\n primaryL=\"44%\"\n bulmaVars={{\n '--bulma-primary-invert-l': '100%',\n '--bulma-radius': '2px',\n '--bulma-radius-small': '1px',\n '--bulma-family-primary': '\"IBM Plex Sans\", system-ui, sans-serif',\n '--bulma-family-code': '\"IBM Plex Mono\", ui-monospace, monospace',\n }}\n>\n <App />\n</Theme>\n```\n\nSome of those names are already helper props, so they cannot double as CSS-variable props:\n\n- `radius` is the border radius helper, as on every other component, so `<Theme radius=\"radiusless\">`\n adds `is-radiusless` to the wrapper. On a Theme it also sets `--bulma-radius` to `0`, so what\n is inside the Theme loses its radius too; under `isRoot` it writes that at `:root`, squaring\n everything on the page that takes its radius from it. The sizes (`small`, `normal`, `large`,\n `rounded`) add their `has-radius-*` class to the wrapper and set no variable, so they round\n the wrapper and leave what is inside alone; under `isRoot` there is no wrapper, so they do\n nothing and warn in development. Set any other `--bulma-radius` through\n `bulmaVars`. `<Theme radius=\"2px\" />` is a type error; in JavaScript it still sets\n `--bulma-radius`, which is how the prop used to behave, but that route is deprecated and logs\n a warning in development.\n- `shadow` is the `shadowless` helper. Set `--bulma-shadow` through `bulmaVars`.\n- `columnGap` is the column gap helper, as on every other component, so `<Theme columnGap=\"2\">`\n adds `is-column-gap-2` to the wrapper and sets no variable; under `isRoot` there is no wrapper,\n so it does nothing and warns in development. Set the columns gutter, `--bulma-column-gap`,\n through `bulmaVars`. Before the gap helpers, JavaScript could pass `columnGap` to set that\n variable. A string that is not a gap step (`columnGap=\"1rem\"`) still does, through a\n deprecated route that logs a warning in development, but a gap step does not:\n `columnGap=\"0\"`, which used to zero the gutters inside the Theme, now adds `is-column-gap-0`\n to the wrapper.\n\n### Props vs bulmaVars\n\nYou can set the scheme and color variables in two ways:\n\n1. **Named Props** (recommended where one exists):\n\n ```tsx\n <Theme\n primaryH=\"262\"\n primaryS=\"52%\"\n primaryL=\"56%\"\n bulmaVars={{ '--bulma-primary-invert-l': '100%' }} // the label has no named prop\n >\n <App />\n </Theme>\n ```\n\n2. **bulmaVars Object** (for every other variable, or when you have many to set):\n\n ```tsx\n <Theme\n bulmaVars={{\n '--bulma-primary-h': '262',\n '--bulma-primary-s': '52%',\n '--bulma-primary-l': '56%',\n '--bulma-primary-invert-l': '100%',\n '--bulma-block-spacing': '2rem',\n }}\n >\n <App />\n </Theme>\n ```\n\n3. **Combined** (props take precedence over bulmaVars):\n ```tsx\n <Theme\n primaryH=\"262\" // This takes precedence\n bulmaVars={{\n '--bulma-primary-h': '180', // This is overridden\n '--bulma-primary-invert-l': '100%',\n '--bulma-block-spacing': '2rem',\n }}\n >\n <App />\n </Theme>\n ```\n\n### TypeScript Support\n\n`bulmaVars` is typed as a partial record keyed by the union of every variable `Theme` accepts.\nWrite it as an object literal and your editor autocompletes the keys and flags a misspelled or\nunsupported one as a type error. A separately declared object only has to share one valid key\nto typecheck, so a typo in it is silently dropped; annotate it with\n`satisfies ThemeProps['bulmaVars']` to keep the check:\n\n```tsx\n<Theme\n primaryH=\"262\"\n bulmaVars={{\n '--bulma-primary-invert-l': '100%',\n '--bulma-block-spacing': '2rem', // start typing '--bulma-' to list the rest\n }}\n>\n <App />\n</Theme>\n```\n\n---\n\n## See Also\n\n- [ConfigProvider](https://bestax.io/docs/api/helpers/config) - For class prefixing and configuration\n- [useBulmaClasses](https://bestax.io/docs/api/helpers/usebulmaclasses) - For applying Bulma helper classes\n- [Bulma CSS Variables Documentation](https://bulma.io/documentation/features/css-variables/) - Official Bulma CSS variables reference\n\n---\n\n## Props\n\n| Prop | Type | Description |\n| ----------- | ------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `children` | `ReactNode` | **Required.** The child components to apply the theme to. |\n| `className` | `string` | Additional CSS classes for the theme wrapper. A root theme has no wrapper, so under `isRoot` it does nothing and warns in development. |\n| `isRoot` | `boolean` | When `true`, applies CSS variables globally at `:root` level. When `false` (default), applies variables only to the wrapper div. Several root themes compose; an inner or later-mounted one wins a variable they share. The variables are written before the browser paints the theme's content, and a server render doesn't include them. A root theme renders no wrapper, so `className` and the helper props, such as `m` or `shadow`, do nothing on it and warn in development. |\n| `colorMode` | `'light' \\| 'dark' \\| 'system'` | Sets Bulma's light/dark scheme by writing the `data-theme` attribute on `<html>`, plus `data-<prefix>theme` inside a `ConfigProvider` with a `classPrefix`. If the prefix cannot form an attribute name, `'light'` and `'dark'` write only `data-theme` and warn in development. Always global (even on a scoped `Theme`). `'system'` removes them so Bulma follows the OS `prefers-color-scheme`. Omit to leave the current setting untouched. |\n| `bulmaVars` | `ThemeProps['bulmaVars']` | Object mapping Bulma CSS variable names to string values (e.g., `{'--bulma-primary-h': '210'}`). Keys are limited to the `BulmaVars` type; anything else is not applied. Each color's `--bulma-<color>-on-scheme-l` also takes `{ light, dark }` on a root theme, as [Label and Text Lightnesses](https://bestax.io/docs/api/helpers/theme#label-and-text-lightnesses) says. A variable Bulma declares on the component itself changes nothing from here and warns in development; see [Which Variables a Theme Can Change](https://bestax.io/docs/api/helpers/theme#which-variables-a-theme-can-change). |\n| `columnGap` | [`BulmaGapStep`](https://bestax.io/docs/api/helpers/valid-values) | The column gap helper: a gap step adds `is-column-gap-<step>` to the wrapper div and sets no variable, so under `isRoot` it does nothing and warns in development. Set `--bulma-column-gap` through `bulmaVars`. Any other string still sets `--bulma-column-gap`, a deprecated route that warns in development. |\n| `radius` | `'radiusless' \\| 'small' \\| 'normal' \\| 'large' \\| 'rounded'` | The border radius helper. `radiusless` adds `is-radiusless` to the wrapper div and sets `--bulma-radius` to `0`, at `:root` under `isRoot`. The sizes add their `has-radius-*` class to the wrapper and set no variable, so under `isRoot` they do nothing and warn in development. Any other string still sets `--bulma-radius`, a deprecated route that warns in development. |\n\n### CSS Variable Props\n\nThe Theme component accepts individual CSS variable props that correspond to Bulma's design tokens. These props are automatically converted to their corresponding CSS custom properties (e.g., `primaryH` → `--bulma-primary-h`).\n\n#### Scheme Variables\n\n| Prop | Type | Description | CSS Variable |\n| ------------------------ | -------- | ------------------------------------------------- | ----------------------------------- |\n| `schemeH` | `string` | Base hue for the color scheme (0-360) | `--bulma-scheme-h` |\n| `schemeS` | `string` | Base saturation for the color scheme (percentage) | `--bulma-scheme-s` |\n| `lightL` | `string` | Lightness value for light backgrounds | `--bulma-light-l` |\n| `lightInvertL` | `string` | Inverted lightness for light backgrounds | `--bulma-light-invert-l` |\n| `darkL` | `string` | Lightness value for dark backgrounds | `--bulma-dark-l` |\n| `darkInvertL` | `string` | Inverted lightness for dark backgrounds | `--bulma-dark-invert-l` |\n| `softL` | `string` | Lightness value for soft colors | `--bulma-soft-l` |\n| `boldL` | `string` | Lightness value for bold colors | `--bulma-bold-l` |\n| `softInvertL` | `string` | Inverted lightness for soft colors | `--bulma-soft-invert-l` |\n| `boldInvertL` | `string` | Inverted lightness for bold colors | `--bulma-bold-invert-l` |\n| `hoverBackgroundLDelta` | `string` | Lightness delta for hover background states | `--bulma-hover-background-l-delta` |\n| `activeBackgroundLDelta` | `string` | Lightness delta for active background states | `--bulma-active-background-l-delta` |\n| `hoverBorderLDelta` | `string` | Lightness delta for hover border states | `--bulma-hover-border-l-delta` |\n| `activeBorderLDelta` | `string` | Lightness delta for active border states | `--bulma-active-border-l-delta` |\n| `hoverColorLDelta` | `string` | Lightness delta for hover text color states | `--bulma-hover-color-l-delta` |\n| `activeColorLDelta` | `string` | Lightness delta for active text color states | `--bulma-active-color-l-delta` |\n| `hoverShadowADelta` | `string` | Alpha delta for hover shadow states | `--bulma-hover-shadow-a-delta` |\n| `activeShadowADelta` | `string` | Alpha delta for active shadow states | `--bulma-active-shadow-a-delta` |\n\n#### Color Variables\n\n| Prop | Type | Description | CSS Variable |\n| ---------- | -------- | ------------------------------------- | ------------------- |\n| `primaryH` | `string` | Primary color hue (0-360) | `--bulma-primary-h` |\n| `primaryS` | `string` | Primary color saturation (percentage) | `--bulma-primary-s` |\n| `primaryL` | `string` | Primary color lightness (percentage) | `--bulma-primary-l` |\n| `linkH` | `string` | Link color hue (0-360) | `--bulma-link-h` |\n| `linkS` | `string` | Link color saturation (percentage) | `--bulma-link-s` |\n| `linkL` | `string` | Link color lightness (percentage) | `--bulma-link-l` |\n| `infoH` | `string` | Info color hue (0-360) | `--bulma-info-h` |\n| `infoS` | `string` | Info color saturation (percentage) | `--bulma-info-s` |\n| `infoL` | `string` | Info color lightness (percentage) | `--bulma-info-l` |\n| `successH` | `string` | Success color hue (0-360) | `--bulma-success-h` |\n| `successS` | `string` | Success color saturation (percentage) | `--bulma-success-s` |\n| `successL` | `string` | Success color lightness (percentage) | `--bulma-success-l` |\n| `warningH` | `string` | Warning color hue (0-360) | `--bulma-warning-h` |\n| `warningS` | `string` | Warning color saturation (percentage) | `--bulma-warning-s` |\n| `warningL` | `string` | Warning color lightness (percentage) | `--bulma-warning-l` |\n| `dangerH` | `string` | Danger color hue (0-360) | `--bulma-danger-h` |\n| `dangerS` | `string` | Danger color saturation (percentage) | `--bulma-danger-s` |\n| `dangerL` | `string` | Danger color lightness (percentage) | `--bulma-danger-l` |\n\n#### Shadow Variables\n\nReachable only through `bulmaVars` — there is no individual prop, since `shadow` already names\nthe `BulmaOtherProps` `shadowless` helper class. As noted above, `--bulma-shadow` is the one\noverride that cascades into `.box`/`.card`/`.dropdown`/`.panel` shadows.\n\n| CSS Variable | Description |\n| ------------------ | ----------------------------------------------------------------------------------------------------- |\n| `--bulma-shadow-h` | Shadow color hue (0-360) |\n| `--bulma-shadow-s` | Shadow color saturation (percentage) |\n| `--bulma-shadow-l` | Shadow color lightness (percentage) |\n| `--bulma-shadow` | The full shadow value that `.box`/`.card`/`.dropdown`/`.panel` derive their own shadow variables from |\n\n#### Which Variables a Theme Can Change\n\n`bulmaVars` takes any key of the `BulmaVars` type. Write it as an object literal and your editor\nlists them as you type `'--bulma-'`. Not every one of those keys does something from a `Theme`,\nthough, and the reason is where Bulma declares the variable.\n\nA `Theme` writes its variables on its wrapper `div`, or at `:root` under `isRoot`. A component\ninherits them from there only if it declares no value of its own, because an element's own\ndeclaration always beats an inherited one.\n\n- **Global variables reach everything under the Theme.** Bulma declares the scheme, color and\n shadow variables above, and the typography, radius, spacing and timing tokens (such as\n `--bulma-family-primary` and `--bulma-radius`), on `:root`. Set them on a `Theme`, or on any\n ancestor. Some of them Bulma also declares again on one component, which keeps its own value\n while everything else takes the Theme's. That component's API page lists the variable as\n declared on it.\n- **Component variables have to be set on the component.** Where Bulma declares a variable on\n the component's own element, as it does `--bulma-card-radius`, `--bulma-tag-h` and\n `--bulma-delete-dimensions`, a value a `Theme` sets never reaches it. Those keys are still\n accepted, so existing code keeps compiling, but they change nothing, and `Theme` logs a\n warning in development naming them. Set them on the component instead, with\n `className` (a class in your own stylesheet) or the `style` prop, or at build time through\n [Sass](https://bestax.io/docs/guides/features/sass-customization).\n\nEach component's API page lists its variables under **CSS & Sass Variables** and says where Bulma\ndeclares them, so check there before reaching for a `Theme`. The\n[shadow note](https://bestax.io/docs/api/helpers/theme#css-variable-naming) above is the same rule in action: `--bulma-box-shadow` lives on\n`.box`, so the way to change box shadows from a `Theme` is the global `--bulma-shadow` they derive\nfrom.\n\nThe Theme component also supports all [Bulma helper class props](https://bestax.io/docs/api/helpers/usebulmaclasses) for styling the wrapper element."
475
475
  }
@@ -51,8 +51,8 @@
51
51
  "name": "message",
52
52
  "type": "string",
53
53
  "default": null,
54
- "description": "The message to display (required).",
55
- "required": false,
54
+ "description": "The message to display.",
55
+ "required": true,
56
56
  "inherited": false,
57
57
  "deprecated": false
58
58
  },
@@ -147,8 +147,8 @@
147
147
  "name": "data",
148
148
  "type": "TreeItemData[]",
149
149
  "default": null,
150
- "description": "**Required.** The tree, as nodes nested through `children`.",
151
- "required": false,
150
+ "description": "The tree, as nodes nested through `children`.",
151
+ "required": true,
152
152
  "inherited": true,
153
153
  "deprecated": false
154
154
  },
@@ -263,8 +263,8 @@
263
263
  "name": "value",
264
264
  "type": "string",
265
265
  "default": null,
266
- "description": "**Required.** Identifies the item in `selected`, `checked` and `expanded`. Unique in the tree.",
267
- "required": false,
266
+ "description": "Identifies the item in `selected`, `checked` and `expanded`. Unique in the tree.",
267
+ "required": true,
268
268
  "inherited": false,
269
269
  "deprecated": false
270
270
  },
@@ -272,8 +272,8 @@
272
272
  "name": "label",
273
273
  "type": "React.ReactNode",
274
274
  "default": null,
275
- "description": "**Required.** What the row shows, and the item's name for assistive tech. Nothing in it should be a link or a button: a tree item does one thing, and nothing else in its row takes focus.",
276
- "required": false,
275
+ "description": "What the row shows, and the item's name for assistive tech. Nothing in it should be a link or a button: a tree item does one thing, and nothing else in its row takes focus.",
276
+ "required": true,
277
277
  "inherited": false,
278
278
  "deprecated": false
279
279
  },
@@ -1 +1 @@
1
- {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"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"}
1
+ {"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"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"}
package/dist/format.js CHANGED
@@ -193,6 +193,8 @@ export function table(headers, rows) {
193
193
  function propRows(props) {
194
194
  return props.map(p => {
195
195
  const notes = [
196
+ // The API pages mark a prop a caller must pass the same way.
197
+ p.required ? '**Required.**' : '',
196
198
  p.deprecated
197
199
  ? `**Deprecated.**${p.deprecationNote ? ` ${attributedLinks(p.deprecationNote)}` : ''}`
198
200
  : '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bestax-mcp",
3
- "version": "1.18.63",
3
+ "version": "1.18.64",
4
4
  "mcpName": "io.github.allxsmith/bestax-mcp",
5
5
  "description": "MCP server for @allxsmith/bestax-bulma — component props, examples, CSS variables and agent skills, served offline from a version-pinned index",
6
6
  "type": "module",