@codenhub/styles 0.0.3 → 0.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 (75) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +52 -0
  3. package/README.md +60 -90
  4. package/dist/aesthetics/chunky-tile.css +1 -0
  5. package/dist/aesthetics/glass.css +1 -0
  6. package/dist/aesthetics/index.css +2 -0
  7. package/dist/aesthetics/neobrutalism.css +1 -0
  8. package/dist/aesthetics/pixel.css +1 -0
  9. package/dist/components.css +2 -2
  10. package/dist/index.css +2 -2
  11. package/dist/native.css +2 -0
  12. package/dist/theme.css +2 -2
  13. package/dist/tw/aesthetics/chunky-tile.css +107 -0
  14. package/dist/tw/aesthetics/glass.css +66 -0
  15. package/dist/tw/aesthetics/index.css +9 -0
  16. package/dist/tw/aesthetics/neobrutalism.css +63 -0
  17. package/dist/tw/aesthetics/pixel.css +88 -0
  18. package/dist/tw/box.css +185 -0
  19. package/dist/tw/components/button.css +88 -0
  20. package/dist/tw/components/feedback.css +163 -0
  21. package/dist/tw/components/form.css +601 -0
  22. package/dist/tw/components/index.css +18 -0
  23. package/dist/tw/components/loader.css +122 -0
  24. package/dist/tw/components/surface.css +98 -0
  25. package/dist/tw/components/tooltip.css +132 -0
  26. package/dist/tw/elevation.css +39 -0
  27. package/dist/tw/index.css +12 -0
  28. package/dist/tw/intent.css +189 -0
  29. package/dist/tw/native.css +203 -0
  30. package/dist/tw/presentation.css +77 -0
  31. package/dist/tw/reset.css +142 -0
  32. package/dist/tw/theme.css +218 -0
  33. package/dist/tw/typography.css +34 -0
  34. package/dist/tw/utilities/content.css +349 -0
  35. package/dist/tw/utilities/index.css +6 -0
  36. package/dist/tw/utilities/layout.css +107 -0
  37. package/docs/accessibility.md +43 -14
  38. package/docs/concepts.md +94 -0
  39. package/docs/index.md +62 -73
  40. package/docs/integrating/astro.md +29 -0
  41. package/docs/integrating/index.md +32 -0
  42. package/docs/integrating/nextjs.md +44 -0
  43. package/docs/integrating/svelte.md +37 -0
  44. package/docs/integrating/tailwind.md +40 -0
  45. package/docs/integrating/vue.md +25 -0
  46. package/docs/setup.md +116 -0
  47. package/docs/usage/aesthetics.md +197 -0
  48. package/docs/usage/buttons.md +74 -0
  49. package/docs/usage/composing.md +218 -0
  50. package/docs/usage/content-and-layout.md +200 -0
  51. package/docs/usage/customizing.md +213 -0
  52. package/docs/usage/feedback.md +117 -0
  53. package/docs/usage/forms.md +177 -0
  54. package/docs/usage/index.md +32 -0
  55. package/docs/usage/theming.md +210 -0
  56. package/docs/usage/tooltips.md +45 -0
  57. package/llms-full.txt +2122 -0
  58. package/llms.txt +26 -0
  59. package/package.json +96 -32
  60. package/docs/classes.md +0 -198
  61. package/docs/roadmap.md +0 -34
  62. package/docs/tests.md +0 -128
  63. package/docs/tokens.md +0 -101
  64. package/src/components/button.css +0 -155
  65. package/src/components/feedback.css +0 -214
  66. package/src/components/form.css +0 -296
  67. package/src/components/index.css +0 -9
  68. package/src/components/loader.css +0 -56
  69. package/src/components/surface.css +0 -6
  70. package/src/components/tooltip.css +0 -60
  71. package/src/index.css +0 -7
  72. package/src/overrides.css +0 -76
  73. package/src/theme.css +0 -136
  74. package/src/typography.css +0 -30
  75. package/src/utilities.css +0 -40
