@vjdesigns/vjdesigns-ui 3.0.0 → 3.2.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/README.md +40 -1
- package/dist/ai/llms-full.txt +91 -1
- package/dist/ai/llms.txt +1 -0
- package/dist/ai/registry.json +154 -2
- package/dist/components/data-display/Countdown/Countdown.cjs.js +1 -0
- package/dist/components/data-display/Countdown/Countdown.d.ts +98 -0
- package/dist/components/data-display/Countdown/Countdown.mjs +150 -0
- package/dist/components/data-display/Countdown/Countdown.module.css.cjs.js +1 -0
- package/dist/components/data-display/Countdown/Countdown.module.css.mjs +30 -0
- package/dist/components/data-display/Countdown/index.d.ts +1 -0
- package/dist/i18n/en.cjs.js +1 -1
- package/dist/i18n/en.mjs +239 -0
- package/dist/i18n/types.d.ts +261 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.mjs +79 -78
- package/dist/locales/ar.cjs.js +1 -1
- package/dist/locales/ar.mjs +267 -0
- package/dist/locales/bn.cjs.js +1 -1
- package/dist/locales/bn.mjs +218 -0
- package/dist/locales/cs.cjs.js +1 -1
- package/dist/locales/cs.mjs +253 -0
- package/dist/locales/da.cjs.js +1 -1
- package/dist/locales/da.mjs +239 -0
- package/dist/locales/de.cjs.js +1 -1
- package/dist/locales/de.mjs +239 -0
- package/dist/locales/el.cjs.js +1 -1
- package/dist/locales/el.mjs +239 -0
- package/dist/locales/es.cjs.js +1 -1
- package/dist/locales/es.mjs +239 -0
- package/dist/locales/fa.cjs.js +1 -1
- package/dist/locales/fa.mjs +218 -0
- package/dist/locales/fi.cjs.js +1 -1
- package/dist/locales/fi.mjs +239 -0
- package/dist/locales/fr.cjs.js +1 -1
- package/dist/locales/fr.mjs +239 -0
- package/dist/locales/he.cjs.js +1 -1
- package/dist/locales/he.mjs +246 -0
- package/dist/locales/hi.cjs.js +1 -1
- package/dist/locales/hi.mjs +239 -0
- package/dist/locales/hu.cjs.js +1 -1
- package/dist/locales/hu.mjs +218 -0
- package/dist/locales/id.cjs.js +1 -1
- package/dist/locales/id.mjs +218 -0
- package/dist/locales/it.cjs.js +1 -1
- package/dist/locales/it.mjs +239 -0
- package/dist/locales/ja.cjs.js +1 -1
- package/dist/locales/ja.mjs +218 -0
- package/dist/locales/ko.cjs.js +1 -1
- package/dist/locales/ko.mjs +218 -0
- package/dist/locales/nb.cjs.js +1 -1
- package/dist/locales/nb.mjs +239 -0
- package/dist/locales/nl.cjs.js +1 -1
- package/dist/locales/nl.mjs +239 -0
- package/dist/locales/pl.cjs.js +1 -1
- package/dist/locales/pl.mjs +253 -0
- package/dist/locales/pt-BR.cjs.js +1 -1
- package/dist/locales/pt-BR.mjs +239 -0
- package/dist/locales/ro.cjs.js +1 -1
- package/dist/locales/ro.mjs +246 -0
- package/dist/locales/ru.cjs.js +1 -1
- package/dist/locales/ru.mjs +253 -0
- package/dist/locales/sv.cjs.js +1 -1
- package/dist/locales/sv.mjs +239 -0
- package/dist/locales/th.cjs.js +1 -1
- package/dist/locales/th.mjs +218 -0
- package/dist/locales/tr.cjs.js +1 -1
- package/dist/locales/tr.mjs +218 -0
- package/dist/locales/uk.cjs.js +1 -1
- package/dist/locales/uk.mjs +253 -0
- package/dist/locales/ur.cjs.js +1 -1
- package/dist/locales/ur.mjs +239 -0
- package/dist/locales/vi.cjs.js +1 -1
- package/dist/locales/vi.mjs +218 -0
- package/dist/locales/zh-Hans.cjs.js +1 -1
- package/dist/locales/zh-Hans.mjs +218 -0
- package/dist/locales/zh-Hant.cjs.js +1 -1
- package/dist/locales/zh-Hant.mjs +218 -0
- package/dist/tailwind.css +243 -0
- package/dist/vjdesigns-ui.css +1 -1
- package/package.json +4 -1
package/dist/locales/zh-Hant.mjs
CHANGED
|
@@ -54,6 +54,10 @@ var t = e("zh-Hant"), n = {
|
|
|
54
54
|
region: (e) => `程式碼:${e}`,
|
|
55
55
|
snippet: "程式碼片段"
|
|
56
56
|
},
|
|
57
|
+
countdown: {
|
|
58
|
+
label: "剩餘時間",
|
|
59
|
+
completed: "時間到了"
|
|
60
|
+
},
|
|
57
61
|
emptyState: {
|
|
58
62
|
noData: {
|
|
59
63
|
title: "這裡還沒有內容",
|
|
@@ -257,6 +261,220 @@ var t = e("zh-Hant"), n = {
|
|
|
257
261
|
dropped: (e, n, r, i) => `已將「${e}」放在「${i}」的第 ${t(n)} 個,共 ${t(r)} 個。`,
|
|
258
262
|
cancelled: (e, t) => `已取消移動。「${e}」回到了「${t}」。`
|
|
259
263
|
},
|
|
264
|
+
pricing: {
|
|
265
|
+
billingPeriod: "計費週期",
|
|
266
|
+
monthly: "按月",
|
|
267
|
+
yearly: "按年",
|
|
268
|
+
perMonth: "/月",
|
|
269
|
+
perYear: "/年",
|
|
270
|
+
billedYearly: (e) => `按年計費 ${e}`,
|
|
271
|
+
mostPopular: "最受歡迎",
|
|
272
|
+
included: "包含",
|
|
273
|
+
notIncluded: "不包含",
|
|
274
|
+
custom: "客製"
|
|
275
|
+
},
|
|
276
|
+
errorPage: {
|
|
277
|
+
notFound: {
|
|
278
|
+
title: "找不到頁面",
|
|
279
|
+
description: "你要找的頁面不存在或已移動。"
|
|
280
|
+
},
|
|
281
|
+
serverError: {
|
|
282
|
+
title: "發生問題",
|
|
283
|
+
description: "我們這邊發生了問題。請稍後再試。"
|
|
284
|
+
},
|
|
285
|
+
maintenance: {
|
|
286
|
+
title: "維護中",
|
|
287
|
+
description: "我們正在進行改善,很快就會回來。"
|
|
288
|
+
},
|
|
289
|
+
forbidden: {
|
|
290
|
+
title: "你沒有存取權",
|
|
291
|
+
description: "請管理員為你開通此頁面的存取權。"
|
|
292
|
+
},
|
|
293
|
+
offline: {
|
|
294
|
+
title: "你已離線",
|
|
295
|
+
description: "請檢查網路連線後重試。"
|
|
296
|
+
},
|
|
297
|
+
code: (e) => `錯誤 ${e}`,
|
|
298
|
+
goHome: "前往首頁",
|
|
299
|
+
goBack: "返回",
|
|
300
|
+
tryAgain: "重試",
|
|
301
|
+
backBy: (e) => `預計 ${e} 前恢復。`
|
|
302
|
+
},
|
|
303
|
+
onboarding: {
|
|
304
|
+
back: "上一步",
|
|
305
|
+
next: "繼續",
|
|
306
|
+
skip: "略過",
|
|
307
|
+
finish: "完成",
|
|
308
|
+
stepOf: (e, n) => `第 ${t(e)} 步,共 ${t(n)} 步`,
|
|
309
|
+
optional: "選填"
|
|
310
|
+
},
|
|
311
|
+
team: {
|
|
312
|
+
emails: "電子郵件地址",
|
|
313
|
+
emailsHint: "每個地址後按 Enter 或輸入逗號。",
|
|
314
|
+
role: "角色",
|
|
315
|
+
message: "個人留言(選填)",
|
|
316
|
+
send: (e) => `傳送 ${t(e)} 份邀請`,
|
|
317
|
+
invalidEmail: (e) => `${e} 不是有效的電子郵件地址。`,
|
|
318
|
+
sent: (e) => `已傳送 ${t(e)} 份邀請`,
|
|
319
|
+
emailsRequired: "請至少新增一個電子郵件地址。"
|
|
320
|
+
},
|
|
321
|
+
billing: {
|
|
322
|
+
usage: (e, t) => `${e} / ${t}`,
|
|
323
|
+
overLimit: "超出上限",
|
|
324
|
+
cardEnding: (e, t) => `末四碼 ${t} 的 ${e}`,
|
|
325
|
+
expires: (e) => `${e} 到期`,
|
|
326
|
+
update: "更新",
|
|
327
|
+
default: "預設"
|
|
328
|
+
},
|
|
329
|
+
chatApp: {
|
|
330
|
+
conversations: "對話",
|
|
331
|
+
showConversations: "顯示對話",
|
|
332
|
+
newChat: "新對話",
|
|
333
|
+
search: "搜尋對話",
|
|
334
|
+
groups: {
|
|
335
|
+
today: "今天",
|
|
336
|
+
yesterday: "昨天",
|
|
337
|
+
week: "過去 7 天",
|
|
338
|
+
older: "更早"
|
|
339
|
+
},
|
|
340
|
+
model: "模型",
|
|
341
|
+
options: (e) => `「${e}」選項`,
|
|
342
|
+
rename: "重新命名",
|
|
343
|
+
remove: "刪除",
|
|
344
|
+
title: "標題",
|
|
345
|
+
noConversations: "還沒有對話",
|
|
346
|
+
noMatches: "沒有相符的對話"
|
|
347
|
+
},
|
|
348
|
+
sports: {
|
|
349
|
+
standings: {
|
|
350
|
+
team: "球隊",
|
|
351
|
+
rank: {
|
|
352
|
+
short: "排名",
|
|
353
|
+
long: "排名"
|
|
354
|
+
},
|
|
355
|
+
played: {
|
|
356
|
+
short: "場",
|
|
357
|
+
long: "已賽場次"
|
|
358
|
+
},
|
|
359
|
+
wins: {
|
|
360
|
+
short: "勝",
|
|
361
|
+
long: "勝場"
|
|
362
|
+
},
|
|
363
|
+
losses: {
|
|
364
|
+
short: "敗",
|
|
365
|
+
long: "敗場"
|
|
366
|
+
},
|
|
367
|
+
ties: {
|
|
368
|
+
short: "和",
|
|
369
|
+
long: "和局"
|
|
370
|
+
},
|
|
371
|
+
pct: {
|
|
372
|
+
short: "勝率",
|
|
373
|
+
long: "勝率"
|
|
374
|
+
},
|
|
375
|
+
gamesBack: {
|
|
376
|
+
short: "勝差",
|
|
377
|
+
long: "勝場差"
|
|
378
|
+
},
|
|
379
|
+
streak: {
|
|
380
|
+
short: "連",
|
|
381
|
+
long: "連勝/連敗"
|
|
382
|
+
},
|
|
383
|
+
lastTen: {
|
|
384
|
+
short: "近10",
|
|
385
|
+
long: "最近 10 場"
|
|
386
|
+
},
|
|
387
|
+
yourTeam: "你的球隊",
|
|
388
|
+
belowPlayoffLine: "季後賽線以下",
|
|
389
|
+
streakWon: (e) => `${t(e)} 連勝`,
|
|
390
|
+
streakLost: (e) => `${t(e)} 連敗`
|
|
391
|
+
},
|
|
392
|
+
schedule: {
|
|
393
|
+
home: "對陣",
|
|
394
|
+
away: "客場對陣",
|
|
395
|
+
win: {
|
|
396
|
+
short: "勝",
|
|
397
|
+
long: "勝"
|
|
398
|
+
},
|
|
399
|
+
loss: {
|
|
400
|
+
short: "敗",
|
|
401
|
+
long: "敗"
|
|
402
|
+
},
|
|
403
|
+
tie: {
|
|
404
|
+
short: "和",
|
|
405
|
+
long: "和"
|
|
406
|
+
},
|
|
407
|
+
live: "直播",
|
|
408
|
+
final: "已結束",
|
|
409
|
+
postponed: "延期",
|
|
410
|
+
canceled: "取消",
|
|
411
|
+
tickets: "門票",
|
|
412
|
+
boxScore: "技術統計",
|
|
413
|
+
addToCalendar: "加入行事曆",
|
|
414
|
+
noGames: "暫無賽程",
|
|
415
|
+
score: (e, t) => `${e} 比 ${t}`,
|
|
416
|
+
winner: "勝者"
|
|
417
|
+
},
|
|
418
|
+
boxScore: {
|
|
419
|
+
lineScore: "各節比分",
|
|
420
|
+
total: {
|
|
421
|
+
short: "總",
|
|
422
|
+
long: "總分"
|
|
423
|
+
},
|
|
424
|
+
player: "球員",
|
|
425
|
+
starters: "先發",
|
|
426
|
+
bench: "替補",
|
|
427
|
+
totals: "合計",
|
|
428
|
+
didNotPlay: "未出賽"
|
|
429
|
+
},
|
|
430
|
+
roster: {
|
|
431
|
+
view: "檢視",
|
|
432
|
+
cards: "卡片",
|
|
433
|
+
table: "表格",
|
|
434
|
+
name: "姓名",
|
|
435
|
+
position: "位置",
|
|
436
|
+
number: (e) => `${e} 號`,
|
|
437
|
+
noPlayers: "還沒有球員"
|
|
438
|
+
},
|
|
439
|
+
profile: {
|
|
440
|
+
seasonStats: "賽季數據",
|
|
441
|
+
about: "簡介"
|
|
442
|
+
},
|
|
443
|
+
tryout: {
|
|
444
|
+
player: "球員",
|
|
445
|
+
firstName: "名",
|
|
446
|
+
lastName: "姓",
|
|
447
|
+
birthDate: "出生日期",
|
|
448
|
+
email: "電子郵件",
|
|
449
|
+
phone: "電話",
|
|
450
|
+
position: "位置",
|
|
451
|
+
experience: "比賽經驗(選填)",
|
|
452
|
+
guardian: "家長或監護人",
|
|
453
|
+
guardianName: "全名",
|
|
454
|
+
minorNotice: (e) => `${t(e)} 歲以下的球員需由家長或監護人報名。`,
|
|
455
|
+
session: "選拔場次",
|
|
456
|
+
spotsLeft: (e) => `剩餘 ${t(e)} 個名額`,
|
|
457
|
+
full: "已滿",
|
|
458
|
+
medical: "醫療備註(選填)",
|
|
459
|
+
waiver: "我同意選拔免責聲明。",
|
|
460
|
+
waiverLink: "閱讀免責聲明",
|
|
461
|
+
submit: "報名",
|
|
462
|
+
registered: (e) => `你已報名:${e}。`
|
|
463
|
+
},
|
|
464
|
+
tickets: {
|
|
465
|
+
quantity: (e) => `${e}數量`,
|
|
466
|
+
left: (e) => `剩餘 ${t(e)} 張`,
|
|
467
|
+
soldOut: "已售完",
|
|
468
|
+
free: "免費",
|
|
469
|
+
perOrder: (e) => `每筆訂單最多 ${t(e)} 張`,
|
|
470
|
+
orderSummary: "訂單摘要",
|
|
471
|
+
subtotal: "小計",
|
|
472
|
+
fees: "手續費",
|
|
473
|
+
total: "總計",
|
|
474
|
+
checkout: "結帳",
|
|
475
|
+
chooseTickets: "請至少選擇一張票。"
|
|
476
|
+
}
|
|
477
|
+
},
|
|
260
478
|
gantt: {
|
|
261
479
|
task: "工作",
|
|
262
480
|
start: "開始",
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
vjdesigns-ui Tailwind CSS v4 preset
|
|
3
|
+
|
|
4
|
+
Import it after Tailwind, with the library's stylesheet loaded too:
|
|
5
|
+
|
|
6
|
+
@import "tailwindcss";
|
|
7
|
+
@import "@vjdesigns/vjdesigns-ui/tailwind.css";
|
|
8
|
+
|
|
9
|
+
Every utility points at a design token (bg-primary -> var(--color-primary)),
|
|
10
|
+
so Tailwind classes follow data-theme, data-brand, and data-accent exactly
|
|
11
|
+
like the components do.
|
|
12
|
+
|
|
13
|
+
`inline reference`: utilities use the token directly, and Tailwind emits no
|
|
14
|
+
theme variables of its own for these names. Many share a name with a token
|
|
15
|
+
(--radius-lg, --shadow-md, ...); an emitted copy would read
|
|
16
|
+
`--radius-lg: var(--radius-lg)`, a self-reference that breaks wherever the
|
|
17
|
+
tokens don't apply (inside shadow roots, Tailwind's theme also targets :host).
|
|
18
|
+
|
|
19
|
+
`node scripts/check-tailwind.mjs` checks this file against tokens.css: every
|
|
20
|
+
var() exists, every name Tailwind's default theme shares with a token is
|
|
21
|
+
declared here, and the literal container sizes match the tokens.
|
|
22
|
+
========================================================================== */
|
|
23
|
+
|
|
24
|
+
@theme inline reference {
|
|
25
|
+
/* ---- Surfaces and text: bg-surface, text-text-muted, border-border ---- */
|
|
26
|
+
--color-bg: var(--color-bg);
|
|
27
|
+
--color-surface: var(--color-surface);
|
|
28
|
+
--color-surface-raised: var(--color-surface-raised);
|
|
29
|
+
--color-surface-sunken: var(--color-surface-sunken);
|
|
30
|
+
--color-surface-hover: var(--color-surface-hover);
|
|
31
|
+
--color-surface-active: var(--color-surface-active);
|
|
32
|
+
--color-overlay: var(--color-overlay);
|
|
33
|
+
--color-text: var(--color-text);
|
|
34
|
+
--color-text-muted: var(--color-text-muted);
|
|
35
|
+
--color-text-disabled: var(--color-text-disabled);
|
|
36
|
+
--color-text-inverse: var(--color-text-inverse);
|
|
37
|
+
--color-border: var(--color-border);
|
|
38
|
+
--color-border-strong: var(--color-border-strong);
|
|
39
|
+
--color-border-input: var(--color-border-input);
|
|
40
|
+
--color-link-visited: var(--color-link-visited);
|
|
41
|
+
--color-focus-ring: var(--focus-ring-color);
|
|
42
|
+
|
|
43
|
+
/* ---- Primary and accent (per brand; always dark text on accent) ---- */
|
|
44
|
+
--color-primary: var(--color-primary);
|
|
45
|
+
--color-primary-hover: var(--color-primary-hover);
|
|
46
|
+
--color-primary-active: var(--color-primary-active);
|
|
47
|
+
--color-on-primary: var(--color-on-primary);
|
|
48
|
+
--color-primary-subtle: var(--color-primary-subtle);
|
|
49
|
+
--color-primary-subtle-hover: var(--color-primary-subtle-hover);
|
|
50
|
+
--color-primary-subtle-text: var(--color-primary-subtle-text);
|
|
51
|
+
--color-primary-border: var(--color-primary-border);
|
|
52
|
+
--color-accent: var(--color-accent);
|
|
53
|
+
--color-accent-hover: var(--color-accent-hover);
|
|
54
|
+
--color-accent-active: var(--color-accent-active);
|
|
55
|
+
--color-on-accent: var(--color-on-accent);
|
|
56
|
+
--color-accent-subtle: var(--color-accent-subtle);
|
|
57
|
+
--color-accent-subtle-hover: var(--color-accent-subtle-hover);
|
|
58
|
+
--color-accent-subtle-text: var(--color-accent-subtle-text);
|
|
59
|
+
--color-accent-border: var(--color-accent-border);
|
|
60
|
+
|
|
61
|
+
/* ---- Tones. Tailwind's own neutral-50 to neutral-950 scale is untouched:
|
|
62
|
+
bg-neutral is the tone, bg-neutral-500 is Tailwind's gray. ---- */
|
|
63
|
+
--color-success: var(--color-success);
|
|
64
|
+
--color-success-hover: var(--color-success-hover);
|
|
65
|
+
--color-success-active: var(--color-success-active);
|
|
66
|
+
--color-on-success: var(--color-on-success);
|
|
67
|
+
--color-success-subtle: var(--color-success-subtle);
|
|
68
|
+
--color-success-subtle-hover: var(--color-success-subtle-hover);
|
|
69
|
+
--color-success-subtle-text: var(--color-success-subtle-text);
|
|
70
|
+
--color-success-border: var(--color-success-border);
|
|
71
|
+
--color-warning: var(--color-warning);
|
|
72
|
+
--color-warning-hover: var(--color-warning-hover);
|
|
73
|
+
--color-warning-active: var(--color-warning-active);
|
|
74
|
+
--color-on-warning: var(--color-on-warning);
|
|
75
|
+
--color-warning-subtle: var(--color-warning-subtle);
|
|
76
|
+
--color-warning-subtle-hover: var(--color-warning-subtle-hover);
|
|
77
|
+
--color-warning-subtle-text: var(--color-warning-subtle-text);
|
|
78
|
+
--color-warning-border: var(--color-warning-border);
|
|
79
|
+
--color-danger: var(--color-danger);
|
|
80
|
+
--color-danger-hover: var(--color-danger-hover);
|
|
81
|
+
--color-danger-active: var(--color-danger-active);
|
|
82
|
+
--color-on-danger: var(--color-on-danger);
|
|
83
|
+
--color-danger-subtle: var(--color-danger-subtle);
|
|
84
|
+
--color-danger-subtle-hover: var(--color-danger-subtle-hover);
|
|
85
|
+
--color-danger-subtle-text: var(--color-danger-subtle-text);
|
|
86
|
+
--color-danger-border: var(--color-danger-border);
|
|
87
|
+
--color-info: var(--color-info);
|
|
88
|
+
--color-info-hover: var(--color-info-hover);
|
|
89
|
+
--color-info-active: var(--color-info-active);
|
|
90
|
+
--color-on-info: var(--color-on-info);
|
|
91
|
+
--color-info-subtle: var(--color-info-subtle);
|
|
92
|
+
--color-info-subtle-hover: var(--color-info-subtle-hover);
|
|
93
|
+
--color-info-subtle-text: var(--color-info-subtle-text);
|
|
94
|
+
--color-info-border: var(--color-info-border);
|
|
95
|
+
--color-neutral: var(--color-neutral);
|
|
96
|
+
--color-neutral-hover: var(--color-neutral-hover);
|
|
97
|
+
--color-neutral-active: var(--color-neutral-active);
|
|
98
|
+
--color-on-neutral: var(--color-on-neutral);
|
|
99
|
+
--color-neutral-subtle: var(--color-neutral-subtle);
|
|
100
|
+
--color-neutral-subtle-hover: var(--color-neutral-subtle-hover);
|
|
101
|
+
--color-neutral-subtle-text: var(--color-neutral-subtle-text);
|
|
102
|
+
--color-neutral-border: var(--color-neutral-border);
|
|
103
|
+
|
|
104
|
+
/* ---- Chart series, for fills only (text never takes a series color).
|
|
105
|
+
Fixed order; 3 to 5 are under 3:1 on white, so pair them with a legend,
|
|
106
|
+
labels, or a data table. ---- */
|
|
107
|
+
--color-chart-1: var(--chart-1);
|
|
108
|
+
--color-chart-2: var(--chart-2);
|
|
109
|
+
--color-chart-3: var(--chart-3);
|
|
110
|
+
--color-chart-4: var(--chart-4);
|
|
111
|
+
--color-chart-5: var(--chart-5);
|
|
112
|
+
--color-chart-6: var(--chart-6);
|
|
113
|
+
--color-chart-7: var(--chart-7);
|
|
114
|
+
--color-chart-8: var(--chart-8);
|
|
115
|
+
|
|
116
|
+
/* ---- Type: font-display, font-body, text-md, leading-tight ---- */
|
|
117
|
+
--font-display: var(--font-display);
|
|
118
|
+
--font-body: var(--font-body);
|
|
119
|
+
--font-sans: var(--font-body);
|
|
120
|
+
--font-mono: var(--font-mono);
|
|
121
|
+
--text-xs: var(--font-size-xs);
|
|
122
|
+
--text-sm: var(--font-size-sm);
|
|
123
|
+
--text-md: var(--font-size-md);
|
|
124
|
+
--text-md--line-height: var(--line-height-normal);
|
|
125
|
+
--text-base: var(--font-size-md);
|
|
126
|
+
--text-lg: var(--font-size-lg);
|
|
127
|
+
--text-xl: var(--font-size-xl);
|
|
128
|
+
--text-2xl: var(--font-size-2xl);
|
|
129
|
+
--text-3xl: var(--font-size-3xl);
|
|
130
|
+
--text-4xl: var(--font-size-4xl);
|
|
131
|
+
--text-5xl: var(--font-size-5xl);
|
|
132
|
+
--text-6xl: var(--font-size-6xl);
|
|
133
|
+
--font-weight-regular: var(--font-weight-regular);
|
|
134
|
+
--font-weight-medium: var(--font-weight-medium);
|
|
135
|
+
--font-weight-semibold: var(--font-weight-semibold);
|
|
136
|
+
--font-weight-bold: var(--font-weight-bold);
|
|
137
|
+
--font-weight-black: var(--font-weight-black);
|
|
138
|
+
--leading-tight: var(--line-height-tight);
|
|
139
|
+
--leading-snug: var(--line-height-snug);
|
|
140
|
+
--leading-normal: var(--line-height-normal);
|
|
141
|
+
--leading-relaxed: var(--line-height-relaxed);
|
|
142
|
+
--tracking-tight: var(--letter-spacing-tight);
|
|
143
|
+
--tracking-normal: var(--letter-spacing-normal);
|
|
144
|
+
--tracking-wide: var(--letter-spacing-wide);
|
|
145
|
+
--tracking-caps: var(--letter-spacing-caps);
|
|
146
|
+
|
|
147
|
+
/* ---- Shape: rounded-control (pill controls), rounded-field (text fields),
|
|
148
|
+
rounded-lg to rounded-xl for cards and surfaces ---- */
|
|
149
|
+
--radius-xs: var(--radius-xs);
|
|
150
|
+
--radius-sm: var(--radius-sm);
|
|
151
|
+
--radius-md: var(--radius-md);
|
|
152
|
+
--radius-lg: var(--radius-lg);
|
|
153
|
+
--radius-xl: var(--radius-xl);
|
|
154
|
+
--radius-2xl: var(--radius-2xl);
|
|
155
|
+
--radius-pill: var(--radius-pill);
|
|
156
|
+
--radius-control: var(--control-radius);
|
|
157
|
+
--radius-field: var(--field-radius);
|
|
158
|
+
|
|
159
|
+
/* ---- Depth: soft shadows only ---- */
|
|
160
|
+
--shadow-xs: var(--shadow-xs);
|
|
161
|
+
--shadow-sm: var(--shadow-sm);
|
|
162
|
+
--shadow-md: var(--shadow-md);
|
|
163
|
+
--shadow-lg: var(--shadow-lg);
|
|
164
|
+
--shadow-xl: var(--shadow-xl);
|
|
165
|
+
--blur-sm: var(--blur-sm);
|
|
166
|
+
--blur-lg: var(--blur-lg);
|
|
167
|
+
|
|
168
|
+
/* ---- Motion: ease-spring for enter and press, ease-standard otherwise ---- */
|
|
169
|
+
--ease-standard: var(--ease-standard);
|
|
170
|
+
--ease-spring: var(--ease-spring);
|
|
171
|
+
--ease-in: var(--ease-in);
|
|
172
|
+
--ease-out: var(--ease-out);
|
|
173
|
+
|
|
174
|
+
/* ---- Sizes: h-control-md, size-target (the 24px minimum pointer target).
|
|
175
|
+
Tailwind's numeric spacing (p-4 = 1rem) already matches the 4px token scale. ---- */
|
|
176
|
+
--spacing-control-sm: var(--control-height-sm);
|
|
177
|
+
--spacing-control-md: var(--control-height-md);
|
|
178
|
+
--spacing-control-lg: var(--control-height-lg);
|
|
179
|
+
--spacing-target: var(--target-size-min);
|
|
180
|
+
|
|
181
|
+
/* ---- Containers: max-w-md and the @md: container queries. Literal values,
|
|
182
|
+
because CSS can't use var() in a container query; they must equal the
|
|
183
|
+
--container-* tokens (the check script compares them). ---- */
|
|
184
|
+
--container-xs: 30rem;
|
|
185
|
+
--container-sm: 40rem;
|
|
186
|
+
--container-md: 48rem;
|
|
187
|
+
--container-lg: 64rem;
|
|
188
|
+
--container-xl: 80rem;
|
|
189
|
+
--container-2xl: 96rem;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/* Tailwind's preflight reads these for the page and code fonts. They aren't
|
|
193
|
+
token names, so emitting them is safe. */
|
|
194
|
+
@theme {
|
|
195
|
+
--default-font-family: var(--font-body);
|
|
196
|
+
--default-mono-font-family: var(--font-mono);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
/* dark: follows data-theme (set by Theme or on <html>), not the OS setting.
|
|
200
|
+
Prefer the semantic colors above, which switch by themselves (and handle a
|
|
201
|
+
light Theme nested in a dark one); use dark: only for one-off exceptions. */
|
|
202
|
+
@custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *));
|
|
203
|
+
|
|
204
|
+
/* Durations and layers have no Tailwind theme namespace, so they get named
|
|
205
|
+
utilities. Durations drop to 0ms under prefers-reduced-motion, like the tokens. */
|
|
206
|
+
@utility duration-instant {
|
|
207
|
+
--tw-duration: var(--duration-instant);
|
|
208
|
+
transition-duration: var(--duration-instant);
|
|
209
|
+
}
|
|
210
|
+
@utility duration-fast {
|
|
211
|
+
--tw-duration: var(--duration-fast);
|
|
212
|
+
transition-duration: var(--duration-fast);
|
|
213
|
+
}
|
|
214
|
+
@utility duration-normal {
|
|
215
|
+
--tw-duration: var(--duration-normal);
|
|
216
|
+
transition-duration: var(--duration-normal);
|
|
217
|
+
}
|
|
218
|
+
@utility duration-slow {
|
|
219
|
+
--tw-duration: var(--duration-slow);
|
|
220
|
+
transition-duration: var(--duration-slow);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
@utility z-sticky {
|
|
224
|
+
z-index: var(--z-sticky);
|
|
225
|
+
}
|
|
226
|
+
@utility z-overlay {
|
|
227
|
+
z-index: var(--z-overlay);
|
|
228
|
+
}
|
|
229
|
+
@utility z-modal {
|
|
230
|
+
z-index: var(--z-modal);
|
|
231
|
+
}
|
|
232
|
+
@utility z-popover {
|
|
233
|
+
z-index: var(--z-popover);
|
|
234
|
+
}
|
|
235
|
+
@utility z-dropdown {
|
|
236
|
+
z-index: var(--z-dropdown);
|
|
237
|
+
}
|
|
238
|
+
@utility z-toast {
|
|
239
|
+
z-index: var(--z-toast);
|
|
240
|
+
}
|
|
241
|
+
@utility z-tooltip {
|
|
242
|
+
z-index: var(--z-tooltip);
|
|
243
|
+
}
|