@adia-ai/web-components 0.6.46 → 0.6.48
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/CHANGELOG.md +54 -0
- package/components/badge/badge.d.ts +14 -0
- package/components/button/button.a2ui.json +1 -4
- package/components/button/button.d.ts +1 -1
- package/components/button/button.yaml +0 -3
- package/components/calendar-grid/calendar-grid.css +20 -11
- package/components/calendar-picker/calendar-picker.css +19 -10
- package/components/card/card.a2ui.json +2 -5
- package/components/card/card.css +25 -7
- package/components/card/card.d.ts +2 -2
- package/components/card/card.yaml +7 -5
- package/components/date-range-picker/date-range-picker.css +10 -1
- package/components/heatmap/heatmap.a2ui.json +2 -0
- package/components/heatmap/heatmap.d.ts +1 -1
- package/components/heatmap/heatmap.yaml +2 -0
- package/components/index.js +1 -0
- package/components/preview/preview.a2ui.json +93 -0
- package/components/preview/preview.class.js +178 -0
- package/components/preview/preview.css +176 -0
- package/components/preview/preview.d.ts +24 -0
- package/components/preview/preview.js +22 -0
- package/components/preview/preview.yaml +100 -0
- package/components/progress/progress.a2ui.json +2 -7
- package/components/progress/progress.d.ts +2 -2
- package/components/progress/progress.yaml +3 -8
- package/components/progress-row/progress-row.a2ui.json +1 -3
- package/components/progress-row/progress-row.d.ts +1 -1
- package/components/progress-row/progress-row.yaml +0 -2
- package/components/select/select.a2ui.json +2 -4
- package/components/select/select.yaml +2 -2
- package/components/tabs/tabs.a2ui.json +1 -4
- package/components/tabs/tabs.d.ts +2 -2
- package/components/tabs/tabs.yaml +2 -2
- package/core/anchor.js +5 -1
- package/dist/web-components.min.css +1 -1
- package/dist/web-components.min.js +75 -73
- package/index.css +6 -6
- package/package.json +1 -1
- package/styles/README.md +71 -36
- package/styles/api/layout.css +19 -0
- package/styles/api/sizing.css +225 -0
- package/styles/api/text.css +106 -0
- package/styles/colors/semantics/aliases.css +32 -0
- package/styles/colors/semantics/buckets.css +64 -0
- package/styles/colors/semantics/core.css +317 -0
- package/styles/colors/semantics/data-viz.css +129 -0
- package/styles/colors/semantics/features.css +114 -0
- package/styles/colors/semantics.css +10 -619
- package/styles/components.css +1 -0
- package/styles/foundation/elevation.css +29 -0
- package/styles/foundation/index.css +11 -0
- package/styles/foundation/motion.css +10 -0
- package/styles/foundation/radius.css +27 -0
- package/styles/foundation/size.css +33 -0
- package/styles/foundation/space.css +47 -0
- package/styles/index.css +14 -0
- package/styles/resets.css +17 -25
- package/styles/tokens.css +16 -384
- package/styles/type/elements.css +225 -0
- package/styles/type/roles.css +419 -0
- package/styles/type/scale.css +89 -0
- package/styles/typography.css +11 -809
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
/* adia:primitive/type — Type primitives + intent families (L1/L2).
|
|
2
|
+
Font families, weight scale, leading + tracking curves, and the
|
|
3
|
+
families-by-intent semantic layer. Moved verbatim out of typography.css
|
|
4
|
+
(v0.6.48 foundation reorg, ADR-0035). */
|
|
5
|
+
|
|
6
|
+
@import "../fonts.css";
|
|
7
|
+
|
|
8
|
+
:root {
|
|
9
|
+
/* ═══════════════════════════════════════════════════════════
|
|
10
|
+
L1 PRIMITIVES — raw values, no intent
|
|
11
|
+
═══════════════════════════════════════════════════════════ */
|
|
12
|
+
|
|
13
|
+
/* ── Font families ── */
|
|
14
|
+
|
|
15
|
+
/*--a-font-family-sans: var(--a-font-gt-standard);*/
|
|
16
|
+
/*--a-font-family-mono: var(--a-font-gt-standard-mono);*/
|
|
17
|
+
/*--a-font-family-sans: var(--a-font-neu-montreal-sans);*/
|
|
18
|
+
/*--a-font-family-mono: var(--a-font-neu-montreal-mono);*/
|
|
19
|
+
--a-font-family-display: var(--a-font-family-sans);
|
|
20
|
+
--a-font-family-text: var(--a-font-family-sans);
|
|
21
|
+
--a-font-family-heading: var(--a-font-family-sans);
|
|
22
|
+
--a-font-family-ui: var(--a-font-family-sans);
|
|
23
|
+
--a-font-family-code: var(--a-font-family-mono);
|
|
24
|
+
--a-font-family-control: var(--a-font-family-mono);
|
|
25
|
+
--a-font-family: var(--a-font-family-sans);
|
|
26
|
+
--a-font-family-text: var(--a-font-family-sans);
|
|
27
|
+
|
|
28
|
+
/* ── Type scale ──
|
|
29
|
+
Ratio: ~1.25 (major third) with dramatic hero jump.
|
|
30
|
+
Base: 0.875rem (14px).
|
|
31
|
+
Spec ref: hero 72px (weight 300), stat values 28px, section labels 13px,
|
|
32
|
+
overline 11px, body 14px, caption 12px. */
|
|
33
|
+
/* UI type scale now defined as --a-ui-size-* in tokens.css */
|
|
34
|
+
|
|
35
|
+
/* Content sizes live in role tokens below:
|
|
36
|
+
--a-body-size, --a-heading-size, --a-display-size, etc.
|
|
37
|
+
No flat --a-font-xs/sm/md/lg scale — use role tokens directly. */
|
|
38
|
+
|
|
39
|
+
/* ── Font weight — single canonical scale ──
|
|
40
|
+
Conventional weights: thin=100, light=300, normal=400, medium=500,
|
|
41
|
+
semibold=600, bold=700. Fonts must provide these axes or fall back
|
|
42
|
+
gracefully. Earlier --a-font-weight-* aliases were REMOVED in v0.5.0;
|
|
43
|
+
use --a-weight-* directly. (v0.5.8 §230 closed 3 consumer references
|
|
44
|
+
that still pointed at the removed family per FEEDBACK-20 §1.) */
|
|
45
|
+
--a-weight-thin: 100;
|
|
46
|
+
--a-weight-light: 300;
|
|
47
|
+
--a-weight-normal: 400;
|
|
48
|
+
--a-weight-medium: 500;
|
|
49
|
+
--a-weight-semibold: 600;
|
|
50
|
+
--a-weight-bold: 700;
|
|
51
|
+
--a-weight: var(--a-weight-normal);
|
|
52
|
+
|
|
53
|
+
/* ── Line height ── */
|
|
54
|
+
--a-leading-none: 1; /* hero numbers — no extra space at display scale */
|
|
55
|
+
--a-leading-tight: 1.2; /* headings, large text */
|
|
56
|
+
--a-leading-snug: 1.3; /* labels, compact UI text */
|
|
57
|
+
--a-leading-normal: 1.5; /* body text, readable paragraphs */
|
|
58
|
+
|
|
59
|
+
/* ── Letter spacing ── */
|
|
60
|
+
--a-tracking-tighter: -0.02em; /* hero/display numbers */
|
|
61
|
+
--a-tracking-tight: -0.01em; /* stat values, large text */
|
|
62
|
+
--a-tracking-normal: 0; /* body text */
|
|
63
|
+
--a-tracking-wide: 0.04em; /* stat units, small uppercase */
|
|
64
|
+
--a-tracking-wider: 0.06em; /* section labels, overlines */
|
|
65
|
+
|
|
66
|
+
/* ── Leading curve (tightens as size grows) ── */
|
|
67
|
+
--a-font-leading-tight: 1.05;
|
|
68
|
+
--a-font-leading-snug: 1.2;
|
|
69
|
+
--a-font-leading-normal: 1.35;
|
|
70
|
+
--a-font-leading-relaxed: 1.5;
|
|
71
|
+
--a-font-leading-loose: 1.6;
|
|
72
|
+
|
|
73
|
+
/* ── Tracking curve (negative at display, positive at caption) ── */
|
|
74
|
+
--a-font-tracking-tight: -0.03em;
|
|
75
|
+
--a-font-tracking-snug: -0.015em;
|
|
76
|
+
--a-font-tracking-normal: 0;
|
|
77
|
+
--a-font-tracking-wide: 0.04em;
|
|
78
|
+
--a-font-tracking-wider: 0.06em;
|
|
79
|
+
|
|
80
|
+
/* ═══════════════════════════════════════════════════════════
|
|
81
|
+
L2 SEMANTIC — intent tokens referencing primitives
|
|
82
|
+
═══════════════════════════════════════════════════════════ */
|
|
83
|
+
|
|
84
|
+
/* ── Families by intent ── */
|
|
85
|
+
--a-font-family-heading: var(--a-font-family-display);
|
|
86
|
+
--a-font-family-body: var(--a-font-family-text);
|
|
87
|
+
--a-font-family-ui: var(--a-font-family-text);
|
|
88
|
+
--a-font-family-editorial: var(--a-font-family-sans);
|
|
89
|
+
}
|