bestax-mcp 1.18.80 → 1.18.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/data/catalog.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "schemaVersion": 2,
3
3
  "generatedFrom": {
4
4
  "package": "@allxsmith/bestax-bulma",
5
- "version": "5.78.4"
5
+ "version": "5.78.5"
6
6
  },
7
7
  "docsBase": "https://bestax.io/docs",
8
8
  "categories": [
@@ -898,7 +898,7 @@
898
898
  "name": "Input",
899
899
  "kind": "component",
900
900
  "category": "form",
901
- "purpose": "The `Input` component provides a Bulma-styled text input, supporting colors, sizes, rounded corners, static state, hover/focus/loading states, and all Bulma…",
901
+ "purpose": "The `Input` component provides a Bulma-styled text input, supporting colors, sizes, rounded corners, static state, hover/focus/loading states, and Bulma helper…",
902
902
  "slug": "form/input",
903
903
  "import": "import { Input, Field, Control, Button, Select, Icon } from '@allxsmith/bestax-bulma';",
904
904
  "compound": false,
@@ -1514,7 +1514,7 @@
1514
1514
  "name": "TextArea",
1515
1515
  "kind": "component",
1516
1516
  "category": "form",
1517
- "purpose": "The `TextArea` component provides a Bulma-styled multi-line text input, supporting color, size, hover/focus/loading states, fixed size, and all Bulma helper…",
1517
+ "purpose": "The `TextArea` component provides a Bulma-styled multi-line text input, supporting color, size, hover/focus/loading states, fixed size, and Bulma helper props.",
1518
1518
  "slug": "form/textarea",
1519
1519
  "import": "import { TextArea, Field, Control } from '@allxsmith/bestax-bulma';",
1520
1520
  "compound": false,
@@ -3743,7 +3743,7 @@
3743
3743
  "InputBase": {
3744
3744
  "component": "Input",
3745
3745
  "path": "InputBase",
3746
- "purpose": "Bulma Input component with full Bulma helper class support.",
3746
+ "purpose": "Bulma Input component with Bulma helper class support.",
3747
3747
  "standalone": "base"
3748
3748
  },
3749
3749
  "KbdGroup": {
@@ -4006,7 +4006,7 @@
4006
4006
  "SelectBase": {
4007
4007
  "component": "Select",
4008
4008
  "path": "SelectBase",
4009
- "purpose": "Bulma Select component with full Bulma helper class support.",
4009
+ "purpose": "Bulma Select component with Bulma helper class support.",
4010
4010
  "standalone": "base"
4011
4011
  },
4012
4012
  "SidebarBody": {
@@ -4102,7 +4102,7 @@
4102
4102
  "TextAreaBase": {
4103
4103
  "component": "TextArea",
4104
4104
  "path": "TextAreaBase",
4105
- "purpose": "Bulma TextArea component with full Bulma helper class support.",
4105
+ "purpose": "Bulma TextArea component with Bulma helper class support.",
4106
4106
  "standalone": "base"
4107
4107
  },
4108
4108
  "Tfoot": {
@@ -38,7 +38,7 @@
38
38
  "code": "<>\n <Buttons>\n <Buttons.Button color=\"primary\">Save</Buttons.Button>\n <Buttons.Button>Cancel</Buttons.Button>\n <Buttons.LinkButton>Learn more</Buttons.LinkButton>\n <Buttons.IconButton icon=\"ellipsis\" aria-label=\"More actions\" />\n <Buttons.CopyButton value=\"https://bestax.io\" />\n </Buttons>\n <Buttons hasAddons role=\"group\" aria-label=\"Text style\">\n <Buttons.ToggleButton defaultPressed>Bold</Buttons.ToggleButton>\n <Buttons.ToggleButton>Italic</Buttons.ToggleButton>\n <Buttons.ToggleButton>Underline</Buttons.ToggleButton>\n </Buttons>\n</>"
39
39
  }
40
40
  ],
41
- "accessibility": "- Grouping buttons in a `<div class=\"buttons\">` has no negative impact on accessibility.\n- Ensure each `Button` has a clear label (text or `aria-label`).\n- For a set of toggles that each turn on and off on their own, use [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton) in `Buttons hasAddons`, and give the `Buttons` `role=\"group\"` and an `aria-label`. A set where only one can be on is a radio group, so use [`SegmentedControl`](https://bestax.io/docs/api/components/segmentedcontrol) for it, which draws the same `has-addons` row, or [`Radios`](https://bestax.io/docs/api/form/radios) when the choice is sent with a form.\n\n:::tip\nYou can use all Bulma helper props (spacing, color, alignment) with `Buttons` for even more control.\n:::",
41
+ "accessibility": "- Grouping buttons in a `<div class=\"buttons\">` has no negative impact on accessibility.\n- Ensure each `Button` has a clear label (text or `aria-label`).\n- For a set of toggles that each turn on and off on their own, use [`ToggleButton`](https://bestax.io/docs/api/elements/togglebutton) in `Buttons hasAddons`, and give the `Buttons` `role=\"group\"` and an `aria-label`. A set where only one can be on is a radio group, so use [`SegmentedControl`](https://bestax.io/docs/api/components/segmentedcontrol) for it, which draws the same `has-addons` row, or [`Radios`](https://bestax.io/docs/api/form/radios) when the choice is sent with a form.\n\n:::tip\nYou can use Bulma helper props, spacing among them, with `Buttons` for even more control.\n:::",
42
42
  "related": ["Button", "SegmentedControl", "ToggleButton", "useBulmaClasses"],
43
43
  "storybook": "https://bestax.io/storybook/?path=/story/elements-button--default",
44
44
  "summary": "The `Buttons` component lets you group multiple `Button` elements together with Bulma's spacing, alignment, and add-on features.",
@@ -72,7 +72,7 @@
72
72
  "name": "gap",
73
73
  "type": "BulmaGapStep",
74
74
  "default": null,
75
- "description": "Main gap for grid (Bulma `is-gap-X`), a whole or half step of Bulma's gap scale. The same values and class as the `gap` helper prop on every other component.",
75
+ "description": "Main gap for grid (Bulma `is-gap-X`), a whole or half step of Bulma's gap scale. The same values and class as the `gap` helper prop on other components.",
76
76
  "required": false,
77
77
  "inherited": false,
78
78
  "deprecated": false
@@ -45,14 +45,14 @@
45
45
  "accessibility": "- **Alt Text:** Always provide a descriptive `alt` attribute for images.\n- **Aspect Ratios:** Maintains the correct aspect ratio for images, iframes, or any child.\n- **Custom Content:** When embedding iframes or custom children, ensure accessibility via proper ARIA labeling or content.\n\n:::warning\nDo not use `Image` for decorative images without `alt=\"\"`, unless purely presentational.\n:::",
46
46
  "related": ["Box", "Card", "Content", "useBulmaClasses"],
47
47
  "storybook": "https://bestax.io/storybook/?path=/story/elements-image--default",
48
- "summary": "The `Image` component wraps images, iframes, or custom content in a Bulma-styled container, supporting fixed sizes, aspect ratios, rounded corners, retina images, and all Bulma helper props for color and spacing.",
48
+ "summary": "The `Image` component wraps images, iframes, or custom content in a Bulma-styled container, supporting fixed sizes, aspect ratios, rounded corners, retina images, and Bulma helper props for color and spacing.",
49
49
  "import": "import { Image } from '@allxsmith/bestax-bulma';",
50
50
  "sourceFile": "bulma-ui/src/elements/Image.tsx",
51
51
  "rootClass": "image",
52
52
  "parts": [
53
53
  {
54
54
  "path": "Image",
55
- "summary": "The `Image` component wraps images, iframes, or custom content in a Bulma-styled container, supporting fixed sizes, aspect ratios, rounded corners, retina images, and all Bulma helper props for color and spacing.",
55
+ "summary": "The `Image` component wraps images, iframes, or custom content in a Bulma-styled container, supporting fixed sizes, aspect ratios, rounded corners, retina images, and Bulma helper props for color and spacing.",
56
56
  "component": null,
57
57
  "props": [
58
58
  {
@@ -137,14 +137,14 @@
137
137
  "accessibility": "- Always provide a label. The `label` prop is automatically associated with the input (`htmlFor` plus a generated `id`, or your own `id` if you pass one), so clicking the label focuses the input and assistive technology announces it.\n- When composing with `Field` instead, the `Field`'s own `label` associates with the input automatically when the input sits directly in that labeled `Field` and has no `id` of its own. A nested unlabeled `Field` (as in horizontal multi-field layouts) starts its own scope. With an `id` of your own, or across a nested `Field`, the label names the input only when you pass that `id` as `labelProps={{ htmlFor }}`.\n- Use the correct input `type` for semantics (`text`, `email`, etc.).\n- **Help and errors:** the `message` describes the input through `aria-describedby`, after any ids you pass there, so a screen reader reads it when the input takes focus. A red `color` says nothing to a screen reader, so on an error also set `aria-invalid`, and put the error in the `message`.",
138
138
  "related": ["Control", "Field"],
139
139
  "storybook": "https://bestax.io/storybook/?path=/story/form-input--default",
140
- "summary": "The `Input` component provides a Bulma-styled text input, supporting colors, sizes, rounded corners, static state, hover/focus/loading states, and all Bulma helper props.",
140
+ "summary": "The `Input` component provides a Bulma-styled text input, supporting colors, sizes, rounded corners, static state, hover/focus/loading states, and Bulma helper props.",
141
141
  "import": "import { Input, Field, Control, Button, Select, Icon } from '@allxsmith/bestax-bulma';",
142
142
  "sourceFile": "bulma-ui/src/form/Input.tsx",
143
143
  "rootClass": "input",
144
144
  "parts": [
145
145
  {
146
146
  "path": "Input",
147
- "summary": "The `Input` component provides a Bulma-styled text input, supporting colors, sizes, rounded corners, static state, hover/focus/loading states, and all Bulma helper props.",
147
+ "summary": "The `Input` component provides a Bulma-styled text input, supporting colors, sizes, rounded corners, static state, hover/focus/loading states, and Bulma helper props.",
148
148
  "component": null,
149
149
  "props": [
150
150
  {
@@ -415,7 +415,7 @@
415
415
  },
416
416
  {
417
417
  "path": "InputBase",
418
- "summary": "Bulma Input component with full Bulma helper class support.",
418
+ "summary": "Bulma Input component with Bulma helper class support.",
419
419
  "component": null,
420
420
  "props": [
421
421
  {
@@ -353,7 +353,7 @@
353
353
  },
354
354
  {
355
355
  "path": "SelectBase",
356
- "summary": "Bulma Select component with full Bulma helper class support.",
356
+ "summary": "Bulma Select component with Bulma helper class support.",
357
357
  "component": null,
358
358
  "props": [
359
359
  {
@@ -57,14 +57,14 @@
57
57
  "accessibility": "- Always provide a label. TextArea's `label` prop is automatically associated with the `<textarea>` (`htmlFor` plus a generated `id`, or your own `id` if you pass one).\n- When composing with `Field` instead, the `Field`'s own `label` associates with the textarea automatically when the textarea sits directly in that labeled `Field` and has no `id` of its own. A nested unlabeled `Field` (as in horizontal multi-field layouts) starts its own scope. With an `id` of your own, or across a nested `Field`, the label names the textarea only when you pass that `id` as `labelProps={{ htmlFor }}`.\n- Use the `rows` prop to set an appropriate height for your content.\n- **Help and errors:** the `message` describes the textarea through `aria-describedby`, after any ids you pass there, so a screen reader reads it when the textarea takes focus. A red `color` says nothing to a screen reader, so on an error also set `aria-invalid`, and put the error in the `message`.",
58
58
  "related": ["Control", "Field"],
59
59
  "storybook": "https://bestax.io/storybook/?path=/story/form-textarea--default",
60
- "summary": "The `TextArea` component provides a Bulma-styled multi-line text input, supporting color, size, hover/focus/loading states, fixed size, and all Bulma helper props.",
60
+ "summary": "The `TextArea` component provides a Bulma-styled multi-line text input, supporting color, size, hover/focus/loading states, fixed size, and Bulma helper props.",
61
61
  "import": "import { TextArea, Field, Control } from '@allxsmith/bestax-bulma';",
62
62
  "sourceFile": "bulma-ui/src/form/TextArea.tsx",
63
63
  "rootClass": "textarea",
64
64
  "parts": [
65
65
  {
66
66
  "path": "TextArea",
67
- "summary": "The `TextArea` component provides a Bulma-styled multi-line text input, supporting color, size, hover/focus/loading states, fixed size, and all Bulma helper props.",
67
+ "summary": "The `TextArea` component provides a Bulma-styled multi-line text input, supporting color, size, hover/focus/loading states, fixed size, and Bulma helper props.",
68
68
  "component": null,
69
69
  "props": [
70
70
  {
@@ -281,7 +281,7 @@
281
281
  },
282
282
  {
283
283
  "path": "TextAreaBase",
284
- "summary": "Bulma TextArea component with full Bulma helper class support.",
284
+ "summary": "Bulma TextArea component with Bulma helper class support.",
285
285
  "component": null,
286
286
  "props": [
287
287
  {
@@ -35,7 +35,7 @@
35
35
  },
36
36
  {
37
37
  "title": "Advanced CSS Variables Usage",
38
- "code": "function 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}"
38
+ "code": "function RadiusTheme() {\n // `radius` is the border radius helper, as on most components, 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}"
39
39
  },
40
40
  {
41
41
  "title": "Advanced CSS Variables Usage",
@@ -120,7 +120,7 @@
120
120
  "name": "radius",
121
121
  "type": "(typeof validRadii)[number]",
122
122
  "default": null,
123
- "description": "Border radius helper, as on every other component: `radiusless` adds `is-radiusless` to the wrapper div. On a Theme it also sets `--bulma-radius` to 0, so what is inside the Theme loses its radius too. Under `isRoot` there is no wrapper for the class, and the variable is written at `:root`, which squares everything on the page that takes its radius from it. The sizes (`small`, `normal`, `large`, `rounded`) add their `has-radius-<value>` class to the wrapper div and set no variable, so they round the wrapper and leave what is inside it alone. Under `isRoot` there is no wrapper, so they do nothing, and say so in development. To change the radius of what is inside, set the variable through `bulmaVars` (`bulmaVars={{ '--bulma-radius': '6px' }}`). This prop used to write the variable for every value, so any other non-empty string still does, but that route is deprecated and logs a warning in development. A number or a boolean never produced a usable radius that way, and is now ignored as it is on every other component.",
123
+ "description": "Border radius helper, as on other components: `radiusless` adds `is-radiusless` to the wrapper div. On a Theme it also sets `--bulma-radius` to 0, so what is inside the Theme loses its radius too. Under `isRoot` there is no wrapper for the class, and the variable is written at `:root`, which squares everything on the page that takes its radius from it. The sizes (`small`, `normal`, `large`, `rounded`) add their `has-radius-<value>` class to the wrapper div and set no variable, so they round the wrapper and leave what is inside it alone. Under `isRoot` there is no wrapper, so they do nothing, and say so in development. To change the radius of what is inside, set the variable through `bulmaVars` (`bulmaVars={{ '--bulma-radius': '6px' }}`). This prop used to write the variable for every value, so any other non-empty string still does, but that route is deprecated and logs a warning in development. A number or a boolean never produced a usable radius that way, and is now ignored as it is on other components.",
124
124
  "required": false,
125
125
  "inherited": false,
126
126
  "deprecated": false
@@ -129,7 +129,7 @@
129
129
  "name": "columnGap",
130
130
  "type": "BulmaGapStep",
131
131
  "default": null,
132
- "description": "Column gap helper, as on every other component: a gap step adds `is-column-gap-<step>` to the wrapper div, which spaces the wrapper's own children when it is a flex or grid container. Under `isRoot` there is no wrapper, so it does nothing, and says so in development. It does not set `--bulma-column-gap`, the variable `Columns` reads for its gutters; set that through `bulmaVars` (`bulmaVars={{ '--bulma-column-gap': '1rem' }}`). Before `columnGap` was a helper prop, untyped JavaScript could pass it to Theme as that variable. A string that is not a gap step (`'1rem'`) still sets it, but that route is deprecated and logs a warning in development. A gap step does not: `columnGap=\"0\"` used to zero the gutters inside the Theme, and now adds `is-column-gap-0` to the wrapper instead.",
132
+ "description": "Column gap helper, as on other components: a gap step adds `is-column-gap-<step>` to the wrapper div, which spaces the wrapper's own children when it is a flex or grid container. Under `isRoot` there is no wrapper, so it does nothing, and says so in development. It does not set `--bulma-column-gap`, the variable `Columns` reads for its gutters; set that through `bulmaVars` (`bulmaVars={{ '--bulma-column-gap': '1rem' }}`). Before `columnGap` was a helper prop, untyped JavaScript could pass it to Theme as that variable. A string that is not a gap step (`'1rem'`) still sets it, but that route is deprecated and logs a warning in development. A gap step does not: `columnGap=\"0\"` used to zero the gutters inside the Theme, and now adds `is-column-gap-0` to the wrapper instead.",
133
133
  "required": false,
134
134
  "inherited": false,
135
135
  "deprecated": false
@@ -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` | **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."
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 most components, 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 other components, 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 other components, 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
  }
@@ -39,7 +39,7 @@
39
39
  },
40
40
  {
41
41
  "title": "Using with Components › Columns",
42
- "code": "import type { BulmaClassesProps } from '@allxsmith/bestax-bulma';\n\nfunction example() {\n function MyColumns({\n children,\n ...props\n }: BulmaClassesProps & React.ComponentPropsWithoutRef<'div'>) {\n const { bulmaHelperClasses, rest } = useBulmaClasses(props);\n return (\n <div className={classNames('columns', bulmaHelperClasses)} {...rest}>\n {children}\n </div>\n );\n }\n\n return (\n <MyColumns textAlign=\"centered\" textTransform=\"uppercase\">\n <div className=\"column\">\n <Notification color=\"primary\">Left</Notification>\n </div>\n <div className=\"column\">\n <Notification color=\"info\">Right</Notification>\n </div>\n </MyColumns>\n );\n}"
42
+ "code": "import type { BulmaClassesProps } from '@allxsmith/bestax-bulma';\n\nfunction example() {\n function MyColumns({\n children,\n className,\n ...props\n }: BulmaClassesProps & React.ComponentPropsWithoutRef<'div'>) {\n const { bulmaHelperClasses, rest } = useBulmaClasses(props);\n return (\n <div\n className={classNames('columns', bulmaHelperClasses, className)}\n {...rest}\n >\n {children}\n </div>\n );\n }\n\n return (\n <MyColumns textAlign=\"centered\" textTransform=\"uppercase\">\n <div className=\"column\">\n <Notification color=\"primary\">Left</Notification>\n </div>\n <div className=\"column\">\n <Notification color=\"info\">Right</Notification>\n </div>\n </MyColumns>\n );\n}"
43
43
  },
44
44
  {
45
45
  "title": "Using with Components › Card",
@@ -196,7 +196,7 @@
196
196
  "summary": "`useBulmaClasses` is a custom React hook that generates Bulma helper class strings from a set of props.",
197
197
  "import": "import { useBulmaClasses } from '@allxsmith/bestax-bulma';",
198
198
  "api": "```tsx\nconst { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses(props);\n\n// For an element whose own CSS makes it a flex container:\nconst flex = useBulmaClasses(props, { flexContainer: true });\n```\n\n- **props**: An object supporting all Bulma helper class props (see [Supported Props](https://bestax.io/docs/api/helpers/usebulmaclasses#supported-props)), plus any additional props. `backgroundColor` additionally accepts the six [`validSchemeColors`](https://bestax.io/docs/api/helpers/valid-values) values.\n- **options**: Optional. `{ flexContainer: true }` says the element is a flex container by its own stylesheet, so the flex container props (`flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`) emit their classes with no `display` prop. It adds no display class. [`Stack`](https://bestax.io/docs/api/layout/stack), [`Group`](https://bestax.io/docs/api/layout/group), [`Center`](https://bestax.io/docs/api/layout/center) and [`Flex`](https://bestax.io/docs/api/layout/flex) pass it. Passed through to `useFlexboxClasses`.\n- **bulmaHelperClasses**: A string of Bulma utility classes to be applied to your element.\n- **bulmaHelperStyles**: `React.CSSProperties | undefined` — an inline style for a scheme `backgroundColor` (see [Scheme Backgrounds](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles)); `undefined` for every other input. Apply it with [`mergeBulmaStyles`](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles) so a user `style` prop wins.\n- **rest**: An object of all remaining props (with helper props stripped out), suitable for spreading onto your component.",
199
- "doc": "# useBulmaClasses\n\n## Overview\n\n`useBulmaClasses` is a custom React hook that generates Bulma helper class strings from a set of props. It makes it easy to apply color, spacing, alignment, typography, flexbox, and other Bulma utility classes to your components in a type-safe, composable way. It also separates out any non-helper props for direct use on elements.\n\n---\n\n## Import\n\n```tsx\nimport { useBulmaClasses } from '@allxsmith/bestax-bulma';\n```\n\n---\n\n## Usage\n\n:::info Container components pad themselves\nContainer components like `Box`, `Notification`, `Message`, and `Card` ship with Bulma's standard, pleasant padding and stack with sensible default spacing. The examples below only add margin or padding props when spacing itself is what's being demonstrated.\n:::\n\n### Basic Example\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n p: '4',\n textAlign: 'centered',\n id: 'card1',\n });\n\n return JSON.stringify({ bulmaHelperClasses, rest });\n // bulmaHelperClasses: 'has-text-link has-background-primary p-4 has-text-centered'\n // rest: { id: 'card1' }\n}\n```\n\nApply to your component:\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n p: '4',\n textAlign: 'centered',\n id: 'card1',\n });\n\n return (\n <div className={classNames('custom-card', bulmaHelperClasses)} {...rest}>\n Card content\n </div>\n );\n}\n```\n\n---\n\n### Responsive Props\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n m: '2',\n textAlign: 'centered',\n viewport: 'mobile',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'has-text-link-mobile m-2-mobile has-text-centered-mobile'\n}\n```\n\n---\n\n### Touch and `-only` Viewports\n\nBeyond the five breakpoint props, `display`/`visibility` also take `touch` (mobile + tablet combined — the breakpoint most often used to hide desktop-only chrome) and the `-only` variants (`tablet-only`, `desktop-only`, `widescreen-only`), each isolating a single breakpoint band:\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n displayTouch: 'none',\n displayDesktopOnly: 'flex',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'is-hidden-touch is-flex-desktop-only'\n}\n```\n\n```tsx live\n<Buttons>\n <Button visibilityTouch=\"hidden\">Hidden on mobile + tablet</Button>\n <Button visibilityDesktopOnly=\"invisible\">Invisible on desktop only</Button>\n <Button>Always visible</Button>\n</Buttons>\n```\n\nThe legacy `viewport` prop widens to all nine values too, so `useBulmaClasses({ display: 'flex', viewport: 'touch' })` produces `is-flex-touch`. One exception: Bulma ships no `is-size-*` classes for the three `-only` bands, so `textSize` combined with a `tablet-only`/`desktop-only`/`widescreen-only` `viewport` degrades to the base `is-size-N` (rather than emitting a dead `is-size-N-tablet-only`); `touch` and the five breakpoints are unaffected.\n\n---\n\n### Grid Display\n\n`display` also accepts `'grid'`, emitting `is-grid`:\n\n```tsx live\n<Box display=\"grid\">\n <Notification color=\"primary\" m=\"1\">\n Cell 1\n </Notification>\n <Notification color=\"info\" m=\"1\">\n Cell 2\n </Notification>\n</Box>\n```\n\n---\n\n### With Flexbox Helpers\n\nFlexbox properties are divided into two categories:\n\n#### Container Properties\n\nThese properties apply to elements with `display: flex` or `display: inline-flex`, which on most components means a `display` prop of `flex` or `inline-flex` as well. [`Stack`](https://bestax.io/docs/api/layout/stack), [`Group`](https://bestax.io/docs/api/layout/group), [`Center`](https://bestax.io/docs/api/layout/center) and [`Flex`](https://bestax.io/docs/api/layout/flex) are flex containers already, so they take these with no `display` prop:\n\n- `flexDirection` - Direction of flex items\n- `flexWrap` - Whether items wrap\n- `justifyContent` - Alignment along main axis\n- `alignContent` - Alignment of wrapped lines\n- `alignItems` - Alignment along cross axis\n\n#### Item Properties\n\nThese properties apply to flex items (children of flex containers) and **do not require** the element itself to have `display: flex`:\n\n- `alignSelf` - Override container's alignItems for this item\n- `flexGrow` - How much the item should grow\n- `flexShrink` - How much the item should shrink\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n gap: '4',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'is-gap-4 is-flex is-flex-direction-column is-align-items-center is-justify-content-center'\n}\n```\n\nExample with flex items:\n\n```tsx\n// Container with display flex\n<Box display=\"flex\" alignItems=\"center\">\n {/* Items don't need display flex to use alignSelf, flexGrow, flexShrink */}\n <Button alignSelf=\"flex-start\">Start</Button>\n <Button alignSelf=\"center\" flexGrow=\"1\">\n Center & Grow\n </Button>\n <Button alignSelf=\"flex-end\" flexShrink=\"0\">\n End & No Shrink\n </Button>\n</Box>\n```\n\n---\n\n### Using with Components\n\n:::note These are illustrations, not replacements\nThe snippets below rebuild simplified components by hand purely to show how `useBulmaClasses` fits inside one. In a real app, use the library's own [Columns / Column](https://bestax.io/docs/api/columns) and [Card](https://bestax.io/docs/api/components/card) components — they already wire up `useBulmaClasses` (plus prefixes, modifiers, and more) for you.\n:::\n\n#### Columns\n\n`MyColumns` forwards all of its props to `useBulmaClasses` — the `textAlign` and `textTransform` helper props below flow through `props` into the hook (producing `has-text-centered is-uppercase`), while anything the hook doesn't recognize comes back in `rest` and lands on the `<div>`:\n\n```tsx live\nimport type { BulmaClassesProps } from '@allxsmith/bestax-bulma';\n\nfunction example() {\n function MyColumns({\n children,\n ...props\n }: BulmaClassesProps & React.ComponentPropsWithoutRef<'div'>) {\n const { bulmaHelperClasses, rest } = useBulmaClasses(props);\n return (\n <div className={classNames('columns', bulmaHelperClasses)} {...rest}>\n {children}\n </div>\n );\n }\n\n return (\n <MyColumns textAlign=\"centered\" textTransform=\"uppercase\">\n <div className=\"column\">\n <Notification color=\"primary\">Left</Notification>\n </div>\n <div className=\"column\">\n <Notification color=\"info\">Right</Notification>\n </div>\n </MyColumns>\n );\n}\n```\n\n#### Card\n\n```tsx live\nfunction example() {\n const props = {};\n\n const textColor = 'white';\n const bgColor = 'primary';\n const hasShadow = true;\n const className = 'custom-card';\n const children = <p>Making a custom card</p>;\n const p = '4';\n\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: textColor,\n backgroundColor: bgColor,\n p,\n ...props,\n });\n const cardClasses = classNames('card', className, bulmaHelperClasses, {\n 'is-shadowless': !hasShadow,\n });\n return (\n <div className={cardClasses} {...rest}>\n {children}\n </div>\n );\n}\n```\n\n---\n\n### Colors\n\nUse the `color` prop to apply Bulma color classes. Here, each button demonstrates a different color:\n\n```tsx live\n<Buttons>\n <Button color=\"primary\">Primary</Button>\n <Button color=\"link\">Link</Button>\n <Button color=\"info\">Info</Button>\n <Button color=\"success\">Success</Button>\n <Button color=\"warning\">Warning</Button>\n <Button color=\"danger\">Danger</Button>\n <Button color=\"black\">Black</Button>\n <Button color=\"white\">White</Button>\n</Buttons>\n```\n\n### Background Color\n\nComponents expose this helper as `bgColor` (the hook's own parameter is `backgroundColor`). Pair it with a text color that keeps the label readable on each background:\n\n```tsx live\n<Columns isMultiline>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" textColor=\"white\">\n Primary\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"link\" textColor=\"white\">\n Link\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"info\" textColor=\"white\">\n Info\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"success\" textColor=\"white\">\n Success\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"warning\" textColor=\"black\">\n Warning\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"danger\" textColor=\"white\">\n Danger\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"black\" textColor=\"white\">\n Black\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"white\" textColor=\"black\">\n White\n </Box>\n </Column>\n</Columns>\n```\n\n### Scheme Backgrounds and `bulmaHelperStyles`\n\nThe hook returns a third member, `bulmaHelperStyles`, alongside `bulmaHelperClasses` and `rest`. It is `undefined` for every input except a scheme `backgroundColor` (`scheme-main`, `scheme-main-bis`, `scheme-main-ter`, `scheme-invert`, `scheme-invert-bis`, `scheme-invert-ter`): Bulma ships no `has-background-scheme-*` classes, so those values emit no class and instead surface here as a dark-mode-safe inline style tracking Bulma's scheme CSS variables.\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({\n color: 'primary',\n backgroundColor: 'scheme-main-bis',\n id: 'band1',\n });\n\n return JSON.stringify({ bulmaHelperClasses, bulmaHelperStyles, rest });\n // bulmaHelperClasses: 'has-text-primary'\n // bulmaHelperStyles: { backgroundColor: 'var(--bulma-scheme-main-bis)' }\n // rest: { id: 'band1' }\n}\n```\n\nPut it on your element with `mergeBulmaStyles`, which merges the helper style with a user-supplied `style` prop (the user style wins, and the result is `undefined` when both are absent so the DOM stays untouched):\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({\n backgroundColor: 'scheme-main-bis',\n p: '4',\n });\n\n return (\n <div\n {...rest}\n className={classNames('custom-band', bulmaHelperClasses)}\n style={mergeBulmaStyles(bulmaHelperStyles, undefined)}\n >\n A dark-mode-safe surface with zero custom CSS\n </div>\n );\n}\n```\n\nIn a real component, destructure `style` out of your own props and pass it as `mergeBulmaStyles`'s second argument (as `Section` does) — if `style` stays in the object you spread, whichever comes later in JSX silently replaces the other instead of merging.\n\n### Color Shade\n\n`colorShade` refines the **text color** — it pairs with the hook's `color` prop (exposed as `textColor` on components, where `color` is the component's own modifier). Here, each line steps through the primary palette:\n\n```tsx live\n<>\n <Paragraph textColor=\"primary\" colorShade=\"10\" textWeight=\"semibold\">\n Primary 10\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"30\" textWeight=\"semibold\">\n Primary 30\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"60\" textWeight=\"semibold\">\n Primary 60\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"90\" textWeight=\"semibold\">\n Primary 90\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"invert\" textWeight=\"semibold\">\n Primary Invert\n </Paragraph>\n</>\n```\n\n### Background Color Shade\n\nBackground shades use their own prop: `backgroundColorShade` pairs with `backgroundColor`, independently of `colorShade` (which pairs with the text color). Low shade numbers are dark and high numbers are light, so dark shades get light text and light shades get dark text to keep each label readable:\n\n```tsx live\n<Columns isMultiline>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"10\" textColor=\"white\">\n Primary 10\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"30\" textColor=\"white\">\n Primary 30\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"60\" textColor=\"black\">\n Primary 60\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"90\" textColor=\"black\">\n Primary 90\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"invert\" textColor=\"white\">\n Primary Invert\n </Box>\n </Column>\n</Columns>\n```\n\nBecause the two shade props are independent, you can shade the text and the background at the same time — a dark background shade with a light text shade of the same color reads well in both themes:\n\n```tsx live\n<Box\n bgColor=\"primary\"\n backgroundColorShade=\"15\"\n textColor=\"primary\"\n colorShade=\"85\"\n>\n Primary text shade 85 on a primary background shade 15\n</Box>\n```\n\n### Margin\n\nUse margin props to add spacing. Here, margin is applied to buttons, and to a row of buttons using the `Buttons` component:\n\n```tsx live\n<>\n <Buttons>\n <Button>Left</Button>\n <Button m=\"4\">Margin 4</Button>\n <Button>Right</Button>\n </Buttons>\n <Buttons mt=\"5\" mb=\"5\">\n <Button>Top/Bottom Margin</Button>\n <Button>Row 2</Button>\n </Buttons>\n</>\n```\n\n### Gap\n\n`gap` puts space between the children of a flex or grid container, and `columnGap` and `rowGap` set one axis. Each whole step is 0.5rem, so `gap=\"2\"` is 1rem and `gap=\"8\"` is 4rem, with half steps such as `\"1.5\"` between them. That is not the margin scale, where `m=\"2\"` is 0.5rem. A step can also be written as a number (`gap={2}`).\n\nThe helpers set the CSS `gap`, which does nothing unless the element lays its children out as flex or grid. Pair them with `display=\"flex\"` or `display=\"grid\"`, or use them on a component that already is one, such as `Buttons` or `Tags`, where they replace the spacing Bulma gives it:\n\n```tsx live\n<>\n <Block display=\"flex\" flexWrap=\"wrap\" gap=\"2\">\n <Tag color=\"primary\">One</Tag>\n <Tag color=\"primary\">Two</Tag>\n <Tag color=\"primary\">Three</Tag>\n </Block>\n <Block display=\"flex\" flexDirection=\"column\" gap=\"0.5\">\n <Tag color=\"info\">A column</Tag>\n <Tag color=\"info\">with a half step</Tag>\n </Block>\n <Buttons gap=\"1\">\n <Button>Tighter</Button>\n <Button>than Bulma's</Button>\n <Button>default</Button>\n </Buttons>\n</>\n```\n\n`gapless` removes the gap, the shortcut for `gap=\"0\"`; when both are set, `gap` wins. `columnGap` and `rowGap` win on their own axis over `gap` and `gapless`, so `gap=\"4\" rowGap=\"1\"` spaces the columns 2rem apart and the rows 0.5rem.\n\n`Grid` takes `gap`, `columnGap` and `rowGap` as its own props and renders the same classes. `Columns` keeps its own `gap`, the columns gutter, which takes whole steps; see [Columns](https://bestax.io/docs/api/columns).\n\n### Text Size\n\nApply `textSize` to Notifications to illustrate different sizes:\n\n```tsx live\n<>\n <Notification textSize=\"1\">Size 1</Notification>\n <Notification textSize=\"3\">Size 3</Notification>\n <Notification textSize=\"5\">Size 5</Notification>\n <Notification textSize=\"7\">Size 7</Notification>\n</>\n```\n\n### Text Align\n\nApply `textAlign` to a Box to illustrate text alignment:\n\n```tsx live\n<>\n <Box textAlign=\"centered\">Centered text</Box>\n <Box textAlign=\"right\">Right aligned text</Box>\n <Box textAlign=\"left\">Left aligned text</Box>\n</>\n```\n\n### Text Transform\n\nApply `textTransform` to a Content tag with a paragraph of the Declaration of Independence:\n\n```tsx live\n<>\n <Box>\n <Content textTransform=\"uppercase\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"lowercase\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"capitalized\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"italic\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Text Weight\n\nApply `textWeight` to Content tags to illustrate different font weights:\n\n```tsx live\n<>\n <Box>\n <Content textWeight=\"light\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"normal\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"medium\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"bold\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Font Family\n\nUse Content blocks with different font families:\n\n```tsx live\n<>\n <Box>\n <Content fontFamily=\"sans-serif\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"monospace\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"primary\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"secondary\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"code\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Visibility\n\nShow three buttons, one hidden, one screen-reader only:\n\n```tsx live\n<Buttons>\n <Button visibility=\"hidden\">Hidden</Button>\n <Button visibility=\"sr-only\">Screen Reader Only</Button>\n <Button>Visible</Button>\n</Buttons>\n```\n\n### Overflow\n\nShow a Box with clipped overflow:\n\n```tsx live\n<Box overflow=\"clipped\" style={{ width: 200, height: 50 }}>\n This is a very long line of text that will be clipped and not overflow the\n box.\n</Box>\n```\n\n`overflow` also takes the CSS keywords Bulma has helpers for (`auto`, `clip`, `hidden`, `scroll`, `visible`), and `overflowX` and `overflowY` set one axis. Beside `overflow`, an axis prop wins on its own axis and `overflow` sets the other, with `clipped` counting as `hidden`, so `overflow=\"hidden\" overflowY=\"auto\"` clips sideways and scrolls down.\n\nHere an aspect ratio fixes the height and the list scrolls inside it. A region that scrolls needs to be reachable from the keyboard, so the example gives it `tabIndex={0}`, a `region` role and a name.\n\n```tsx live\n<Box\n aspectRatio=\"3by1\"\n overflowY=\"auto\"\n tabIndex={0}\n role=\"region\"\n aria-label=\"Scrolling list\"\n>\n {Array.from({ length: 20 }, (_, i) => (\n <p key={i}>Line {i + 1} of a list longer than the box.</p>\n ))}\n</Box>\n```\n\nWithout `overflowY` the box would grow to fit the list, because an aspect ratio gives way to content that does not fit.\n\n### Overlay\n\n`overlay` is `position: absolute` with `top`, `right`, `bottom` and `left` at 0, so it covers the nearest positioned ancestor. The [position](https://bestax.io/docs/api/helpers/usebulmaclasses#position) helpers set `position` with `!important`, so a `pos` or `relative` beside `overlay` replaces the `absolute` and keeps the zero offsets. `overlay pos=\"fixed\"` covers the viewport instead. `sticky`, `relative` and `static` put the element back in the normal flow, where it covers nothing, and a sticky one sticks at every edge of its scroll container.\n\nShow an overlay (toggle with button click):\n\n```tsx\nfunction OverlayExample() {\n const [show, setShow] = useState(false);\n return (\n <Box overlay={show}>\n <Button onClick={() => setShow(s => !s)}>\n {show ? 'Hide Overlay' : 'Show Overlay'}\n </Button>\n </Box>\n );\n}\n```\n\n### Interaction\n\nShow text in a Box with `unselectable`, and another Box with `clickable`. `clickable` adds no role, tab stop or keyboard handling, so an element people click should still be a `<button>` or a link:\n\n```tsx live\n<>\n <Box interaction=\"unselectable\">This text cannot be selected.</Box>\n <Box interaction=\"clickable\">This box shows a pointer cursor.</Box>\n</>\n```\n\n### Cursor\n\nUse the `cursor` prop to set the cursor style. `'pointer'` reuses Bulma's `is-clickable` class, while `'help'` uses the project-level `is-cursor-help` class:\n\n```tsx live\n<>\n <Box cursor=\"pointer\">Cursor: pointer (uses is-clickable)</Box>\n <Box cursor=\"help\">Cursor: help</Box>\n</>\n```\n\n### Radius\n\n`radiusless` removes the radius; `small`, `normal`, `large` and `rounded` set one from Bulma's radius scale:\n\n```tsx live\n<Buttons>\n <Button radius=\"radiusless\">Radiusless</Button>\n <Button radius=\"small\">Small</Button>\n <Button radius=\"normal\">Normal</Button>\n <Button radius=\"large\">Large</Button>\n <Button radius=\"rounded\">Rounded</Button>\n</Buttons>\n```\n\nThe class goes on the component's root element, so where an inner element draws the radius, such as the `<img>` inside `Image`, that element keeps its own. The sizes are not `!important`, unlike `radiusless`, so a component rule more specific than one class still wins: an `isRounded` control stays a pill, and a joined addon keeps its square inner corners.\n\n### Shadowless\n\nShow a Box with `shadowless`:\n\n```tsx live\n<Box shadow=\"shadowless\">This box has no shadow.</Box>\n```\n\n### ClassName\n\nShow a Message with a custom className:\n\n```tsx live\n<Message className=\"custom-message\">\n This message uses a custom className.\n</Message>\n```\n\n### Clearfix\n\nShow containers with and without clearfix to demonstrate the importance of clearing floated elements:\n\n```tsx live\n<>\n <Box>\n <Title size=\"6\">Without clearfix (container collapses)</Title>\n <Notification color=\"danger\">\n <Button float=\"left\" color=\"primary\">\n Left\n </Button>\n <Button float=\"right\" color=\"danger\">\n Right\n </Button>\n </Notification>\n </Box>\n\n <Box>\n <Title size=\"6\">With clearfix (container wraps its floats)</Title>\n <Notification color=\"success\" clearfix>\n <Button float=\"left\" color=\"primary\">\n Left\n </Button>\n <Button float=\"right\" color=\"danger\">\n Right\n </Button>\n </Notification>\n </Box>\n</>\n```\n\n### Position\n\n`pos` sets CSS `position`: `absolute`, `fixed`, `relative`, `static` or `sticky`. It is named `pos` because several components already have a `position` prop of their own, for where they place a popup or a toast. `relative` is the older shortcut for `pos=\"relative\"` and still works; when both are set, `pos` wins. Beside `overlay`, a `pos` or `relative` replaces the overlay's `absolute` and keeps its zero offsets; see [Overlay](https://bestax.io/docs/api/helpers/usebulmaclasses#overlay).\n\nShow a container with relative positioning that provides context for an absolutely positioned child. The helpers set `position` and nothing else, so the child keeps its `top` and `right` offsets inline:\n\n```tsx live\n<Notification pos=\"relative\" pb=\"6\" color=\"info\">\n <Span>This container has position: relative</Span>\n <Tag\n color=\"primary\"\n size=\"medium\"\n pos=\"absolute\"\n style={{ top: '1rem', right: '1rem' }}\n >\n Absolutely positioned child\n </Tag>\n</Notification>\n```\n\n`pos=\"sticky\"` needs an offset in the same way, and does nothing until it has one.\n\n### Aspect Ratio\n\n`aspectRatio` fixes an element's width-to-height ratio to one of Bulma's ratios, such as `1by1`, `4by3` or `16by9`, or a portrait one such as `9by16`. The full set is in [Supported Props](https://bestax.io/docs/api/helpers/usebulmaclasses#supported-props). The height follows the width:\n\n```tsx live\n<Columns>\n <Column>\n <Notification color=\"primary\" aspectRatio=\"1by1\">\n 1by1\n </Notification>\n </Column>\n <Column>\n <Notification color=\"info\" aspectRatio=\"4by3\">\n 4by3\n </Notification>\n </Column>\n <Column>\n <Notification color=\"success\" aspectRatio=\"16by9\">\n 16by9\n </Notification>\n </Column>\n</Columns>\n```\n\nOn `Image`, use its own `size` ratios instead, which also fit the picture to the box.\n\n---\n\n### Skeleton Examples\n\nThe `skeleton` prop applies Bulma's skeleton loading effect. [Skeleton's accessibility notes](https://bestax.io/docs/api/elements/skeleton#accessibility) cover it too, reduced motion and forced colors included. In short, hide a skeleton from screen readers, and take a skeleton control out of the tab order. Here are examples for each component:\n\n#### Skeleton Button\n\n```tsx live\n<Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton Button\n</Button>\n```\n\n#### Skeleton Buttons Group\n\n```tsx live\n<Buttons>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n</Buttons>\n```\n\n#### Skeleton Icon\n\n```tsx live\n<Icon name=\"star\" skeleton />\n```\n\n#### Skeleton Image\n\n```tsx live\n<Image skeleton src=\"/img/react-logo.png\" alt=\"Skeleton image\" size=\"128x128\" />\n```\n\n#### Skeleton Notification\n\n```tsx live\n<Notification skeleton aria-hidden=\"true\">\n Skeleton notification message.\n</Notification>\n```\n\n#### Skeleton Tag\n\n```tsx live\n<Tag skeleton aria-hidden=\"true\">\n Skeleton Tag\n</Tag>\n```\n\n#### Skeleton Title\n\n```tsx live\n<Title skeleton aria-hidden=\"true\" size=\"2\">\n Skeleton Title\n</Title>\n```\n\n#### Skeleton SubTitle\n\n```tsx live\n<SubTitle skeleton aria-hidden=\"true\" size=\"4\">\n Skeleton SubTitle\n</SubTitle>\n```\n\n#### Skeleton Input\n\n```tsx live\n<Input skeleton tabIndex={-1} aria-hidden=\"true\" placeholder=\"Skeleton Input\" />\n```\n\n#### Skeleton TextArea\n\n```tsx live\n<TextArea\n skeleton\n tabIndex={-1}\n aria-hidden=\"true\"\n placeholder=\"Skeleton TextArea\"\n rows={3}\n/>\n```\n\n---\n\n## API\n\n```tsx\nconst { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses(props);\n\n// For an element whose own CSS makes it a flex container:\nconst flex = useBulmaClasses(props, { flexContainer: true });\n```\n\n- **props**: An object supporting all Bulma helper class props (see [Supported Props](https://bestax.io/docs/api/helpers/usebulmaclasses#supported-props)), plus any additional props. `backgroundColor` additionally accepts the six [`validSchemeColors`](https://bestax.io/docs/api/helpers/valid-values) values.\n- **options**: Optional. `{ flexContainer: true }` says the element is a flex container by its own stylesheet, so the flex container props (`flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`) emit their classes with no `display` prop. It adds no display class. [`Stack`](https://bestax.io/docs/api/layout/stack), [`Group`](https://bestax.io/docs/api/layout/group), [`Center`](https://bestax.io/docs/api/layout/center) and [`Flex`](https://bestax.io/docs/api/layout/flex) pass it. Passed through to `useFlexboxClasses`.\n- **bulmaHelperClasses**: A string of Bulma utility classes to be applied to your element.\n- **bulmaHelperStyles**: `React.CSSProperties | undefined` — an inline style for a scheme `backgroundColor` (see [Scheme Backgrounds](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles)); `undefined` for every other input. Apply it with [`mergeBulmaStyles`](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles) so a user `style` prop wins.\n- **rest**: An object of all remaining props (with helper props stripped out), suitable for spreading onto your component.\n\n---\n\n## Composable Mini-Hooks\n\n`useBulmaClasses` remains the everything-hook — it is what every bestax-bulma component uses internally, and it covers the full helper prop surface with zero behavior change. If you are building a custom component that only needs a slice of that surface, you can reach for one of seven composable mini hooks instead. Each mini hook accepts just its own group of props and returns a plain class string (except `useColorStyles`, which returns an inline style object or `undefined`), which you can combine with the [`classNames`](https://bestax.io/docs/api/helpers/classnames) utility.\n\n| Hook | Props Covered | Returns |\n| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `useColorClasses` | `color`, `colorShade`, `backgroundColor`, `backgroundColorShade` | Text and background color classes, including palette shades |\n| `useColorStyles` | `backgroundColor` (scheme values) | `{ backgroundColor: 'var(--bulma-scheme-*)' }` for a scheme background, `undefined` otherwise — the source of `bulmaHelperStyles` |\n| `useSpacingClasses` | `m`, `mt`, `mr`, `mb`, `ml`, `mx`, `my`, `p`, `pt`, `pr`, `pb`, `pl`, `px`, `py`, `gap`, `columnGap`, `rowGap`, `gapless` | Margin, padding and gap classes |\n| `useTypographyClasses` | `textSize`, `textAlign`, `textTransform`, `textWeight`, `fontFamily`, `viewport`, plus `textSize{Mobile..Fullhd}`, `textAlign{Mobile..Fullhd}` | Typography classes, including responsive size/alignment variants |\n| `useVisibilityClasses` | `display`, `visibility`, `viewport`, plus `display{Mobile,Tablet,TabletOnly,Touch,Desktop,DesktopOnly,Widescreen,WidescreenOnly,Fullhd}`, `visibility{Mobile,Tablet,TabletOnly,Touch,Desktop,DesktopOnly,Widescreen,WidescreenOnly,Fullhd}` | Display and visibility classes (this hook owns all display emission) |\n| `useFlexboxClasses` | `flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`, `alignSelf`, `flexGrow`, `flexShrink` | Flexbox classes; container classes are only emitted when a `display`/`display{Viewport}` prop is `flex`/`inline-flex` or the second argument is `{ flexContainer: true }`, item classes (`alignSelf`, `flexGrow`, `flexShrink`) always emit |\n| `useOtherClasses` | `float`, `overflow`, `overflowX`, `overflowY`, `overlay`, `interaction`, `cursor`, `radius`, `shadow`, `responsive`, `skeleton`, `clearfix`, `pos`, `relative`, `fullHeight`, `aspectRatio` | Miscellaneous utility classes |\n\nAll seven hooks (plus `classNames` and `mergeBulmaStyles`) are exported from the package root:\n\n```tsx\nimport {\n useColorClasses,\n useColorStyles,\n useSpacingClasses,\n classNames,\n mergeBulmaStyles,\n} from '@allxsmith/bestax-bulma';\n```\n\nHere is a small custom component that only needs color and spacing helpers:\n\n```tsx live\nimport type { BulmaClassesProps } from '@allxsmith/bestax-bulma';\n\nfunction example() {\n function PriceTag({\n color,\n backgroundColor,\n backgroundColorShade,\n m,\n children,\n }: BulmaClassesProps & { children?: React.ReactNode }) {\n const colorClasses = useColorClasses({\n color,\n backgroundColor,\n backgroundColorShade,\n });\n const spacingClasses = useSpacingClasses({ m });\n return (\n <span className={classNames('tag', colorClasses, spacingClasses)}>\n {children}\n </span>\n );\n }\n\n return (\n <div>\n <PriceTag color=\"white\" backgroundColor=\"success\" m=\"2\">\n $19.99\n </PriceTag>\n <PriceTag\n color=\"white\"\n backgroundColor=\"danger\"\n backgroundColorShade=\"dark\"\n m=\"2\"\n >\n $49.99\n </PriceTag>\n </div>\n );\n}\n```\n\n:::note useFlexboxClasses and display\n\n`useFlexboxClasses` only emits container classes (`flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`) when a `display` or `display{Viewport}` prop is `flex` or `inline-flex` — it reads those display props for gating but never emits the display class itself. Pair it with `useVisibilityClasses` (which owns display emission), or just use `useBulmaClasses`.\n\nFor an element whose own stylesheet makes it a flex container, pass `{ flexContainer: true }` as the second argument (to either hook), and the container classes emit with no `display` prop:\n\n```tsx\nconst flexboxClasses = useFlexboxClasses(\n { alignItems: 'center' },\n { flexContainer: true }\n);\n// 'is-align-items-center'\n```\n\n:::\n\n---\n\n## Supported Props\n\nBelow is the full list of supported props, derived from the `BulmaClassesProps` TypeScript definition:\n\n| Prop | Type / Example Value | Effect / Example Class |\n| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |\n| `color` | `'primary'`, `'link'`, `'info'`, `'success'`, `'warning'`, `'danger'`, `'black'`, `'black-bis'`, `'black-ter'`, `'grey-darker'`, `'grey-dark'`, `'grey'`, `'grey-light'`, `'grey-lighter'`, `'white'`, `'white-bis'`, `'white-ter'`, `'light'`, `'dark'`, `'inherit'`, `'current'` | `has-text-primary`, `has-text-grey-dark`, `has-text-inherit` |\n| `backgroundColor` | Same as `color`, plus the scheme values `'scheme-main'`, `'scheme-main-bis'`, `'scheme-main-ter'`, `'scheme-invert'`, `'scheme-invert-bis'`, `'scheme-invert-ter'` | `has-background-warning`; scheme values emit no class — they return as the `bulmaHelperStyles` inline style |\n| `colorShade` | `'00'`, `'05'`, `'10'`, `'15'`, `'20'`, `'25'`, `'30'`, `'35'`, `'40'`, `'45'`, `'50'`, `'55'`, `'60'`, `'65'`, `'70'`, `'75'`, `'80'`, `'85'`, `'90'`, `'95'`, `'invert'`, `'light'`, `'dark'`, `'soft'`, `'bold'`, `'on-scheme'` | `has-text-primary-25` |\n| `backgroundColorShade` | `'00'`, `'05'`, `'10'`, `'15'`, `'20'`, `'25'`, `'30'`, `'35'`, `'40'`, `'45'`, `'50'`, `'55'`, `'60'`, `'65'`, `'70'`, `'75'`, `'80'`, `'85'`, `'90'`, `'95'`, `'invert'`, `'light'`, `'dark'`, `'soft'`, `'bold'`, `'on-scheme'` | `has-background-info-dark` |\n| `m` | `'0'..'6'`, `'auto'` | `m-4`, `m-auto` |\n| `mt` | `'0'..'6'`, `'auto'` | `mt-2` |\n| `mr` | `'0'..'6'`, `'auto'` | `mr-6` |\n| `mb` | `'0'..'6'`, `'auto'` | `mb-0` |\n| `ml` | `'0'..'6'`, `'auto'` | `ml-auto` |\n| `mx` | `'0'..'6'`, `'auto'` | `mx-2` |\n| `my` | `'0'..'6'`, `'auto'` | `my-5` |\n| `p` | `'0'..'6'`, `'auto'` | `p-3`, `p-auto` |\n| `pt` | `'0'..'6'`, `'auto'` | `pt-1` |\n| `pr` | `'0'..'6'`, `'auto'` | `pr-6` |\n| `pb` | `'0'..'6'`, `'auto'` | `pb-0` |\n| `pl` | `'0'..'6'`, `'auto'` | `pl-4` |\n| `px` | `'0'..'6'`, `'auto'` | `px-1` |\n| `py` | `'0'..'6'`, `'auto'` | `py-6` |\n| `gap` | `'0'..'8'` in half steps, or a number | `is-gap-1.5` |\n| `columnGap` | Same as `gap` | `is-column-gap-4` |\n| `rowGap` | Same as `gap` | `is-row-gap-0.5` |\n| `gapless` | `true` | `is-gapless` |\n| `textSize` | `'1'..'7'` | `is-size-3` |\n| `textAlign` | `'centered'`, `'justified'`, `'left'`, `'right'` | `has-text-centered` |\n| `textTransform` | `'capitalized'`, `'lowercase'`, `'uppercase'`, `'italic'` | `is-uppercase`, `is-italic` |\n| `textWeight` | `'light'`, `'normal'`, `'medium'`, `'semibold'`, `'bold'` | `has-text-weight-bold` |\n| `fontFamily` | `'sans-serif'`, `'monospace'`, `'primary'`, `'secondary'`, `'code'` | `is-family-monospace` |\n| `display` | `'block'`, `'flex'`, `'inline'`, `'inline-block'`, `'inline-flex'`, `'grid'`, `'none'` | `is-flex`, `is-inline-block`, `is-grid`, `is-hidden` |\n| `visibility` | `'hidden'`, `'sr-only'`, `'invisible'` | `is-hidden`, `is-sr-only`, `is-invisible` |\n| `flexDirection` | `'row'`, `'row-reverse'`, `'column'`, `'column-reverse'` | `is-flex-direction-row` |\n| `flexWrap` | `'nowrap'`, `'wrap'`, `'wrap-reverse'` | `is-flex-wrap-nowrap` |\n| `justifyContent` | `'flex-start'`, `'flex-end'`, `'center'`, `'space-between'`, `'space-around'`, `'space-evenly'`, `'start'`, `'end'`, `'left'`, `'right'` | `is-justify-content-center` |\n| `alignContent` | `'flex-start'`, `'flex-end'`, `'center'`, `'space-between'`, `'space-around'`, `'space-evenly'`, `'stretch'` | `is-align-content-stretch` |\n| `alignItems` | `'stretch'`, `'flex-start'`, `'flex-end'`, `'center'`, `'baseline'`, `'start'`, `'end'` | `is-align-items-center` |\n| `alignSelf` | `'auto'`, `'flex-start'`, `'flex-end'`, `'center'`, `'baseline'`, `'stretch'` | `is-align-self-center` |\n| `flexGrow` | `'0'`, `'1'`, `'2'`, `'3'`, `'4'`, `'5'` | `is-flex-grow-1` |\n| `flexShrink` | `'0'`, `'1'`, `'2'`, `'3'`, `'4'`, `'5'` | `is-flex-shrink-0` |\n| `float` | `'left'`, `'right'` | `is-pulled-left`, `is-pulled-right` |\n| `overflow` | `'clipped'`, `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-clipped`, `is-overflow-auto` |\n| `overflowX` | `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-overflow-x-auto` |\n| `overflowY` | `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-overflow-y-scroll` |\n| `overlay` | `true` | `is-overlay` |\n| `interaction` | `'unselectable'`, `'clickable'` | `is-unselectable` |\n| `cursor` | `'pointer'`, `'help'` | `is-clickable`, `is-cursor-help` |\n| `radius` | `'radiusless'`, `'small'`, `'normal'`, `'large'`, `'rounded'` | `is-radiusless`, `has-radius-large` |\n| `shadow` | `'shadowless'` | `is-shadowless` |\n| `responsive` | `'mobile'`, `'narrow'` | `is-mobile`, `is-narrow` |\n| `viewport` | `'mobile'`, `'tablet'`, `'tablet-only'`, `'touch'`, `'desktop'`, `'desktop-only'`, `'widescreen'`, `'widescreen-only'`, `'fullhd'` | Adds viewport suffix to supported properties |\n| `skeleton` | `true` | `is-skeleton` |\n| `clearfix` | `true` | `is-clearfix` |\n| `pos` | `'absolute'`, `'fixed'`, `'relative'`, `'static'`, `'sticky'` | `is-position-sticky` |\n| `relative` | `true` | `is-relative` (ignored when `pos` is set) |\n| `fullHeight` | `true` | `is-full-height` |\n| `aspectRatio` | `'1by1'`, `'5by4'`, `'4by3'`, `'3by2'`, `'5by3'`, `'16by9'`, `'2by1'`, `'3by1'`, `'4by5'`, `'3by4'`, `'2by3'`, `'3by5'`, `'9by16'`, `'1by2'`, `'1by3'` | `is-aspect-ratio-16by9` |\n\n### Viewport-Specific Properties\n\nThe following properties allow you to set different values for each viewport breakpoint:\n\n| Prop | Type / Example Value | Effect / Example Class |\n| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |\n| `displayMobile` | `'block'`, `'flex'`, `'inline'`, `'grid'`, `'none'`, etc. | `is-block-mobile`, `is-flex-mobile`, `is-hidden-mobile` |\n| `displayTablet` | Same as above | `is-block-tablet`, `is-flex-tablet`, `is-hidden-tablet` |\n| `displayTabletOnly` | Same as above | `is-block-tablet-only`, `is-flex-tablet-only`, `is-hidden-tablet-only` |\n| `displayTouch` | Same as above | `is-block-touch`, `is-flex-touch`, `is-hidden-touch` |\n| `displayDesktop` | Same as above | `is-block-desktop`, `is-flex-desktop`, `is-hidden-desktop` |\n| `displayDesktopOnly` | Same as above | `is-block-desktop-only`, `is-flex-desktop-only`, `is-hidden-desktop-only` |\n| `displayWidescreen` | Same as above | `is-block-widescreen`, `is-flex-widescreen` |\n| `displayWidescreenOnly` | Same as above | `is-block-widescreen-only`, `is-flex-widescreen-only` |\n| `displayFullhd` | Same as above | `is-block-fullhd`, `is-flex-fullhd` |\n| `textSizeMobile` | `'1'..'7'` | `is-size-3-mobile`, `is-size-5-mobile` |\n| `textSizeTablet` | `'1'..'7'` | `is-size-3-tablet`, `is-size-5-tablet` |\n| `textSizeDesktop` | `'1'..'7'` | `is-size-3-desktop`, `is-size-5-desktop` |\n| `textSizeWidescreen` | `'1'..'7'` | `is-size-3-widescreen`, `is-size-5-widescreen` |\n| `textSizeFullhd` | `'1'..'7'` | `is-size-3-fullhd`, `is-size-5-fullhd` |\n| `textAlignMobile` | `'centered'`, `'left'`, `'right'`, `'justified'` | `has-text-centered-mobile`, `has-text-left-mobile` |\n| `textAlignTablet` | Same as above | `has-text-centered-tablet`, `has-text-left-tablet` |\n| `textAlignDesktop` | Same as above | `has-text-centered-desktop`, `has-text-left-desktop` |\n| `textAlignWidescreen` | Same as above | `has-text-centered-widescreen`, `has-text-left-widescreen` |\n| `textAlignFullhd` | Same as above | `has-text-centered-fullhd`, `has-text-left-fullhd` |\n| `visibilityMobile` | `'hidden'`, `'sr-only'`, `'invisible'` | `is-hidden-mobile`, `is-sr-only-mobile`, `is-invisible-mobile` |\n| `visibilityTablet` | Same as above | `is-hidden-tablet`, `is-sr-only-tablet`, `is-invisible-tablet` |\n| `visibilityTabletOnly` | Same as above | `is-hidden-tablet-only`, `is-sr-only-tablet-only`, `is-invisible-tablet-only` |\n| `visibilityTouch` | Same as above | `is-hidden-touch`, `is-sr-only-touch`, `is-invisible-touch` |\n| `visibilityDesktop` | Same as above | `is-hidden-desktop`, `is-sr-only-desktop`, `is-invisible-desktop` |\n| `visibilityDesktopOnly` | Same as above | `is-hidden-desktop-only`, `is-sr-only-desktop-only`, `is-invisible-desktop-only` |\n| `visibilityWidescreen` | Same as above | `is-hidden-widescreen`, `is-sr-only-widescreen`, `is-invisible-widescreen` |\n| `visibilityWidescreenOnly` | Same as above | `is-hidden-widescreen-only`, `is-sr-only-widescreen-only`, `is-invisible-widescreen-only` |\n| `visibilityFullhd` | Same as above | `is-hidden-fullhd`, `is-sr-only-fullhd`, `is-invisible-fullhd` |\n| `responsive` | `'mobile'`, `'narrow'` | `is-mobile`, `is-narrow` |\n| `clearfix` | `true` | `is-clearfix` |\n| `relative` | `true` | `is-relative` |\n| `viewport` | `'mobile'`, `'tablet'`, `'tablet-only'`, `'touch'`, `'desktop'`, `'desktop-only'`, `'widescreen'`, `'widescreen-only'`, `'fullhd'` | Adds suffix, e.g. `-mobile`, `-desktop`, `-touch`, `-tablet-only` |\n\nThe viewport properties' ranges overlap: the tablet, desktop and widescreen ones run from their\nbreakpoint up, the touch ones cover mobile and tablet, and an `Only` property sits inside the plain\none for its breakpoint. Where two display properties overlap, Bulma's stylesheet picks the winner,\nnot the breakpoint, so `displayTablet=\"none\"` keeps an element hidden on desktop whatever\n`displayDesktop` asks. The\n[Visibility guide](https://bestax.io/docs/guides/helpers/visibility#viewport-specific-display-properties) has the\nrule and the `Only` properties that set one range alone.\n\n---\n\n### Full TypeScript Definition\n\n`BulmaClassesProps` is composed from the six group interfaces, each of which is also exported (along with the shared `BulmaViewportProps` and `BulmaDisplayProps` types) and accepted by the corresponding [mini hook](https://bestax.io/docs/api/helpers/usebulmaclasses#composable-mini-hooks). The hook's parameter is the widened `BulmaClassesPropsWithScheme` — identical to `BulmaClassesProps` except that `backgroundColor` also accepts the six `validSchemeColors` values (`BulmaColorPropsWithScheme` is the color-group equivalent, accepted by `useColorClasses` and `useColorStyles`):\n\n```ts\nexport interface BulmaClassesProps\n extends\n BulmaColorProps,\n BulmaSpacingProps,\n BulmaTypographyProps,\n BulmaVisibilityProps,\n BulmaFlexboxProps,\n BulmaOtherProps {}\n\nexport type BulmaViewportProps =\n | 'mobile'\n | 'tablet'\n | 'tablet-only'\n | 'touch'\n | 'desktop'\n | 'desktop-only'\n | 'widescreen'\n | 'widescreen-only'\n | 'fullhd';\n\nexport type BulmaDisplayProps =\n | 'block'\n | 'flex'\n | 'inline'\n | 'inline-block'\n | 'inline-flex'\n | 'grid'\n | 'none';\n\nexport interface BulmaColorProps {\n color?:\n | 'primary'\n | 'link'\n | 'info'\n | 'success'\n | 'warning'\n | 'danger'\n | 'black'\n | 'black-bis'\n | 'black-ter'\n | 'grey-darker'\n | 'grey-dark'\n | 'grey'\n | 'grey-light'\n | 'grey-lighter'\n | 'white'\n | 'white-bis'\n | 'white-ter'\n | 'light'\n | 'dark'\n | 'inherit'\n | 'current';\n colorShade?:\n | '00'\n | '05'\n | '10'\n | '15'\n | '20'\n | '25'\n | '30'\n | '35'\n | '40'\n | '45'\n | '50'\n | '55'\n | '60'\n | '65'\n | '70'\n | '75'\n | '80'\n | '85'\n | '90'\n | '95'\n | 'invert'\n | 'light'\n | 'dark'\n | 'soft'\n | 'bold'\n | 'on-scheme';\n backgroundColor?: BulmaColorProps['color'];\n backgroundColorShade?: BulmaColorProps['colorShade'];\n}\n\n// The scheme-aware input accepted by useBulmaClasses, useColorClasses,\n// and useColorStyles ((typeof validSchemeColors)[number] is\n// 'scheme-main' | 'scheme-main-bis' | 'scheme-main-ter'\n// | 'scheme-invert' | 'scheme-invert-bis' | 'scheme-invert-ter'):\nexport type BulmaColorPropsWithScheme = Omit<\n BulmaColorProps,\n 'backgroundColor'\n> & {\n backgroundColor?:\n BulmaColorProps['backgroundColor'] | (typeof validSchemeColors)[number];\n};\n\nexport type BulmaClassesPropsWithScheme = Omit<\n BulmaClassesProps,\n keyof BulmaColorProps\n> &\n BulmaColorPropsWithScheme;\n\nexport interface BulmaSpacingProps {\n m?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mt?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mr?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mb?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n ml?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mx?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n my?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n p?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pt?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pr?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pb?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pl?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n px?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n py?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n gap?: BulmaGapStep;\n columnGap?: BulmaGapStep;\n rowGap?: BulmaGapStep;\n gapless?: boolean;\n}\n\n// '0' to '8' in half steps ('0', '0.5', '1', … '7.5', '8'), as strings or numbers\nexport type BulmaGapStep =\n | '0'\n | '0.5'\n | '1'\n | '1.5'\n | '2'\n | '2.5'\n | '3'\n | '3.5'\n | '4'\n | '4.5'\n | '5'\n | '5.5'\n | '6'\n | '6.5'\n | '7'\n | '7.5'\n | '8'\n | 0\n | 0.5\n | 1\n | 1.5\n | 2\n | 2.5\n | 3\n | 3.5\n | 4\n | 4.5\n | 5\n | 5.5\n | 6\n | 6.5\n | 7\n | 7.5\n | 8;\n\nexport interface BulmaTypographyProps {\n textSize?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textAlign?: 'centered' | 'justified' | 'left' | 'right';\n textTransform?: 'capitalized' | 'lowercase' | 'uppercase' | 'italic';\n textWeight?: 'light' | 'normal' | 'medium' | 'semibold' | 'bold';\n fontFamily?: 'sans-serif' | 'monospace' | 'primary' | 'secondary' | 'code';\n viewport?: BulmaViewportProps;\n textSizeMobile?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeTablet?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeDesktop?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeWidescreen?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeFullhd?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textAlignMobile?: 'centered' | 'justified' | 'left' | 'right';\n textAlignTablet?: 'centered' | 'justified' | 'left' | 'right';\n textAlignDesktop?: 'centered' | 'justified' | 'left' | 'right';\n textAlignWidescreen?: 'centered' | 'justified' | 'left' | 'right';\n textAlignFullhd?: 'centered' | 'justified' | 'left' | 'right';\n}\n\nexport interface BulmaVisibilityProps {\n display?: BulmaDisplayProps;\n visibility?: 'hidden' | 'sr-only' | 'invisible';\n viewport?: BulmaViewportProps;\n displayMobile?: BulmaDisplayProps;\n displayTablet?: BulmaDisplayProps;\n displayTabletOnly?: BulmaDisplayProps;\n displayTouch?: BulmaDisplayProps;\n displayDesktop?: BulmaDisplayProps;\n displayDesktopOnly?: BulmaDisplayProps;\n displayWidescreen?: BulmaDisplayProps;\n displayWidescreenOnly?: BulmaDisplayProps;\n displayFullhd?: BulmaDisplayProps;\n visibilityMobile?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTablet?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTabletOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTouch?: 'hidden' | 'sr-only' | 'invisible';\n visibilityDesktop?: 'hidden' | 'sr-only' | 'invisible';\n visibilityDesktopOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityWidescreen?: 'hidden' | 'sr-only' | 'invisible';\n visibilityWidescreenOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityFullhd?: 'hidden' | 'sr-only' | 'invisible';\n}\n\nexport interface BulmaFlexboxProps {\n flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse';\n flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse';\n justifyContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly'\n | 'start'\n | 'end'\n | 'left'\n | 'right';\n alignContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly'\n | 'stretch';\n alignItems?:\n | 'stretch'\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'baseline'\n | 'start'\n | 'end';\n alignSelf?:\n 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';\n flexGrow?: '0' | '1' | '2' | '3' | '4' | '5';\n flexShrink?: '0' | '1' | '2' | '3' | '4' | '5';\n}\n\nexport interface BulmaOtherProps {\n float?: 'left' | 'right';\n overflow?: 'clipped' | 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overflowX?: 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overflowY?: 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overlay?: boolean;\n interaction?: 'unselectable' | 'clickable';\n cursor?: 'pointer' | 'help';\n radius?: 'radiusless' | 'small' | 'normal' | 'large' | 'rounded';\n shadow?: 'shadowless';\n responsive?: 'mobile' | 'narrow';\n skeleton?: boolean;\n clearfix?: boolean;\n pos?: 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';\n relative?: boolean;\n fullHeight?: boolean;\n aspectRatio?:\n | '1by1'\n | '5by4'\n | '4by3'\n | '3by2'\n | '5by3'\n | '16by9'\n | '2by1'\n | '3by1'\n | '4by5'\n | '3by4'\n | '2by3'\n | '3by5'\n | '9by16'\n | '1by2'\n | '1by3';\n}\n```\n\n---\n\n## Responsive Design\n\n### Global Viewport Property (Legacy)\n\nThe `viewport` prop applies a single viewport modifier to ALL properties that support it:\n\n```tsx\nconst { bulmaHelperClasses } = useBulmaClasses({\n color: 'primary',\n textAlign: 'centered',\n textSize: '4',\n viewport: 'mobile', // Applies -mobile to ALL properties\n});\n// Result: has-text-primary-mobile has-text-centered-mobile is-size-4-mobile\n```\n\n### Viewport-Specific Properties (Recommended)\n\nViewport-specific properties allow you to set **different values for each viewport**:\n\n```tsx\nconst { bulmaHelperClasses } = useBulmaClasses({\n // Different text sizes for each viewport\n textSizeMobile: '6', // Small on mobile\n textSizeTablet: '5', // Medium on tablet\n textSizeDesktop: '4', // Large on desktop\n\n // Different text alignment for each viewport\n textAlignMobile: 'centered', // Center on mobile\n textAlignDesktop: 'left', // Left align on desktop\n\n // Different visibility for each viewport\n visibilityMobile: 'hidden', // Hidden on mobile\n visibilityTablet: 'invisible', // Invisible from tablet up\n});\n// Result: is-size-6-mobile is-size-5-tablet is-size-4-desktop\n// has-text-centered-mobile has-text-left-desktop is-hidden-mobile is-invisible-tablet\n```\n\n### Breakpoint Reference\n\nBulma's responsive breakpoints:\n\n- **mobile**: up to 768px\n- **tablet**: 769px and above\n- **tablet-only**: 769px - 1023px (excludes desktop and above)\n- **touch**: up to 1023px (mobile + tablet combined — the breakpoint most often used to hide desktop-only chrome)\n- **desktop**: 1024px and above\n- **desktop-only**: 1024px - 1215px (excludes widescreen and above)\n- **widescreen**: 1216px and above\n- **widescreen-only**: 1216px - 1407px (excludes fullhd)\n- **fullhd**: 1408px and above\n\n`display`/`visibility` are the only property families with `*Touch`/`*TabletOnly`/`*DesktopOnly`/`*WidescreenOnly` props; other viewport-aware properties (`textSize*`, `textAlign*`) only go through `mobile`/`tablet`/`desktop`/`widescreen`/`fullhd`, though the generic `viewport` prop itself accepts all nine values for any property that reads it.\n\n### Properties That Support Viewport Modifiers\n\nOnly certain properties support responsive variants:\n\n**✅ Support Viewport Modifiers:**\n\n- Text size (`textSize`, `textSizeMobile`, `textSizeTablet`, etc.)\n- Text alignment (`textAlign`, `textAlignMobile`, `textAlignTablet`, etc.)\n- Display (`display`, `displayMobile`, `displayTablet`, `displayTabletOnly`, `displayTouch`, `displayDesktop`, `displayDesktopOnly`, `displayWidescreen`, `displayWidescreenOnly`, `displayFullhd`)\n- Visibility (`visibility`, `visibilityMobile`, `visibilityTablet`, `visibilityTabletOnly`, `visibilityTouch`, `visibilityDesktop`, `visibilityDesktopOnly`, `visibilityWidescreen`, `visibilityWidescreenOnly`, `visibilityFullhd`)\n\n**❌ Do NOT Support Viewport Modifiers:**\n\n- Spacing (`m`, `mt`, `mr`, `mb`, `ml`, `mx`, `my`, `p`, `pt`, `pr`, `pb`, `pl`, `px`, `py`)\n- Background colors (`backgroundColor`)\n- Flexbox properties (`flexDirection`, `flexWrap`, `justifyContent`, etc.)\n- Other helpers (`float`, `overflow`, `pos`, `radius`, `shadow`, `aspectRatio`, etc.)\n\n---\n\n## Notes\n\n- Any prop not recognized as a Bulma helper prop is passed through in `rest`.\n- Responsive helper props (`viewport`) suffix classes with the breakpoint (e.g., `is-size-3-mobile`).\n- You can use in combination with [`classNames`](https://bestax.io/docs/api/helpers/classnames) for more advanced use.\n\n---\n\n## See Also\n\n- [classNames helper](https://bestax.io/docs/api/helpers/classnames)\n- [Bulma Classes Reference](https://bulma.io/documentation/helpers/)\n- [Storybook: useBulmaClasses Demo](https://bestax.io/storybook/?path=/story/helpers-usebulmaclasses--default)",
199
+ "doc": "# useBulmaClasses\n\n## Overview\n\n`useBulmaClasses` is a custom React hook that generates Bulma helper class strings from a set of props. It makes it easy to apply color, spacing, alignment, typography, flexbox, and other Bulma utility classes to your components in a type-safe, composable way. It also separates out any non-helper props for direct use on elements.\n\n---\n\n## Import\n\n```tsx\nimport { useBulmaClasses } from '@allxsmith/bestax-bulma';\n```\n\n---\n\n## Usage\n\n:::info Container components pad themselves\nContainer components like `Box`, `Notification`, `Message`, and `Card` ship with Bulma's standard, pleasant padding and stack with sensible default spacing. The examples below only add margin or padding props when spacing itself is what's being demonstrated.\n:::\n\n### Basic Example\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n p: '4',\n textAlign: 'centered',\n id: 'card1',\n });\n\n return JSON.stringify({ bulmaHelperClasses, rest });\n // bulmaHelperClasses: 'has-text-link has-background-primary p-4 has-text-centered'\n // rest: { id: 'card1' }\n}\n```\n\nApply to your component:\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n p: '4',\n textAlign: 'centered',\n id: 'card1',\n });\n\n return (\n <div className={classNames('custom-card', bulmaHelperClasses)} {...rest}>\n Card content\n </div>\n );\n}\n```\n\n---\n\n### Responsive Props\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n color: 'link',\n backgroundColor: 'primary',\n m: '2',\n textAlign: 'centered',\n viewport: 'mobile',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'has-text-link-mobile m-2-mobile has-text-centered-mobile'\n}\n```\n\n---\n\n### Touch and `-only` Viewports\n\nBeyond the five breakpoint props, `display`/`visibility` also take `touch` (mobile + tablet combined — the breakpoint most often used to hide desktop-only chrome) and the `-only` variants (`tablet-only`, `desktop-only`, `widescreen-only`), each isolating a single breakpoint band:\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n displayTouch: 'none',\n displayDesktopOnly: 'flex',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'is-hidden-touch is-flex-desktop-only'\n}\n```\n\n```tsx live\n<Buttons>\n <Button visibilityTouch=\"hidden\">Hidden on mobile + tablet</Button>\n <Button visibilityDesktopOnly=\"invisible\">Invisible on desktop only</Button>\n <Button>Always visible</Button>\n</Buttons>\n```\n\nThe legacy `viewport` prop widens to all nine values too, so `useBulmaClasses({ display: 'flex', viewport: 'touch' })` produces `is-flex-touch`. One exception: Bulma ships no `is-size-*` classes for the three `-only` bands, so `textSize` combined with a `tablet-only`/`desktop-only`/`widescreen-only` `viewport` degrades to the base `is-size-N` (rather than emitting a dead `is-size-N-tablet-only`); `touch` and the five breakpoints are unaffected.\n\n---\n\n### Grid Display\n\n`display` also accepts `'grid'`, emitting `is-grid`:\n\n```tsx live\n<Box display=\"grid\">\n <Notification color=\"primary\" m=\"1\">\n Cell 1\n </Notification>\n <Notification color=\"info\" m=\"1\">\n Cell 2\n </Notification>\n</Box>\n```\n\n---\n\n### With Flexbox Helpers\n\nFlexbox properties are divided into two categories:\n\n#### Container Properties\n\nThese properties apply to elements with `display: flex` or `display: inline-flex`, which on most components means a `display` prop of `flex` or `inline-flex` as well. [`Stack`](https://bestax.io/docs/api/layout/stack), [`Group`](https://bestax.io/docs/api/layout/group), [`Center`](https://bestax.io/docs/api/layout/center) and [`Flex`](https://bestax.io/docs/api/layout/flex) are flex containers already, so they take these with no `display` prop:\n\n- `flexDirection` - Direction of flex items\n- `flexWrap` - Whether items wrap\n- `justifyContent` - Alignment along main axis\n- `alignContent` - Alignment of wrapped lines\n- `alignItems` - Alignment along cross axis\n\n#### Item Properties\n\nThese properties apply to flex items (children of flex containers) and **do not require** the element itself to have `display: flex`:\n\n- `alignSelf` - Override container's alignItems for this item\n- `flexGrow` - How much the item should grow\n- `flexShrink` - How much the item should shrink\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses } = useBulmaClasses({\n display: 'flex',\n flexDirection: 'column',\n alignItems: 'center',\n justifyContent: 'center',\n gap: '4',\n });\n return JSON.stringify({ bulmaHelperClasses });\n // bulmaHelperClasses: 'is-gap-4 is-flex is-flex-direction-column is-align-items-center is-justify-content-center'\n}\n```\n\nExample with flex items:\n\n```tsx\n// Container with display flex\n<Box display=\"flex\" alignItems=\"center\">\n {/* Items don't need display flex to use alignSelf, flexGrow, flexShrink */}\n <Button alignSelf=\"flex-start\">Start</Button>\n <Button alignSelf=\"center\" flexGrow=\"1\">\n Center & Grow\n </Button>\n <Button alignSelf=\"flex-end\" flexShrink=\"0\">\n End & No Shrink\n </Button>\n</Box>\n```\n\n---\n\n### Using with Components\n\n:::note These are illustrations, not replacements\nThe snippets below rebuild simplified components by hand purely to show how `useBulmaClasses` fits inside one. In a real app, use the library's own [Columns / Column](https://bestax.io/docs/api/columns) and [Card](https://bestax.io/docs/api/components/card) components — they already wire up `useBulmaClasses` (plus prefixes, modifiers, and more) for you.\n:::\n\n#### Columns\n\n`MyColumns` merges a caller's `className` with its own and forwards the rest of its props to `useBulmaClasses` — the `textAlign` and `textTransform` helper props below flow through `props` into the hook (producing `has-text-centered is-uppercase`), while anything the hook doesn't recognize comes back in `rest` and lands on the `<div>`:\n\n```tsx live\nimport type { BulmaClassesProps } from '@allxsmith/bestax-bulma';\n\nfunction example() {\n function MyColumns({\n children,\n className,\n ...props\n }: BulmaClassesProps & React.ComponentPropsWithoutRef<'div'>) {\n const { bulmaHelperClasses, rest } = useBulmaClasses(props);\n return (\n <div\n className={classNames('columns', bulmaHelperClasses, className)}\n {...rest}\n >\n {children}\n </div>\n );\n }\n\n return (\n <MyColumns textAlign=\"centered\" textTransform=\"uppercase\">\n <div className=\"column\">\n <Notification color=\"primary\">Left</Notification>\n </div>\n <div className=\"column\">\n <Notification color=\"info\">Right</Notification>\n </div>\n </MyColumns>\n );\n}\n```\n\n#### Card\n\n```tsx live\nfunction example() {\n const props = {};\n\n const textColor = 'white';\n const bgColor = 'primary';\n const hasShadow = true;\n const className = 'custom-card';\n const children = <p>Making a custom card</p>;\n const p = '4';\n\n const { bulmaHelperClasses, rest } = useBulmaClasses({\n color: textColor,\n backgroundColor: bgColor,\n p,\n ...props,\n });\n const cardClasses = classNames('card', className, bulmaHelperClasses, {\n 'is-shadowless': !hasShadow,\n });\n return (\n <div className={cardClasses} {...rest}>\n {children}\n </div>\n );\n}\n```\n\n---\n\n### Colors\n\nUse the `color` prop to apply Bulma color classes. Here, each button demonstrates a different color:\n\n```tsx live\n<Buttons>\n <Button color=\"primary\">Primary</Button>\n <Button color=\"link\">Link</Button>\n <Button color=\"info\">Info</Button>\n <Button color=\"success\">Success</Button>\n <Button color=\"warning\">Warning</Button>\n <Button color=\"danger\">Danger</Button>\n <Button color=\"black\">Black</Button>\n <Button color=\"white\">White</Button>\n</Buttons>\n```\n\n### Background Color\n\nComponents expose this helper as `bgColor` (the hook's own parameter is `backgroundColor`). Pair it with a text color that keeps the label readable on each background:\n\n```tsx live\n<Columns isMultiline>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" textColor=\"white\">\n Primary\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"link\" textColor=\"white\">\n Link\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"info\" textColor=\"white\">\n Info\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"success\" textColor=\"white\">\n Success\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"warning\" textColor=\"black\">\n Warning\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"danger\" textColor=\"white\">\n Danger\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"black\" textColor=\"white\">\n Black\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"white\" textColor=\"black\">\n White\n </Box>\n </Column>\n</Columns>\n```\n\n### Scheme Backgrounds and `bulmaHelperStyles`\n\nThe hook returns a third member, `bulmaHelperStyles`, alongside `bulmaHelperClasses` and `rest`. It is `undefined` for every input except a scheme `backgroundColor` (`scheme-main`, `scheme-main-bis`, `scheme-main-ter`, `scheme-invert`, `scheme-invert-bis`, `scheme-invert-ter`): Bulma ships no `has-background-scheme-*` classes, so those values emit no class and instead surface here as a dark-mode-safe inline style tracking Bulma's scheme CSS variables.\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({\n color: 'primary',\n backgroundColor: 'scheme-main-bis',\n id: 'band1',\n });\n\n return JSON.stringify({ bulmaHelperClasses, bulmaHelperStyles, rest });\n // bulmaHelperClasses: 'has-text-primary'\n // bulmaHelperStyles: { backgroundColor: 'var(--bulma-scheme-main-bis)' }\n // rest: { id: 'band1' }\n}\n```\n\nPut it on your element with `mergeBulmaStyles`, which merges the helper style with a user-supplied `style` prop (the user style wins, and the result is `undefined` when both are absent so the DOM stays untouched):\n\n```tsx live\nfunction example() {\n const { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses({\n backgroundColor: 'scheme-main-bis',\n p: '4',\n });\n\n return (\n <div\n {...rest}\n className={classNames('custom-band', bulmaHelperClasses)}\n style={mergeBulmaStyles(bulmaHelperStyles, undefined)}\n >\n A dark-mode-safe surface with zero custom CSS\n </div>\n );\n}\n```\n\nIn a real component, destructure `style` out of your own props and pass it as `mergeBulmaStyles`'s second argument (as `Section` does) — if `style` stays in the object you spread, whichever comes later in JSX silently replaces the other instead of merging.\n\n### Color Shade\n\n`colorShade` refines the **text color** — it pairs with the hook's `color` prop (exposed as `textColor` on components, where `color` is the component's own modifier). Here, each line steps through the primary palette:\n\n```tsx live\n<>\n <Paragraph textColor=\"primary\" colorShade=\"10\" textWeight=\"semibold\">\n Primary 10\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"30\" textWeight=\"semibold\">\n Primary 30\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"60\" textWeight=\"semibold\">\n Primary 60\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"90\" textWeight=\"semibold\">\n Primary 90\n </Paragraph>\n <Paragraph textColor=\"primary\" colorShade=\"invert\" textWeight=\"semibold\">\n Primary Invert\n </Paragraph>\n</>\n```\n\n### Background Color Shade\n\nBackground shades use their own prop: `backgroundColorShade` pairs with `backgroundColor`, independently of `colorShade` (which pairs with the text color). Low shade numbers are dark and high numbers are light, so dark shades get light text and light shades get dark text to keep each label readable:\n\n```tsx live\n<Columns isMultiline>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"10\" textColor=\"white\">\n Primary 10\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"30\" textColor=\"white\">\n Primary 30\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"60\" textColor=\"black\">\n Primary 60\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"90\" textColor=\"black\">\n Primary 90\n </Box>\n </Column>\n <Column size=\"one-quarter\">\n <Box bgColor=\"primary\" backgroundColorShade=\"invert\" textColor=\"white\">\n Primary Invert\n </Box>\n </Column>\n</Columns>\n```\n\nBecause the two shade props are independent, you can shade the text and the background at the same time — a dark background shade with a light text shade of the same color reads well in both themes:\n\n```tsx live\n<Box\n bgColor=\"primary\"\n backgroundColorShade=\"15\"\n textColor=\"primary\"\n colorShade=\"85\"\n>\n Primary text shade 85 on a primary background shade 15\n</Box>\n```\n\n### Margin\n\nUse margin props to add spacing. Here, margin is applied to buttons, and to a row of buttons using the `Buttons` component:\n\n```tsx live\n<>\n <Buttons>\n <Button>Left</Button>\n <Button m=\"4\">Margin 4</Button>\n <Button>Right</Button>\n </Buttons>\n <Buttons mt=\"5\" mb=\"5\">\n <Button>Top/Bottom Margin</Button>\n <Button>Row 2</Button>\n </Buttons>\n</>\n```\n\n### Gap\n\n`gap` puts space between the children of a flex or grid container, and `columnGap` and `rowGap` set one axis. Each whole step is 0.5rem, so `gap=\"2\"` is 1rem and `gap=\"8\"` is 4rem, with half steps such as `\"1.5\"` between them. That is not the margin scale, where `m=\"2\"` is 0.5rem. A step can also be written as a number (`gap={2}`).\n\nThe helpers set the CSS `gap`, which does nothing unless the element lays its children out as flex or grid. Pair them with `display=\"flex\"` or `display=\"grid\"`, or use them on a component that already is one, such as `Buttons` or `Tags`, where they replace the spacing Bulma gives it:\n\n```tsx live\n<>\n <Block display=\"flex\" flexWrap=\"wrap\" gap=\"2\">\n <Tag color=\"primary\">One</Tag>\n <Tag color=\"primary\">Two</Tag>\n <Tag color=\"primary\">Three</Tag>\n </Block>\n <Block display=\"flex\" flexDirection=\"column\" gap=\"0.5\">\n <Tag color=\"info\">A column</Tag>\n <Tag color=\"info\">with a half step</Tag>\n </Block>\n <Buttons gap=\"1\">\n <Button>Tighter</Button>\n <Button>than Bulma's</Button>\n <Button>default</Button>\n </Buttons>\n</>\n```\n\n`gapless` removes the gap, the shortcut for `gap=\"0\"`; when both are set, `gap` wins. `columnGap` and `rowGap` win on their own axis over `gap` and `gapless`, so `gap=\"4\" rowGap=\"1\"` spaces the columns 2rem apart and the rows 0.5rem.\n\n`Grid` takes `gap`, `columnGap` and `rowGap` as its own props and renders the same classes. `Columns` keeps its own `gap`, the columns gutter, which takes whole steps; see [Columns](https://bestax.io/docs/api/columns).\n\n### Text Size\n\nApply `textSize` to Notifications to illustrate different sizes:\n\n```tsx live\n<>\n <Notification textSize=\"1\">Size 1</Notification>\n <Notification textSize=\"3\">Size 3</Notification>\n <Notification textSize=\"5\">Size 5</Notification>\n <Notification textSize=\"7\">Size 7</Notification>\n</>\n```\n\n### Text Align\n\nApply `textAlign` to a Box to illustrate text alignment:\n\n```tsx live\n<>\n <Box textAlign=\"centered\">Centered text</Box>\n <Box textAlign=\"right\">Right aligned text</Box>\n <Box textAlign=\"left\">Left aligned text</Box>\n</>\n```\n\n### Text Transform\n\nApply `textTransform` to a Content tag with a paragraph of the Declaration of Independence:\n\n```tsx live\n<>\n <Box>\n <Content textTransform=\"uppercase\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"lowercase\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"capitalized\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textTransform=\"italic\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Text Weight\n\nApply `textWeight` to Content tags to illustrate different font weights:\n\n```tsx live\n<>\n <Box>\n <Content textWeight=\"light\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"normal\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"medium\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content textWeight=\"bold\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Font Family\n\nUse Content blocks with different font families:\n\n```tsx live\n<>\n <Box>\n <Content fontFamily=\"sans-serif\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"monospace\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"primary\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"secondary\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n <Box>\n <Content fontFamily=\"code\">\n <p>\n We hold these truths to be self-evident, that all men are created\n equal...\n </p>\n </Content>\n </Box>\n</>\n```\n\n### Visibility\n\nShow three buttons, one hidden, one screen-reader only:\n\n```tsx live\n<Buttons>\n <Button visibility=\"hidden\">Hidden</Button>\n <Button visibility=\"sr-only\">Screen Reader Only</Button>\n <Button>Visible</Button>\n</Buttons>\n```\n\n### Overflow\n\nShow a Box with clipped overflow:\n\n```tsx live\n<Box overflow=\"clipped\" style={{ width: 200, height: 50 }}>\n This is a very long line of text that will be clipped and not overflow the\n box.\n</Box>\n```\n\n`overflow` also takes the CSS keywords Bulma has helpers for (`auto`, `clip`, `hidden`, `scroll`, `visible`), and `overflowX` and `overflowY` set one axis. Beside `overflow`, an axis prop wins on its own axis and `overflow` sets the other, with `clipped` counting as `hidden`, so `overflow=\"hidden\" overflowY=\"auto\"` clips sideways and scrolls down.\n\nHere an aspect ratio fixes the height and the list scrolls inside it. A region that scrolls needs to be reachable from the keyboard, so the example gives it `tabIndex={0}`, a `region` role and a name.\n\n```tsx live\n<Box\n aspectRatio=\"3by1\"\n overflowY=\"auto\"\n tabIndex={0}\n role=\"region\"\n aria-label=\"Scrolling list\"\n>\n {Array.from({ length: 20 }, (_, i) => (\n <p key={i}>Line {i + 1} of a list longer than the box.</p>\n ))}\n</Box>\n```\n\nWithout `overflowY` the box would grow to fit the list, because an aspect ratio gives way to content that does not fit.\n\n### Overlay\n\n`overlay` is `position: absolute` with `top`, `right`, `bottom` and `left` at 0, so it covers the nearest positioned ancestor. The [position](https://bestax.io/docs/api/helpers/usebulmaclasses#position) helpers set `position` with `!important`, so a `pos` or `relative` beside `overlay` replaces the `absolute` and keeps the zero offsets. `overlay pos=\"fixed\"` covers the viewport instead. `sticky`, `relative` and `static` put the element back in the normal flow, where it covers nothing, and a sticky one sticks at every edge of its scroll container.\n\nShow an overlay (toggle with button click):\n\n```tsx\nfunction OverlayExample() {\n const [show, setShow] = useState(false);\n return (\n <Box overlay={show}>\n <Button onClick={() => setShow(s => !s)}>\n {show ? 'Hide Overlay' : 'Show Overlay'}\n </Button>\n </Box>\n );\n}\n```\n\n### Interaction\n\nShow text in a Box with `unselectable`, and another Box with `clickable`. `clickable` adds no role, tab stop or keyboard handling, so an element people click should still be a `<button>` or a link:\n\n```tsx live\n<>\n <Box interaction=\"unselectable\">This text cannot be selected.</Box>\n <Box interaction=\"clickable\">This box shows a pointer cursor.</Box>\n</>\n```\n\n### Cursor\n\nUse the `cursor` prop to set the cursor style. `'pointer'` reuses Bulma's `is-clickable` class, while `'help'` uses the project-level `is-cursor-help` class:\n\n```tsx live\n<>\n <Box cursor=\"pointer\">Cursor: pointer (uses is-clickable)</Box>\n <Box cursor=\"help\">Cursor: help</Box>\n</>\n```\n\n### Radius\n\n`radiusless` removes the radius; `small`, `normal`, `large` and `rounded` set one from Bulma's radius scale:\n\n```tsx live\n<Buttons>\n <Button radius=\"radiusless\">Radiusless</Button>\n <Button radius=\"small\">Small</Button>\n <Button radius=\"normal\">Normal</Button>\n <Button radius=\"large\">Large</Button>\n <Button radius=\"rounded\">Rounded</Button>\n</Buttons>\n```\n\nThe class goes on the component's root element, so where an inner element draws the radius, such as the `<img>` inside `Image`, that element keeps its own. The sizes are not `!important`, unlike `radiusless`, so a component rule more specific than one class still wins: an `isRounded` control stays a pill, and a joined addon keeps its square inner corners.\n\n### Shadowless\n\nShow a Box with `shadowless`:\n\n```tsx live\n<Box shadow=\"shadowless\">This box has no shadow.</Box>\n```\n\n### ClassName\n\nShow a Message with a custom className:\n\n```tsx live\n<Message className=\"custom-message\">\n This message uses a custom className.\n</Message>\n```\n\n### Clearfix\n\nShow containers with and without clearfix to demonstrate the importance of clearing floated elements:\n\n```tsx live\n<>\n <Box>\n <Title size=\"6\">Without clearfix (container collapses)</Title>\n <Notification color=\"danger\">\n <Button float=\"left\" color=\"primary\">\n Left\n </Button>\n <Button float=\"right\" color=\"danger\">\n Right\n </Button>\n </Notification>\n </Box>\n\n <Box>\n <Title size=\"6\">With clearfix (container wraps its floats)</Title>\n <Notification color=\"success\" clearfix>\n <Button float=\"left\" color=\"primary\">\n Left\n </Button>\n <Button float=\"right\" color=\"danger\">\n Right\n </Button>\n </Notification>\n </Box>\n</>\n```\n\n### Position\n\n`pos` sets CSS `position`: `absolute`, `fixed`, `relative`, `static` or `sticky`. It is named `pos` because several components already have a `position` prop of their own, for where they place a popup or a toast. `relative` is the older shortcut for `pos=\"relative\"` and still works; when both are set, `pos` wins. Beside `overlay`, a `pos` or `relative` replaces the overlay's `absolute` and keeps its zero offsets; see [Overlay](https://bestax.io/docs/api/helpers/usebulmaclasses#overlay).\n\nShow a container with relative positioning that provides context for an absolutely positioned child. The helpers set `position` and nothing else, so the child keeps its `top` and `right` offsets inline:\n\n```tsx live\n<Notification pos=\"relative\" pb=\"6\" color=\"info\">\n <Span>This container has position: relative</Span>\n <Tag\n color=\"primary\"\n size=\"medium\"\n pos=\"absolute\"\n style={{ top: '1rem', right: '1rem' }}\n >\n Absolutely positioned child\n </Tag>\n</Notification>\n```\n\n`pos=\"sticky\"` needs an offset in the same way, and does nothing until it has one.\n\n### Aspect Ratio\n\n`aspectRatio` fixes an element's width-to-height ratio to one of Bulma's ratios, such as `1by1`, `4by3` or `16by9`, or a portrait one such as `9by16`. The full set is in [Supported Props](https://bestax.io/docs/api/helpers/usebulmaclasses#supported-props). The height follows the width:\n\n```tsx live\n<Columns>\n <Column>\n <Notification color=\"primary\" aspectRatio=\"1by1\">\n 1by1\n </Notification>\n </Column>\n <Column>\n <Notification color=\"info\" aspectRatio=\"4by3\">\n 4by3\n </Notification>\n </Column>\n <Column>\n <Notification color=\"success\" aspectRatio=\"16by9\">\n 16by9\n </Notification>\n </Column>\n</Columns>\n```\n\nOn `Image`, use its own `size` ratios instead, which also fit the picture to the box.\n\n---\n\n### Skeleton Examples\n\nThe `skeleton` prop applies Bulma's skeleton loading effect. [Skeleton's accessibility notes](https://bestax.io/docs/api/elements/skeleton#accessibility) cover it too, reduced motion and forced colors included. In short, hide a skeleton from screen readers, and take a skeleton control out of the tab order. Here are examples for each component:\n\n#### Skeleton Button\n\n```tsx live\n<Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton Button\n</Button>\n```\n\n#### Skeleton Buttons Group\n\n```tsx live\n<Buttons>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n <Button skeleton tabIndex={-1} aria-hidden=\"true\">\n Skeleton\n </Button>\n</Buttons>\n```\n\n#### Skeleton Icon\n\n```tsx live\n<Icon name=\"star\" skeleton />\n```\n\n#### Skeleton Image\n\n```tsx live\n<Image skeleton src=\"/img/react-logo.png\" alt=\"Skeleton image\" size=\"128x128\" />\n```\n\n#### Skeleton Notification\n\n```tsx live\n<Notification skeleton aria-hidden=\"true\">\n Skeleton notification message.\n</Notification>\n```\n\n#### Skeleton Tag\n\n```tsx live\n<Tag skeleton aria-hidden=\"true\">\n Skeleton Tag\n</Tag>\n```\n\n#### Skeleton Title\n\n```tsx live\n<Title skeleton aria-hidden=\"true\" size=\"2\">\n Skeleton Title\n</Title>\n```\n\n#### Skeleton SubTitle\n\n```tsx live\n<SubTitle skeleton aria-hidden=\"true\" size=\"4\">\n Skeleton SubTitle\n</SubTitle>\n```\n\n#### Skeleton Input\n\n```tsx live\n<Input skeleton tabIndex={-1} aria-hidden=\"true\" placeholder=\"Skeleton Input\" />\n```\n\n#### Skeleton TextArea\n\n```tsx live\n<TextArea\n skeleton\n tabIndex={-1}\n aria-hidden=\"true\"\n placeholder=\"Skeleton TextArea\"\n rows={3}\n/>\n```\n\n---\n\n## API\n\n```tsx\nconst { bulmaHelperClasses, bulmaHelperStyles, rest } = useBulmaClasses(props);\n\n// For an element whose own CSS makes it a flex container:\nconst flex = useBulmaClasses(props, { flexContainer: true });\n```\n\n- **props**: An object supporting all Bulma helper class props (see [Supported Props](https://bestax.io/docs/api/helpers/usebulmaclasses#supported-props)), plus any additional props. `backgroundColor` additionally accepts the six [`validSchemeColors`](https://bestax.io/docs/api/helpers/valid-values) values.\n- **options**: Optional. `{ flexContainer: true }` says the element is a flex container by its own stylesheet, so the flex container props (`flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`) emit their classes with no `display` prop. It adds no display class. [`Stack`](https://bestax.io/docs/api/layout/stack), [`Group`](https://bestax.io/docs/api/layout/group), [`Center`](https://bestax.io/docs/api/layout/center) and [`Flex`](https://bestax.io/docs/api/layout/flex) pass it. Passed through to `useFlexboxClasses`.\n- **bulmaHelperClasses**: A string of Bulma utility classes to be applied to your element.\n- **bulmaHelperStyles**: `React.CSSProperties | undefined` — an inline style for a scheme `backgroundColor` (see [Scheme Backgrounds](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles)); `undefined` for every other input. Apply it with [`mergeBulmaStyles`](https://bestax.io/docs/api/helpers/usebulmaclasses#scheme-backgrounds-and-bulmahelperstyles) so a user `style` prop wins.\n- **rest**: An object of all remaining props (with helper props stripped out), suitable for spreading onto your component.\n\n---\n\n## Composable Mini-Hooks\n\n`useBulmaClasses` remains the everything-hook — it is what most bestax-bulma components use internally, and it covers the full helper prop surface with zero behavior change. If you are building a custom component that only needs a slice of that surface, you can reach for one of seven composable mini hooks instead. Each mini hook accepts just its own group of props and returns a plain class string (except `useColorStyles`, which returns an inline style object or `undefined`), which you can combine with the [`classNames`](https://bestax.io/docs/api/helpers/classnames) utility.\n\n| Hook | Props Covered | Returns |\n| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `useColorClasses` | `color`, `colorShade`, `backgroundColor`, `backgroundColorShade` | Text and background color classes, including palette shades |\n| `useColorStyles` | `backgroundColor` (scheme values) | `{ backgroundColor: 'var(--bulma-scheme-*)' }` for a scheme background, `undefined` otherwise — the source of `bulmaHelperStyles` |\n| `useSpacingClasses` | `m`, `mt`, `mr`, `mb`, `ml`, `mx`, `my`, `p`, `pt`, `pr`, `pb`, `pl`, `px`, `py`, `gap`, `columnGap`, `rowGap`, `gapless` | Margin, padding and gap classes |\n| `useTypographyClasses` | `textSize`, `textAlign`, `textTransform`, `textWeight`, `fontFamily`, `viewport`, plus `textSize{Mobile..Fullhd}`, `textAlign{Mobile..Fullhd}` | Typography classes, including responsive size/alignment variants |\n| `useVisibilityClasses` | `display`, `visibility`, `viewport`, plus `display{Mobile,Tablet,TabletOnly,Touch,Desktop,DesktopOnly,Widescreen,WidescreenOnly,Fullhd}`, `visibility{Mobile,Tablet,TabletOnly,Touch,Desktop,DesktopOnly,Widescreen,WidescreenOnly,Fullhd}` | Display and visibility classes (this hook owns all display emission) |\n| `useFlexboxClasses` | `flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`, `alignSelf`, `flexGrow`, `flexShrink` | Flexbox classes; container classes are only emitted when a `display`/`display{Viewport}` prop is `flex`/`inline-flex` or the second argument is `{ flexContainer: true }`, item classes (`alignSelf`, `flexGrow`, `flexShrink`) always emit |\n| `useOtherClasses` | `float`, `overflow`, `overflowX`, `overflowY`, `overlay`, `interaction`, `cursor`, `radius`, `shadow`, `responsive`, `skeleton`, `clearfix`, `pos`, `relative`, `fullHeight`, `aspectRatio` | Miscellaneous utility classes |\n\nAll seven hooks (plus `classNames` and `mergeBulmaStyles`) are exported from the package root:\n\n```tsx\nimport {\n useColorClasses,\n useColorStyles,\n useSpacingClasses,\n classNames,\n mergeBulmaStyles,\n} from '@allxsmith/bestax-bulma';\n```\n\nHere is a small custom component that only needs color and spacing helpers:\n\n```tsx live\nimport type { BulmaClassesProps } from '@allxsmith/bestax-bulma';\n\nfunction example() {\n function PriceTag({\n color,\n backgroundColor,\n backgroundColorShade,\n m,\n children,\n }: BulmaClassesProps & { children?: React.ReactNode }) {\n const colorClasses = useColorClasses({\n color,\n backgroundColor,\n backgroundColorShade,\n });\n const spacingClasses = useSpacingClasses({ m });\n return (\n <span className={classNames('tag', colorClasses, spacingClasses)}>\n {children}\n </span>\n );\n }\n\n return (\n <div>\n <PriceTag color=\"white\" backgroundColor=\"success\" m=\"2\">\n $19.99\n </PriceTag>\n <PriceTag\n color=\"white\"\n backgroundColor=\"danger\"\n backgroundColorShade=\"dark\"\n m=\"2\"\n >\n $49.99\n </PriceTag>\n </div>\n );\n}\n```\n\n:::note useFlexboxClasses and display\n\n`useFlexboxClasses` only emits container classes (`flexDirection`, `flexWrap`, `justifyContent`, `alignContent`, `alignItems`) when a `display` or `display{Viewport}` prop is `flex` or `inline-flex` — it reads those display props for gating but never emits the display class itself. Pair it with `useVisibilityClasses` (which owns display emission), or just use `useBulmaClasses`.\n\nFor an element whose own stylesheet makes it a flex container, pass `{ flexContainer: true }` as the second argument (to either hook), and the container classes emit with no `display` prop:\n\n```tsx\nconst flexboxClasses = useFlexboxClasses(\n { alignItems: 'center' },\n { flexContainer: true }\n);\n// 'is-align-items-center'\n```\n\n:::\n\n---\n\n## Supported Props\n\nBelow is the full list of supported props, derived from the `BulmaClassesProps` TypeScript definition:\n\n| Prop | Type / Example Value | Effect / Example Class |\n| ---------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- |\n| `color` | `'primary'`, `'link'`, `'info'`, `'success'`, `'warning'`, `'danger'`, `'black'`, `'black-bis'`, `'black-ter'`, `'grey-darker'`, `'grey-dark'`, `'grey'`, `'grey-light'`, `'grey-lighter'`, `'white'`, `'white-bis'`, `'white-ter'`, `'light'`, `'dark'`, `'inherit'`, `'current'` | `has-text-primary`, `has-text-grey-dark`, `has-text-inherit` |\n| `backgroundColor` | Same as `color`, plus the scheme values `'scheme-main'`, `'scheme-main-bis'`, `'scheme-main-ter'`, `'scheme-invert'`, `'scheme-invert-bis'`, `'scheme-invert-ter'` | `has-background-warning`; scheme values emit no class — they return as the `bulmaHelperStyles` inline style |\n| `colorShade` | `'00'`, `'05'`, `'10'`, `'15'`, `'20'`, `'25'`, `'30'`, `'35'`, `'40'`, `'45'`, `'50'`, `'55'`, `'60'`, `'65'`, `'70'`, `'75'`, `'80'`, `'85'`, `'90'`, `'95'`, `'invert'`, `'light'`, `'dark'`, `'soft'`, `'bold'`, `'on-scheme'` | `has-text-primary-25` |\n| `backgroundColorShade` | `'00'`, `'05'`, `'10'`, `'15'`, `'20'`, `'25'`, `'30'`, `'35'`, `'40'`, `'45'`, `'50'`, `'55'`, `'60'`, `'65'`, `'70'`, `'75'`, `'80'`, `'85'`, `'90'`, `'95'`, `'invert'`, `'light'`, `'dark'`, `'soft'`, `'bold'`, `'on-scheme'` | `has-background-info-dark` |\n| `m` | `'0'..'6'`, `'auto'` | `m-4`, `m-auto` |\n| `mt` | `'0'..'6'`, `'auto'` | `mt-2` |\n| `mr` | `'0'..'6'`, `'auto'` | `mr-6` |\n| `mb` | `'0'..'6'`, `'auto'` | `mb-0` |\n| `ml` | `'0'..'6'`, `'auto'` | `ml-auto` |\n| `mx` | `'0'..'6'`, `'auto'` | `mx-2` |\n| `my` | `'0'..'6'`, `'auto'` | `my-5` |\n| `p` | `'0'..'6'`, `'auto'` | `p-3`, `p-auto` |\n| `pt` | `'0'..'6'`, `'auto'` | `pt-1` |\n| `pr` | `'0'..'6'`, `'auto'` | `pr-6` |\n| `pb` | `'0'..'6'`, `'auto'` | `pb-0` |\n| `pl` | `'0'..'6'`, `'auto'` | `pl-4` |\n| `px` | `'0'..'6'`, `'auto'` | `px-1` |\n| `py` | `'0'..'6'`, `'auto'` | `py-6` |\n| `gap` | `'0'..'8'` in half steps, or a number | `is-gap-1.5` |\n| `columnGap` | Same as `gap` | `is-column-gap-4` |\n| `rowGap` | Same as `gap` | `is-row-gap-0.5` |\n| `gapless` | `true` | `is-gapless` |\n| `textSize` | `'1'..'7'` | `is-size-3` |\n| `textAlign` | `'centered'`, `'justified'`, `'left'`, `'right'` | `has-text-centered` |\n| `textTransform` | `'capitalized'`, `'lowercase'`, `'uppercase'`, `'italic'` | `is-uppercase`, `is-italic` |\n| `textWeight` | `'light'`, `'normal'`, `'medium'`, `'semibold'`, `'bold'` | `has-text-weight-bold` |\n| `fontFamily` | `'sans-serif'`, `'monospace'`, `'primary'`, `'secondary'`, `'code'` | `is-family-monospace` |\n| `display` | `'block'`, `'flex'`, `'inline'`, `'inline-block'`, `'inline-flex'`, `'grid'`, `'none'` | `is-flex`, `is-inline-block`, `is-grid`, `is-hidden` |\n| `visibility` | `'hidden'`, `'sr-only'`, `'invisible'` | `is-hidden`, `is-sr-only`, `is-invisible` |\n| `flexDirection` | `'row'`, `'row-reverse'`, `'column'`, `'column-reverse'` | `is-flex-direction-row` |\n| `flexWrap` | `'nowrap'`, `'wrap'`, `'wrap-reverse'` | `is-flex-wrap-nowrap` |\n| `justifyContent` | `'flex-start'`, `'flex-end'`, `'center'`, `'space-between'`, `'space-around'`, `'space-evenly'`, `'start'`, `'end'`, `'left'`, `'right'` | `is-justify-content-center` |\n| `alignContent` | `'flex-start'`, `'flex-end'`, `'center'`, `'space-between'`, `'space-around'`, `'space-evenly'`, `'stretch'` | `is-align-content-stretch` |\n| `alignItems` | `'stretch'`, `'flex-start'`, `'flex-end'`, `'center'`, `'baseline'`, `'start'`, `'end'` | `is-align-items-center` |\n| `alignSelf` | `'auto'`, `'flex-start'`, `'flex-end'`, `'center'`, `'baseline'`, `'stretch'` | `is-align-self-center` |\n| `flexGrow` | `'0'`, `'1'`, `'2'`, `'3'`, `'4'`, `'5'` | `is-flex-grow-1` |\n| `flexShrink` | `'0'`, `'1'`, `'2'`, `'3'`, `'4'`, `'5'` | `is-flex-shrink-0` |\n| `float` | `'left'`, `'right'` | `is-pulled-left`, `is-pulled-right` |\n| `overflow` | `'clipped'`, `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-clipped`, `is-overflow-auto` |\n| `overflowX` | `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-overflow-x-auto` |\n| `overflowY` | `'auto'`, `'clip'`, `'hidden'`, `'scroll'`, `'visible'` | `is-overflow-y-scroll` |\n| `overlay` | `true` | `is-overlay` |\n| `interaction` | `'unselectable'`, `'clickable'` | `is-unselectable` |\n| `cursor` | `'pointer'`, `'help'` | `is-clickable`, `is-cursor-help` |\n| `radius` | `'radiusless'`, `'small'`, `'normal'`, `'large'`, `'rounded'` | `is-radiusless`, `has-radius-large` |\n| `shadow` | `'shadowless'` | `is-shadowless` |\n| `responsive` | `'mobile'`, `'narrow'` | `is-mobile`, `is-narrow` |\n| `viewport` | `'mobile'`, `'tablet'`, `'tablet-only'`, `'touch'`, `'desktop'`, `'desktop-only'`, `'widescreen'`, `'widescreen-only'`, `'fullhd'` | Adds viewport suffix to supported properties |\n| `skeleton` | `true` | `is-skeleton` |\n| `clearfix` | `true` | `is-clearfix` |\n| `pos` | `'absolute'`, `'fixed'`, `'relative'`, `'static'`, `'sticky'` | `is-position-sticky` |\n| `relative` | `true` | `is-relative` (ignored when `pos` is set) |\n| `fullHeight` | `true` | `is-full-height` |\n| `aspectRatio` | `'1by1'`, `'5by4'`, `'4by3'`, `'3by2'`, `'5by3'`, `'16by9'`, `'2by1'`, `'3by1'`, `'4by5'`, `'3by4'`, `'2by3'`, `'3by5'`, `'9by16'`, `'1by2'`, `'1by3'` | `is-aspect-ratio-16by9` |\n\n### Viewport-Specific Properties\n\nThe following properties allow you to set different values for each viewport breakpoint:\n\n| Prop | Type / Example Value | Effect / Example Class |\n| -------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- |\n| `displayMobile` | `'block'`, `'flex'`, `'inline'`, `'grid'`, `'none'`, etc. | `is-block-mobile`, `is-flex-mobile`, `is-hidden-mobile` |\n| `displayTablet` | Same as above | `is-block-tablet`, `is-flex-tablet`, `is-hidden-tablet` |\n| `displayTabletOnly` | Same as above | `is-block-tablet-only`, `is-flex-tablet-only`, `is-hidden-tablet-only` |\n| `displayTouch` | Same as above | `is-block-touch`, `is-flex-touch`, `is-hidden-touch` |\n| `displayDesktop` | Same as above | `is-block-desktop`, `is-flex-desktop`, `is-hidden-desktop` |\n| `displayDesktopOnly` | Same as above | `is-block-desktop-only`, `is-flex-desktop-only`, `is-hidden-desktop-only` |\n| `displayWidescreen` | Same as above | `is-block-widescreen`, `is-flex-widescreen` |\n| `displayWidescreenOnly` | Same as above | `is-block-widescreen-only`, `is-flex-widescreen-only` |\n| `displayFullhd` | Same as above | `is-block-fullhd`, `is-flex-fullhd` |\n| `textSizeMobile` | `'1'..'7'` | `is-size-3-mobile`, `is-size-5-mobile` |\n| `textSizeTablet` | `'1'..'7'` | `is-size-3-tablet`, `is-size-5-tablet` |\n| `textSizeDesktop` | `'1'..'7'` | `is-size-3-desktop`, `is-size-5-desktop` |\n| `textSizeWidescreen` | `'1'..'7'` | `is-size-3-widescreen`, `is-size-5-widescreen` |\n| `textSizeFullhd` | `'1'..'7'` | `is-size-3-fullhd`, `is-size-5-fullhd` |\n| `textAlignMobile` | `'centered'`, `'left'`, `'right'`, `'justified'` | `has-text-centered-mobile`, `has-text-left-mobile` |\n| `textAlignTablet` | Same as above | `has-text-centered-tablet`, `has-text-left-tablet` |\n| `textAlignDesktop` | Same as above | `has-text-centered-desktop`, `has-text-left-desktop` |\n| `textAlignWidescreen` | Same as above | `has-text-centered-widescreen`, `has-text-left-widescreen` |\n| `textAlignFullhd` | Same as above | `has-text-centered-fullhd`, `has-text-left-fullhd` |\n| `visibilityMobile` | `'hidden'`, `'sr-only'`, `'invisible'` | `is-hidden-mobile`, `is-sr-only-mobile`, `is-invisible-mobile` |\n| `visibilityTablet` | Same as above | `is-hidden-tablet`, `is-sr-only-tablet`, `is-invisible-tablet` |\n| `visibilityTabletOnly` | Same as above | `is-hidden-tablet-only`, `is-sr-only-tablet-only`, `is-invisible-tablet-only` |\n| `visibilityTouch` | Same as above | `is-hidden-touch`, `is-sr-only-touch`, `is-invisible-touch` |\n| `visibilityDesktop` | Same as above | `is-hidden-desktop`, `is-sr-only-desktop`, `is-invisible-desktop` |\n| `visibilityDesktopOnly` | Same as above | `is-hidden-desktop-only`, `is-sr-only-desktop-only`, `is-invisible-desktop-only` |\n| `visibilityWidescreen` | Same as above | `is-hidden-widescreen`, `is-sr-only-widescreen`, `is-invisible-widescreen` |\n| `visibilityWidescreenOnly` | Same as above | `is-hidden-widescreen-only`, `is-sr-only-widescreen-only`, `is-invisible-widescreen-only` |\n| `visibilityFullhd` | Same as above | `is-hidden-fullhd`, `is-sr-only-fullhd`, `is-invisible-fullhd` |\n| `responsive` | `'mobile'`, `'narrow'` | `is-mobile`, `is-narrow` |\n| `clearfix` | `true` | `is-clearfix` |\n| `relative` | `true` | `is-relative` |\n| `viewport` | `'mobile'`, `'tablet'`, `'tablet-only'`, `'touch'`, `'desktop'`, `'desktop-only'`, `'widescreen'`, `'widescreen-only'`, `'fullhd'` | Adds suffix, e.g. `-mobile`, `-desktop`, `-touch`, `-tablet-only` |\n\nThe viewport properties' ranges overlap: the tablet, desktop and widescreen ones run from their\nbreakpoint up, the touch ones cover mobile and tablet, and an `Only` property sits inside the plain\none for its breakpoint. Where two display properties overlap, Bulma's stylesheet picks the winner,\nnot the breakpoint, so `displayTablet=\"none\"` keeps an element hidden on desktop whatever\n`displayDesktop` asks. The\n[Visibility guide](https://bestax.io/docs/guides/helpers/visibility#viewport-specific-display-properties) has the\nrule and the `Only` properties that set one range alone.\n\n---\n\n### Full TypeScript Definition\n\n`BulmaClassesProps` is composed from the six group interfaces, each of which is also exported (along with the shared `BulmaViewportProps` and `BulmaDisplayProps` types) and accepted by the corresponding [mini hook](https://bestax.io/docs/api/helpers/usebulmaclasses#composable-mini-hooks). The hook's parameter is the widened `BulmaClassesPropsWithScheme` — identical to `BulmaClassesProps` except that `backgroundColor` also accepts the six `validSchemeColors` values (`BulmaColorPropsWithScheme` is the color-group equivalent, accepted by `useColorClasses` and `useColorStyles`):\n\n```ts\nexport interface BulmaClassesProps\n extends\n BulmaColorProps,\n BulmaSpacingProps,\n BulmaTypographyProps,\n BulmaVisibilityProps,\n BulmaFlexboxProps,\n BulmaOtherProps {}\n\nexport type BulmaViewportProps =\n | 'mobile'\n | 'tablet'\n | 'tablet-only'\n | 'touch'\n | 'desktop'\n | 'desktop-only'\n | 'widescreen'\n | 'widescreen-only'\n | 'fullhd';\n\nexport type BulmaDisplayProps =\n | 'block'\n | 'flex'\n | 'inline'\n | 'inline-block'\n | 'inline-flex'\n | 'grid'\n | 'none';\n\nexport interface BulmaColorProps {\n color?:\n | 'primary'\n | 'link'\n | 'info'\n | 'success'\n | 'warning'\n | 'danger'\n | 'black'\n | 'black-bis'\n | 'black-ter'\n | 'grey-darker'\n | 'grey-dark'\n | 'grey'\n | 'grey-light'\n | 'grey-lighter'\n | 'white'\n | 'white-bis'\n | 'white-ter'\n | 'light'\n | 'dark'\n | 'inherit'\n | 'current';\n colorShade?:\n | '00'\n | '05'\n | '10'\n | '15'\n | '20'\n | '25'\n | '30'\n | '35'\n | '40'\n | '45'\n | '50'\n | '55'\n | '60'\n | '65'\n | '70'\n | '75'\n | '80'\n | '85'\n | '90'\n | '95'\n | 'invert'\n | 'light'\n | 'dark'\n | 'soft'\n | 'bold'\n | 'on-scheme';\n backgroundColor?: BulmaColorProps['color'];\n backgroundColorShade?: BulmaColorProps['colorShade'];\n}\n\n// The scheme-aware input accepted by useBulmaClasses, useColorClasses,\n// and useColorStyles ((typeof validSchemeColors)[number] is\n// 'scheme-main' | 'scheme-main-bis' | 'scheme-main-ter'\n// | 'scheme-invert' | 'scheme-invert-bis' | 'scheme-invert-ter'):\nexport type BulmaColorPropsWithScheme = Omit<\n BulmaColorProps,\n 'backgroundColor'\n> & {\n backgroundColor?:\n BulmaColorProps['backgroundColor'] | (typeof validSchemeColors)[number];\n};\n\nexport type BulmaClassesPropsWithScheme = Omit<\n BulmaClassesProps,\n keyof BulmaColorProps\n> &\n BulmaColorPropsWithScheme;\n\nexport interface BulmaSpacingProps {\n m?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mt?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mr?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mb?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n ml?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n mx?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n my?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n p?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pt?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pr?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pb?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n pl?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n px?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n py?: '0' | '1' | '2' | '3' | '4' | '5' | '6' | 'auto';\n gap?: BulmaGapStep;\n columnGap?: BulmaGapStep;\n rowGap?: BulmaGapStep;\n gapless?: boolean;\n}\n\n// '0' to '8' in half steps ('0', '0.5', '1', … '7.5', '8'), as strings or numbers\nexport type BulmaGapStep =\n | '0'\n | '0.5'\n | '1'\n | '1.5'\n | '2'\n | '2.5'\n | '3'\n | '3.5'\n | '4'\n | '4.5'\n | '5'\n | '5.5'\n | '6'\n | '6.5'\n | '7'\n | '7.5'\n | '8'\n | 0\n | 0.5\n | 1\n | 1.5\n | 2\n | 2.5\n | 3\n | 3.5\n | 4\n | 4.5\n | 5\n | 5.5\n | 6\n | 6.5\n | 7\n | 7.5\n | 8;\n\nexport interface BulmaTypographyProps {\n textSize?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textAlign?: 'centered' | 'justified' | 'left' | 'right';\n textTransform?: 'capitalized' | 'lowercase' | 'uppercase' | 'italic';\n textWeight?: 'light' | 'normal' | 'medium' | 'semibold' | 'bold';\n fontFamily?: 'sans-serif' | 'monospace' | 'primary' | 'secondary' | 'code';\n viewport?: BulmaViewportProps;\n textSizeMobile?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeTablet?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeDesktop?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeWidescreen?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textSizeFullhd?: '1' | '2' | '3' | '4' | '5' | '6' | '7';\n textAlignMobile?: 'centered' | 'justified' | 'left' | 'right';\n textAlignTablet?: 'centered' | 'justified' | 'left' | 'right';\n textAlignDesktop?: 'centered' | 'justified' | 'left' | 'right';\n textAlignWidescreen?: 'centered' | 'justified' | 'left' | 'right';\n textAlignFullhd?: 'centered' | 'justified' | 'left' | 'right';\n}\n\nexport interface BulmaVisibilityProps {\n display?: BulmaDisplayProps;\n visibility?: 'hidden' | 'sr-only' | 'invisible';\n viewport?: BulmaViewportProps;\n displayMobile?: BulmaDisplayProps;\n displayTablet?: BulmaDisplayProps;\n displayTabletOnly?: BulmaDisplayProps;\n displayTouch?: BulmaDisplayProps;\n displayDesktop?: BulmaDisplayProps;\n displayDesktopOnly?: BulmaDisplayProps;\n displayWidescreen?: BulmaDisplayProps;\n displayWidescreenOnly?: BulmaDisplayProps;\n displayFullhd?: BulmaDisplayProps;\n visibilityMobile?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTablet?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTabletOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityTouch?: 'hidden' | 'sr-only' | 'invisible';\n visibilityDesktop?: 'hidden' | 'sr-only' | 'invisible';\n visibilityDesktopOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityWidescreen?: 'hidden' | 'sr-only' | 'invisible';\n visibilityWidescreenOnly?: 'hidden' | 'sr-only' | 'invisible';\n visibilityFullhd?: 'hidden' | 'sr-only' | 'invisible';\n}\n\nexport interface BulmaFlexboxProps {\n flexDirection?: 'row' | 'row-reverse' | 'column' | 'column-reverse';\n flexWrap?: 'nowrap' | 'wrap' | 'wrap-reverse';\n justifyContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly'\n | 'start'\n | 'end'\n | 'left'\n | 'right';\n alignContent?:\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'space-between'\n | 'space-around'\n | 'space-evenly'\n | 'stretch';\n alignItems?:\n | 'stretch'\n | 'flex-start'\n | 'flex-end'\n | 'center'\n | 'baseline'\n | 'start'\n | 'end';\n alignSelf?:\n 'auto' | 'flex-start' | 'flex-end' | 'center' | 'baseline' | 'stretch';\n flexGrow?: '0' | '1' | '2' | '3' | '4' | '5';\n flexShrink?: '0' | '1' | '2' | '3' | '4' | '5';\n}\n\nexport interface BulmaOtherProps {\n float?: 'left' | 'right';\n overflow?: 'clipped' | 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overflowX?: 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overflowY?: 'auto' | 'clip' | 'hidden' | 'scroll' | 'visible';\n overlay?: boolean;\n interaction?: 'unselectable' | 'clickable';\n cursor?: 'pointer' | 'help';\n radius?: 'radiusless' | 'small' | 'normal' | 'large' | 'rounded';\n shadow?: 'shadowless';\n responsive?: 'mobile' | 'narrow';\n skeleton?: boolean;\n clearfix?: boolean;\n pos?: 'absolute' | 'fixed' | 'relative' | 'static' | 'sticky';\n relative?: boolean;\n fullHeight?: boolean;\n aspectRatio?:\n | '1by1'\n | '5by4'\n | '4by3'\n | '3by2'\n | '5by3'\n | '16by9'\n | '2by1'\n | '3by1'\n | '4by5'\n | '3by4'\n | '2by3'\n | '3by5'\n | '9by16'\n | '1by2'\n | '1by3';\n}\n```\n\n---\n\n## Responsive Design\n\n### Global Viewport Property (Legacy)\n\nThe `viewport` prop applies a single viewport modifier to ALL properties that support it:\n\n```tsx\nconst { bulmaHelperClasses } = useBulmaClasses({\n color: 'primary',\n textAlign: 'centered',\n textSize: '4',\n viewport: 'mobile', // Applies -mobile to ALL properties\n});\n// Result: has-text-primary-mobile has-text-centered-mobile is-size-4-mobile\n```\n\n### Viewport-Specific Properties (Recommended)\n\nViewport-specific properties allow you to set **different values for each viewport**:\n\n```tsx\nconst { bulmaHelperClasses } = useBulmaClasses({\n // Different text sizes for each viewport\n textSizeMobile: '6', // Small on mobile\n textSizeTablet: '5', // Medium on tablet\n textSizeDesktop: '4', // Large on desktop\n\n // Different text alignment for each viewport\n textAlignMobile: 'centered', // Center on mobile\n textAlignDesktop: 'left', // Left align on desktop\n\n // Different visibility for each viewport\n visibilityMobile: 'hidden', // Hidden on mobile\n visibilityTablet: 'invisible', // Invisible from tablet up\n});\n// Result: is-size-6-mobile is-size-5-tablet is-size-4-desktop\n// has-text-centered-mobile has-text-left-desktop is-hidden-mobile is-invisible-tablet\n```\n\n### Breakpoint Reference\n\nBulma's responsive breakpoints:\n\n- **mobile**: up to 768px\n- **tablet**: 769px and above\n- **tablet-only**: 769px - 1023px (excludes desktop and above)\n- **touch**: up to 1023px (mobile + tablet combined — the breakpoint most often used to hide desktop-only chrome)\n- **desktop**: 1024px and above\n- **desktop-only**: 1024px - 1215px (excludes widescreen and above)\n- **widescreen**: 1216px and above\n- **widescreen-only**: 1216px - 1407px (excludes fullhd)\n- **fullhd**: 1408px and above\n\n`display`/`visibility` are the only property families with `*Touch`/`*TabletOnly`/`*DesktopOnly`/`*WidescreenOnly` props; other viewport-aware properties (`textSize*`, `textAlign*`) only go through `mobile`/`tablet`/`desktop`/`widescreen`/`fullhd`, though the generic `viewport` prop itself accepts all nine values for any property that reads it.\n\n### Properties That Support Viewport Modifiers\n\nOnly certain properties support responsive variants:\n\n**✅ Support Viewport Modifiers:**\n\n- Text size (`textSize`, `textSizeMobile`, `textSizeTablet`, etc.)\n- Text alignment (`textAlign`, `textAlignMobile`, `textAlignTablet`, etc.)\n- Display (`display`, `displayMobile`, `displayTablet`, `displayTabletOnly`, `displayTouch`, `displayDesktop`, `displayDesktopOnly`, `displayWidescreen`, `displayWidescreenOnly`, `displayFullhd`)\n- Visibility (`visibility`, `visibilityMobile`, `visibilityTablet`, `visibilityTabletOnly`, `visibilityTouch`, `visibilityDesktop`, `visibilityDesktopOnly`, `visibilityWidescreen`, `visibilityWidescreenOnly`, `visibilityFullhd`)\n\n**❌ Do NOT Support Viewport Modifiers:**\n\n- Spacing (`m`, `mt`, `mr`, `mb`, `ml`, `mx`, `my`, `p`, `pt`, `pr`, `pb`, `pl`, `px`, `py`)\n- Background colors (`backgroundColor`)\n- Flexbox properties (`flexDirection`, `flexWrap`, `justifyContent`, etc.)\n- Other helpers (`float`, `overflow`, `pos`, `radius`, `shadow`, `aspectRatio`, etc.)\n\n---\n\n## Notes\n\n- Any prop not recognized as a Bulma helper prop is passed through in `rest`.\n- Responsive helper props (`viewport`) suffix classes with the breakpoint (e.g., `is-size-3-mobile`).\n- You can use in combination with [`classNames`](https://bestax.io/docs/api/helpers/classnames) for more advanced use.\n\n---\n\n## See Also\n\n- [classNames helper](https://bestax.io/docs/api/helpers/classnames)\n- [Bulma Classes Reference](https://bulma.io/documentation/helpers/)\n- [Storybook: useBulmaClasses Demo](https://bestax.io/storybook/?path=/story/helpers-usebulmaclasses--default)",
200
200
  "parts": [],
201
201
  "cssVars": [],
202
202
  "helperProps": [
@@ -50,12 +50,13 @@ label — use that instead"_ or _"No `ProfileCard` exists; I'll build one compos
50
50
 
51
51
  Build from existing components before writing any CSS: `Box`, `Card`, `Title`, `SubTitle`,
52
52
  `Icon`, `Block`, `Content`, `Tag`, plus the shared Bulma helper props (spacing, color,
53
- typography, flexbox). Some compound sub-parts are the exception — `Modal.Card`, `Tabs.Tab`,
54
- `Message.Body` take **no Bulma helper props**, just `className` + HTML attributes
55
- plus their own few (`Tabs.Tab` requires `index={i}` and has built-in `disabled` and
56
- `icon`/`iconLibrary`/`iconVariant`/`iconSize`/`iconFeatures` — don't nest an `<Icon>` there) —
57
- so put helper props on the parent or on an element inside them, never invent them there.
58
- (`Card.*` sub-parts do take helper props, like `Table.*`/`Menu.*`/`Hero.*`.) Most "custom components" are a composition function — zero new styles.
53
+ typography, flexbox). Some components and parts take **no Bulma helper props**, just
54
+ `className` and HTML attributes plus their own few, so check one's props before passing a
55
+ helper (the styling ladder below says where), and where it takes none, put helper props on a
56
+ component around it or inside it that takes them, never invent them there.
57
+ `Tabs.Tab` is one: it requires `index={i}` and has built-in `disabled` and
58
+ `icon`/`iconLibrary`/`iconVariant`/`iconSize`/`iconFeatures`, so don't nest an `<Icon>` there.
59
+ Most "custom components" are a composition function with zero new styles.
59
60
  See `examples/stat-card.tsx` for a complete worked example.
60
61
 
61
62
  Rendering something only the browser knows (the reader's time zone, a `localStorage` value)?
@@ -207,11 +208,9 @@ translate each declaration:
207
208
  | `display: 'none'` | `visibility="hidden"`, or responsive `display*` props (`displayMobile`, `displayTablet`, …) |
208
209
  | `gap: '1rem'` (flex or grid) | `gap="2"`, or one axis: `columnGap`, `rowGap`; gap scale: `1`=0.5rem, `2`=1rem, `4`=2rem, half steps (`"1.5"`) |
209
210
 
210
- Spacing, typography, and flex helpers are on every component; `textColor`/`bgColor` are on
211
- the content components you'll compose with (`Box`, `Block`, `Title`, `Content`, `Card`, …) —
212
- the ones with a semantic `color` variant (`Tag`, `Tabs`, `Panel`) take `color` instead.
213
- `Notification` is the mixed case: it takes `textColor`, but its background comes from the
214
- semantic `color` prop, not `bgColor`.
211
+ Most components take the spacing, typography, and flex helpers, and many take the color
212
+ ones, but not every component or part does, so check its props before passing one, on its API
213
+ page or with the MCP server's `get_props`.
215
214
 
216
215
  A value with no helper equivalent (`maxWidth: 720`, a one-off gradient) moves you to rung 2 —
217
216
  a named class in a stylesheet — never to inline `style`.
@@ -160,7 +160,7 @@ component is guaranteed to appear (the generator fails if one lacks an API page)
160
160
  - [Slider](https://bestax.io/docs/api/form/slider) — The `Slider` component provides a range slider input for selecting values within a range.
161
161
  - [Switch](https://bestax.io/docs/api/form/switch) — The `Switch` component provides a toggle switch for boolean on/off states.
162
162
  - [Taginput](https://bestax.io/docs/api/form/taginput) — The `Taginput` component provides a tag/chip input field for managing multiple tags.
163
- - [TextArea](https://bestax.io/docs/api/form/textarea) — The `TextArea` component provides a Bulma-styled multi-line text input, supporting color, size, hover/focus/loading states, fixed size…
163
+ - [TextArea](https://bestax.io/docs/api/form/textarea) — The `TextArea` component provides a Bulma-styled multi-line text input, supporting color, size, hover/focus/loading states, fixed size, and Bulma helper props.
164
164
  - [TimeInput](https://bestax.io/docs/api/form/datetime/timeinput) — The `TimeInput` component is a form input that opens a popover spinner for time-of-day selection.
165
165
  - [TreeSelect](https://bestax.io/docs/api/form/treeselect) — The `TreeSelect` component is a form field whose options are a tree, such as categories, places or teams: it opens a panel holding a real `TreeView`…
166
166
 
@@ -190,8 +190,9 @@ Across the convenience inputs (`Input`, `Select`, `TextArea`, and similar):
190
190
  | `iconLeftName` / `iconRightName` | `string` | Icon shortcuts; pair with `hasIconsLeft/Right`. |
191
191
  | `isLoading` | `boolean` | Loading spinner on the Control; `Select` draws it in place of the chevron. |
192
192
 
193
- Plus the full Bulma **helper props** (`m`, `p`, `textColor`, `display`, …) on every component
194
- via `useBulmaClasses`.
193
+ Plus Bulma **helper props** (`m`, `p`, `display`, …) on most components via
194
+ `useBulmaClasses`. Check a component's props before passing one, on its API page or with the
195
+ MCP server's `get_props`.
195
196
 
196
197
  Full-width is `isFullwidth` on every component that supports it (`Button`, `LinkButton`,
197
198
  `Select`, `File`, `Table`, `Tabs`, `Sidebar`) — always write `isFullwidth`. The deprecated
@@ -1,8 +1,8 @@
1
1
  # Reference: form component props
2
2
 
3
3
  All components import from `@allxsmith/bestax-bulma`. Source lives in `bulma-ui/src/form/`.
4
- Every component also accepts the full Bulma helper props (`m`, `p`, `textColor`, `display`, …)
5
- via `useBulmaClasses`.
4
+ Most components also accept Bulma helper props (`m`, `p`, `display`, …) via
5
+ `useBulmaClasses`, so check a component's props before passing one.
6
6
 
7
7
  ## Field — `form/Field.tsx`
8
8
 
@@ -330,12 +330,12 @@ less wiring, not more.
330
330
 
331
331
  ## Inline style → helper prop mapping
332
332
 
333
- Look up the declaration you were about to inline. The spacing, typography, and flex helpers
334
- below are on every component; `textColor`/`bgColor` are on the content components you'll
335
- target (`Box`, `Block`, `Title`, `Content`, `Hero`, `Card`, …) — the ones with a semantic
336
- `color` variant (`Tag`, `Tabs`, `Panel`) take `color` instead; wrap content in a `Block` if
337
- you need a text color there. `Notification` is the mixed case: it takes `textColor`, but its
338
- background comes from the semantic `color` prop, not `bgColor`.
333
+ Look up the declaration you were about to inline. Most components take the spacing,
334
+ typography, and flex helpers below, and many take the color ones, but not every component or
335
+ part does, so check its props before passing one, on its API page or with the MCP server's
336
+ `get_props`. Where one doesn't (`Tabs.Tab`, for one), put the helper on a component around it
337
+ or inside it that takes it: wrap its content in a `Span` with `textColor` when the one you're
338
+ styling has no text color.
339
339
 
340
340
  | Inline style you're about to write | Helper props instead |
341
341
  | ---------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
@@ -25,9 +25,10 @@ import {
25
25
  } from '@allxsmith/bestax-bulma';
26
26
  ```
27
27
 
28
- Every component also accepts the shared Bulma helper props (`m`/`p` spacing, `textAlign`,
29
- `textColor`, `bgColor`, etc.). Flex helpers take the standard CSS values spelled in full:
30
- `justifyContent="space-between"`, `alignItems="center"`.
28
+ Most components also accept the shared Bulma helper props (`m`/`p` spacing, `textAlign`,
29
+ `display`, etc.), so check a component's or part's props before passing one. Flex helpers
30
+ take the standard CSS values spelled in full: `justifyContent="space-between"`,
31
+ `alignItems="center"`.
31
32
 
32
33
  > **Use helper props, never inline `style`, for spacing / alignment / color.** `mt="4"` (= 1rem)
33
34
  > not `style={{ marginTop: '1rem' }}`; `textAlign="centered"` not `style={{ textAlign: 'center' }}`;
@@ -149,7 +150,7 @@ Media), so `gap` is the only space between them: no `mb="0"` on the children, an
149
150
  helper such as `mt="2"` still adds to it. A `Columns` child keeps its own top and side margins and takes at the
150
151
  bottom the one Bulma gives the last Columns in a container (the column gap pulled back in, none
151
152
  when gapless), so its columns line up, and a `Pagination` child keeps its negative margins too. None draws a surface; put a `Box` or a `Card` inside or around. A `display` prop that isn't flex turns one
152
- off, as on any component.
153
+ off, as on any component that takes it.
153
154
 
154
155
  - `<Stack>`: a column, children stretched across it, `gap` Bulma's block spacing (1.5rem).
155
156
  - `<Group>`: a row that wraps, children centered on each other, `gap` half that (0.75rem). A
@@ -249,10 +250,10 @@ the column's auto height). Make the `Column` a flex container and let the card g
249
250
  </Columns>
250
251
  ```
251
252
 
252
- `display`, `flexDirection`, and `flexGrow` are helper props every component accepts;
253
- `flexGrow` takes a string (`"1"`). `Card.*` sub-parts accept helper props too, so pinning a
254
- footer inside a card is `<Card display="flex" flexDirection="column">` +
255
- `<Card.Content flexGrow="1">` — no `Box` swap needed.
253
+ `display`, `flexDirection`, and `flexGrow` are helper props; `flexGrow` takes a string
254
+ (`"1"`). `Card.*` sub-parts accept helper props too, so pinning a footer inside a card is
255
+ `<Card display="flex" flexDirection="column">` + `<Card.Content flexGrow="1">` — no `Box` swap
256
+ needed.
256
257
 
257
258
  ## Grid / Cell
258
259
 
@@ -1,6 +1,6 @@
1
1
  # Bulma classes → bestax-bulma prop map
2
2
 
3
- Which class becomes which prop, per component, then the helper classes every component takes.
3
+ Which class becomes which prop, per component, then the helper classes most components take.
4
4
  A class that becomes no prop stays in `className`. So does a second class for a prop already
5
5
  written (`is-small is-large` keeps `is-large`), so the element still renders both. A second
6
6
  color gets a `modifier:<root>` TODO (`modifier:button`), since only one of the two may show.
@@ -174,7 +174,7 @@ gutter (`is-<step>`), and it leaves the column and row gap helpers out.
174
174
 
175
175
  ## Helper classes
176
176
 
177
- These convert on every component above and on the plain-tag wrappers.
177
+ These convert on the components above that take helper props, and on the plain-tag wrappers.
178
178
 
179
179
  Colors are `primary`, `link`, `info`, `success`, `warning`, `danger`, `black`, `black-bis`,
180
180
  `black-ter`, `grey-darker`, `grey-dark`, `grey`, `grey-light`, `grey-lighter`, `white`,
package/dist/data.d.ts CHANGED
@@ -122,7 +122,7 @@ export interface ComponentRecord {
122
122
  /** A hook's `## API` signature block, its answer to a props table. */
123
123
  api?: string | null;
124
124
  /**
125
- * The helper props every component takes, with what each does, on the page
125
+ * The helper props most components take, with what each does, on the page
126
126
  * that documents them (useBulmaClasses), which search_bestax reads.
127
127
  */
128
128
  helperProps?: PropRow[];
package/dist/search.js CHANGED
@@ -534,7 +534,7 @@ export function searchAll(query, catalog, components, skills, kinds, sections =
534
534
  }
535
535
  }
536
536
  }
537
- // The helper props every component takes, on the page that documents
537
+ // The helper props most components take, on the page that documents
538
538
  // them. One answers only a query that is about it, by most of its words,
539
539
  // and then gets the bonus a component does, since it answers whatever
540
540
  // the builder renders, where a component's prop with the same words
@@ -1 +1 @@
1
- {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EACL,SAAS,EAEV,MAAM,yCAAyC,CAAC;AA2PjD,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAsB,YAAY,CAChC,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,SAAS,CAAC,CA4+BpB"}
1
+ {"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,OAAO,EACL,SAAS,EAEV,MAAM,yCAAyC,CAAC;AA2PjD,MAAM,WAAW,mBAAmB;IAClC,kEAAkE;IAClE,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,wBAAsB,YAAY,CAChC,OAAO,GAAE,mBAAwB,GAChC,OAAO,CAAC,SAAS,CAAC,CA6+BpB"}
package/dist/server.js CHANGED
@@ -337,8 +337,8 @@ export async function createServer(options = {}) {
337
337
  return '';
338
338
  return (`**Do not write inline \`style={{ … }}\`, and do not hand-write Bulma ` +
339
339
  `\`className\`s** (\`lookup_bulma_classes\` translates one you had in ` +
340
- `mind). Spacing, colour, typography, flex and visibility are ` +
341
- `props on every component. Translate the declaration you were about to ` +
340
+ `mind). Spacing, typography, flex and visibility are props on most ` +
341
+ `components, and colour on many. Translate the declaration you were about to ` +
342
342
  `inline using the table below; if nothing matches (\`maxWidth\`, a ` +
343
343
  `one-off gradient), add a named class to the project stylesheet and pass ` +
344
344
  `it via \`className\` — still never inline \`style\`.\n\n${section}\n\n---\n\n`);
@@ -706,10 +706,11 @@ export async function createServer(options = {}) {
706
706
  server.registerTool('get_helper_props', {
707
707
  title: 'Get helper props',
708
708
  annotations: READ_ONLY,
709
- description: 'The helper props every bestax component accepts — spacing, colour, ' +
710
- 'typography, flexbox, visibility — and their valid values. Call this ' +
711
- 'BEFORE writing an inline style or a utility class by hand; this ' +
712
- 'library expects those to be props.',
709
+ description: 'The helper props bestax components accept (spacing, colour, ' +
710
+ 'typography, flexbox, visibility) and their valid values. Most ' +
711
+ 'components take them, so check one with get_props before passing a ' +
712
+ 'helper. Call this BEFORE writing an inline style or a utility class ' +
713
+ 'by hand; this library expects those to be props.',
713
714
  inputSchema: {
714
715
  group: z
715
716
  .string()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bestax-mcp",
3
- "version": "1.18.80",
3
+ "version": "1.18.81",
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",
@@ -42,7 +42,7 @@
42
42
  "dependencies": {
43
43
  "@modelcontextprotocol/sdk": "^1.32.2",
44
44
  "zod": "^4.6.7",
45
- "@allxsmith/bestax-bulma": "^5.78.4"
45
+ "@allxsmith/bestax-bulma": "^5.78.5"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^26.6.6",