@aback-ui/tokens 0.0.0-stage → 0.2.1

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,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Aback Group
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,22 @@
1
- # Temporary Holding Version
1
+ # @aback-ui/tokens
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ The Aback theme: semantic color roles, the Aback Blue ramp, square geometry, base element styles, and light and dark values.
4
+
5
+ ```css
6
+ @import "tailwindcss";
7
+ @import "@aback-ui/tokens/tokens.css";
8
+ ```
9
+
10
+ The file contains an `@theme inline` map, a `:root` block for light, and a `.dark` block for dark. Components read semantic utilities such as `bg-card`, `text-muted-foreground`, `text-link`, `bg-brand-fill`, and `ring-focus-ring`.
11
+
12
+ ## Rules
13
+
14
+ - `primary` is neutral ink, not Aback Blue.
15
+ - `brand-fill` is a filled brand action, used sparingly.
16
+ - Every radius is zero. The only rounded element is the native scrollbar thumb.
17
+ - Readable text never drops below 12px and is never faded with opacity.
18
+ - Pair every light value with its dark counterpart.
19
+
20
+ Do not fork the token names in a component. If a role is missing, propose a semantic token rather than adding a one-off hex value.
21
+
22
+ The registry installs this file as `styles/aback.css` through the `theme` item. The canonical source here is the same file.
package/package.json CHANGED
@@ -1,6 +1,41 @@
1
1
  {
2
2
  "name": "@aback-ui/tokens",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.2.1",
4
+ "description": "The Aback semantic design tokens: color roles, Aback Blue ramp, geometry, and theme CSS.",
5
+ "license": "MIT",
6
+ "author": "Aback Group",
7
+ "type": "module",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/devvrat-hans/aback-ui.git",
11
+ "directory": "packages/tokens"
12
+ },
13
+ "homepage": "https://abackui.com/docs/tokens",
14
+ "bugs": {
15
+ "url": "https://github.com/devvrat-hans/aback-ui/issues"
16
+ },
17
+ "engines": {
18
+ "node": ">=20.9.0"
19
+ },
20
+ "publishConfig": {
21
+ "access": "public"
22
+ },
23
+ "sideEffects": true,
24
+ "exports": {
25
+ "./tokens.css": "./src/tokens.css",
26
+ "./package.json": "./package.json"
27
+ },
28
+ "files": [
29
+ "src/tokens.css",
30
+ "LICENSE",
31
+ "README.md"
32
+ ],
33
+ "scripts": {
34
+ "prepublishOnly": "bun ../../scripts/verify-publishable.mjs"
35
+ },
36
+ "keywords": [
37
+ "aback",
38
+ "design-tokens",
39
+ "tailwindcss"
40
+ ]
41
+ }
package/src/tokens.css ADDED
@@ -0,0 +1,286 @@
1
+ @custom-variant dark (&:is(.dark *));
2
+
3
+ /*
4
+ * Aback UI theme
5
+ * --------------
6
+ * Import after Tailwind:
7
+ *
8
+ * @import "tailwindcss";
9
+ * @import "./styles/aback.css";
10
+ *
11
+ * Light is the base theme. Dark is the `dark` class on <html>.
12
+ * Every value here is a semantic role, not a one-off swatch. See DESIGN.md.
13
+ */
14
+
15
+ @font-face {
16
+ font-family: "GeistSansFallback";
17
+ src: local("Arial"), local("Helvetica Neue"), local("Helvetica"), local("sans-serif");
18
+ ascent-override: 95%;
19
+ descent-override: 22%;
20
+ line-gap-override: 0%;
21
+ size-adjust: 105%;
22
+ }
23
+
24
+ @theme inline {
25
+ --font-sans: var(--font-geist-sans), "GeistSansFallback", ui-sans-serif, system-ui, sans-serif;
26
+ --font-mono: var(--font-geist-mono), ui-monospace, SFMono-Regular, Menlo, monospace;
27
+
28
+ /* Surface and text */
29
+ --color-background: var(--background);
30
+ --color-foreground: var(--foreground);
31
+ --color-card: var(--card);
32
+ --color-card-foreground: var(--card-foreground);
33
+ --color-popover: var(--popover);
34
+ --color-popover-foreground: var(--popover-foreground);
35
+
36
+ /* Action: neutral ink, never brand blue by default */
37
+ --color-primary: var(--primary);
38
+ --color-primary-foreground: var(--primary-foreground);
39
+ --color-secondary: var(--secondary);
40
+ --color-secondary-foreground: var(--secondary-foreground);
41
+ --color-muted: var(--muted);
42
+ --color-muted-foreground: var(--muted-foreground);
43
+ --color-accent: var(--accent);
44
+ --color-accent-foreground: var(--accent-foreground);
45
+
46
+ /* Structure */
47
+ --color-border: var(--border);
48
+ --color-separator: var(--separator);
49
+ --color-input: var(--input);
50
+ --color-ring: var(--ring);
51
+ --color-focus-ring: var(--focus-ring);
52
+
53
+ /* Brand roles: read the theme variable so light and dark stay correct */
54
+ --color-link: var(--link);
55
+ --color-link-hover: var(--link-hover);
56
+ --color-brand-icon: var(--brand-icon);
57
+ --color-brand-chip: var(--brand-chip);
58
+ --color-brand-wash: var(--brand-wash);
59
+ --color-brand-fill: var(--brand-fill);
60
+ --color-on-brand-fill: var(--on-brand-fill);
61
+
62
+ /* Status */
63
+ --color-destructive: var(--destructive);
64
+ --color-destructive-foreground: var(--destructive-foreground);
65
+ --color-success: var(--success);
66
+ --color-success-soft: var(--success-soft);
67
+ --color-success-strong: var(--success-strong);
68
+ --color-warning: var(--warning);
69
+ --color-warning-soft: var(--warning-soft);
70
+ --color-warning-strong: var(--warning-strong);
71
+ --color-danger: var(--danger);
72
+ --color-danger-soft: var(--danger-soft);
73
+ --color-danger-strong: var(--danger-strong);
74
+ --color-info: var(--info);
75
+ --color-info-soft: var(--info-soft);
76
+
77
+ /* Aback Blue ramp. Static by design: 500 is the brand anchor in both themes. */
78
+ --color-primary-50: #e6f6ff;
79
+ --color-primary-100: #ccedff;
80
+ --color-primary-200: #99dbff;
81
+ --color-primary-300: #66c9ff;
82
+ --color-primary-400: #33b7ff;
83
+ --color-primary-500: #009bf9;
84
+ --color-primary-600: #007cc7;
85
+ --color-primary-700: #005d95;
86
+ --color-primary-800: #003e63;
87
+ --color-primary-900: #001f32;
88
+ --color-primary-950: #000f19;
89
+
90
+ /* Square geometry: every radius token resolves to zero. */
91
+ --radius: 0px;
92
+ --radius-xs: 0px;
93
+ --radius-sm: 0px;
94
+ --radius-md: 0px;
95
+ --radius-lg: 0px;
96
+ --radius-xl: 0px;
97
+ --radius-2xl: 0px;
98
+ --radius-3xl: 0px;
99
+ --radius-4xl: 0px;
100
+ }
101
+
102
+ :root {
103
+ color-scheme: light;
104
+
105
+ --background: #ffffff;
106
+ --foreground: #0a0a0a;
107
+ --card: #ffffff;
108
+ --card-foreground: #0a0a0a;
109
+ --popover: #ffffff;
110
+ --popover-foreground: #0a0a0a;
111
+
112
+ --primary: #171717;
113
+ --primary-foreground: #fafafa;
114
+ --secondary: #f5f5f5;
115
+ --secondary-foreground: #171717;
116
+ --muted: #f5f5f5;
117
+ --muted-foreground: #737373;
118
+ --accent: #f5f5f5;
119
+ --accent-foreground: #171717;
120
+
121
+ --destructive: #e7000b;
122
+ --destructive-foreground: #ffffff;
123
+ --border: #e5e5e5;
124
+ --separator: #d7d7d7;
125
+ --input: #e5e5e5;
126
+ --ring: #a1a1a1;
127
+ --focus-ring: #007cc7;
128
+
129
+ --link: #005d95;
130
+ --link-hover: #003e63;
131
+ --brand-icon: #007cc7;
132
+ --brand-chip: #ccedff;
133
+ --brand-wash: #e6f6ff;
134
+ --brand-fill: #005d95;
135
+ --on-brand-fill: #ffffff;
136
+
137
+ --success: #008236;
138
+ --success-soft: #dcfce7;
139
+ --success-strong: #016630;
140
+ --warning: #bb4d00;
141
+ --warning-soft: #fffbeb;
142
+ --warning-strong: #973c00;
143
+ --danger: #c10007;
144
+ --danger-soft: #fef2f2;
145
+ --danger-strong: #9f0712;
146
+ --info: #005d95;
147
+ --info-soft: #e6f6ff;
148
+
149
+ --overlay: rgb(0 0 0 / 0.4);
150
+ --scrollbar-thumb: #b4b4b4;
151
+ --scrollbar-thumb-hover: #949494;
152
+ --scrollbar-track: #f1f1f1;
153
+
154
+ --radius: 0px;
155
+ }
156
+
157
+ .dark {
158
+ color-scheme: dark;
159
+
160
+ --background: #0a0a0a;
161
+ --foreground: #fafafa;
162
+ --card: #171717;
163
+ --card-foreground: #fafafa;
164
+ --popover: #171717;
165
+ --popover-foreground: #fafafa;
166
+
167
+ --primary: #e5e5e5;
168
+ --primary-foreground: #171717;
169
+ --secondary: #262626;
170
+ --secondary-foreground: #fafafa;
171
+ --muted: #262626;
172
+ --muted-foreground: #a1a1a1;
173
+ --accent: #262626;
174
+ --accent-foreground: #fafafa;
175
+
176
+ --destructive: #ff6467;
177
+ --destructive-foreground: #170000;
178
+ --border: rgb(255 255 255 / 0.1);
179
+ --separator: rgb(255 255 255 / 0.15);
180
+ --input: rgb(255 255 255 / 0.15);
181
+ --ring: #737373;
182
+ --focus-ring: #33b7ff;
183
+
184
+ --link: #33b7ff;
185
+ --link-hover: #66c9ff;
186
+ --brand-icon: #33b7ff;
187
+ --brand-chip: #001f32;
188
+ --brand-wash: rgb(0 31 50 / 0.3);
189
+ --brand-fill: #33b7ff;
190
+ --on-brand-fill: #000f19;
191
+
192
+ --success: #05df72;
193
+ --success-soft: #052e16;
194
+ --success-strong: #7bf1a8;
195
+ --warning: #fbbf24;
196
+ --warning-soft: #2b1a00;
197
+ --warning-strong: #fcd34d;
198
+ --danger: #ff6467;
199
+ --danger-soft: #2b0a0a;
200
+ --danger-strong: #ffa2a2;
201
+ --info: #66c9ff;
202
+ --info-soft: rgb(0 31 50 / 0.3);
203
+
204
+ --overlay: rgb(0 0 0 / 0.6);
205
+ --scrollbar-thumb: #3d3d3d;
206
+ --scrollbar-thumb-hover: #525252;
207
+ --scrollbar-track: #1a1a1a;
208
+
209
+ --radius: 0px;
210
+ }
211
+
212
+ @layer base {
213
+ * {
214
+ border-color: var(--border);
215
+ }
216
+
217
+ html {
218
+ -webkit-text-size-adjust: 100%;
219
+ scrollbar-width: thin;
220
+ scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
221
+ }
222
+
223
+ body {
224
+ background-color: var(--background);
225
+ color: var(--foreground);
226
+ font-family: var(--font-sans);
227
+ -webkit-font-smoothing: antialiased;
228
+ -moz-osx-font-smoothing: grayscale;
229
+ }
230
+
231
+ ::selection {
232
+ background-color: var(--brand-chip);
233
+ color: var(--foreground);
234
+ }
235
+
236
+ :-webkit-any(button, a, input, textarea, select, summary, [tabindex]):focus-visible {
237
+ outline: none;
238
+ }
239
+
240
+ ::-webkit-scrollbar {
241
+ width: 8px;
242
+ height: 8px;
243
+ }
244
+
245
+ ::-webkit-scrollbar-track {
246
+ background: var(--scrollbar-track);
247
+ }
248
+
249
+ ::-webkit-scrollbar-thumb {
250
+ background: var(--scrollbar-thumb);
251
+ border-radius: 4px;
252
+ }
253
+
254
+ ::-webkit-scrollbar-thumb:hover {
255
+ background: var(--scrollbar-thumb-hover);
256
+ }
257
+ }
258
+
259
+ @keyframes accordion-down {
260
+ from {
261
+ height: 0;
262
+ }
263
+ to {
264
+ height: var(--radix-accordion-content-height);
265
+ }
266
+ }
267
+
268
+ @keyframes accordion-up {
269
+ from {
270
+ height: var(--radix-accordion-content-height);
271
+ }
272
+ to {
273
+ height: 0;
274
+ }
275
+ }
276
+
277
+ @media (prefers-reduced-motion: reduce) {
278
+ *,
279
+ *::before,
280
+ *::after {
281
+ animation-duration: 0.01ms !important;
282
+ animation-iteration-count: 1 !important;
283
+ transition-duration: 0.01ms !important;
284
+ scroll-behavior: auto !important;
285
+ }
286
+ }