create-bestax 2.2.0 → 3.1.0

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.
Files changed (30) hide show
  1. package/dist/cli.d.ts.map +1 -1
  2. package/dist/cli.js +2 -0
  3. package/dist/constants.d.ts +3 -0
  4. package/dist/constants.d.ts.map +1 -1
  5. package/dist/constants.js +27 -6
  6. package/dist/project-creator.d.ts +2 -0
  7. package/dist/project-creator.d.ts.map +1 -1
  8. package/dist/project-creator.js +27 -3
  9. package/dist/prompts.d.ts +1 -0
  10. package/dist/prompts.d.ts.map +1 -1
  11. package/dist/prompts.js +9 -0
  12. package/package.json +4 -3
  13. package/templates/skills/bestax-custom-component/SKILL.md +389 -0
  14. package/templates/skills/bestax-custom-component/references/api.md +77 -0
  15. package/templates/skills/bestax-custom-component/references/patterns.md +133 -0
  16. package/templates/skills/bestax-form/SKILL.md +209 -0
  17. package/templates/skills/bestax-form/references/api.md +102 -0
  18. package/templates/skills/bestax-form/references/patterns.md +210 -0
  19. package/templates/skills/bestax-layout-scaffold/SKILL.md +66 -0
  20. package/templates/skills/bestax-layout-scaffold/examples/app-shell.tsx +80 -0
  21. package/templates/skills/bestax-layout-scaffold/examples/card-grid.tsx +98 -0
  22. package/templates/skills/bestax-layout-scaffold/examples/centered.tsx +56 -0
  23. package/templates/skills/bestax-layout-scaffold/examples/landing.tsx +77 -0
  24. package/templates/skills/bestax-layout-scaffold/references/archetypes.md +183 -0
  25. package/templates/skills/bestax-layout-scaffold/references/layout-components.md +181 -0
  26. package/templates/skills/bestax-theming/SKILL.md +73 -0
  27. package/templates/skills/bestax-theming/examples/dark-mode.tsx +38 -0
  28. package/templates/skills/bestax-theming/examples/theme-config.tsx +58 -0
  29. package/templates/skills/bestax-theming/references/css-variables.md +130 -0
  30. package/templates/skills/bestax-theming/references/themeable-components.md +74 -0
@@ -0,0 +1,74 @@
1
+ # Themeable component props
2
+
3
+ This is the self-contained inventory of the color/size/variant props that matter for theming in
4
+ `@allxsmith/bestax-bulma`. All values are source-verified. Components import from the package root:
5
+ `import { Button, Notification, Tag, Box, Message, Input, Title, SubTitle } from '@allxsmith/bestax-bulma'`.
6
+
7
+ ## Two kinds of color props
8
+
9
+ 1. **Component `color` modifier** → emits `is-<color>` (the filled Bulma variant). The accepted
10
+ values are component-specific (see the table). Example: `<Button color="primary">` → `is-primary`.
11
+ 2. **Helper color props** (available on virtually every component, applied as utility classes):
12
+ - `color` / `textColor` → `has-text-<color>` (text color)
13
+ - `backgroundColor` / `bgColor` → `has-background-<color>` (background)
14
+ - `colorShade` / `backgroundColorShade` → adds a shade suffix, e.g. `has-text-primary-30`
15
+
16
+ When a component has its own `color` modifier (Button, Tag, Input, …), use **`textColor`** /
17
+ **`bgColor`** for utility coloring so the two don't collide.
18
+
19
+ `<color>` for the helper props is one of **`validColors`**:
20
+
21
+ ```
22
+ primary, link, info, success, warning, danger,
23
+ black, black-bis, black-ter, grey-darker, grey-dark, grey, grey-light, grey-lighter,
24
+ white, light, dark
25
+ ```
26
+
27
+ Shades (`colorShade` / `backgroundColorShade`): `00, 05, 10, … 95, invert, light, dark, soft, bold, on-scheme`.
28
+
29
+ ## Component `color` / `size` props (verbatim unions)
30
+
31
+ | Component | `color` accepts | `size` accepts | Notes |
32
+ | -------------- | ------------------------------------------------------------------------------------------------------------- | ------------------------------------ | ----------------------------------------------------------------------------- |
33
+ | `Button` | `primary \| link \| info \| success \| warning \| danger \| white \| light \| dark \| black \| text \| ghost` | `small \| normal \| medium \| large` | adds `text`, `ghost`; also `isLight`, `isOutlined`, `isInverted`, `isRounded` |
34
+ | `Notification` | the 17 `validColors` | — | also `isLight` |
35
+ | `Tag` | `primary \| link \| info \| success \| warning \| danger \| black \| dark \| light \| white` | `normal \| medium \| large` | also `isRounded`, `isDelete`, `isHoverable` |
36
+ | `Box` | `primary \| link \| info \| success \| warning \| danger` | — | the 6 only; also `hasShadow` |
37
+ | `Message` | `primary \| link \| info \| success \| warning \| danger` | — | the 6 only |
38
+ | `Input` | `primary \| link \| info \| success \| warning \| danger \| black \| dark \| light \| white` | `small \| medium \| large` | also `isRounded`, `isStatic` |
39
+ | `Title` | — (no `color`; use `textColor`) | `1 \| 2 \| 3 \| 4 \| 5 \| 6` | also `isSpaced` |
40
+ | `SubTitle` | — (no `color`; use `textColor`) | `1 \| 2 \| 3 \| 4 \| 5 \| 6` | — |
41
+
42
+ The 6 brand colors (`primary, link, info, success, warning, danger`) are the ones a custom theme
43
+ recolors via the HSL trios (see `css-variables.md`). The greyscale and `white`/`light`/`dark`
44
+ entries follow the scheme variables.
45
+
46
+ ## Typography & misc helper props (on most components)
47
+
48
+ | Prop | Accepts | Class |
49
+ | -------------------------------------------- | --------------------------------------------------------- | ---------------------- |
50
+ | `textSize` | `1 \| 2 \| 3 \| 4 \| 5 \| 6 \| 7` | `is-size-<n>` |
51
+ | `textWeight` | `light \| normal \| medium \| semibold \| bold` | `has-text-weight-<w>` |
52
+ | `fontFamily` | `sans-serif \| monospace \| primary \| secondary \| code` | `is-family-<f>` |
53
+ | `textAlign` | `centered \| justified \| left \| right` | `has-text-<a>` |
54
+ | `radius` | `radiusless` | `is-radiusless` |
55
+ | `shadow` | `shadowless` | `is-shadowless` |
56
+ | `m` / `p` (+ `mt/mr/mb/ml/mx/my`, `pt/…/py`) | `0 \| 1 \| 2 \| 3 \| 4 \| 5 \| 6 \| auto` | `m-<n>` / `p-<n>` etc. |
57
+
58
+ These map to Bulma utility classes that read the same `--bulma-*` variables, so a custom theme
59
+ flows through them automatically.
60
+
61
+ ## Pattern
62
+
63
+ ```tsx
64
+ // Brand-colored, themeable components — colors recolor with the theme's HSL trios:
65
+ <Button color="primary">Save</Button>
66
+ <Notification color="info">Heads up</Notification>
67
+ <Tag color="success">Active</Tag>
68
+
69
+ // Utility coloring on a component that already has its own `color`:
70
+ <Button color="primary" textColor="white">Save</Button>
71
+
72
+ // Shade + background:
73
+ <Box bgColor="primary" backgroundColorShade="05">Subtle brand surface</Box>
74
+ ```