@oneli8/react 1.0.0-beta.10

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 (61) hide show
  1. package/AGENTS.md +16 -0
  2. package/LICENSE +202 -0
  3. package/NOTICE +8 -0
  4. package/PRINCIPLES.md +48 -0
  5. package/README.md +136 -0
  6. package/ai-context.json +264 -0
  7. package/package.json +66 -0
  8. package/skills/oneli8-figma-to-code/SKILL.md +25 -0
  9. package/skills/oneli8-icons/SKILL.md +36 -0
  10. package/skills/oneli8-ui/SKILL.md +52 -0
  11. package/src/atoms/Icon.js +34 -0
  12. package/src/atoms/NavigationBadge.js +19 -0
  13. package/src/atoms/SelectionIndicator.js +43 -0
  14. package/src/foundations/geometry.js +143 -0
  15. package/src/foundations/icons.generated.d.ts +48 -0
  16. package/src/foundations/icons.generated.js +562 -0
  17. package/src/index.d.ts +381 -0
  18. package/src/index.js +23 -0
  19. package/src/molecules/Button.js +50 -0
  20. package/src/molecules/ChoiceChip.js +101 -0
  21. package/src/molecules/ChoiceItem.js +55 -0
  22. package/src/molecules/FormMessage.js +33 -0
  23. package/src/molecules/IconButton.js +33 -0
  24. package/src/molecules/Link.js +31 -0
  25. package/src/molecules/NavigationItem.js +55 -0
  26. package/src/molecules/Select.js +109 -0
  27. package/src/molecules/SelectionOption.js +44 -0
  28. package/src/molecules/TextField.js +174 -0
  29. package/src/molecules/Token.js +49 -0
  30. package/src/organisms/ChoiceGroup.js +78 -0
  31. package/src/organisms/ChoicePicker.js +114 -0
  32. package/src/organisms/Combobox.js +122 -0
  33. package/src/organisms/MultiSelectField.js +138 -0
  34. package/src/organisms/SegmentedControl.js +114 -0
  35. package/src/organisms/SelectionPopup.js +73 -0
  36. package/src/organisms/TabBar.js +68 -0
  37. package/src/organisms/Tabs.js +123 -0
  38. package/src/styles/button.css +195 -0
  39. package/src/styles/choice-chip.css +216 -0
  40. package/src/styles/choice-group.css +95 -0
  41. package/src/styles/choice-item.css +267 -0
  42. package/src/styles/choice-picker.css +100 -0
  43. package/src/styles/combobox.css +42 -0
  44. package/src/styles/form-message.css +48 -0
  45. package/src/styles/gem.css +376 -0
  46. package/src/styles/icon-button.css +224 -0
  47. package/src/styles/icon.css +56 -0
  48. package/src/styles/link.css +116 -0
  49. package/src/styles/multi-select-field.css +78 -0
  50. package/src/styles/navigation-badge.css +37 -0
  51. package/src/styles/navigation-item.css +155 -0
  52. package/src/styles/segmented-control.css +115 -0
  53. package/src/styles/select.css +33 -0
  54. package/src/styles/selection-indicator.css +162 -0
  55. package/src/styles/selection-option.css +123 -0
  56. package/src/styles/selection-popup.css +92 -0
  57. package/src/styles/tab-bar.css +47 -0
  58. package/src/styles/tabs.css +55 -0
  59. package/src/styles/text-field.css +268 -0
  60. package/src/styles/token.css +65 -0
  61. package/styles.css +29 -0
