@oneli8/tokens 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.
- package/AGENTS.md +16 -0
- package/FONTS-LICENSE.txt +113 -0
- package/LICENSE +202 -0
- package/NOTICE +8 -0
- package/PRINCIPLES.md +48 -0
- package/README.md +163 -0
- package/ai-context.json +56 -0
- package/build/css/tokens.css +869 -0
- package/build/figma/variables.json +7785 -0
- package/build/manifest.json +22 -0
- package/build/status/components.json +235 -0
- package/build/tailwind/preset.mjs +258 -0
- package/build/tailwind/theme.css +125 -0
- package/build/typescript/index.d.ts +10 -0
- package/build/typescript/index.js +7169 -0
- package/fonts/ar-one-sans-latin-ext.woff2 +0 -0
- package/fonts/ar-one-sans-latin.woff2 +0 -0
- package/fonts/ar-one-sans-vietnamese.woff2 +0 -0
- package/fonts/syne-greek.woff2 +0 -0
- package/fonts/syne-latin-ext.woff2 +0 -0
- package/fonts/syne-latin.woff2 +0 -0
- package/fonts.css +63 -0
- package/overrides.example.css +53 -0
- package/package.json +70 -0
- package/schema/component-status.schema.json +32 -0
- package/schema/token-file.schema.json +31 -0
- package/scripts/build.mjs +246 -0
- package/scripts/test.mjs +136 -0
- package/src/component.json +1088 -0
- package/src/figma-code-syntax.txt +585 -0
- package/src/primitive.json +1105 -0
- package/src/semantic.json +2041 -0
- package/src/themes.json +1058 -0
- package/status/components.json +16 -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.
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
OneLi8 bundles two typefaces. Neither is OneLi8's work and neither is covered by
|
|
2
|
+
the Apache 2.0 licence that applies to the rest of this package.
|
|
3
|
+
|
|
4
|
+
Syne Copyright (c) 2017 Bonjour Monde, with Reserved Font Name "Syne"
|
|
5
|
+
https://fonts.google.com/specimen/Syne
|
|
6
|
+
|
|
7
|
+
AR One Sans Copyright (c) 2023 The AR One Sans Project Authors
|
|
8
|
+
https://fonts.google.com/specimen/AR+One+Sans
|
|
9
|
+
|
|
10
|
+
Both are licensed under the SIL Open Font License, Version 1.1, reproduced in
|
|
11
|
+
full below. The OFL permits bundling and redistribution with software. It does
|
|
12
|
+
not permit selling the fonts on their own, and it requires that this notice
|
|
13
|
+
travel with them.
|
|
14
|
+
|
|
15
|
+
--------------------------------------------------------------------------------
|
|
16
|
+
|
|
17
|
+
Copyright (c) <dates>, <Copyright Holder> (<URL|email>),
|
|
18
|
+
with Reserved Font Name <Reserved Font Name>.
|
|
19
|
+
Copyright (c) <dates>, <additional Copyright Holder> (<URL|email>),
|
|
20
|
+
with Reserved Font Name <additional Reserved Font Name>.
|
|
21
|
+
Copyright (c) <dates>, <additional Copyright Holder> (<URL|email>).
|
|
22
|
+
|
|
23
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
|
24
|
+
This license is copied below, and is also available with a FAQ at:
|
|
25
|
+
https://openfontlicense.org
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
-----------------------------------------------------------
|
|
29
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
|
30
|
+
-----------------------------------------------------------
|
|
31
|
+
|
|
32
|
+
PREAMBLE
|
|
33
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
|
34
|
+
development of collaborative font projects, to support the font creation
|
|
35
|
+
efforts of academic and linguistic communities, and to provide a free and
|
|
36
|
+
open framework in which fonts may be shared and improved in partnership
|
|
37
|
+
with others.
|
|
38
|
+
|
|
39
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
|
40
|
+
redistributed freely as long as they are not sold by themselves. The
|
|
41
|
+
fonts, including any derivative works, can be bundled, embedded,
|
|
42
|
+
redistributed and/or sold with any software provided that any reserved
|
|
43
|
+
names are not used by derivative works. The fonts and derivatives,
|
|
44
|
+
however, cannot be released under any other type of license. The
|
|
45
|
+
requirement for fonts to remain under this license does not apply
|
|
46
|
+
to any document created using the fonts or their derivatives.
|
|
47
|
+
|
|
48
|
+
DEFINITIONS
|
|
49
|
+
"Font Software" refers to the set of files released by the Copyright
|
|
50
|
+
Holder(s) under this license and clearly marked as such. This may
|
|
51
|
+
include source files, build scripts and documentation.
|
|
52
|
+
|
|
53
|
+
"Reserved Font Name" refers to any names specified as such after the
|
|
54
|
+
copyright statement(s).
|
|
55
|
+
|
|
56
|
+
"Original Version" refers to the collection of Font Software components as
|
|
57
|
+
distributed by the Copyright Holder(s).
|
|
58
|
+
|
|
59
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
|
60
|
+
or substituting -- in part or in whole -- any of the components of the
|
|
61
|
+
Original Version, by changing formats or by porting the Font Software to a
|
|
62
|
+
new environment.
|
|
63
|
+
|
|
64
|
+
"Author" refers to any designer, engineer, programmer, technical
|
|
65
|
+
writer or other person who contributed to the Font Software.
|
|
66
|
+
|
|
67
|
+
PERMISSION & CONDITIONS
|
|
68
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
69
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
|
70
|
+
redistribute, and sell modified and unmodified copies of the Font
|
|
71
|
+
Software, subject to the following conditions:
|
|
72
|
+
|
|
73
|
+
1) Neither the Font Software nor any of its individual components,
|
|
74
|
+
in Original or Modified Versions, may be sold by itself.
|
|
75
|
+
|
|
76
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
|
77
|
+
redistributed and/or sold with any software, provided that each copy
|
|
78
|
+
contains the above copyright notice and this license. These can be
|
|
79
|
+
included either as stand-alone text files, human-readable headers or
|
|
80
|
+
in the appropriate machine-readable metadata fields within text or
|
|
81
|
+
binary files as long as those fields can be easily viewed by the user.
|
|
82
|
+
|
|
83
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
|
84
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
|
85
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
|
86
|
+
presented to the users.
|
|
87
|
+
|
|
88
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
|
89
|
+
Software shall not be used to promote, endorse or advertise any
|
|
90
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
|
91
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
|
92
|
+
permission.
|
|
93
|
+
|
|
94
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
|
95
|
+
must be distributed entirely under this license, and must not be
|
|
96
|
+
distributed under any other license. The requirement for fonts to
|
|
97
|
+
remain under this license does not apply to any document created
|
|
98
|
+
using the Font Software.
|
|
99
|
+
|
|
100
|
+
TERMINATION
|
|
101
|
+
This license becomes null and void if any of the above conditions are
|
|
102
|
+
not met.
|
|
103
|
+
|
|
104
|
+
DISCLAIMER
|
|
105
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
106
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
|
107
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
108
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
|
109
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
110
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
|
111
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
112
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
|
113
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
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,163 @@
|
|
|
1
|
+
# @oneli8/tokens
|
|
2
|
+
|
|
3
|
+
[](https://www.npmjs.com/package/@oneli8/tokens)
|
|
4
|
+
[](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
|
+
This package is the decisions on their own, with no markup: the vocabulary every
|
|
13
|
+
OneLi8 component reads. It is also the Tailwind package, with a version 3 preset
|
|
14
|
+
and a version 4 bridge.
|
|
15
|
+
|
|
16
|
+
```sh
|
|
17
|
+
npm install @oneli8/tokens
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
```js
|
|
21
|
+
import '@oneli8/tokens/css'; // every token as a :root custom property
|
|
22
|
+
import { tokens } from '@oneli8/tokens'; // flat { 'color-text-primary': '#151817', ... }
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
The names follow a grammar, and the grammar is borrowed from Sanskrit rather
|
|
26
|
+
than from a CSS convention. A compound that names one thing is written as one
|
|
27
|
+
word, and a qualifier stays separate from what it qualifies. That is the whole
|
|
28
|
+
rule, and the Naming section below works through it.
|
|
29
|
+
|
|
30
|
+
Figma is the authority on the result. Every variable there carries an explicit
|
|
31
|
+
code syntax, recorded verbatim in `src/figma-code-syntax.txt`, so a component
|
|
32
|
+
reads the spelling the designer set rather than one re-derived from the grammar.
|
|
33
|
+
Where the file spells two siblings differently, this package reproduces both
|
|
34
|
+
rather than tidying one. The grammar is the rule; the record is the spelling.
|
|
35
|
+
|
|
36
|
+
The vocabulary is authored across `src/primitive.json`, `src/semantic.json`,
|
|
37
|
+
`src/component.json` and `src/themes.json`, each value carrying its own
|
|
38
|
+
description. Everything under `build/` is generated, so edit the source and
|
|
39
|
+
rebuild rather than the output.
|
|
40
|
+
|
|
41
|
+
## What the vocabulary contains
|
|
42
|
+
|
|
43
|
+
601 tokens in three tiers: 170 primitives, 270 semantic roles and 161 component
|
|
44
|
+
roles. Nine colour ramps, a 3px atomic dimension scale, nine radii, nine
|
|
45
|
+
composite typography roles, five elevation surfaces and the Gem material.
|
|
46
|
+
|
|
47
|
+
The tiers are not decoration. A primitive is a value, a semantic role is a
|
|
48
|
+
decision, and a component role is that decision applied to one part of one
|
|
49
|
+
component. Each tier may only reference the tier above it, and the build refuses
|
|
50
|
+
a component token that reaches straight for a primitive.
|
|
51
|
+
|
|
52
|
+
Two rules matter when consuming it:
|
|
53
|
+
|
|
54
|
+
- **Use semantic roles, not primitives.** `color-blue-600` is a swatch;
|
|
55
|
+
`color-actionprimary-default` is a decision. Primitives are hidden from Figma
|
|
56
|
+
pickers for the same reason.
|
|
57
|
+
- **Use a whole typography role, not loose font variables.** Typography is
|
|
58
|
+
composite in Figma: a role bundles family, size, line height, weight and
|
|
59
|
+
tracking, and those five belong together. Nine roles ship, each as five
|
|
60
|
+
custom properties.
|
|
61
|
+
|
|
62
|
+
```css
|
|
63
|
+
.article-lead {
|
|
64
|
+
font-family: var(--ol8-typography-body-large-font-family);
|
|
65
|
+
font-size: var(--ol8-typography-body-large-font-size);
|
|
66
|
+
font-weight: var(--ol8-typography-body-large-font-weight);
|
|
67
|
+
line-height: var(--ol8-typography-body-large-line-height);
|
|
68
|
+
letter-spacing: var(--ol8-typography-body-large-letter-spacing);
|
|
69
|
+
}
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
The roles are `display-large`, `display-medium`, `display-small`,
|
|
73
|
+
`title-large`, `title-medium`, `title-small`, `body-large`, `body-medium` and
|
|
74
|
+
`body-small`. This package ships custom properties and no class names, so
|
|
75
|
+
nothing here can collide with your own stylesheet.
|
|
76
|
+
|
|
77
|
+
## Entry points
|
|
78
|
+
|
|
79
|
+
| Import | What it gives you |
|
|
80
|
+
|---|---|
|
|
81
|
+
| `@oneli8/tokens` | flat `{ name: value }` map, with a literal union key type |
|
|
82
|
+
| `@oneli8/tokens/css` | every token as a CSS custom property |
|
|
83
|
+
| `@oneli8/tokens/tailwind` | Tailwind v3 preset |
|
|
84
|
+
| `@oneli8/tokens/tailwind.css` | Tailwind v4 `@theme` bridge |
|
|
85
|
+
| `@oneli8/tokens/figma` | round trip payload: collections, theme modes, type and elevation styles |
|
|
86
|
+
| `@oneli8/tokens/status` | component maturity records |
|
|
87
|
+
| `@oneli8/tokens/source` | the editable `tokens.json` |
|
|
88
|
+
|
|
89
|
+
```js
|
|
90
|
+
// tailwind.config.js (v3)
|
|
91
|
+
import ol8 from '@oneli8/tokens/tailwind';
|
|
92
|
+
export default { presets: [ol8], content: ['./src/**/*'] };
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
```css
|
|
96
|
+
/* Tailwind v4 */
|
|
97
|
+
@import "@oneli8/tokens/css";
|
|
98
|
+
@import "@oneli8/tokens/tailwind.css";
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Both adapters emit `var(--ol8-*)` references rather than resolved values, so
|
|
102
|
+
Tailwind classes follow the theme attributes exactly like the raw custom
|
|
103
|
+
properties do. `bg-ol8-actionprimary-default` repaints when you switch the
|
|
104
|
+
primary family; it does not bake a blue at build time.
|
|
105
|
+
|
|
106
|
+
The JS map is the exception: it holds resolved literals, because code that reads
|
|
107
|
+
it wants an actual colour, not a `var()` string.
|
|
108
|
+
|
|
109
|
+
## Why this exists
|
|
110
|
+
|
|
111
|
+
OneLi8 means One Light. It was created by Akshay Dhore, intended for broad human
|
|
112
|
+
benefit and conceived as service to Guruji Shrii Arnav, whose teachings inspire
|
|
113
|
+
it. Service, clarity, harmony, proportion, restraint and evolution guide its
|
|
114
|
+
decisions. `PRINCIPLES.md` ships inside this package and sets them out in full.
|
|
115
|
+
|
|
116
|
+
The practical intention: most design systems hand you components and hope you
|
|
117
|
+
stay inside them. This one hands you the reasoning too, so when you need
|
|
118
|
+
something it does not ship you can build it and have it still belong.
|
|
119
|
+
|
|
120
|
+
## Naming
|
|
121
|
+
|
|
122
|
+
The structure is borrowed from Sanskrit grammar rather than a CSS convention.
|
|
123
|
+
|
|
124
|
+
**A compound naming one thing is one word.** `actionprimary` is not action plus
|
|
125
|
+
primary, it is a single role. `cutedge` is one feature of the Gem material.
|
|
126
|
+
|
|
127
|
+
**A qualifier stays separate from what it qualifies.** In
|
|
128
|
+
`--ol8-material-control-gem--primary-hover-start`, `hover` is a state applied to
|
|
129
|
+
`start`, so it keeps its hyphen. That is why `disabledcontent` is joined and
|
|
130
|
+
`hover-start` is not.
|
|
131
|
+
|
|
132
|
+
Hyphens separate levels of the hierarchy, never words inside a level. The words
|
|
133
|
+
themselves stay readable: no abbreviations and no truncation.
|
|
134
|
+
|
|
135
|
+
## Theming
|
|
136
|
+
|
|
137
|
+
Three independent axes, each an attribute. They compose, set two at once and you
|
|
138
|
+
get both; there is no Cartesian product of pre baked modes.
|
|
139
|
+
|
|
140
|
+
```html
|
|
141
|
+
<html data-ol8-color-scheme="dark" data-ol8-primary="orange">
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
| Attribute | Values | Effect |
|
|
145
|
+
|---|---|---|
|
|
146
|
+
| `data-ol8-color-scheme` | `dark` | Remaps 86 semantic roles onto dark primitives. Omit for light. |
|
|
147
|
+
| `data-ol8-primary` | `blue` (default), `orange`, `green` | Repoints the `color-primary-*` ramp at another family. |
|
|
148
|
+
|
|
149
|
+
Family swapping works because semantic roles are emitted as *references*
|
|
150
|
+
(`--ol8-color-actionprimary-default: var(--ol8-color-primary-600)`), never as
|
|
151
|
+
baked hex. Repoint the ramp and every role that reads it repaints. Anything you
|
|
152
|
+
author yourself should follow the same rule: reference the semantic role, not a
|
|
153
|
+
primitive, or your UI will not follow the theme.
|
|
154
|
+
|
|
155
|
+
Not yet ported from the Figma theme source: the `typographyViewport` axis
|
|
156
|
+
(`medium` / `expanded`), which needs `font.size.090`, `font.line.096` and a
|
|
157
|
+
`font.tracking.*` scale this tree has never synced; dark overrides for the five
|
|
158
|
+
`elevation-*` composites; and dark link state and icon button surface roles,
|
|
159
|
+
which have no token in this vocabulary yet.
|
|
160
|
+
|
|
161
|
+
## Licence
|
|
162
|
+
|
|
163
|
+
Apache 2.0. Created by Akshay Dhore. See `LICENSE` and `NOTICE`.
|
package/ai-context.json
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
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
|
+
"README.md"
|
|
26
|
+
],
|
|
27
|
+
"scope": "Design decisions only. No markup and no components, so nothing here can conflict with a framework.",
|
|
28
|
+
"usingTheseTokens": {
|
|
29
|
+
"steps": [
|
|
30
|
+
"Reach for a SEMANTIC token, never a primitive and never a literal. color-actionprimary-default, not color-blue-600 and not #2c438b.",
|
|
31
|
+
"Every dimension sits on the 3px grid. An exception needs an approval record, not a rounded number.",
|
|
32
|
+
"Icons come from the pool. To draw a new one follow skills/oneli8-icons: a 24px neutral source on the shared 1.8 stroke."
|
|
33
|
+
],
|
|
34
|
+
"forbidden": [
|
|
35
|
+
"A literal colour, size or font value anywhere in a component.",
|
|
36
|
+
"A primitive token in a component. Primitives are hidden from the Figma pickers for the same reason."
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"themeAxes": {
|
|
40
|
+
"data-ol8-color-scheme": [
|
|
41
|
+
"light",
|
|
42
|
+
"dark"
|
|
43
|
+
],
|
|
44
|
+
"data-ol8-primary": [
|
|
45
|
+
"blue",
|
|
46
|
+
"orange",
|
|
47
|
+
"green"
|
|
48
|
+
],
|
|
49
|
+
"data-ol8-type-mode": [
|
|
50
|
+
"compact",
|
|
51
|
+
"medium",
|
|
52
|
+
"expanded"
|
|
53
|
+
],
|
|
54
|
+
"note": "Independent axes. Set two and you get both; there is no combined mode."
|
|
55
|
+
}
|
|
56
|
+
}
|