@halogen-ui/tokens 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.
package/LICENSE.md ADDED
@@ -0,0 +1,102 @@
1
+ # Halogen License Agreement
2
+
3
+ Copyright © 2026 Nick Jacoy. All rights reserved.
4
+
5
+ Halogen is **source-available commercial software**. The source is published so
6
+ that it can be read, evaluated and audited before purchase — publication is not
7
+ a grant of the right to use it. Use in a project requires a valid license.
8
+
9
+ ## 1. Definitions
10
+
11
+ - **"Software"** — the Halogen design system, comprising the `@halogen-ui/react`,
12
+ `@halogen-ui/tokens` and `@halogen-ui/eslint-config` packages and their source,
13
+ documentation and generated assets.
14
+ - **"Licensee"** — the individual or single legal entity that has purchased a
15
+ license.
16
+ - **"Product"** — an application, website or service built by the Licensee in
17
+ which the Software is used as a component of a larger work.
18
+
19
+ ## 2. Evaluation
20
+
21
+ Without purchasing a license, you may download, read, run and evaluate the
22
+ Software, including building and running it locally. You may not use it in a
23
+ Product, whether or not that Product is distributed, sold or made public.
24
+
25
+ ## 3. Grant of license
26
+
27
+ Upon purchase, the Licensee is granted a perpetual, worldwide, non-exclusive,
28
+ non-transferable license to:
29
+
30
+ a. use the Software in an unlimited number of Products;
31
+ b. modify the Software and use the modified version in those Products;
32
+ c. distribute the Software **as part of** a Product, in compiled or bundled
33
+ form, to that Product's end users;
34
+ d. make copies as reasonably required for backup and development.
35
+
36
+ The license covers the Licensee and its employees and contractors, acting on the
37
+ Licensee's behalf.
38
+
39
+ ## 4. Restrictions
40
+
41
+ The Licensee may not:
42
+
43
+ a. redistribute, publish, sublicense, sell, rent or lend the Software on its
44
+ own, or in any form where the Software — rather than a Product built with
45
+ it — is the substance of what is conveyed;
46
+ b. use the Software to create or contribute to a competing design system,
47
+ component library, UI kit or template that is distributed to third parties;
48
+ c. remove or obscure copyright, license or attribution notices;
49
+ d. share license credentials or a purchased copy outside the Licensee.
50
+
51
+ Publishing a fork, a re-skin, or a repackaged subset of the Software to a public
52
+ registry or repository is prohibited under (a) and (b), and this remains true
53
+ however the files were obtained.
54
+
55
+ ## 5. Third-party components
56
+
57
+ The Software depends on and, in the case of fonts, redistributes third-party
58
+ material licensed separately by its authors — including Radix UI, `clsx`,
59
+ `class-variance-authority`, `tailwind-merge` and `lucide-react` (MIT), and the
60
+ Geist and Geist Mono typefaces (SIL Open Font License 1.1, whose text ships at
61
+ `fonts/LICENSE-Geist-OFL-1.1.txt`). Nothing in this Agreement limits or replaces
62
+ your rights and obligations under those licenses.
63
+
64
+ ## 6. Ownership
65
+
66
+ The Software is licensed, not sold. All title and intellectual property rights
67
+ in the Software remain with the copyright holder. Rights not expressly granted
68
+ here are reserved.
69
+
70
+ ## 7. Warranty disclaimer
71
+
72
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
73
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
74
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
75
+
76
+ Halogen makes strong accessibility and contrast claims and tests them
77
+ extensively. Those tests are evidence, not a warranty: conformance of *your*
78
+ Product is your responsibility.
79
+
80
+ ## 8. Limitation of liability
81
+
82
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
83
+ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
84
+ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
85
+ DEALINGS IN THE SOFTWARE. Total liability shall not exceed the amount paid for
86
+ the license.
87
+
88
+ ## 9. Termination
89
+
90
+ This license terminates automatically if the Licensee materially breaches it and
91
+ does not cure the breach within 30 days of notice. On termination the Licensee
92
+ must cease using the Software in new Products; Products already distributed are
93
+ unaffected.
94
+
95
+ ## 10. Governing law
96
+
97
+ This Agreement is governed by the laws of the State of California, United
98
+ States, without regard to its conflict-of-laws rules.
99
+
100
+ ---
101
+
102
+ Licensing questions: https://github.com/njacoy/halogen-design-system
package/README.md ADDED
@@ -0,0 +1,43 @@
1
+ # @halogen-ui/tokens
2
+
3
+ The token layer for [Halogen](https://github.com/njacoy/halogen-design-system).
4
+ OKLCH-derived, contrast-asserted, and two-layer: primitives hold the values,
5
+ semantics name the jobs, and only the semantic layer is addressable from a
6
+ component.
7
+
8
+ ```bash
9
+ pnpm add @halogen-ui/tokens
10
+ ```
11
+
12
+ ## What it exports
13
+
14
+ | Entry | What it is |
15
+ | --- | --- |
16
+ | `@halogen-ui/tokens` | typed const maps — `semanticTokens`, `primitiveTokens`, `resolved` |
17
+ | `@halogen-ui/tokens/tokens.css` | the custom properties, both themes |
18
+ | `@halogen-ui/tokens/theme.css` | maps them into Tailwind v4's namespaces |
19
+ | `@halogen-ui/tokens/fonts.css` | self-hosted Geist and Geist Mono |
20
+ | `@halogen-ui/tokens/figma` | Figma variables export |
21
+ | `@halogen-ui/tokens/tokens-studio` | Tokens Studio format |
22
+ | `@halogen-ui/tokens/classgroups` | tailwind-merge class groups for the custom namespaces |
23
+
24
+ ```css
25
+ @import '@halogen-ui/tokens/fonts.css';
26
+ @import '@halogen-ui/tokens/tokens.css';
27
+ @import 'tailwindcss';
28
+ @import '@halogen-ui/tokens/theme.css';
29
+ ```
30
+
31
+ The TypeScript entry types each token name as a union, not as `string`, so a
32
+ typo is a compile error at the call site:
33
+
34
+ ```ts
35
+ import { semanticTokens, resolved } from '@halogen-ui/tokens';
36
+
37
+ semanticTokens['surface-raised']; // 'var(--halogen-surface-raised)'
38
+ resolved.dark['ink-primary']; // the resolved OKLCH value
39
+ ```
40
+
41
+ Contrast is asserted, not hoped for: every foreground/background pair the system
42
+ permits is checked against WCAG at build time, and the build fails on a
43
+ regression. See the repository for the report and the reasoning.