package/AGENTS.md ADDED
@@ -0,0 +1,16 @@
1
+ # OneLi8 public beta usage
2
+
3
+ Read README.md and PRINCIPLES.md first. packages/react/src/index.d.ts is the
4
+ authoritative export surface — twenty one components across the atom, molecule
5
+ and organism tiers, plus their OL8_* option constants. Do not name a subset
6
+ here; it goes stale and then agents rebuild things that already ship. Do not
7
+ treat unused token families as available components either: a token is not a
8
+ promise that a component exists. Use [skills/oneli8-ui/SKILL.md](skills/oneli8-ui/SKILL.md) for composition,
9
+ [skills/oneli8-icons/SKILL.md](skills/oneli8-icons/SKILL.md) for icon work, and
10
+ [skills/oneli8-figma-to-code/SKILL.md](skills/oneli8-figma-to-code/SKILL.md) for
11
+ mapping work.
12
+
13
+ Reuse canonical code and semantic tokens. Do not create consumer-local copies
14
+ of existing icons, component skins or state geometry. Ask the maintainer about
15
+ missing design decisions. This public beta does not enforce arbitrary downstream
16
+ code automatically and does not claim complete Figma parity.
package/LICENSE ADDED
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
package/NOTICE ADDED
@@ -0,0 +1,8 @@
1
+ OneLi8 Design System (One-Li8)
2
+ Copyright 2026 Akshay Dhore
3
+
4
+ Created by Akshay Dhore. Includes OneLi8's Gem Morphism material treatment.
5
+ Inspired by Guruji Shrii Arnav and the 9x12 Way.
6
+
7
+ This product is licensed under the Apache License, Version 2.0.
8
+ These attribution notices are informational and do not modify the license.
package/PRINCIPLES.md ADDED
@@ -0,0 +1,48 @@
1
+ # OneLi8 principles
2
+
3
+ OneLi8 is intended for broad human benefit and conceived as service to Guruji
4
+ Shrii Arnav. His teachings inspire the project; implementation specifications
5
+ are OneLi8's own work. Service, clarity, harmony, proportion, restraint and
6
+ evolution guide its decisions.
7
+
8
+ ## Three distinct operating laws
9
+
10
+ 1. Atomic Design governs composition: atoms → molecules → organisms → templates
11
+ → pages. Icon plus label is a molecule, not a new atom. Private vector pieces
12
+ and layout wrappers need not become public components.
13
+ 2. OneLi8 Modularity governs ownership, reuse, semantic token dependencies,
14
+ optional-slot collapse and independent updates. Reuse an existing owner,
15
+ extend its API, or compose it before inventing another owner.
16
+ 3. Numerical atomicity governs the 3px construction rhythm and approved optical
17
+ exceptions, including the shared 1.8 icon stroke. Do not invent per-size strokes.
18
+
19
+ An optional sixth level, Spatial Experience, follows Page; it is not an extra
20
+ layer inside a button. Spatial ambition does not imply physical-device validation.
21
+
22
+ ## Materials and color
23
+
24
+ Gem Morphism is a transparent material skin, not a separate component anatomy.
25
+ Its four guiding qualities are Cut (bezel/edge), Color (semantic tint), Clarity
26
+ (legibility), and Carat/weight (appropriate visual presence). Facets are rare
27
+ accents, not mandatory decoration. Preserve near-white Gem content and test
28
+ contrast on the actual backdrop; do not promise automatic background sensing.
29
+
30
+ Regular and Gem reuse structure, measurements and behavior. Theme and primary
31
+ color are independent. Product colors consume semantic/component roles rather
32
+ than copied palette values. Use approved inward focus treatment without clipping
33
+ or changing a control's outer dimensions.
34
+
35
+ ## Structural space
36
+
37
+ Declare Fill, Hug or governed Fixed sizing. State surfaces share their owner's
38
+ boundary. Parent inset plus child inset is intentional, not accidental duplicated
39
+ padding. Removing an optional icon removes its gap. Preserve canonical spacing,
40
+ radius relationships, typography and icon pool rather than drawing lookalikes.
41
+
42
+ ## Evidence before claims
43
+
44
+ For new patterns, inspect Mobbin examples and relevant official interaction
45
+ guidance, then apply OneLi8's own identity. For repairs, approved decisions and
46
+ canonical owners come first. Record property, structural/token, visual and
47
+ runtime evidence separately. Changes require a Figma/code impact assessment;
48
+ no access or missing mapping means an explicit gap, not assumed synchronization.
package/README.md ADDED
@@ -0,0 +1,136 @@
1
+ # @oneli8/react
2
+
3
+ [![npm](https://img.shields.io/npm/v/@oneli8/react?color=2c438b&label=npm)](https://www.npmjs.com/package/@oneli8/react)
4
+ [![licence](https://img.shields.io/npm/l/@oneli8/react?color=2c438b)](https://github.com/Akshay007ad/OneLi8-Design-System/blob/main/LICENSE)
5
+
6
+ **OneLi8 means One Light.**
7
+
8
+ A design system created by Akshay Dhore, intended for broad human benefit and
9
+ conceived as service to Guruji Shrii Arnav, whose teachings inspire it. Service,
10
+ clarity, harmony, proportion, restraint and evolution guide its decisions.
11
+
12
+ The practical intention is narrower and easier to check. Most design systems
13
+ hand you components and hope you stay inside them. This one hands you the
14
+ reasoning as well, so when you need something it does not ship, you can build it
15
+ and have it still belong. The rules travel inside this package, not in a wiki
16
+ someone forgets to read.
17
+
18
+ ```sh
19
+ npm install @oneli8/react
20
+ ```
21
+
22
+ ```jsx
23
+ import { MultiSelectField } from '@oneli8/react';
24
+ import '@oneli8/react/styles.css';
25
+
26
+ <MultiSelectField
27
+ label="Skills"
28
+ options={skills}
29
+ values={chosen}
30
+ placeholder="Add skill…"
31
+ onRemoveValue={remove}
32
+ />
33
+ ```
34
+
35
+ Every component is drawn from a component set in the Figma source rather than
36
+ invented in code, and the two are checked against each other on every build.
37
+
38
+ ## What is included
39
+
40
+ Twenty one components, matching `@oneli8/core` one for one. Both packages are
41
+ checked against each other on every build, so the two cannot answer differently
42
+ about a role, a name, a relationship or a state.
43
+
44
+ **Atoms** · `Icon` · `SelectionIndicator` · `NavigationBadge`
45
+
46
+ **Molecules** · `Button` · `IconButton` · `Link` · `TextField` · `FormMessage`
47
+ · `Select` · `ChoiceItem` · `SelectionOption` · `ChoiceChip` · `Token`
48
+
49
+ **Organisms** · `Tabs` · `TabBar` · `SegmentedControl` · `RadioGroup`
50
+ · `CheckboxGroup` · `SelectionPopup` · `Combobox` · `MultiSelectField`
51
+ · `ChoicePicker`
52
+
53
+ **Material** · Gem, an attribute adapter rather than a tier
54
+
55
+ ## The system travels with the package
56
+
57
+ If you need a component OneLi8 does not ship, build it from these foundations
58
+ rather than inventing a parallel system. Everything needed to do that is inside
59
+ the install:
60
+
61
+ | File | What it carries |
62
+ |---|---|
63
+ | `PRINCIPLES.md` | the design language and the three operating laws |
64
+ | `ai-context.json` | the atomic rules, the component inventory, and how to extend |
65
+ | `skills/oneli8-icons` | drawing a new glyph on the shared 1.8 stroke |
66
+ | `skills/oneli8-ui` | composing with existing owners |
67
+ | `skills/oneli8-figma-to-code` | reading the Figma source |
68
+ | `AGENTS.md` | where an agent should start |
69
+
70
+ The inventory in `ai-context.json` is generated from the source tree, so it can
71
+ never describe a component that is not there.
72
+
73
+ Point your agent at them:
74
+
75
+ ```
76
+ Read @oneli8/react/ai-context.json and PRINCIPLES.md before writing any OneLi8 UI.
77
+ ```
78
+
79
+ ## Why this exists
80
+
81
+ `PRINCIPLES.md` ships inside this package and sets out the six values in full,
82
+ along with the three operating laws every component obeys. It is the document to
83
+ read before extending anything.
84
+
85
+ ## Naming
86
+
87
+ The structure is borrowed from Sanskrit grammar rather than a CSS convention.
88
+
89
+ **A compound naming one thing is one word.** `actionprimary` is not action plus
90
+ primary, it is a single role. `cutedge` is one feature of the Gem material.
91
+
92
+ **A qualifier stays separate from what it qualifies.** In
93
+ `--ol8-material-control-gem--primary-hover-start`, `hover` is a state applied to
94
+ `start`, so it keeps its hyphen. That is why `disabledcontent` is joined and
95
+ `hover-start` is not.
96
+
97
+ Hyphens separate levels of the hierarchy, never words inside a level. The words
98
+ themselves stay readable: no abbreviations and no truncation.
99
+
100
+ ## Rules that matter most
101
+
102
+ Reach for a **semantic** token, never a primitive and never a literal.
103
+ `--ol8-color-actionprimary-default`, not `--ol8-color-blue-600` and not
104
+ `#2c438b`. Primitives are hidden from the Figma pickers for the same reason.
105
+
106
+ Every dimension sits on the **3px grid**. An exception needs an approval record.
107
+
108
+ Icons come from the pool. `OL8_ICONS` is the whole set, an invented name throws.
109
+ A new glyph is a 24px neutral source on the shared **1.8 stroke**, never a
110
+ per size stroke.
111
+
112
+ Margins belong to the parent, never to the component.
113
+
114
+ States are not classes. There is no `.ol8-btn--hover`; there is `:hover`,
115
+ `:active`, `:focus-visible`, `[disabled]` and `[data-ol8-loading]`.
116
+
117
+ ## Accessibility is enforced, not suggested
118
+
119
+ `IconButton` throws without an `accessibleName`. `Button` throws for
120
+ `material="gem"` on Quiet or Destructive, because Figma approves Gem for Primary
121
+ and Secondary only. Errors rather than review comments, by design.
122
+
123
+ ## Theming
124
+
125
+ Two independent attributes, set on any ancestor:
126
+
127
+ ```html
128
+ <html data-ol8-color-scheme="dark" data-ol8-primary="orange">
129
+ ```
130
+
131
+ To change the brand colour beyond the three built families, or to swap the
132
+ typefaces, see `@oneli8/tokens/overrides.example.css`.
133
+
134
+ ## Licence
135
+
136
+ Apache 2.0. Created by Akshay Dhore. See `LICENSE` and `NOTICE`.
@@ -0,0 +1,264 @@
1
+ {
2
+ "$comment": "GENERATED by packages/sync/src/build-package-context.mjs — do not edit.",
3
+ "system": "OneLi8",
4
+ "version": "1.0.0-beta.10",
5
+ "meaning": "OneLi8 means One Light.",
6
+ "foundations": {
7
+ "package": "@oneli8/tokens",
8
+ "css": "@oneli8/tokens/css",
9
+ "tokenPrefix": "--ol8-",
10
+ "naming": {
11
+ "grammar": "Sanskrit grammar, not a CSS convention. Two rules follow from it and together they explain every name in the system. First, a compound that names ONE thing is written as one word: actionprimary is a single role rather than action plus primary, and cutedge is one feature of the Gem material, so action-primary would suggest two things where there is one. Second, a qualifier stays SEPARATE from what it qualifies: in --ol8-material-control-gem--primary-hover-start, hover is a state applied to start, two grammatical roles, so they stay apart. That is why disabledcontent is joined while hover-start is not. Hyphens separate levels of the hierarchy, never words inside a level. Words stay readable: no abbreviations, no truncation, no btn where button will do.",
12
+ "authority": "Figma is the authority on the result. Every variable there carries an explicit codeSyntax, copied verbatim into packages/tokens/src/figma-code-syntax.txt. Read a name from that record rather than re-deriving it from the grammar, because the file is not perfectly regular between siblings and guessing is how code and design drifted apart before. The grammar is the rule; the record is the spelling."
13
+ },
14
+ "rules": [
15
+ "Components consume SEMANTIC roles only. Primitives (color-<family>-<step>) are hidden from pickers in Figma and must not appear in component code.",
16
+ "color-primary-* is an alias ramp onto color-blue-* — identical values, distinct names. Prefer the semantic role over either.",
17
+ "Dimension scale is 3px-atomic. Even multiples for structural layout; odd multiples are deliberate optical or micro-gap choices.",
18
+ "Elevation ink is cyan-840 rgb(22,63,75) — never default black.",
19
+ "Typography roles are composite. Apply a whole role, all five of --ol8-typography-<role>-{font-family,font-size,font-weight,line-height,letter-spacing}, rather than picking loose font vars. This package ships custom properties and no class names.",
20
+ "shape-radius-full (999px) is reserved for pills and circles. Soft hexagons are component-specific recipes, not a radius token."
21
+ ]
22
+ },
23
+ "readFirst": [
24
+ "PRINCIPLES.md",
25
+ "AGENTS.md",
26
+ "skills/"
27
+ ],
28
+ "model": "React components. Same DOM and same stylesheets as @oneli8/core, verified identical.",
29
+ "architecture": {
30
+ "convention": "Atomic Design for developers (benjaminwfox.com/blog/tech/atomic-design-for-developers)",
31
+ "rules": [
32
+ "ATOM: composes no other component — native elements only. May hold internal state; must not read application state.",
33
+ "MOLECULE: composed of one or more atoms. Reusable, more specialised.",
34
+ "ORGANISM: composed of atoms/molecules/organisms. May hold business logic and application state.",
35
+ "MATERIALS are not an atomic tier. They are cross-cutting surface adapters applied by attribute (data-ol8-material) to an existing component, and live outside the hierarchy.",
36
+ "Assign margins to a component via its parent, NEVER to the component itself. Enforced by packages/sync/src/check-structure.mjs, which runs in npm run build."
37
+ ]
38
+ },
39
+ "components": [
40
+ {
41
+ "tier": "atom",
42
+ "module": "atoms/Icon.js",
43
+ "exports": [
44
+ "Icon"
45
+ ],
46
+ "constraint": "Composes no other component. Native elements only."
47
+ },
48
+ {
49
+ "tier": "atom",
50
+ "module": "atoms/NavigationBadge.js",
51
+ "exports": [
52
+ "NavigationBadge"
53
+ ],
54
+ "constraint": "Composes no other component. Native elements only."
55
+ },
56
+ {
57
+ "tier": "atom",
58
+ "module": "atoms/SelectionIndicator.js",
59
+ "exports": [
60
+ "SelectionIndicator"
61
+ ],
62
+ "constraint": "Composes no other component. Native elements only."
63
+ },
64
+ {
65
+ "tier": "molecule",
66
+ "module": "molecules/Button.js",
67
+ "exports": [
68
+ "Button"
69
+ ],
70
+ "constraint": "Composed of atoms. Reusable and more specialised."
71
+ },
72
+ {
73
+ "tier": "molecule",
74
+ "module": "molecules/ChoiceChip.js",
75
+ "exports": [
76
+ "ChoiceChip"
77
+ ],
78
+ "constraint": "Composed of atoms. Reusable and more specialised."
79
+ },
80
+ {
81
+ "tier": "molecule",
82
+ "module": "molecules/ChoiceItem.js",
83
+ "exports": [
84
+ "ChoiceItem"
85
+ ],
86
+ "constraint": "Composed of atoms. Reusable and more specialised."
87
+ },
88
+ {
89
+ "tier": "molecule",
90
+ "module": "molecules/FormMessage.js",
91
+ "exports": [
92
+ "FormMessage"
93
+ ],
94
+ "constraint": "Composed of atoms. Reusable and more specialised."
95
+ },
96
+ {
97
+ "tier": "molecule",
98
+ "module": "molecules/IconButton.js",
99
+ "exports": [
100
+ "IconButton"
101
+ ],
102
+ "constraint": "Composed of atoms. Reusable and more specialised."
103
+ },
104
+ {
105
+ "tier": "molecule",
106
+ "module": "molecules/Link.js",
107
+ "exports": [
108
+ "Link"
109
+ ],
110
+ "constraint": "Composed of atoms. Reusable and more specialised."
111
+ },
112
+ {
113
+ "tier": "molecule",
114
+ "module": "molecules/Select.js",
115
+ "exports": [
116
+ "OL8_SELECT_NATIVE_POLICIES",
117
+ "Select"
118
+ ],
119
+ "constraint": "Composed of atoms. Reusable and more specialised."
120
+ },
121
+ {
122
+ "tier": "molecule",
123
+ "module": "molecules/SelectionOption.js",
124
+ "exports": [
125
+ "SelectionOption"
126
+ ],
127
+ "constraint": "Composed of atoms. Reusable and more specialised."
128
+ },
129
+ {
130
+ "tier": "molecule",
131
+ "module": "molecules/TextField.js",
132
+ "exports": [
133
+ "TextField",
134
+ "countGraphemes",
135
+ "clipToGraphemes"
136
+ ],
137
+ "constraint": "Composed of atoms. Reusable and more specialised."
138
+ },
139
+ {
140
+ "tier": "molecule",
141
+ "module": "molecules/Token.js",
142
+ "exports": [
143
+ "Token"
144
+ ],
145
+ "constraint": "Composed of atoms. Reusable and more specialised."
146
+ },
147
+ {
148
+ "tier": "organism",
149
+ "module": "organisms/ChoiceGroup.js",
150
+ "exports": [
151
+ "RadioGroup",
152
+ "CheckboxGroup"
153
+ ],
154
+ "constraint": "Composed of atoms, molecules or organisms. May hold application state."
155
+ },
156
+ {
157
+ "tier": "organism",
158
+ "module": "organisms/ChoicePicker.js",
159
+ "exports": [
160
+ "ChoicePicker"
161
+ ],
162
+ "constraint": "Composed of atoms, molecules or organisms. May hold application state."
163
+ },
164
+ {
165
+ "tier": "organism",
166
+ "module": "organisms/Combobox.js",
167
+ "exports": [
168
+ "Combobox"
169
+ ],
170
+ "constraint": "Composed of atoms, molecules or organisms. May hold application state."
171
+ },
172
+ {
173
+ "tier": "organism",
174
+ "module": "organisms/MultiSelectField.js",
175
+ "exports": [
176
+ "MultiSelectField"
177
+ ],
178
+ "constraint": "Composed of atoms, molecules or organisms. May hold application state."
179
+ },
180
+ {
181
+ "tier": "organism",
182
+ "module": "organisms/SegmentedControl.js",
183
+ "exports": [
184
+ "SegmentedControl"
185
+ ],
186
+ "constraint": "Composed of atoms, molecules or organisms. May hold application state."
187
+ },
188
+ {
189
+ "tier": "organism",
190
+ "module": "organisms/SelectionPopup.js",
191
+ "exports": [
192
+ "SelectionPopup"
193
+ ],
194
+ "constraint": "Composed of atoms, molecules or organisms. May hold application state."
195
+ },
196
+ {
197
+ "tier": "organism",
198
+ "module": "organisms/TabBar.js",
199
+ "exports": [
200
+ "TabBar"
201
+ ],
202
+ "constraint": "Composed of atoms, molecules or organisms. May hold application state."
203
+ },
204
+ {
205
+ "tier": "organism",
206
+ "module": "organisms/Tabs.js",
207
+ "exports": [
208
+ "Tabs"
209
+ ],
210
+ "constraint": "Composed of atoms, molecules or organisms. May hold application state."
211
+ }
212
+ ],
213
+ "buildingWhatIsNotHere": {
214
+ "principle": "A component OneLi8 does not ship is still a OneLi8 component. Compose it from these foundations rather than inventing a parallel system.",
215
+ "steps": [
216
+ "Check the inventory below first. Do not rebuild something that exists.",
217
+ "Pick the tier by what it composes, not by how complex it feels.",
218
+ "Reach for a SEMANTIC token, never a primitive and never a literal. color-actionprimary-default, not color-blue-600 and not #2c438b.",
219
+ "Every dimension sits on the 3px grid. An exception needs an approval record, not a rounded number.",
220
+ "Icons come from the pool. To draw a new one follow skills/oneli8-icons: a 24px neutral source on the shared 1.8 stroke.",
221
+ "Give margins to the parent, never to the component.",
222
+ "States are not classes. Use :hover, :active, :focus-visible, [disabled] and data attributes.",
223
+ "Colour is currentColor on icons; the parent supplies the semantic role."
224
+ ],
225
+ "forbidden": [
226
+ "A literal colour, size or font value anywhere in a component.",
227
+ "A primitive token in a component. Primitives are hidden from the Figma pickers for the same reason.",
228
+ "An invented icon name. Choose from OL8_ICONS.",
229
+ "A per-size icon stroke. The 1.8 stroke is shared, and an Icon Frame instance is an exact scale of the 24px master, so an 18px one carries a 1.35 stroke. The selection masters are the exception: Icon / Selection / Check keeps the same 10.2 x 6.9 artwork at 1.8 in both its 18 and 24 boxes, so it is not scaled.",
230
+ "Mixing a filled treatment with an outlined one across selection controls. Checkbox and Radio share one language."
231
+ ]
232
+ },
233
+ "materials": {
234
+ "gem": {
235
+ "strategy": "attribute",
236
+ "emitAs": {
237
+ "data-ol8-material": "gem"
238
+ },
239
+ "note": "Gem is an attribute on an existing button, never a new class or variant. renderButton/renderIconButton throw for quiet and destructive.",
240
+ "appliesTo": {
241
+ "ol8-btn": [
242
+ "primary",
243
+ "secondary"
244
+ ],
245
+ "ol8-icon-btn": [
246
+ "primary",
247
+ "secondary"
248
+ ]
249
+ }
250
+ }
251
+ },
252
+ "pending": {
253
+ "Select and Combobox": {
254
+ "page": "1034:12628",
255
+ "remaining": {
256
+ "02 Selection Popup (organism)": "574:534, 6 variants — Width Content|Anchor|Wide x Size Standard|Large",
257
+ "03 Select Trigger": "583:338, 24 variants — Size x Appearance Outline|Filled x Condition",
258
+ "04 Choice Chip Foundation": "612:657 — Soft Hexagon 636:847 and Neutral 983:6552",
259
+ "05 Mobbin-informed Compositions": "603:281 (documentation)",
260
+ "06 Canonical Public Owners": "875:1399 (documentation)"
261
+ }
262
+ }
263
+ }
264
+ }