@codenhub/styles 0.4.0 → 0.5.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 (53) hide show
  1. package/README.md +1 -1
  2. package/dist/aesthetics/chunky-tile.css +1 -1
  3. package/dist/aesthetics/cyber.css +1 -1
  4. package/dist/aesthetics/glass.css +1 -1
  5. package/dist/aesthetics/index.css +1 -1
  6. package/dist/aesthetics/neobrutalism.css +1 -1
  7. package/dist/aesthetics/pixel.css +1 -1
  8. package/dist/aesthetics/sketch.css +1 -0
  9. package/dist/components.css +1 -1
  10. package/dist/index.css +1 -1
  11. package/dist/native.css +1 -1
  12. package/dist/palette.css +1 -1
  13. package/dist/theme.css +1 -1
  14. package/dist/tw/aesthetics/chunky-tile.css +142 -126
  15. package/dist/tw/aesthetics/cyber.css +132 -95
  16. package/dist/tw/aesthetics/glass.css +97 -56
  17. package/dist/tw/aesthetics/index.css +1 -0
  18. package/dist/tw/aesthetics/neobrutalism.css +99 -52
  19. package/dist/tw/aesthetics/pixel.css +127 -87
  20. package/dist/tw/aesthetics/sketch.css +326 -0
  21. package/dist/tw/box.css +100 -35
  22. package/dist/tw/components/button.css +40 -22
  23. package/dist/tw/components/feedback.css +29 -14
  24. package/dist/tw/components/form.css +151 -155
  25. package/dist/tw/components/index.css +15 -3
  26. package/dist/tw/components/loader.css +34 -25
  27. package/dist/tw/components/surface.css +28 -71
  28. package/dist/tw/components/tooltip.css +20 -10
  29. package/dist/tw/corner.css +26 -0
  30. package/dist/tw/elevation.css +8 -9
  31. package/dist/tw/intent.css +17 -9
  32. package/dist/tw/native.css +45 -39
  33. package/dist/tw/palette.css +452 -446
  34. package/dist/tw/presentation.css +9 -4
  35. package/dist/tw/surface.css +62 -0
  36. package/dist/tw/theme.css +106 -75
  37. package/dist/tw/utilities/content.css +25 -16
  38. package/dist/tw/utilities/layout.css +2 -2
  39. package/docs/accessibility.md +16 -16
  40. package/docs/changelog/0.5.0.md +38 -0
  41. package/docs/changelog/index.md +1 -0
  42. package/docs/index.md +3 -3
  43. package/docs/setup.md +23 -3
  44. package/docs/usage/aesthetics.md +56 -13
  45. package/docs/usage/buttons.md +13 -13
  46. package/docs/usage/composing.md +11 -11
  47. package/docs/usage/content-and-layout.md +13 -13
  48. package/docs/usage/customizing.md +90 -52
  49. package/docs/usage/feedback.md +1 -1
  50. package/docs/usage/forms.md +11 -11
  51. package/docs/usage/theming.md +1 -1
  52. package/llms-full.txt +274 -136
  53. package/package.json +12 -2
@@ -43,7 +43,7 @@ Loader size modifiers:
43
43
  | `.sm` | Small (`1.25rem`). |
44
44
  | `.lg` | Large (`2.25rem`). |
45
45
 
46
- Alerts, badges, progress bars, skeletons, and loaders accept `.primary`, `.secondary`, `.success`, `.warning`, `.destructive`, `.danger`, `.error`, and `.info`. Without an intent, they use the text palette, except `.loader`, which keeps `currentColor` so it matches whatever content surrounds it.
46
+ Alerts, badges, progress bars, skeletons, and loaders accept `.primary`, `.secondary`, `.success`, `.warning`, `.destructive`, and `.info`. Without an intent, they use the text palette, except `.loader`, which keeps `currentColor` so it matches whatever content surrounds it.
47
47
 
