@aurea-uds/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 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/README.md ADDED
@@ -0,0 +1,117 @@
1
+ # Aurea foundations — what the tokens govern, and what they do not
2
+
3
+ Canonical answer to "which axis owns this value". Written in Phase 6 of the audit plan,
4
+ because the audit found the foundations documented nowhere: density and theme both promised
5
+ things no document defined, and a quarter of the tokens had no consumer (findings M2, M17, M18).
6
+
7
+ Counts live in [`STATE.md`](../../STATE.md), generated and gated. This file holds the rules.
8
+
9
+ ---
10
+
11
+ ## The axes
12
+
13
+ | Axis | Tokens | Unit | Notes |
14
+ |---|---|---|---|
15
+ | Colour | `--<semantic>`, `--<family>-<step>` | oklch / hex | semantic first; a ramp step is for building a semantic, not for using directly |
16
+ | Spacing | `--space-0` … `--space-24` | rem | scale with deliberate gaps — not every integer exists |
17
+ | Type size | `--text-xs` … `--text-5xl` | rem | |
18
+ | Type family | `--font-ui`, `--font-editorial`, `--font-code` | — | IBM Plex Sans / Serif / Mono |
19
+ | Type weight | `--weight-regular` … `--weight-bold` | number | created in Phase 6; the axis did not exist |
20
+ | Line height | `--leading-none` … `--leading-relaxed` | number | `--leading-none` exists for components whose HEIGHT is a contract |
21
+ | Letter spacing | `--tracking-tight` … `--tracking-widest` | em | created in Phase 6 |
22
+ | Radius | `--radius-sm` … `--radius-card`, `--radius-control` | px | `--radius-card` (22px) and `--radius-control` (999px) are identity — gated |
23
+ | Border | `--border-width` | px | |
24
+ | Shadow | `--shadow-md`, `--shadow-lg` | shadow | the `xs`/`sm` steps were removed in Phase 6: both were `none` and unused |
25
+ | Layer | `--z-sticky` … `--z-toast` | number | for OVERLAY stacking. Local `z-index: 1/2/3` inside a component is not this axis |
26
+ | Motion | `--duration-*`, `--ease-*` | duration / bezier | |
27
+ | Icon size | `--icon-sm` … `--icon-xl` | rem | created in Phase 6; rem so glyphs follow text size |
28
+ | Touch target | `--target-min` | rem | 44px at a 16px root — WCAG 2.5.5/2.5.8 |
29
+ | Breakpoint | `--breakpoint-sm` … `--breakpoint-2xl` | px | `@media` cannot read `var()`, so the CSS repeats the literal and `validate.py` check 4b guards the scale |
30
+ | Density | see below | rem | |
31
+
32
+ **New value on any of these axes comes from a token.** Raw values in the core are ratcheted per
33
+ axis by `validate.py` check 12 against `scripts/raw-px-baseline.json`: the count may fall, never
34
+ rise.
35
+
36
+ ---
37
+
38
+ ## Density contract — what actually changes
39
+
40
+ `data-density="compact | comfortable | spacious"` changes **eight** tokens, and only these:
41
+
42
+ `--control-h-xs`, `--control-h-sm`, `--control-h-md`, `--control-h-lg`, `--control-h-xl`,
43
+ `--row-h`, `--card-pad`, `--section-gap`.
44
+
45
+ So density changes **control height, table row height, card padding and gap between sections**.
46
+
47
+ It deliberately does **not** change: type size, the general spacing scale, layout gaps, radii,
48
+ icon sizes or line heights. Density is about how tightly controls pack, not about a second
49
+ type scale.
50
+
51
+ This was undocumented until Phase 6, and the promise "three densities" read as if it governed
52
+ everything. Every control must take its height from `--control-h-*` — three families did not,
53
+ and that is why a tab measured 8px shorter than the field beside it in `spacious`
54
+ (finding A1). `tests/visual/geometry.spec.ts` now enforces it.
55
+
56
+ ---
57
+
58
+ ## Theme contract — and one asymmetry, on purpose
59
+
60
+ `data-theme="dark | light"`. Dark is the base; light overrides.
61
+
62
+ The two themes are **not** symmetric, and this is the exception: light overrides six colours
63
+ that dark leaves at their base value —
64
+ `danger-400`, `info-400`, `success-400`, `warning-400`, `oracle-300`, `oracle-400`.
65
+
66
+ Reason: on a light surface those four semantic families need a deeper tone to reach 4.5:1,
67
+ while on dark the base value already does. Nothing is undefined in dark — it inherits from
68
+ `base`, so there is no missing-value bug. What was missing was this paragraph.
69
+
70
+ Identity does not change between themes: the primary yellow is `oklch(0.795 0.184 86.047)` in
71
+ both, and `validate.py` check 3 fails on the canonical value, not just the token name.
72
+
73
+ ---
74
+
75
+ ## Units: rem for anything that should follow text
76
+
77
+ Type, spacing, icon sizes, control heights, sidebar width and topbar height are **rem**, so a
78
+ reader who doubles the browser font size gets bigger controls instead of clipped text
79
+ (WCAG 1.4.4, finding M12). The conversion from px was exact (px÷16), so nothing moved at the
80
+ default root size — the 52 pixel baselines prove it.
81
+
82
+ Radii stay **px**: a corner is a physical shape, not text, and scaling it with type size makes
83
+ a pill stop being a pill.
84
+
85
+ ---
86
+
87
+ ## Tokens with no consumer
88
+
89
+ 63 of 174 distinct names are not referenced by the core. That is not automatically waste:
90
+
91
+ | Group | Why it exists |
92
+ |---|---|
93
+ | `--breakpoint-*` (5) | `@media` cannot read `var()`. The CSS repeats the literal and check 4b guards the scale against them |
94
+ | `--oracle-*` (11) | consumed only by `apps/docs/docs.css`. `oracle` is vocabulary from the origin app, not the system (finding M9) — these leave with that page |
95
+ | `--chart-*` (4) | reserved for charts, which do not exist yet as components |
96
+ | ramp steps (6) | intermediate steps of the semantic families, kept so a consumer can build a variant |
97
+ | the rest | used only by `docs.css` — 14 in total |
98
+
99
+ **The rule going forward:** a token is born from a use, not from a scale that looks complete.
100
+ Phase 6 removed 26 that had no use anywhere (`--aether-*`, `--ember-*`, two `none` shadows, two
101
+ duplicate radii) and created 15 that were needed immediately.
102
+
103
+ Duplicates are references, not copies: `--radius-full` is `{radius-control}`, so the two names
104
+ cannot drift. Two tokens with the same number written by hand diverge the day one is adjusted.
105
+
106
+ ---
107
+
108
+ ## Cascade
109
+
110
+ `packages/core/dist/aurea.css` wraps tokens **and** component CSS in `@layer aurea`. A
111
+ consumer's own CSS, written without a layer, therefore wins over the library regardless of
112
+ selector specificity — no `!important`, no specificity hunting.
113
+
114
+ Tokens are inside the layer with the core, not outside it. A custom property **declaration**
115
+ competes in the cascade like any other: with the tokens outside, the `:root` override that the
116
+ core declares inside a media query lost to the base value, and the sidebar jumped 48px.
117
+ An app that redefines a token in its own unlayered `:root` still wins over both.
@@ -0,0 +1,273 @@
1
+ /* Aurea tokens — generated from aurea.tokens.json (DTCG 2025.10). Do not edit. */
2
+ :root{
3
+ --brand-yellow:oklch(0.795 0.184 86.047);
4
+ --brand-yellow-foreground:oklch(0.421 0.095 57.708);
5
+ --font-ui:"IBM Plex Sans","Segoe UI",sans-serif;
6
+ --font-editorial:"IBM Plex Serif",Georgia,serif;
7
+ --font-code:"IBM Plex Mono",SFMono-Regular,Consolas,monospace;
8
+ --text-xs:0.75rem;
9
+ --text-sm:0.8125rem;
10
+ --text-md:0.875rem;
11
+ --text-base:1rem;
12
+ --text-lg:1.125rem;
13
+ --text-xl:1.25rem;
14
+ --text-2xl:1.5rem;
15
+ --text-3xl:1.875rem;
16
+ --text-4xl:2.25rem;
17
+ --text-5xl:3rem;
18
+ --leading-tight:1.2;
19
+ --leading-normal:1.5;
20
+ --leading-relaxed:1.7;
21
+ --space-0:0;
22
+ --space-05:0.125rem;
23
+ --space-1:0.25rem;
24
+ --space-2:0.5rem;
25
+ --space-3:0.75rem;
26
+ --space-4:1rem;
27
+ --space-5:1.25rem;
28
+ --space-6:1.5rem;
29
+ --space-7:1.75rem;
30
+ --space-8:2rem;
31
+ --space-10:2.5rem;
32
+ --space-12:3rem;
33
+ --space-16:4rem;
34
+ --space-20:5rem;
35
+ --space-24:6rem;
36
+ --radius-xs:6px;
37
+ --radius-sm:8px;
38
+ --radius-md:10px;
39
+ --radius-lg:16px;
40
+ --radius-card:22px;
41
+ --radius-control:999px;
42
+ --radius-full:var(--radius-control);
43
+ --border-width:1px;
44
+ --shadow-md:0 16px 42px rgba(0,0,0,0.28);
45
+ --shadow-lg:0 28px 80px rgba(0,0,0,0.42);
46
+ --duration-fast:120ms;
47
+ --duration-base:180ms;
48
+ --duration-slow:280ms;
49
+ --ease-standard:cubic-bezier(0.2,0,0,1);
50
+ --ease-emphasized:cubic-bezier(0.2,0.8,0.2,1);
51
+ --z-base:0;
52
+ --z-sticky:20;
53
+ --z-dropdown:40;
54
+ --z-drawer:60;
55
+ --z-modal:80;
56
+ --z-toast:100;
57
+ --sidebar-width:16.5rem;
58
+ --topbar-height:4rem;
59
+ --content-max:102.5rem;
60
+ --breakpoint-sm:640px;
61
+ --breakpoint-md:768px;
62
+ --breakpoint-lg:1024px;
63
+ --breakpoint-xl:1280px;
64
+ --breakpoint-2xl:1536px;
65
+ --control-h-xs:1.625rem;
66
+ --control-h-sm:1.875rem;
67
+ --control-h-md:2.25rem;
68
+ --control-h-lg:2.625rem;
69
+ --control-h-xl:3.125rem;
70
+ --row-h:3rem;
71
+ --card-pad:1.25rem;
72
+ --section-gap:1.5rem;
73
+ --media-canvas:oklch(0.085 0 0);
74
+ --media-foreground:oklch(0.985 0 0);
75
+ --media-muted:oklch(0.74 0 0);
76
+ --media-scrim:oklch(0 0 0 / 0.82);
77
+ --media-track:oklch(1 0 0 / 0.18);
78
+ --media-buffered:oklch(1 0 0 / 0.42);
79
+ --media-caption-bg:oklch(0 0 0 / 0.82);
80
+ --media-control-bg:oklch(0 0 0 / 0.52);
81
+ --media-control-hover:oklch(1 0 0 / 0.14);
82
+ --text-muted:var(--muted-foreground);
83
+ --success-400:#42d392;
84
+ --success-500:#22c875;
85
+ --success-700:#147a4d;
86
+ --warning-400:var(--brand-yellow);
87
+ --warning-500:#d49c00;
88
+ --warning-800:#6d4d00;
89
+ --danger-400:#ff7180;
90
+ --danger-500:#e94b58;
91
+ --danger-800:#7f2029;
92
+ --info-400:#8ec5ff;
93
+ --info-500:#2b7fff;
94
+ --info-800:#1447e6;
95
+ --oracle-50:oklch(0.96 0.025 251.813);
96
+ --oracle-100:oklch(0.9 0.06 251.813);
97
+ --oracle-200:oklch(0.85 0.09 251.813);
98
+ --oracle-300:var(--chart-1);
99
+ --oracle-400:var(--chart-2);
100
+ --oracle-500:var(--chart-3);
101
+ --oracle-600:var(--chart-4);
102
+ --oracle-700:var(--chart-5);
103
+ --oracle-800:oklch(0.38 0.2 265.638);
104
+ --oracle-900:oklch(0.31 0.16 265.638);
105
+ --oracle-950:oklch(0.23 0.11 265.638);
106
+ --weight-regular:400;
107
+ --weight-medium:500;
108
+ --weight-semibold:600;
109
+ --weight-bold:700;
110
+ --icon-sm:1rem;
111
+ --icon-md:1.25rem;
112
+ --icon-lg:1.5rem;
113
+ --icon-xl:2rem;
114
+ --tracking-tight:-0.01em;
115
+ --tracking-normal:0;
116
+ --leading-none:1;
117
+ --target-min:2.75rem;
118
+ --tracking-wide:0.04em;
119
+ --tracking-wider:0.06em;
120
+ --tracking-widest:0.12em;
121
+ }
122
+ [data-theme="dark"]{
123
+ --background:oklch(0.145 0 0);
124
+ --foreground:oklch(0.985 0 0);
125
+ --card:oklch(0.205 0 0);
126
+ --card-foreground:oklch(0.985 0 0);
127
+ --popover:oklch(0.205 0 0);
128
+ --popover-foreground:oklch(0.985 0 0);
129
+ --primary:var(--brand-yellow);
130
+ --primary-foreground:var(--brand-yellow-foreground);
131
+ --secondary:oklch(0.274 0.006 286.033);
132
+ --secondary-foreground:oklch(0.985 0 0);
133
+ --muted:oklch(0.269 0 0);
134
+ --muted-foreground:oklch(0.708 0 0);
135
+ --accent:oklch(0.269 0 0);
136
+ --accent-foreground:oklch(0.985 0 0);
137
+ --destructive:oklch(0.704 0.191 22.216);
138
+ --destructive-foreground:oklch(0.2 0.02 22);
139
+ --border:oklch(1 0 0 / 0.1);
140
+ --input:oklch(1 0 0 / 0.15);
141
+ --ring:oklch(0.556 0 0);
142
+ --chart-1:oklch(0.809 0.105 251.813);
143
+ --chart-2:oklch(0.623 0.214 259.815);
144
+ --chart-3:oklch(0.546 0.245 262.881);
145
+ --chart-4:oklch(0.488 0.243 264.376);
146
+ --chart-5:oklch(0.424 0.199 265.638);
147
+ --sidebar:oklch(0.205 0 0);
148
+ --sidebar-foreground:oklch(0.985 0 0);
149
+ --sidebar-primary:var(--brand-yellow);
150
+ --sidebar-primary-foreground:var(--brand-yellow-foreground);
151
+ --sidebar-accent:oklch(0.269 0 0);
152
+ --sidebar-accent-foreground:oklch(0.985 0 0);
153
+ --sidebar-border:oklch(1 0 0 / 0.1);
154
+ --sidebar-ring:oklch(0.556 0 0);
155
+ --surface-1:var(--card);
156
+ --surface-2:var(--secondary);
157
+ --surface-3:var(--muted);
158
+ --surface-inset:oklch(0.145 0 0);
159
+ --surface-hover:oklch(0.3 0 0);
160
+ --foreground-strong:var(--foreground);
161
+ --subtle-foreground:oklch(0.76 0 0);
162
+ --border-strong:oklch(0.58 0 0);
163
+ --field-bg:var(--muted);
164
+ --overlay:oklch(0 0 0 / 0.74);
165
+ --primary-hover:oklch(0.835 0.19 89);
166
+ --primary-active:oklch(0.74 0.17 84);
167
+ --secondary-hover:oklch(0.31 0.006 286.033);
168
+ --focus:var(--primary);
169
+ --focus-strong:var(--primary);
170
+ --primary-emphasis:var(--primary);
171
+ --primary-outline:var(--primary);
172
+ --control-selected:var(--primary);
173
+ --control-selected-foreground:var(--primary-foreground);
174
+ --selection:oklch(0.795 0.184 86.047 / 0.22);
175
+ --success-bg:oklch(0.42 0.11 150 / 0.36);
176
+ --warning-bg:oklch(0.34 0.08 86 / 0.64);
177
+ --danger-bg:oklch(0.32 0.1 22 / 0.62);
178
+ --info-bg:oklch(0.29 0.08 260 / 0.62);
179
+ }
180
+ [data-theme="light"]{
181
+ --background:oklch(0.965 0 0);
182
+ --foreground:oklch(0.145 0 0);
183
+ --card:oklch(1 0 0);
184
+ --card-foreground:oklch(0.145 0 0);
185
+ --popover:oklch(1 0 0);
186
+ --popover-foreground:oklch(0.145 0 0);
187
+ --primary:var(--brand-yellow);
188
+ --primary-foreground:var(--brand-yellow-foreground);
189
+ --secondary:oklch(0.94 0 0);
190
+ --secondary-foreground:oklch(0.21 0.006 285.885);
191
+ --muted:var(--secondary);
192
+ --muted-foreground:oklch(0.43 0 0);
193
+ --accent:var(--secondary);
194
+ --accent-foreground:oklch(0.205 0 0);
195
+ --destructive:oklch(0.577 0.245 27.325);
196
+ --destructive-foreground:oklch(0.985 0 0);
197
+ --border:oklch(0.89 0 0);
198
+ --input:oklch(0.922 0 0);
199
+ --ring:oklch(0.708 0 0);
200
+ --chart-1:oklch(0.809 0.105 251.813);
201
+ --chart-2:oklch(0.623 0.214 259.815);
202
+ --chart-3:oklch(0.546 0.245 262.881);
203
+ --chart-4:oklch(0.488 0.243 264.376);
204
+ --chart-5:oklch(0.424 0.199 265.638);
205
+ --sidebar:var(--card);
206
+ --sidebar-foreground:oklch(0.145 0 0);
207
+ --sidebar-primary:var(--brand-yellow);
208
+ --sidebar-primary-foreground:var(--brand-yellow-foreground);
209
+ --sidebar-accent:var(--secondary);
210
+ --sidebar-accent-foreground:oklch(0.205 0 0);
211
+ --sidebar-border:oklch(0.89 0 0);
212
+ --sidebar-ring:oklch(0.708 0 0);
213
+ --surface-1:var(--card);
214
+ --surface-2:var(--secondary);
215
+ --surface-3:var(--muted);
216
+ --surface-inset:oklch(0.955 0 0);
217
+ --surface-hover:oklch(0.925 0 0);
218
+ --foreground-strong:var(--foreground);
219
+ --subtle-foreground:oklch(0.43 0 0);
220
+ --border-strong:oklch(0.56 0 0);
221
+ --field-bg:var(--muted);
222
+ --overlay:oklch(0.145 0 0 / 0.4);
223
+ --primary-hover:oklch(0.835 0.19 89);
224
+ --primary-active:oklch(0.74 0.17 84);
225
+ --secondary-hover:var(--surface-hover);
226
+ --focus:var(--primary);
227
+ --focus-strong:var(--brand-yellow-foreground);
228
+ --primary-emphasis:var(--brand-yellow-foreground);
229
+ --primary-outline:var(--brand-yellow-foreground);
230
+ --control-selected:var(--brand-yellow-foreground);
231
+ --control-selected-foreground:oklch(0.985 0 0);
232
+ --success-400:#0f6b3e;
233
+ --warning-400:#6d4d00;
234
+ --danger-400:#9f2330;
235
+ --info-400:#164f9d;
236
+ --oracle-300:var(--chart-4);
237
+ --oracle-400:var(--chart-4);
238
+ --selection:oklch(0.795 0.184 86.047 / 0.18);
239
+ --success-bg:oklch(0.94 0.05 150);
240
+ --warning-bg:oklch(0.95 0.06 86);
241
+ --danger-bg:oklch(0.95 0.05 22);
242
+ --info-bg:oklch(0.95 0.045 260);
243
+ }
244
+ [data-density="compact"]{
245
+ --control-h-xs:1.5rem;
246
+ --control-h-sm:1.75rem;
247
+ --control-h-md:2rem;
248
+ --control-h-lg:2.375rem;
249
+ --control-h-xl:2.75rem;
250
+ --row-h:2.625rem;
251
+ --card-pad:1rem;
252
+ --section-gap:1.125rem;
253
+ }
254
+ [data-density="comfortable"]{
255
+ --control-h-xs:1.625rem;
256
+ --control-h-sm:1.875rem;
257
+ --control-h-md:2.25rem;
258
+ --control-h-lg:2.625rem;
259
+ --control-h-xl:3.125rem;
260
+ --row-h:3rem;
261
+ --card-pad:1.25rem;
262
+ --section-gap:1.5rem;
263
+ }
264
+ [data-density="spacious"]{
265
+ --control-h-xs:1.75rem;
266
+ --control-h-sm:2.125rem;
267
+ --control-h-md:2.5rem;
268
+ --control-h-lg:3rem;
269
+ --control-h-xl:3.5rem;
270
+ --row-h:3.375rem;
271
+ --card-pad:1.5rem;
272
+ --section-gap:2rem;
273
+ }
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@aurea-uds/tokens",
3
+ "version": "0.1.0",
4
+ "description": "Design tokens for Aurea UDS: the DTCG source and the CSS custom properties generated from it.",
5
+ "keywords": ["aurea", "design-system", "design-tokens", "dtcg"],
6
+ "license": "Apache-2.0",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/victor1mor/aurea-uds.git",
10
+ "directory": "packages/tokens"
11
+ },
12
+ "publishConfig": {
13
+ "access": "public"
14
+ },
15
+ "files": [
16
+ "dist",
17
+ "src"
18
+ ],
19
+ "exports": {
20
+ "./css": "./dist/aurea.tokens.css",
21
+ "./json": "./src/aurea.tokens.json"
22
+ }
23
+ }