package/LICENSE ADDED
@@ -0,0 +1,201 @@
1
+ Apache License
2
+ Version 2.0, January 2004
3
+ http://www.apache.org/licenses/
4
+
5
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
6
+
7
+ 1. Definitions.
8
+
9
+ "License" shall mean the terms and conditions for use, reproduction,
10
+ and distribution as defined by Sections 1 through 9 of this document.
11
+
12
+ "Licensor" shall mean the copyright owner or entity authorized by
13
+ the copyright owner that is granting the License.
14
+
15
+ "Legal Entity" shall mean the union of the acting entity and all
16
+ other entities that control, are controlled by, or are under common
17
+ control with that entity. For the purposes of this definition,
18
+ "control" means (i) the power, direct or indirect, to cause the
19
+ direction or management of such entity, whether by contract or
20
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
21
+ outstanding shares, or (iii) beneficial ownership of such entity.
22
+
23
+ "You" (or "Your") shall mean an individual or Legal Entity
24
+ exercising permissions granted by this License.
25
+
26
+ "Source" form shall mean the preferred form for making modifications,
27
+ including but not limited to software source code, documentation
28
+ source, and configuration files.
29
+
30
+ "Object" form shall mean any form resulting from mechanical
31
+ transformation or translation of a Source form, including but
32
+ not limited to compiled object code, generated documentation,
33
+ and conversions to other media types.
34
+
35
+ "Work" shall mean the work of authorship, whether in Source or
36
+ Object form, made available under the License, as indicated by a
37
+ copyright notice that is included in or attached to the work
38
+ (an example is provided in the Appendix below).
39
+
40
+ "Derivative Works" shall mean any work, whether in Source or Object
41
+ form, that is based on (or derived from) the Work and for which the
42
+ editorial revisions, annotations, elaborations, or other modifications
43
+ represent, as a whole, an original work of authorship. For the purposes
44
+ of this License, Derivative Works shall not include works that remain
45
+ separable from, or merely link (or bind by name) to the interfaces of,
46
+ the Work and Derivative Works thereof.
47
+
48
+ "Contribution" shall mean any work of authorship, including
49
+ the original version of the Work and any modifications or additions
50
+ to that Work or Derivative Works thereof, that is intentionally
51
+ submitted to Licensor for inclusion in the Work by the copyright owner
52
+ or by an individual or Legal Entity authorized to submit on behalf of
53
+ the copyright owner. For the purposes of this definition, "submitted"
54
+ means any form of electronic, verbal, or written communication sent
55
+ to the Licensor or its representatives, including but not limited to
56
+ communication on electronic mailing lists, source code control systems,
57
+ and issue tracking systems that are managed by, or on behalf of, the
58
+ Licensor for the purpose of discussing and improving the Work, but
59
+ excluding communication that is conspicuously marked or otherwise
60
+ designated in writing by the copyright owner as "Not a Contribution."
61
+
62
+ "Contributor" shall mean Licensor and any individual or Legal Entity
63
+ on behalf of whom a Contribution has been received by Licensor and
64
+ subsequently incorporated within the Work.
65
+
66
+ 2. Grant of Copyright License. Subject to the terms and conditions of
67
+ this License, each Contributor hereby grants to You a perpetual,
68
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
69
+ copyright license to reproduce, prepare Derivative Works of,
70
+ publicly display, publicly perform, sublicense, and distribute the
71
+ Work and such Derivative Works in Source or Object form.
72
+
73
+ 3. Grant of Patent License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ (except as stated in this section) patent license to make, have made,
77
+ use, offer to sell, sell, import, and otherwise transfer the Work,
78
+ where such license applies only to those patent claims licensable
79
+ by such Contributor that are necessarily infringed by their
80
+ Contribution(s) alone or by combination of their Contribution(s)
81
+ with the Work to which such Contribution(s) was submitted. If You
82
+ institute patent litigation against any entity (including a
83
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
84
+ or a Contribution incorporated within the Work constitutes direct
85
+ or contributory patent infringement, then any patent licenses
86
+ granted to You under this License for that Work shall terminate
87
+ as of the date such litigation is filed.
88
+
89
+ 4. Redistribution. You may reproduce and distribute copies of the
90
+ Work or Derivative Works thereof in any medium, with or without
91
+ modifications, and in Source or Object form, provided that You
92
+ meet the following conditions:
93
+
94
+ (a) You must give any other recipients of the Work or
95
+ Derivative Works a copy of this License; and
96
+
97
+ (b) You must cause any modified files to carry prominent notices
98
+ stating that You changed the files; and
99
+
100
+ (c) You must retain, in the Source form of any Derivative Works
101
+ that You distribute, all copyright, patent, trademark, and
102
+ attribution notices from the Source form of the Work,
103
+ excluding those notices that do not pertain to any part of
104
+ the Derivative Works; and
105
+
106
+ (d) If the Work includes a "NOTICE" text file as part of its
107
+ distribution, then any Derivative Works that You distribute must
108
+ include a readable copy of the attribution notices contained
109
+ within such NOTICE file, excluding those notices that do not
110
+ pertain to any part of the Derivative Works, in at least one
111
+ of the following places: within a NOTICE text file distributed
112
+ as part of the Derivative Works; within the Source form or
113
+ documentation, if provided along with the Derivative Works; or,
114
+ within a display generated by the Derivative Works, if and
115
+ wherever such third-party notices normally appear. The contents
116
+ of the NOTICE file are for informational purposes only and
117
+ do not modify the License. You may add Your own attribution
118
+ notices within Derivative Works that You distribute, alongside
119
+ or as an addendum to the NOTICE text from the Work, provided
120
+ that such additional attribution notices cannot be construed
121
+ as modifying the License.
122
+
123
+ You may add Your own copyright statement to Your modifications and
124
+ may provide additional or different license terms and conditions
125
+ for use, reproduction, or distribution of Your modifications, or
126
+ for any such Derivative Works as a whole, provided Your use,
127
+ reproduction, and distribution of the Work otherwise complies with
128
+ the conditions stated in this License.
129
+
130
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
131
+ any Contribution intentionally submitted for inclusion in the Work
132
+ by You to the Licensor shall be under the terms and conditions of
133
+ this License, without any additional terms or conditions.
134
+ Notwithstanding the above, nothing herein shall supersede or modify
135
+ the terms of any separate license agreement you may have executed
136
+ with Licensor regarding such Contributions.
137
+
138
+ 6. Trademarks. This License does not grant permission to use the trade
139
+ names, trademarks, service marks, or product names of the Licensor,
140
+ except as required for reasonable and customary use in describing the
141
+ origin of the Work and reproducing the content of the NOTICE file.
142
+
143
+ 7. Disclaimer of Warranty. Unless required by applicable law or
144
+ agreed to in writing, Licensor provides the Work (and each
145
+ Contributor provides its Contributions) on an "AS IS" BASIS,
146
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
147
+ implied, including, without limitation, any warranties or conditions
148
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
149
+ PARTICULAR PURPOSE. You are solely responsible for determining the
150
+ appropriateness of using or redistributing the Work and assume any
151
+ risks associated with Your exercise of permissions under this License.
152
+
153
+ 8. Limitation of Liability. In no event and under no legal theory,
154
+ whether in tort (including negligence), contract, or otherwise,
155
+ unless required by applicable law (such as deliberate and grossly
156
+ negligent acts) or agreed to in writing, shall any Contributor be
157
+ liable to You for damages, including any direct, indirect, special,
158
+ incidental, or consequential damages of any character arising as a
159
+ result of this License or out of the use or inability to use the
160
+ Work (including but not limited to damages for loss of goodwill,
161
+ work stoppage, computer failure or malfunction, or any and all
162
+ other commercial damages or losses), even if such Contributor
163
+ has been advised of the possibility of such damages.
164
+
165
+ 9. Accepting Warranty or Additional Liability. While redistributing
166
+ the Work or Derivative Works thereof, You may choose to offer,
167
+ and charge a fee for, acceptance of support, warranty, indemnity,
168
+ or other liability obligations and/or rights consistent with this
169
+ License. However, in accepting such obligations, You may act only
170
+ on Your own behalf and on Your sole responsibility, not on behalf
171
+ of any other Contributor, and only if You agree to indemnify,
172
+ defend, and hold each Contributor harmless for any liability
173
+ incurred by, or claims asserted against, such Contributor by reason
174
+ of your accepting any such warranty or additional liability.
175
+
176
+ END OF TERMS AND CONDITIONS
177
+
178
+ APPENDIX: How to apply the Apache License to your work.
179
+
180
+ To apply the Apache License to your work, attach the following
181
+ boilerplate notice, with the fields enclosed by brackets "[]"
182
+ replaced with your own identifying information. (Don't include
183
+ the brackets!) The text should be enclosed in the appropriate
184
+ comment syntax for the file format. We also recommend that a
185
+ file or class name and description of purpose be included on the
186
+ same "printed page" as the copyright notice for easier
187
+ identification within third-party archives.
188
+
189
+ Copyright 2026 Coden Agency
190
+
191
+ Licensed under the Apache License, Version 2.0 (the "License");
192
+ you may not use this file except in compliance with the License.
193
+ You may obtain a copy of the License at
194
+
195
+ http://www.apache.org/licenses/LICENSE-2.0
196
+
197
+ Unless required by applicable law or agreed to in writing, software
198
+ distributed under the License is distributed on an "AS IS" BASIS,
199
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
200
+ See the License for the specific language governing permissions and
201
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,52 @@
1
+ @codenhub/styles
2
+ Copyright 2026 Coden Agency
3
+
4
+ This product includes software developed by Coden Agency.
5
+
6
+ ========================================================================
7
+ Third-Party Software Notices and Licenses:
8
+ ========================================================================
9
+
10
+ This product contains SVG icon assets derived from Lucide (https://lucide.dev),
11
+ which are licensed under the ISC License:
12
+
13
+ Copyright (c) Lucide Contributors (https://github.com/lucide-dev/lucide)
14
+
15
+ Permission to use, copy, modify, and/or distribute this software for any
16
+ purpose with or without fee is hereby granted, provided that the above
17
+ copyright notice and this permission notice appear in all copies.
18
+
19
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
20
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
21
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
22
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
23
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
24
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
25
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
26
+
27
+ ------------------------------------------------------------------------
28
+
29
+ This product contains loader assets derived from svg-spinners
30
+ (https://github.com/n3r4zzurr0/svg-spinners), which are licensed under the MIT
31
+ License:
32
+
33
+ The MIT License (MIT)
34
+
35
+ Copyright (c) Utkarsh Verma
36
+
37
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
38
+ this software and associated documentation files (the "Software"), to deal in
39
+ the Software without restriction, including without limitation the rights to
40
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
41
+ the Software, and to permit persons to whom the Software is furnished to do so,
42
+ subject to the following conditions:
43
+
44
+ The above copyright notice and this permission notice shall be included in all
45
+ copies or substantial portions of the Software.
46
+
47
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
49
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
50
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
51
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
52
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # @codenhub/styles
2
2
 
3
- Shared Codenhub CSS package with compiled styles, design tokens, theme support, component helper classes, layout helpers, typography utilities, and Tailwind CSS v4 source entrypoints.
4
-
5
- This package is CSS-only. It does not ship JavaScript behavior, DOM helpers, React components, or TypeScript APIs.
3
+ CSS-only Codenhub design tokens, base styles, and composable UI helper classes.
6
4
 
7
5
  ## Installation
8
6
 
@@ -10,39 +8,24 @@ This package is CSS-only. It does not ship JavaScript behavior, DOM helpers, Rea
10
8
  pnpm add @codenhub/styles
11
9
  ```
12
10
 
13
- Install Tailwind CSS only when importing Tailwind source entrypoints:
14
-
15
- ```sh
16
- pnpm add @codenhub/styles tailwindcss
17
- ```
18
-
19
- `tailwindcss` is an optional peer dependency. Compiled CSS imports do not require Tailwind in consumer apps.
20
-
21
11
  ## Usage
22
12
 
23
- ### Compiled CSS
24
-
25
- Use compiled CSS when the app does not process this package through Tailwind.
13
+ Import the compiled stylesheet for the complete token, reset, utility, and
14
+ component-class surface:
26
15
 
27
16
  ```css
28
17
  @import "@codenhub/styles";
29
18
  ```
30
19
 
31
20
  ```html
32
- <main class="sect">
33
- <section class="sect-container stack">
34
- <article class="card">
35
- <p class="text-label">Status</p>
36
- <h1 class="text-title">Ready to publish</h1>
37
- <button class="btn primary">Continue</button>
38
- </article>
39
- </section>
21
+ <main class="stack">
22
+ <p class="text-label">Status</p>
23
+ <h1 class="text-title">Ready to publish</h1>
24
+ <button class="btn primary">Continue</button>
40
25
  </main>
41
26
  ```
42
27
 
43
- ### Tailwind Source CSS
44
-
45
- Use Tailwind source CSS when the app already builds Tailwind CSS v4 and needs Codenhub tokens/classes available during that build.
28
+ Apps using Tailwind CSS v4 can instead process the source entrypoint:
46
29
 
47
30
  ```css
48
31
  @import "tailwindcss";
@@ -51,9 +34,8 @@ Use Tailwind source CSS when the app already builds Tailwind CSS v4 and needs Co
51
34
  @source "./src";
52
35
  ```
53
36
 
54
- ### Theme Classes
55
-
56
- Apply `.dark` to any ancestor to switch token values for that subtree.
37
+ The root follows the system color-scheme preference. Apply `.light` or `.dark`
38
+ to force a theme for the root or a subtree.
57
39
 
58
40
  ```html
59
41
  <html class="dark">
@@ -63,83 +45,71 @@ Apply `.dark` to any ancestor to switch token values for that subtree.
63
45
  </html>
64
46
  ```
65
47
 
66
- Apps own adding/removing `.dark`. This package only defines styles that respond to it.
67
-
68
- ## Reference
69
-
70
- ### Import Paths
71
-
72
- | Path | Kind | Contents |
73
- | -------------------------------- | ------------------- | ------------------------------------------------------------------- |
74
- | `@codenhub/styles` | Compiled CSS | Full stylesheet: theme, base styles, components, typography. |
75
- | `@codenhub/styles/theme` | Compiled CSS | Theme tokens, light/dark variables, Tailwind theme output. |
76
- | `@codenhub/styles/components` | Compiled CSS | Theme tokens plus component classes. |
77
- | `@codenhub/styles/tw` | Tailwind source CSS | Full Tailwind v4 source: theme, base styles, components, utilities. |
78
- | `@codenhub/styles/tw/theme` | Tailwind source CSS | Theme tokens, light/dark variables, custom dark variant. |
79
- | `@codenhub/styles/tw/components` | Tailwind source CSS | Theme tokens plus component classes. |
80
- | `@codenhub/styles/tw/surface` | Tailwind source CSS | Surface styles and empty-state utility. |
81
- | `@codenhub/styles/tw/button` | Tailwind source CSS | Composable button utilities. |
82
- | `@codenhub/styles/tw/form` | Tailwind source CSS | Form, input, textarea, select, checkbox, switch utilities. |
83
- | `@codenhub/styles/tw/feedback` | Tailwind source CSS | Alert, badge, skeleton, progress utilities. |
84
- | `@codenhub/styles/tw/loader` | Tailwind source CSS | Loader and activity indicator utilities. |
85
- | `@codenhub/styles/tw/tooltip` | Tailwind source CSS | Tooltip utility. |
86
- | `@codenhub/styles/tw/utilities` | Tailwind source CSS | Layout primitives and contrast utilities. |
48
+ The aliases `.theme-light`, `.theme-dark`, and `data-theme="light|dark"` are
49
+ also supported. See [Concepts](./docs/concepts.md#theme-selection) for
50
+ precedence details.
87
51
 
88
- ### Detailed Docs
52
+ `.solid`, `.soft`, and `.ghost` set how much intent fills a component; `.edged`
53
+ and `.edgeless` set whether it draws a boundary. Both axes cascade, so a
54
+ container sets the look below it and any element can still override it.
55
+ `.solid` also takes the boundary away, because a filled box ringed in another
56
+ color is what the blend behind `.edged` exists to prevent; `.solid.edged` is the
57
+ way back to a line.
89
58
 
90
- Detailed package reference ships with the package under `docs/`:
91
-
92
- | Document | Purpose |
93
- | ---------------------------------------- | ------------------------------------------------------------- |
94
- | [Overview](./docs/index.md) | Package model, entrypoints, and class model. |
95
- | [Tokens](./docs/tokens.md) | Color and foundation token contracts. |
96
- | [Classes](./docs/classes.md) | Layout, surface, action, form, feedback, and tooltip helpers. |
97
- | [Accessibility](./docs/accessibility.md) | CSS accessibility hooks and non-goals. |
98
- | [Tests](./docs/tests.md) | Build and browser validation strategy. |
99
-
100
- ## Examples
59
+ ```html
60
+ <div class="soft">
61
+ <button class="btn primary">Soft</button>
62
+ <span class="badge success">Soft</span>
63
+ <button class="btn primary ghost edged">Outlined</button>
64
+ </div>
65
+ ```
101
66
 
102
- ### Composed Buttons
67
+ Aesthetics decide what a component is made of. They are opt-in, so import the
68
+ stylesheet after the base one to make `.neobrutalism`, `.glass`, `.pixel`, and
69
+ `.chunky-tile` available. They cascade to any subtree the same way, and each is
70
+ also importable on its own from `@codenhub/styles/aesthetics/<name>`.
103
71
 
104
- Intent classes set color meaning. Presentation classes set visual treatment and consume active intent tone slots.
72
+ ```css
73
+ @import "@codenhub/styles";
74
+ @import "@codenhub/styles/aesthetics";
75
+ ```
105
76
 
106
77
  ```html
107
- <button class="btn primary">Primary</button>
108
- <button class="btn success out">Success outline</button>
109
- <button class="btn destructive ghost">Ghost danger</button>
110
- <button class="btn secondary loading" disabled>Saving</button>
78
+ <section class="neobrutalism">
79
+ <button class="btn primary">Thick ink and a hard shadow</button>
80
+ </section>
111
81
  ```
112
82
 
113
- ### Forms And Feedback
114
-
115
- ```html
116
- <label class="field">
117
- <span class="label">Email</span>
118
- <input class="ipt" type="email" aria-describedby="email-hint" />
119
- <span class="hint" id="email-hint">Use a work email.</span>
120
- </label>
83
+ ## Documentation
121
84
 
122
- <div class="alert success" role="status">Saved successfully.</div>
123
- ```
85
+ - [Documentation overview](./docs/index.md): What the package is, what it
86
+ does and does not do, and where to go next.
87
+ - [Setup](./docs/setup.md): Installation, entrypoints, and configuration.
88
+ - [Concepts](./docs/concepts.md): The three-axis model and the token system.
89
+ - [Usage](./docs/usage/index.md): Composing, theming, customizing,
90
+ aesthetics, and each component family.
91
+ - [Integrating](./docs/integrating/index.md): Wiring the stylesheet into
92
+ Next.js, Vue, Svelte, Astro, or a Tailwind CSS v4 build.
93
+ - [Accessibility](./docs/accessibility.md): CSS accessibility hooks and non-goals.
124
94
 
125
95
  ## Requirements
126
96
 
127
- | Requirement | Details |
128
- | --------------- | ------------------------------------------------------------------------------------------ |
129
- | CSS imports | Consumer tooling must support package CSS imports. |
130
- | Tailwind CSS | Required only for `@codenhub/styles/tw` entrypoints. Version 4 or newer. |
131
- | Browser runtime | Styles target browsers. There is no JavaScript runtime behavior. |
132
- | Dark mode | Consumers apply or remove `.dark`; package CSS reacts to that class. |
133
- | Accessibility | Styles do not provide semantic HTML, labels, ARIA, keyboard behavior, or focus management. |
97
+ | Requirement | Details |
98
+ | ------------- | -------------------------------------------------------------------------------------------------------------- |
99
+ | CSS imports | Consumer tooling must resolve package CSS imports. |
100
+ | Browsers | Chrome 123, Safari 17.5, or Firefox 121 and newer (`light-dark()` theming; `:has()` for `.input-group` state). |
101
+ | Tailwind CSS | Version 4 or newer is required only for `/tw` source entrypoints. |
102
+ | Accessibility | Consumers provide semantic HTML, ARIA, keyboard behavior, and focus management. |
134
103
 
135
104
  ## Notes
136
105
 
137
- This package publishes CSS as its public runtime surface. It does not expose JavaScript or TypeScript entrypoints.
138
-
139
- Lifecycle exception: `@codenhub/styles` intentionally omits `main`, `module`, and `types` from `package.json` because it is a CSS-only package with no JavaScript API. Every supported consumer import path is listed explicitly in `exports`, build output is generated into `dist`, and package checks validate the CSS build contract.
140
-
141
- The package intentionally does not expose private files outside the documented import paths. If exports change, this README and the related `docs/` documents must be updated in the same change.
106
+ This package has no JavaScript behavior. `--layout-gap` replaces the removed
107
+ `--layout-stack-gap` and `--layout-cluster-gap` tokens; no compatibility aliases
108
+ are provided.
142
109
 
143
110
  ## License
144
111
 
145
- This project is licensed under the [Apache-2.0](LICENSE) license.
112
+ Licensed under Apache-2.0. Embedded SVG icons derived from
113
+ [Lucide](https://lucide.dev) are ISC-licensed, and loaders derived from
114
+ [svg-spinners](https://github.com/n3r4zzurr0/svg-spinners) are MIT-licensed.
115
+ See [NOTICE](NOTICE) for the required notices.
@@ -0,0 +1 @@
1
+ .chunky-tile{--_tile-lift:var(--tile-lift,4px);--_tile-radius:var(--tile-radius,.75rem);--ui-ink:light-dark(var(--color-neutral-400),var(--color-neutral-600));--ui-radius:var(--_tile-radius);--ui-radius-surface:var(--_tile-radius);--ui-border-width:2px;--ui-border-max:100px;--elevation-color:#000;--ui-shadow-ink:72%;--ui-shadow-x:0px;--ui-shadow-y:var(--_tile-lift);--ui-shadow-blur:0px;--ui-shadow-spread:0px;--ui-active-shadow-x:0px;--ui-active-shadow-y:0px;--ui-active-transform:translateY(var(--_tile-lift));--ui-clip:none;--ui-clip-tight:none;--ui-shadow-inset: ;--ui-shadow-edge:initial;--ui-backdrop:none;--ui-bg-alpha:1;font-family:var(--font-rounded,var(--font-sans,ui-sans-serif, system-ui, sans-serif))}.chunky-tile :is(.btn,button){letter-spacing:.04em;font-weight:800}
@@ -0,0 +1 @@
1
+ .glass{--ui-radius:var(--glass-radius,.75rem);--ui-radius-surface:var(--glass-radius-surface,1rem);--ui-border-width:1px;--ui-border-max:100px;--ui-ink:light-dark(#ffffffa6,#ffffff38);--ui-bg-alpha:.8;--ui-backdrop:blur(14px) saturate(1.6);--ui-shadow-x:0px;--ui-shadow-y:0px;--ui-shadow-blur:0px;--ui-shadow-spread:0px;--ui-surface-ground:color-mix(in srgb, var(--color-background) 45%, transparent);--ui-surface-shadow:0 1px 2px -1px var(--elevation-color), 0 18px 40px -16px var(--elevation-color);--ui-clip:none;--ui-clip-tight:none;--ui-shadow-edge:initial;--ui-hover-transform:none;--ui-active-transform:none}@media (prefers-reduced-transparency:reduce){.glass{--ui-bg-alpha:1;--ui-backdrop:none;--ui-surface-ground:var(--color-background)}}
@@ -0,0 +1,2 @@
1
+ /*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */
2
+ .neobrutalism{--_neo-offset:var(--neo-offset,4px);--ui-ink:light-dark(var(--color-neutral-950),var(--color-neutral-50));--ui-radius:0;--ui-radius-surface:0;--ui-border-width:2px;--ui-border-max:100px;--ui-shadow-ink:100%;--ui-shadow-x:var(--_neo-offset);--ui-shadow-y:var(--_neo-offset);--ui-shadow-blur:0px;--ui-shadow-spread:0px;--ui-active-shadow-x:0px;--ui-active-shadow-y:0px;--ui-active-transform:translate(var(--_neo-offset), var(--_neo-offset));--ui-clip:none;--ui-clip-tight:none;--ui-shadow-inset: ;--ui-shadow-edge:initial;--ui-backdrop:none}.neobrutalism .alert{--_d-elevation:1}.glass{--ui-radius:var(--glass-radius,.75rem);--ui-radius-surface:var(--glass-radius-surface,1rem);--ui-border-width:1px;--ui-border-max:100px;--ui-ink:light-dark(#ffffffa6,#ffffff38);--ui-bg-alpha:.8;--ui-backdrop:blur(14px) saturate(1.6);--ui-shadow-x:0px;--ui-shadow-y:0px;--ui-shadow-blur:0px;--ui-shadow-spread:0px;--ui-surface-ground:var(--color-background)}@supports (color:color-mix(in lab, red, red)){.glass{--ui-surface-ground:color-mix(in srgb, var(--color-background) 45%, transparent)}}.glass{--ui-surface-shadow:0 1px 2px -1px var(--elevation-color), 0 18px 40px -16px var(--elevation-color);--ui-clip:none;--ui-clip-tight:none;--ui-shadow-edge:initial;--ui-hover-transform:none;--ui-active-transform:none}@media (prefers-reduced-transparency:reduce){.glass{--ui-bg-alpha:1;--ui-backdrop:none;--ui-surface-ground:var(--color-background)}}.pixel{--_pixel-unit:var(--pixel-unit,4px);--ui-ink:light-dark(var(--color-neutral-950),var(--color-neutral-50));--ui-radius:0;--ui-radius-surface:0;--ui-border-width:2px;--ui-border-max:0px;--ui-shadow-inset:inset;--ui-shadow-edge: ;--ui-shadow-spread:var(--_pixel-unit);--ui-shadow-x:0px;--ui-shadow-y:0px;--ui-shadow-blur:0px;--ui-focus-inset:calc(var(--_pixel-unit) + var(--focus-ring-width));--ui-clip:polygon(0 var(--_pixel-unit), var(--_pixel-unit) var(--_pixel-unit), var(--_pixel-unit) 0, calc(100% - var(--_pixel-unit)) 0, calc(100% - var(--_pixel-unit)) var(--_pixel-unit), 100% var(--_pixel-unit), 100% calc(100% - var(--_pixel-unit)), calc(100% - var(--_pixel-unit)) calc(100% - var(--_pixel-unit)), calc(100% - var(--_pixel-unit)) 100%, var(--_pixel-unit) 100%, var(--_pixel-unit) calc(100% - var(--_pixel-unit)), 0 calc(100% - var(--_pixel-unit)));--ui-clip-tight:none;--ui-hover-transform:none;--ui-active-transform:none;--ui-backdrop:none;font-family:var(--font-pixel,ui-monospace, SFMono-Regular, Menlo, Consolas, monospace)}.chunky-tile{--_tile-lift:var(--tile-lift,4px);--_tile-radius:var(--tile-radius,.75rem);--ui-ink:light-dark(var(--color-neutral-400),var(--color-neutral-600));--ui-radius:var(--_tile-radius);--ui-radius-surface:var(--_tile-radius);--ui-border-width:2px;--ui-border-max:100px;--elevation-color:#000;--ui-shadow-ink:72%;--ui-shadow-x:0px;--ui-shadow-y:var(--_tile-lift);--ui-shadow-blur:0px;--ui-shadow-spread:0px;--ui-active-shadow-x:0px;--ui-active-shadow-y:0px;--ui-active-transform:translateY(var(--_tile-lift));--ui-clip:none;--ui-clip-tight:none;--ui-shadow-inset: ;--ui-shadow-edge:initial;--ui-backdrop:none;--ui-bg-alpha:1;font-family:var(--font-rounded,var(--font-sans,ui-sans-serif, system-ui, sans-serif))}.chunky-tile :is(.btn,button){letter-spacing:.04em;font-weight:800}
@@ -0,0 +1 @@
1
+ .neobrutalism{--_neo-offset:var(--neo-offset,4px);--ui-ink:light-dark(var(--color-neutral-950),var(--color-neutral-50));--ui-radius:0;--ui-radius-surface:0;--ui-border-width:2px;--ui-border-max:100px;--ui-shadow-ink:100%;--ui-shadow-x:var(--_neo-offset);--ui-shadow-y:var(--_neo-offset);--ui-shadow-blur:0px;--ui-shadow-spread:0px;--ui-active-shadow-x:0px;--ui-active-shadow-y:0px;--ui-active-transform:translate(var(--_neo-offset), var(--_neo-offset));--ui-clip:none;--ui-clip-tight:none;--ui-shadow-inset: ;--ui-shadow-edge:initial;--ui-backdrop:none}.neobrutalism .alert{--_d-elevation:1}
@@ -0,0 +1 @@
1
+ .pixel{--_pixel-unit:var(--pixel-unit,4px);--ui-ink:light-dark(var(--color-neutral-950),var(--color-neutral-50));--ui-radius:0;--ui-radius-surface:0;--ui-border-width:2px;--ui-border-max:0px;--ui-shadow-inset:inset;--ui-shadow-edge: ;--ui-shadow-spread:var(--_pixel-unit);--ui-shadow-x:0px;--ui-shadow-y:0px;--ui-shadow-blur:0px;--ui-focus-inset:calc(var(--_pixel-unit) + var(--focus-ring-width));--ui-clip:polygon(0 var(--_pixel-unit), var(--_pixel-unit) var(--_pixel-unit), var(--_pixel-unit) 0, calc(100% - var(--_pixel-unit)) 0, calc(100% - var(--_pixel-unit)) var(--_pixel-unit), 100% var(--_pixel-unit), 100% calc(100% - var(--_pixel-unit)), calc(100% - var(--_pixel-unit)) calc(100% - var(--_pixel-unit)), calc(100% - var(--_pixel-unit)) 100%, var(--_pixel-unit) 100%, var(--_pixel-unit) calc(100% - var(--_pixel-unit)), 0 calc(100% - var(--_pixel-unit)));--ui-clip-tight:none;--ui-hover-transform:none;--ui-active-transform:none;--ui-backdrop:none;font-family:var(--font-pixel,ui-monospace, SFMono-Regular, Menlo, Consolas, monospace)}