48
48
  Skeletons, loaders, and dividers are indicators: they read intent but ignore fill and edge [presentation](./composing.md#presentation). `.progress` is not one of them — its track reads both, `.soft.edgeless` by default; only the moving value fill stays intent-colored at full strength regardless of presentation. `.solid` is unsupported on the track, and `.ghost.edgeless` renders but is discouraged, since neither leaves the track a visible frame. See [Composing → Component axis reference](./composing.md#component-axis-reference) for the full table.
49
49
 
@@ -11,7 +11,7 @@ order: 6
11
11
  | `.field` | Vertical field wrapper. |
12
12
  | `.label` | Form label text. |
13
13
  | `.hint` | Secondary helper text. |
14
- | `.hint.error` | Helper text with destructive intent. |
14
+ | `.hint.destructive` | Helper text with destructive intent. |
15
15
  | `.surface` | Shared public container composition utility. |
16
16
  | `.text-control` | Shared public text-control composition utility. |
17
17
  | `.ipt` | Input control styling. |
@@ -71,15 +71,15 @@ The gap between the control and its adornment is `--input-group-gap`, `0.5rem` b
71
71
 
72
72
  `.checkbox`, `.radio`, and `.switch` accept the same intent classes as buttons to set the checked color:
73
73
 
74
- | Class | Meaning |
75
- | ----------------------------------- | ----------------------- |
76
- | `.neutral` _(default)_ | Text color, capped. |
77
- | `.primary` | Primary color. |
78
- | `.secondary` | Secondary/accent color. |
79
- | `.success` | Success color. |
80
- | `.warning` | Warning color. |
81
- | `.destructive`, `.danger`, `.error` | Destructive color. |
82
- | `.info` | Info color. |
74
+ | Class | Meaning |
75
+ | ---------------------- | ----------------------- |
76
+ | `.neutral` _(default)_ | Text color, capped. |
77
+ | `.primary` | Primary color. |
78
+ | `.secondary` | Secondary/accent color. |
79
+ | `.success` | Success color. |
80
+ | `.warning` | Warning color. |
81
+ | `.destructive` | Destructive color. |
82
+ | `.info` | Info color. |
83
83
 
84
84
  All three toggles rest at `.soft`. Presentation decides the _unchecked_ plate; checked is pinned to one look regardless of which class is on the element, so a checkbox, a radio, and a switch each have a single "on" identity rather than one per presentation:
85
85
 
@@ -126,7 +126,7 @@ The boundary is the edge axis's, and it splits the same way. A container's `.edg
126
126
  <label class="field">
127
127
  <span class="label">Email</span>
128
128
  <input class="ipt" type="email" aria-invalid="true" aria-describedby="email-error" />
129
- <span class="hint error" id="email-error">Enter a valid email.</span>
129
+ <span class="hint destructive" id="email-error">Enter a valid email.</span>
130
130
  </label>
131
131
  <label style="display: flex; gap: 0.5rem; align-items: center">
132
132
  <input type="checkbox" class="checkbox success" />
@@ -118,7 +118,7 @@ Set them directly to define an intent this package does not ship. **State every
118
118
 
119
119
  Foundation tokens are not aliases for one color. They define layout, shape, motion, focus, depth, and layering behavior used by helper classes.
120
120
 
121
- The four `--elevation-*` values below are raw shadows for elements you style yourself. They are a separate thing from `.elevation-none`/`.elevation-sm`/ `.elevation-md` (aliased as `.flat`/`.raised`/`.floating`), which scale a _component's own_ shadow geometry and default to no shadow at all until an aesthetic or one of those classes asks for depth — see [Composing → Elevation](./composing.md#elevation) for that system. The two share `none`/`sm`/`md`/`lg` naming for the same weight of depth, but one is a fixed value and the other multiplies shadow parts, so they will not always paint identically.
121
+ The four `--elevation-*` values below are raw shadows for elements you style yourself. They are a separate thing from `.flat`/`.raised`/`.floating`, which scale a _component's own_ shadow geometry and default to no shadow at all until an aesthetic or one of those classes asks for depth — see [Composing → Elevation](./composing.md#elevation) for that system. The two share `none`/`sm`/`md`/`lg` naming for the same weight of depth, but one is a fixed value and the other multiplies shadow parts, so they will not always paint identically.
122
122
 
123
123
  | Token | Purpose |
124
124
  | -------------------------- | ----------------------------------------------------------------------- |