@aiaiai-pt/design-system 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/components/Alert.svelte +100 -0
- package/components/Badge.svelte +108 -0
- package/components/BottomNav.svelte +37 -0
- package/components/BottomNavItem.svelte +121 -0
- package/components/Button.svelte +269 -0
- package/components/Card.svelte +108 -0
- package/components/Checkbox.svelte +138 -0
- package/components/CodeBlock.svelte +187 -0
- package/components/CodeEditor.svelte +221 -0
- package/components/CollapsibleSection.svelte +160 -0
- package/components/Combobox.svelte +396 -0
- package/components/EmptyState.svelte +148 -0
- package/components/FileUpload.svelte +280 -0
- package/components/FileUploadItem.svelte +222 -0
- package/components/Input.svelte +222 -0
- package/components/KeyValue.svelte +79 -0
- package/components/Label.svelte +49 -0
- package/components/List.svelte +70 -0
- package/components/ListItem.svelte +125 -0
- package/components/Menu.svelte +161 -0
- package/components/MenuItem.svelte +120 -0
- package/components/MenuSeparator.svelte +34 -0
- package/components/Modal.svelte +260 -0
- package/components/OptionGrid.svelte +195 -0
- package/components/Panel.svelte +256 -0
- package/components/Popover.svelte +194 -0
- package/components/Progress.svelte +78 -0
- package/components/Select.svelte +182 -0
- package/components/Separator.svelte +47 -0
- package/components/Sidebar.svelte +106 -0
- package/components/SidebarItem.svelte +154 -0
- package/components/SidebarSection.svelte +43 -0
- package/components/Skeleton.svelte +79 -0
- package/components/Status.svelte +104 -0
- package/components/Stepper.svelte +142 -0
- package/components/Tab.svelte +94 -0
- package/components/TabList.svelte +36 -0
- package/components/TabPanel.svelte +45 -0
- package/components/Tabs.svelte +46 -0
- package/components/Tag.svelte +96 -0
- package/components/Textarea.svelte +143 -0
- package/components/Toast.svelte +114 -0
- package/components/Toggle.svelte +132 -0
- package/components/index.js +70 -0
- package/package.json +45 -0
- package/tokens/base.css +175 -0
- package/tokens/components.css +530 -0
- package/tokens/semantic.css +211 -0
- package/tokens/themes/aiaiai.css +53 -0
- package/tokens/themes/bespoke-example.css +148 -0
- package/tokens/themes/branded-example.css +55 -0
- package/tokens/utilities.css +1865 -0
package/tokens/base.css
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* aiaiai Design System — Primitive Tokens (base.css)
|
|
3
|
+
*
|
|
4
|
+
* Raw values with no semantic meaning.
|
|
5
|
+
* These are building blocks — never use directly in components.
|
|
6
|
+
* Semantic tokens (semantic.css) reference these.
|
|
7
|
+
*
|
|
8
|
+
* Naming: --raw-{category}-{name}
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
:root {
|
|
12
|
+
/* ─── Color: Neutrals (warm undertone, hue ~55 OKLCH) ─── */
|
|
13
|
+
--raw-color-white: #faf9f7;
|
|
14
|
+
--raw-color-neutral-50: #f7f5f3;
|
|
15
|
+
--raw-color-neutral-100: #f0ece8;
|
|
16
|
+
--raw-color-neutral-200: #e8e2dc;
|
|
17
|
+
--raw-color-neutral-300: #e0d9d1;
|
|
18
|
+
--raw-color-neutral-400: #c4bbb0;
|
|
19
|
+
--raw-color-neutral-500: #a8a29e;
|
|
20
|
+
--raw-color-neutral-600: #78716c;
|
|
21
|
+
--raw-color-neutral-700: #57534e;
|
|
22
|
+
--raw-color-neutral-800: #3d3835;
|
|
23
|
+
--raw-color-neutral-900: #2c2825;
|
|
24
|
+
--raw-color-neutral-950: #1c1917;
|
|
25
|
+
|
|
26
|
+
/* ─── Color: Orange (accent — creation, focus) ─── */
|
|
27
|
+
--raw-color-orange-50: #fff7ed;
|
|
28
|
+
--raw-color-orange-100: #fff0e8;
|
|
29
|
+
--raw-color-orange-200: #fed7aa;
|
|
30
|
+
--raw-color-orange-300: #fdba74;
|
|
31
|
+
--raw-color-orange-400: #fb923c;
|
|
32
|
+
--raw-color-orange-500: #ff6b35;
|
|
33
|
+
--raw-color-orange-600: #e85a28;
|
|
34
|
+
--raw-color-orange-700: #c2410c;
|
|
35
|
+
--raw-color-orange-800: #9a3412;
|
|
36
|
+
--raw-color-orange-900: #7c2d12;
|
|
37
|
+
|
|
38
|
+
/* ─── Color: Red (destructive — warm-shifted, hue ~30 OKLCH) ─── */
|
|
39
|
+
--raw-color-red-50: #fef3f0;
|
|
40
|
+
--raw-color-red-100: #fde3dc;
|
|
41
|
+
--raw-color-red-200: #fcc9bc;
|
|
42
|
+
--raw-color-red-300: #f9a393;
|
|
43
|
+
--raw-color-red-400: #f47264;
|
|
44
|
+
--raw-color-red-500: #e84e3e;
|
|
45
|
+
--raw-color-red-600: #d03526;
|
|
46
|
+
--raw-color-red-700: #ae2a1e;
|
|
47
|
+
--raw-color-red-800: #8f251c;
|
|
48
|
+
--raw-color-red-900: #76211a;
|
|
49
|
+
|
|
50
|
+
/* ─── Color: Green (success — warm-shifted, hue ~145 OKLCH) ─── */
|
|
51
|
+
--raw-color-green-50: #f2faf0;
|
|
52
|
+
--raw-color-green-100: #dff5d9;
|
|
53
|
+
--raw-color-green-200: #bfebb5;
|
|
54
|
+
--raw-color-green-300: #8fdb82;
|
|
55
|
+
--raw-color-green-400: #5ec452;
|
|
56
|
+
--raw-color-green-500: #3daa33;
|
|
57
|
+
--raw-color-green-600: #2d8c26;
|
|
58
|
+
--raw-color-green-700: #256f20;
|
|
59
|
+
--raw-color-green-800: #21581e;
|
|
60
|
+
--raw-color-green-900: #1c4a1a;
|
|
61
|
+
|
|
62
|
+
/* ─── Color: Amber (warning — already warm, hue ~80 OKLCH) ─── */
|
|
63
|
+
--raw-color-amber-50: #fefaed;
|
|
64
|
+
--raw-color-amber-100: #fdf1c8;
|
|
65
|
+
--raw-color-amber-200: #fbe38e;
|
|
66
|
+
--raw-color-amber-300: #f8d054;
|
|
67
|
+
--raw-color-amber-400: #f5bc28;
|
|
68
|
+
--raw-color-amber-500: #e8a008;
|
|
69
|
+
--raw-color-amber-600: #c58204;
|
|
70
|
+
--raw-color-amber-700: #9e6308;
|
|
71
|
+
--raw-color-amber-800: #824e0f;
|
|
72
|
+
--raw-color-amber-900: #6e4012;
|
|
73
|
+
|
|
74
|
+
/* ─── Color: Blue (info — warm-shifted to teal-blue, hue ~240 OKLCH) ─── */
|
|
75
|
+
--raw-color-blue-50: #f0f5fa;
|
|
76
|
+
--raw-color-blue-100: #dce9f5;
|
|
77
|
+
--raw-color-blue-200: #bed6ed;
|
|
78
|
+
--raw-color-blue-300: #92bbe0;
|
|
79
|
+
--raw-color-blue-400: #5f9ad0;
|
|
80
|
+
--raw-color-blue-500: #3f7dbe;
|
|
81
|
+
--raw-color-blue-600: #2e63a3;
|
|
82
|
+
--raw-color-blue-700: #274f85;
|
|
83
|
+
--raw-color-blue-800: #24416e;
|
|
84
|
+
--raw-color-blue-900: #22375c;
|
|
85
|
+
|
|
86
|
+
/* ─── Typography: Font Families ─── */
|
|
87
|
+
--raw-font-sans: "Instrument Sans", sans-serif;
|
|
88
|
+
--raw-font-mono: "Berkeley Mono", "JetBrains Mono", ui-monospace, monospace;
|
|
89
|
+
|
|
90
|
+
/* ─── Typography: Font Sizes ─── */
|
|
91
|
+
--raw-font-size-11: 0.6875rem;
|
|
92
|
+
--raw-font-size-12: 0.75rem;
|
|
93
|
+
--raw-font-size-13: 0.8125rem;
|
|
94
|
+
--raw-font-size-14: 0.875rem;
|
|
95
|
+
--raw-font-size-15: 0.9375rem;
|
|
96
|
+
--raw-font-size-18: 1.125rem;
|
|
97
|
+
--raw-font-size-24: 1.5rem;
|
|
98
|
+
--raw-font-size-36: 2.25rem;
|
|
99
|
+
|
|
100
|
+
/* ─── Typography: Font Weights ─── */
|
|
101
|
+
--raw-font-weight-regular: 400;
|
|
102
|
+
--raw-font-weight-medium: 500;
|
|
103
|
+
--raw-font-weight-semibold: 600;
|
|
104
|
+
|
|
105
|
+
/* ─── Typography: Line Heights ─── */
|
|
106
|
+
--raw-line-height-tight: 1.1;
|
|
107
|
+
--raw-line-height-snug: 1.2;
|
|
108
|
+
--raw-line-height-heading: 1.3;
|
|
109
|
+
--raw-line-height-relaxed: 1.4;
|
|
110
|
+
--raw-line-height-body: 1.5;
|
|
111
|
+
|
|
112
|
+
/* ─── Typography: Letter Spacing ─── */
|
|
113
|
+
--raw-tracking-tight: -0.02em;
|
|
114
|
+
--raw-tracking-snug: -0.01em;
|
|
115
|
+
--raw-tracking-heading: -0.005em;
|
|
116
|
+
--raw-tracking-normal: 0;
|
|
117
|
+
--raw-tracking-wide: 0.02em;
|
|
118
|
+
--raw-tracking-wider: 0.04em;
|
|
119
|
+
--raw-tracking-micro: 0.005em;
|
|
120
|
+
--raw-tracking-loose: 0.01em;
|
|
121
|
+
|
|
122
|
+
/* ─── Spacing ─── */
|
|
123
|
+
--raw-space-2: 0.125rem;
|
|
124
|
+
--raw-space-4: 0.25rem;
|
|
125
|
+
--raw-space-8: 0.5rem;
|
|
126
|
+
--raw-space-16: 1rem;
|
|
127
|
+
--raw-space-24: 1.5rem;
|
|
128
|
+
--raw-space-32: 2rem;
|
|
129
|
+
--raw-space-48: 3rem;
|
|
130
|
+
--raw-space-64: 4rem;
|
|
131
|
+
--raw-space-96: 6rem;
|
|
132
|
+
|
|
133
|
+
/* ─── Border Width ─── */
|
|
134
|
+
--raw-border-width-1: 1px;
|
|
135
|
+
--raw-border-width-2: 2px;
|
|
136
|
+
|
|
137
|
+
/* ─── Radius ─── */
|
|
138
|
+
--raw-radius-2: 2px;
|
|
139
|
+
--raw-radius-4: 4px;
|
|
140
|
+
--raw-radius-8: 8px;
|
|
141
|
+
--raw-radius-999: 999px;
|
|
142
|
+
--raw-radius-circle: 50%;
|
|
143
|
+
|
|
144
|
+
/* ─── Shadows (warm — rgba(44,40,37,...)) ─── */
|
|
145
|
+
--raw-shadow-sm:
|
|
146
|
+
0 1px 3px rgba(44, 40, 37, 0.08), 0 1px 2px rgba(44, 40, 37, 0.06);
|
|
147
|
+
--raw-shadow-md:
|
|
148
|
+
0 4px 16px rgba(44, 40, 37, 0.12), 0 2px 4px rgba(44, 40, 37, 0.08);
|
|
149
|
+
|
|
150
|
+
/* ─── Motion: Durations ─── */
|
|
151
|
+
--raw-duration-100: 100ms;
|
|
152
|
+
--raw-duration-150: 150ms;
|
|
153
|
+
--raw-duration-250: 250ms;
|
|
154
|
+
--raw-duration-400: 400ms;
|
|
155
|
+
--raw-duration-600: 600ms;
|
|
156
|
+
|
|
157
|
+
/* ─── Motion: Easings ─── */
|
|
158
|
+
--raw-easing-default: cubic-bezier(0.2, 0, 0, 1);
|
|
159
|
+
--raw-easing-enter: cubic-bezier(0, 0, 0.2, 1);
|
|
160
|
+
--raw-easing-exit: cubic-bezier(0.4, 0, 1, 1);
|
|
161
|
+
--raw-easing-linear: linear;
|
|
162
|
+
|
|
163
|
+
/* ─── Grid ─── */
|
|
164
|
+
--raw-grid-columns: 12;
|
|
165
|
+
--raw-content-640: 640px;
|
|
166
|
+
--raw-content-960: 960px;
|
|
167
|
+
--raw-content-1200: 1200px;
|
|
168
|
+
--raw-content-1440: 1440px;
|
|
169
|
+
|
|
170
|
+
/* ─── Breakpoints (for reference — use in @media queries) ─── */
|
|
171
|
+
--raw-breakpoint-sm: 640px;
|
|
172
|
+
--raw-breakpoint-md: 768px;
|
|
173
|
+
--raw-breakpoint-lg: 1024px;
|
|
174
|
+
--raw-breakpoint-xl: 1280px;
|
|
175
|
+
}
|