@averoui/tokens 1.0.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.
@@ -0,0 +1,327 @@
1
+ {
2
+ "$description": "Avero design tokens. Generated from @averoui/tokens/src/theme.css; do not edit.",
3
+ "fontFamily": {
4
+ "$type": "fontFamily",
5
+ "sans": {
6
+ "$value": "Lahzeh, Inter, system-ui, -apple-system, BlinkMacSystemFont, \"Segoe UI\", Roboto, \"Noto Sans\", Ubuntu, Cantarell, \"Helvetica Neue\", sans-serif"
7
+ },
8
+ "code": {
9
+ "$value": "\"Fira Code\", \"JetBrains Mono\", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace"
10
+ }
11
+ },
12
+ "fontSize": {
13
+ "$type": "dimension",
14
+ "4xs": {
15
+ "$value": "0.5625rem"
16
+ },
17
+ "3xs": {
18
+ "$value": "0.625rem"
19
+ },
20
+ "2xs": {
21
+ "$value": "0.6875rem"
22
+ },
23
+ "sm-plus": {
24
+ "$value": "0.8125rem"
25
+ },
26
+ "md": {
27
+ "$value": "0.9375rem"
28
+ },
29
+ "xl-plus": {
30
+ "$value": "1.375rem"
31
+ }
32
+ },
33
+ "lineHeight": {
34
+ "$type": "number",
35
+ "prose": {
36
+ "$value": "1.8"
37
+ },
38
+ "airy": {
39
+ "$value": "2.2"
40
+ }
41
+ },
42
+ "color": {
43
+ "$type": "color",
44
+ "primary": {
45
+ "$value": "#0a66c2"
46
+ },
47
+ "primary-hover": {
48
+ "$value": "#004182"
49
+ },
50
+ "secondary": {
51
+ "$value": "#f15928"
52
+ },
53
+ "background": {
54
+ "$value": "#f4f4f4"
55
+ },
56
+ "foreground": {
57
+ "$value": "#464646"
58
+ },
59
+ "surface": {
60
+ "$value": "#ffffff"
61
+ },
62
+ "surface-glass": {
63
+ "$value": "#ffffff6b"
64
+ },
65
+ "surface-muted": {
66
+ "$value": "#f9fafc"
67
+ },
68
+ "surface-sunken": {
69
+ "$value": "#e7e9ec"
70
+ },
71
+ "border-subtle": {
72
+ "$value": "#d5d9df"
73
+ },
74
+ "text-strong": {
75
+ "$value": "#242424"
76
+ },
77
+ "text-chrome": {
78
+ "$value": "#8390a2"
79
+ },
80
+ "text-chrome-hover": {
81
+ "$value": "#242424"
82
+ },
83
+ "text-subtle": {
84
+ "$value": "#54595f"
85
+ },
86
+ "text-muted": {
87
+ "$value": "var(--color-gray-400)"
88
+ },
89
+ "accent-social": {
90
+ "$value": "#ff9606"
91
+ },
92
+ "icon-muted": {
93
+ "$value": "#c1c3c8"
94
+ },
95
+ "warning": {
96
+ "$value": "#f59e0b"
97
+ },
98
+ "warning-hover": {
99
+ "$value": "#d97706"
100
+ },
101
+ "shadow-brand": {
102
+ "$value": "#0a66c205"
103
+ },
104
+ "shadow-box": {
105
+ "$value": "#0f172a14"
106
+ },
107
+ "chart-views": {
108
+ "$value": "#6366f1"
109
+ },
110
+ "chart-likes": {
111
+ "$value": "#f43f5e"
112
+ },
113
+ "chart-clicks": {
114
+ "$value": "#8b5cf6"
115
+ },
116
+ "chart-comments": {
117
+ "$value": "#10b981"
118
+ },
119
+ "chart-grid": {
120
+ "$value": "#f1f5f9"
121
+ },
122
+ "chart-axis": {
123
+ "$value": "#94a3b8"
124
+ },
125
+ "chart-cursor": {
126
+ "$value": "#cbd5e1"
127
+ },
128
+ "chart-tooltip-surface": {
129
+ "$value": "#1e293b"
130
+ },
131
+ "chart-tooltip-text": {
132
+ "$value": "#f8fafc"
133
+ },
134
+ "chart-tooltip-label": {
135
+ "$value": "#94a3b8"
136
+ }
137
+ },
138
+ "radius": {
139
+ "$type": "dimension",
140
+ "huge": {
141
+ "$value": "1.75rem"
142
+ },
143
+ "leaf": {
144
+ "$value": "2.5rem"
145
+ }
146
+ },
147
+ "shadow": {
148
+ "$type": "shadow",
149
+ "brand-soft": {
150
+ "$value": "0 0 20px 0 var(--color-shadow-brand)"
151
+ },
152
+ "brand-md": {
153
+ "$value": "0 0 35px 0 var(--color-shadow-brand)"
154
+ },
155
+ "brand-lg": {
156
+ "$value": "0 0 40px 0 var(--color-shadow-brand)"
157
+ },
158
+ "brand-hover": {
159
+ "$value": "0 2px 35px 0 var(--color-shadow-brand)"
160
+ },
161
+ "brand-drop": {
162
+ "$value": "0 20px 0 0 var(--color-shadow-brand)"
163
+ },
164
+ "box": {
165
+ "$value": "0 2px 4px var(--color-shadow-box)"
166
+ },
167
+ "card-soft": {
168
+ "$value": "0 4px 25px rgba(0, 0, 0, 0.04)"
169
+ },
170
+ "card-ambient": {
171
+ "$value": "0 0 25px 0 rgba(0, 0, 0, 0.05)"
172
+ },
173
+ "card-faint": {
174
+ "$value": "0 4px 20px rgba(0, 0, 0, 0.02)"
175
+ },
176
+ "card-subtle": {
177
+ "$value": "0 4px 20px rgba(0, 0, 0, 0.03)"
178
+ },
179
+ "card-hairline": {
180
+ "$value": "0 2px 16px rgba(15, 23, 42, 0.06)"
181
+ },
182
+ "card-raised": {
183
+ "$value": "0 2px 12px 0 rgba(0, 0, 0, 0.08)"
184
+ },
185
+ "elevated": {
186
+ "$value": "0 10px 40px rgba(15, 23, 42, 0.08)"
187
+ },
188
+ "elevated-soft": {
189
+ "$value": "0 10px 40px rgba(15, 23, 42, 0.06)"
190
+ },
191
+ "elevated-tight": {
192
+ "$value": "0 10px 35px rgba(15, 23, 42, 0.08)"
193
+ },
194
+ "float": {
195
+ "$value": "0 20px 80px rgba(15, 23, 42, 0.08)"
196
+ },
197
+ "float-hover": {
198
+ "$value": "0 20px 60px rgba(15, 23, 42, 0.12)"
199
+ },
200
+ "float-wide": {
201
+ "$value": "0 8px 40px rgba(15, 23, 42, 0.12)"
202
+ },
203
+ "float-strong": {
204
+ "$value": "0 16px 35px rgba(15, 23, 42, 0.22)"
205
+ },
206
+ "pop": {
207
+ "$value": "0 4px 15px -3px rgba(0, 0, 0, 0.1)"
208
+ },
209
+ "pop-wide": {
210
+ "$value": "0 8px 40px rgba(0, 0, 0, 0.08)"
211
+ },
212
+ "modal": {
213
+ "$value": "0 25px 80px rgba(15, 23, 42, 0.2)"
214
+ },
215
+ "lightbox": {
216
+ "$value": "0 25px 70px rgba(0, 0, 0, 0.35)"
217
+ }
218
+ },
219
+ "dropShadow": {
220
+ "$type": "shadow",
221
+ "soft": {
222
+ "$value": "0 10px 30px rgba(0, 0, 0, 0.04)"
223
+ },
224
+ "amber-sm": {
225
+ "$value": "0 1px 4px rgba(251, 191, 36, 0.35)"
226
+ },
227
+ "amber-md": {
228
+ "$value": "0 2px 8px rgba(234, 179, 8, 0.45)"
229
+ }
230
+ },
231
+ "blur": {
232
+ "$type": "dimension",
233
+ "hair": {
234
+ "$value": "1px"
235
+ },
236
+ "thin": {
237
+ "$value": "2px"
238
+ },
239
+ "mist": {
240
+ "$value": "50px"
241
+ },
242
+ "orb": {
243
+ "$value": "70px"
244
+ },
245
+ "haze": {
246
+ "$value": "200px"
247
+ }
248
+ },
249
+ "animation": {
250
+ "$type": "string",
251
+ "slide-up": {
252
+ "$value": "slide-up 0.25s ease-out"
253
+ },
254
+ "fade-in": {
255
+ "$value": "fade-in 0.4s ease-out both"
256
+ },
257
+ "fade": {
258
+ "$value": "fade 0.5s"
259
+ },
260
+ "blink": {
261
+ "$value": "blink 1s step-end infinite"
262
+ },
263
+ "blink-caret": {
264
+ "$value": "blink-caret 0.75s step-end infinite"
265
+ },
266
+ "sway": {
267
+ "$value": "sway 3s ease-in-out forwards"
268
+ },
269
+ "shimmer": {
270
+ "$value": "shimmer 1.6s linear infinite"
271
+ },
272
+ "spin-glow": {
273
+ "$value": "spin-glow 1.5s cubic-bezier(0.5, 0, 0.5, 1) infinite"
274
+ },
275
+ "accordion-down": {
276
+ "$value": "accordion-down 0.3s ease-in-out"
277
+ },
278
+ "accordion-up": {
279
+ "$value": "accordion-up 0.3s ease-in-out"
280
+ }
281
+ },
282
+ "zIndex": {
283
+ "$type": "number",
284
+ "raised": {
285
+ "$value": "10"
286
+ },
287
+ "sticky": {
288
+ "$value": "50"
289
+ },
290
+ "drawer": {
291
+ "$value": "70"
292
+ },
293
+ "dropdown": {
294
+ "$value": "60"
295
+ },
296
+ "overlay": {
297
+ "$value": "100"
298
+ },
299
+ "overlay-content": {
300
+ "$value": "105"
301
+ },
302
+ "modal": {
303
+ "$value": "110"
304
+ },
305
+ "modal-content": {
306
+ "$value": "115"
307
+ },
308
+ "modal-nested": {
309
+ "$value": "120"
310
+ },
311
+ "popover": {
312
+ "$value": "999"
313
+ },
314
+ "top-layer": {
315
+ "$value": "2000"
316
+ },
317
+ "top-layer-content": {
318
+ "$value": "3000"
319
+ },
320
+ "toast": {
321
+ "$value": "9999"
322
+ },
323
+ "max": {
324
+ "$value": "10001"
325
+ }
326
+ }
327
+ }
@@ -0,0 +1,351 @@
1
+ /*
2
+ * Rich content: typography for rendered HTML such as articles and descriptions, plus
3
+ * the editor preview and Tiptap editing surface.
4
+ *
5
+ * Lists get `padding-inline-start: 1.5rem`, `.5rem` block margins and a 1.8 line height, and h2
6
+ * inherits the body color. Every direction-dependent property is logical (`ps-*`, `border-s-*`,
7
+ * `rounded-e-*`), so the same styles read correctly in RTL and LTR.
8
+ *
9
+ * The editor surfaces use literal Tailwind v3 palette values, which differ from Tailwind v4's.
10
+ */
11
+
12
+ @layer components {
13
+ /* ---------------------------------------------------------------- Rendered content */
14
+
15
+ .avero-rich-content {
16
+ @apply max-w-full space-y-3 overflow-hidden text-base leading-8 break-words text-gray-700;
17
+ word-break: break-word;
18
+ overflow-wrap: anywhere;
19
+
20
+ & h2 {
21
+ @apply mt-6 mb-3 text-xl leading-snug font-bold sm:text-2xl;
22
+ }
23
+
24
+ & h3 {
25
+ @apply mt-5 mb-2.5 text-lg font-bold text-gray-800 sm:text-xl;
26
+ }
27
+
28
+ & p {
29
+ @apply mb-4 max-w-full text-base leading-8 text-gray-700;
30
+ }
31
+
32
+ & strong,
33
+ & b {
34
+ @apply font-bold text-gray-900;
35
+ }
36
+
37
+ & a {
38
+ @apply text-indigo-600 underline hover:text-indigo-800;
39
+ }
40
+
41
+ & ol,
42
+ & ul {
43
+ @apply my-2 list-outside space-y-2 ps-6 text-gray-700;
44
+ }
45
+
46
+ & ol {
47
+ @apply list-decimal;
48
+ }
49
+
50
+ & ul {
51
+ @apply list-disc;
52
+ }
53
+
54
+ & li {
55
+ @apply leading-prose my-1 text-base;
56
+ }
57
+
58
+ & li > p,
59
+ & li > div {
60
+ @apply m-0 inline p-0;
61
+ }
62
+
63
+ & blockquote {
64
+ @apply relative my-4 rounded-e-lg border-s-4 border-indigo-500 bg-indigo-50/30 py-2.5 ps-4 pe-2 text-gray-600 italic;
65
+ }
66
+
67
+ & figure {
68
+ @apply my-5 flex max-w-full flex-col items-center;
69
+ }
70
+
71
+ & img {
72
+ @apply mx-auto my-3 block h-auto max-w-full rounded-xl object-contain shadow-md;
73
+ }
74
+
75
+ & table {
76
+ @apply w-full min-w-full border-collapse divide-y divide-gray-200 text-start text-sm;
77
+ }
78
+
79
+ & tbody {
80
+ @apply divide-y divide-gray-100 bg-white;
81
+ }
82
+
83
+ & tr {
84
+ @apply border-b border-gray-200 hover:bg-gray-50/50;
85
+ }
86
+
87
+ & th {
88
+ @apply border border-gray-200 bg-gray-100 p-2.5 text-start font-bold whitespace-nowrap text-gray-800;
89
+ }
90
+
91
+ & td {
92
+ @apply border border-gray-200 p-2.5 text-start align-top text-gray-700;
93
+ }
94
+ }
95
+
96
+ /* ---------------------------------------------------------------- Editor preview */
97
+
98
+ .avero-rich-content-editor {
99
+ & h1 {
100
+ margin: 1rem 0;
101
+ font-size: 1.75rem;
102
+ font-weight: 800;
103
+ }
104
+
105
+ & h2 {
106
+ margin: 0.9rem 0;
107
+ font-size: 1.4rem;
108
+ font-weight: 700;
109
+ }
110
+
111
+ & p {
112
+ margin: 0.5rem 0;
113
+ line-height: 1.8rem;
114
+ }
115
+
116
+ & ul,
117
+ & ol {
118
+ margin-block: 0.5rem;
119
+ padding-inline-start: 1.5rem;
120
+ list-style-position: outside;
121
+ }
122
+
123
+ & ul {
124
+ list-style-type: disc;
125
+ }
126
+
127
+ & ol {
128
+ list-style-type: decimal;
129
+ }
130
+
131
+ & li {
132
+ margin-block: 0.25rem;
133
+ line-height: 1.8;
134
+ }
135
+
136
+ & li > p,
137
+ & li > div {
138
+ display: inline;
139
+ margin: 0;
140
+ padding: 0;
141
+ }
142
+
143
+ & a {
144
+ color: #2563eb;
145
+ text-decoration: underline;
146
+ }
147
+
148
+ & blockquote {
149
+ color: #6b7280;
150
+ border-inline-start: 3px solid #3b82f6;
151
+ padding-inline-start: 1rem;
152
+ font-style: italic;
153
+ }
154
+ }
155
+
156
+ /* ---------------------------------------------------------------- Question content */
157
+
158
+ /*
159
+ * Only lists are styled here; everything else is inherited from the page, so the variant
160
+ * deliberately carries no typography of its own.
161
+ */
162
+ .avero-rich-content-question {
163
+ & ol,
164
+ & ul {
165
+ @apply my-2 list-outside space-y-2 ps-6;
166
+ }
167
+
168
+ & ol {
169
+ @apply list-decimal;
170
+ }
171
+
172
+ & ul {
173
+ @apply list-disc;
174
+ }
175
+
176
+ & li {
177
+ @apply leading-prose my-1;
178
+ }
179
+
180
+ & li > p,
181
+ & li > div {
182
+ @apply m-0 inline p-0;
183
+ }
184
+ }
185
+
186
+ /* ---------------------------------------------------------------- Tiptap editing surface */
187
+
188
+ .avero-editor-content .tiptap {
189
+ min-height: inherit;
190
+ text-align: start;
191
+ outline: none;
192
+ padding: 1rem 1.25rem;
193
+
194
+ & > * + * {
195
+ margin-top: 0.5em;
196
+ }
197
+
198
+ & p {
199
+ color: #374151;
200
+ font-size: 0.95rem;
201
+ line-height: 1.8;
202
+ }
203
+
204
+ & h1 {
205
+ color: #111827;
206
+ margin-top: 0.75em;
207
+ font-size: 1.75rem;
208
+ font-weight: 800;
209
+ line-height: 1.4;
210
+ }
211
+
212
+ & h2 {
213
+ color: #1f2937;
214
+ margin-top: 0.75em;
215
+ font-size: 1.4rem;
216
+ font-weight: 700;
217
+ line-height: 1.5;
218
+ }
219
+
220
+ & h3 {
221
+ color: #374151;
222
+ margin-top: 0.5em;
223
+ font-size: 1.15rem;
224
+ font-weight: 600;
225
+ line-height: 1.6;
226
+ }
227
+
228
+ & ul {
229
+ padding-inline-start: 1.5rem;
230
+ list-style-type: disc;
231
+ }
232
+
233
+ & ol {
234
+ padding-inline-start: 1.5rem;
235
+ list-style-type: decimal;
236
+ }
237
+
238
+ & li {
239
+ margin-bottom: 0.25rem;
240
+ line-height: 1.8;
241
+ }
242
+
243
+ & li p {
244
+ margin: 0;
245
+ }
246
+
247
+ & blockquote {
248
+ color: #6b7280;
249
+ border-inline-start: 4px solid #d1d5db;
250
+ margin: 1rem 0;
251
+ padding-inline-start: 1rem;
252
+ font-style: italic;
253
+ }
254
+
255
+ & pre {
256
+ color: #86efac;
257
+ text-align: left;
258
+ direction: ltr;
259
+ background: #1e293b;
260
+ border-radius: 0.75rem;
261
+ padding: 1rem 1.25rem;
262
+ font-family: var(--font-code);
263
+ font-size: 0.85rem;
264
+ overflow-x: auto;
265
+ }
266
+
267
+ & code {
268
+ color: #dc2626;
269
+ background: #f3f4f6;
270
+ border-radius: 0.25rem;
271
+ padding: 0.15rem 0.4rem;
272
+ font-family: var(--font-code);
273
+ font-size: 0.85em;
274
+ }
275
+
276
+ & pre code {
277
+ color: inherit;
278
+ background: none;
279
+ border-radius: 0;
280
+ padding: 0;
281
+ }
282
+
283
+ & hr {
284
+ border: none;
285
+ border-top: 2px solid #e5e7eb;
286
+ margin: 1.5rem 0;
287
+ }
288
+
289
+ & img {
290
+ border-radius: 0.75rem;
291
+ max-width: 100%;
292
+ margin: 0.75rem 0;
293
+ }
294
+
295
+ & a {
296
+ color: #2563eb;
297
+ cursor: pointer;
298
+ text-decoration: underline;
299
+ }
300
+
301
+ & table {
302
+ border-collapse: collapse;
303
+ table-layout: auto;
304
+ width: 100%;
305
+ margin: 1rem 0;
306
+ overflow: hidden;
307
+ }
308
+
309
+ & th {
310
+ text-align: start;
311
+ color: #111827;
312
+ background-color: #f3f4f6;
313
+ border: 1px solid #d1d5db;
314
+ padding: 0.6rem 0.75rem;
315
+ font-weight: 700;
316
+ position: relative;
317
+ }
318
+
319
+ & td {
320
+ vertical-align: top;
321
+ text-align: start;
322
+ color: #374151;
323
+ border: 1px solid #e5e7eb;
324
+ padding: 0.5rem 0.75rem;
325
+ position: relative;
326
+ }
327
+
328
+ & .selectedCell::after {
329
+ z-index: 2;
330
+ content: "";
331
+ pointer-events: none;
332
+ background: #6366f126;
333
+ position: absolute;
334
+ inset: 0;
335
+ }
336
+
337
+ & p.is-editor-empty:first-child::before {
338
+ content: attr(data-placeholder);
339
+ float: inline-start;
340
+ color: #9ca3af;
341
+ pointer-events: none;
342
+ height: 0;
343
+ }
344
+
345
+ & .ProseMirror-selectednode {
346
+ outline-offset: 2px;
347
+ border-radius: 0.5rem;
348
+ outline: 2px solid #6366f1;
349
+ }
350
+ }
351
+ }