@danielthurau/atlas-labs-codex 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/README.md +138 -0
- package/components/react/Badge/Badge.module.css +38 -0
- package/components/react/Badge/Badge.stories.tsx +79 -0
- package/components/react/Badge/Badge.tsx +42 -0
- package/components/react/Badge/index.ts +2 -0
- package/components/react/Button/Button.module.css +118 -0
- package/components/react/Button/Button.stories.tsx +108 -0
- package/components/react/Button/Button.tsx +73 -0
- package/components/react/Button/index.ts +2 -0
- package/components/react/Card/Card.module.css +59 -0
- package/components/react/Card/Card.stories.tsx +114 -0
- package/components/react/Card/Card.tsx +79 -0
- package/components/react/Card/index.ts +11 -0
- package/components/react/Input/Input.module.css +63 -0
- package/components/react/Input/Input.stories.tsx +88 -0
- package/components/react/Input/Input.tsx +50 -0
- package/components/react/Input/index.ts +2 -0
- package/components/react/Modal/Modal.module.css +103 -0
- package/components/react/Modal/Modal.stories.tsx +119 -0
- package/components/react/Modal/Modal.tsx +75 -0
- package/components/react/Modal/index.ts +2 -0
- package/components/react/RefreshButton/RefreshButton.module.css +202 -0
- package/components/react/RefreshButton/RefreshButton.stories.tsx +43 -0
- package/components/react/RefreshButton/RefreshButton.tsx +222 -0
- package/components/react/RefreshButton/index.ts +2 -0
- package/components/react/Tabs/Tabs.module.css +58 -0
- package/components/react/Tabs/Tabs.stories.tsx +101 -0
- package/components/react/Tabs/Tabs.tsx +62 -0
- package/components/react/Tabs/index.ts +2 -0
- package/components/react/Toast/Toast.module.css +145 -0
- package/components/react/Toast/Toast.stories.tsx +143 -0
- package/components/react/Toast/Toast.tsx +123 -0
- package/components/react/Toast/index.ts +2 -0
- package/components/react/index.ts +31 -0
- package/lib/index.ts +7 -0
- package/lib/utils.ts +32 -0
- package/package.json +95 -0
- package/public/fonts/MartianMono-OFL.txt +93 -0
- package/public/fonts/MartianMono-VariableFont_wdth,wght.ttf +0 -0
- package/themes/css/base.css +142 -0
- package/themes/css/theme-dark.css +48 -0
- package/themes/css/theme-light.css +49 -0
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/* Design Codex Base Styles */
|
|
2
|
+
|
|
3
|
+
/* Font Faces */
|
|
4
|
+
@font-face {
|
|
5
|
+
font-family: 'Martian Mono';
|
|
6
|
+
src: url('/fonts/MartianMono-VariableFont_wdth,wght.ttf') format('truetype');
|
|
7
|
+
font-weight: 100 800;
|
|
8
|
+
font-stretch: 75% 112.5%;
|
|
9
|
+
font-display: swap;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
:root {
|
|
13
|
+
/* Primitive Colors - Stone */
|
|
14
|
+
--color-stone-50: #fafaf9;
|
|
15
|
+
--color-stone-100: #f5f5f4;
|
|
16
|
+
--color-stone-200: #e7e5e4;
|
|
17
|
+
--color-stone-300: #d6d3d1;
|
|
18
|
+
--color-stone-400: #a8a29e;
|
|
19
|
+
--color-stone-500: #78716c;
|
|
20
|
+
--color-stone-600: #57534e;
|
|
21
|
+
--color-stone-700: #44403c;
|
|
22
|
+
--color-stone-800: #292524;
|
|
23
|
+
--color-stone-900: #1c1917;
|
|
24
|
+
--color-stone-950: #0c0a09;
|
|
25
|
+
|
|
26
|
+
/* Primitive Colors - Indigo */
|
|
27
|
+
--color-indigo-50: #eef2ff;
|
|
28
|
+
--color-indigo-100: #e0e7ff;
|
|
29
|
+
--color-indigo-200: #c7d2fe;
|
|
30
|
+
--color-indigo-300: #a5b4fc;
|
|
31
|
+
--color-indigo-400: #818cf8;
|
|
32
|
+
--color-indigo-500: #6366f1;
|
|
33
|
+
--color-indigo-600: #4f46e5;
|
|
34
|
+
--color-indigo-700: #4338ca;
|
|
35
|
+
--color-indigo-800: #3730a3;
|
|
36
|
+
--color-indigo-900: #312e81;
|
|
37
|
+
--color-indigo-950: #1e1b4b;
|
|
38
|
+
|
|
39
|
+
/* Primitive Colors - Semantic */
|
|
40
|
+
--color-emerald-400: #34d399;
|
|
41
|
+
--color-emerald-500: #10b981;
|
|
42
|
+
--color-emerald-600: #059669;
|
|
43
|
+
--color-amber-400: #fbbf24;
|
|
44
|
+
--color-amber-500: #f59e0b;
|
|
45
|
+
--color-amber-600: #d97706;
|
|
46
|
+
--color-rose-400: #fb7185;
|
|
47
|
+
--color-rose-500: #f43f5e;
|
|
48
|
+
--color-rose-600: #e11d48;
|
|
49
|
+
--color-white: #ffffff;
|
|
50
|
+
--color-black: #000000;
|
|
51
|
+
|
|
52
|
+
/* Spacing */
|
|
53
|
+
--space-0: 0;
|
|
54
|
+
--space-1: 0.25rem;
|
|
55
|
+
--space-2: 0.5rem;
|
|
56
|
+
--space-3: 0.75rem;
|
|
57
|
+
--space-4: 1rem;
|
|
58
|
+
--space-6: 1.5rem;
|
|
59
|
+
--space-8: 2rem;
|
|
60
|
+
--space-12: 3rem;
|
|
61
|
+
--space-16: 4rem;
|
|
62
|
+
|
|
63
|
+
/* Semantic Spacing */
|
|
64
|
+
--spacing-inline: var(--space-2);
|
|
65
|
+
--spacing-element: var(--space-3);
|
|
66
|
+
--spacing-group: var(--space-4);
|
|
67
|
+
--spacing-section: var(--space-8);
|
|
68
|
+
--spacing-page: var(--space-16);
|
|
69
|
+
|
|
70
|
+
/* Border Radius */
|
|
71
|
+
--radius-none: 0;
|
|
72
|
+
--radius-sm: 4px;
|
|
73
|
+
--radius-md: 8px;
|
|
74
|
+
--radius-lg: 12px;
|
|
75
|
+
--radius-xl: 16px;
|
|
76
|
+
--radius-full: 9999px;
|
|
77
|
+
|
|
78
|
+
/* Typography - Font Size */
|
|
79
|
+
--text-xs: 0.75rem;
|
|
80
|
+
--text-sm: 0.875rem;
|
|
81
|
+
--text-base: 1rem;
|
|
82
|
+
--text-lg: 1.125rem;
|
|
83
|
+
--text-xl: 1.5rem;
|
|
84
|
+
--text-2xl: 2rem;
|
|
85
|
+
|
|
86
|
+
/* Typography - Line Height */
|
|
87
|
+
--leading-xs: 1rem;
|
|
88
|
+
--leading-sm: 1.25rem;
|
|
89
|
+
--leading-base: 1.5rem;
|
|
90
|
+
--leading-lg: 1.75rem;
|
|
91
|
+
--leading-xl: 2rem;
|
|
92
|
+
--leading-2xl: 2.5rem;
|
|
93
|
+
|
|
94
|
+
/* Typography - Font Weight */
|
|
95
|
+
--font-regular: 400;
|
|
96
|
+
--font-medium: 500;
|
|
97
|
+
--font-semibold: 600;
|
|
98
|
+
--font-bold: 700;
|
|
99
|
+
|
|
100
|
+
/* Typography - Letter Spacing */
|
|
101
|
+
--tracking-tight: -0.025em;
|
|
102
|
+
--tracking-normal: 0;
|
|
103
|
+
--tracking-wide: 0.05em;
|
|
104
|
+
|
|
105
|
+
/* Typography - Font Family */
|
|
106
|
+
--font-primary: 'Martian Mono', 'JetBrains Mono', 'Fira Code', Consolas, monospace;
|
|
107
|
+
--font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
|
|
108
|
+
--font-mono: var(--font-primary);
|
|
109
|
+
|
|
110
|
+
/* Shadows */
|
|
111
|
+
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
|
|
112
|
+
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
|
|
113
|
+
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
|
|
114
|
+
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
|
|
115
|
+
|
|
116
|
+
/* Component Tokens - Button */
|
|
117
|
+
--button-padding-x: var(--space-4);
|
|
118
|
+
--button-padding-y: var(--space-2);
|
|
119
|
+
--button-radius: var(--radius-md);
|
|
120
|
+
--button-font-weight: var(--font-medium);
|
|
121
|
+
|
|
122
|
+
/* Component Tokens - Input */
|
|
123
|
+
--input-padding-x: var(--space-3);
|
|
124
|
+
--input-padding-y: var(--space-2);
|
|
125
|
+
--input-radius: var(--radius-md);
|
|
126
|
+
--input-height: 40px;
|
|
127
|
+
|
|
128
|
+
/* Component Tokens - Card */
|
|
129
|
+
--card-padding: var(--space-4);
|
|
130
|
+
--card-radius: var(--radius-lg);
|
|
131
|
+
|
|
132
|
+
/* Component Tokens - Modal */
|
|
133
|
+
--modal-padding: var(--space-6);
|
|
134
|
+
--modal-radius: var(--radius-xl);
|
|
135
|
+
|
|
136
|
+
/* Component Tokens - Badge */
|
|
137
|
+
--badge-padding-x: var(--space-2);
|
|
138
|
+
--badge-padding-y: var(--space-1);
|
|
139
|
+
--badge-radius: var(--radius-full);
|
|
140
|
+
--badge-font-size: var(--text-xs);
|
|
141
|
+
}
|
|
142
|
+
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/* Auto-generated from tokens.json */
|
|
2
|
+
/* Dark Theme */
|
|
3
|
+
|
|
4
|
+
[data-theme="dark"] {
|
|
5
|
+
/* Background Colors */
|
|
6
|
+
--color-bg-default: var(--color-stone-950);
|
|
7
|
+
--color-bg-surface: var(--color-stone-900);
|
|
8
|
+
--color-bg-elevated: var(--color-stone-800);
|
|
9
|
+
--color-bg-subtle: var(--color-stone-800);
|
|
10
|
+
--color-bg-muted: var(--color-stone-700);
|
|
11
|
+
|
|
12
|
+
/* Text Colors */
|
|
13
|
+
--color-text-primary: var(--color-stone-50);
|
|
14
|
+
--color-text-secondary: var(--color-stone-400);
|
|
15
|
+
--color-text-muted: var(--color-stone-500);
|
|
16
|
+
--color-text-inverse: var(--color-stone-900);
|
|
17
|
+
|
|
18
|
+
/* Border Colors */
|
|
19
|
+
--color-border-default: var(--color-stone-800);
|
|
20
|
+
--color-border-subtle: var(--color-stone-800);
|
|
21
|
+
--color-border-strong: var(--color-stone-600);
|
|
22
|
+
|
|
23
|
+
/* Intent Colors */
|
|
24
|
+
--color-intent-primary: var(--color-indigo-400);
|
|
25
|
+
--color-intent-primary-hover: var(--color-indigo-300);
|
|
26
|
+
--color-intent-primary-bg: var(--color-indigo-950);
|
|
27
|
+
--color-intent-success: var(--color-emerald-400);
|
|
28
|
+
--color-intent-success-bg: #064e3b;
|
|
29
|
+
--color-intent-warning: var(--color-amber-400);
|
|
30
|
+
--color-intent-warning-bg: #78350f;
|
|
31
|
+
--color-intent-danger: var(--color-rose-400);
|
|
32
|
+
--color-intent-danger-hover: var(--color-rose-300);
|
|
33
|
+
--color-intent-danger-bg: #881337;
|
|
34
|
+
|
|
35
|
+
/* Status Colors - Semantic aliases for status indicators */
|
|
36
|
+
--color-success-default: var(--color-emerald-400);
|
|
37
|
+
--color-success-subtle: #064e3b;
|
|
38
|
+
--color-error-default: var(--color-rose-400);
|
|
39
|
+
--color-error-subtle: #881337;
|
|
40
|
+
--color-warning-default: var(--color-amber-400);
|
|
41
|
+
--color-warning-subtle: #78350f;
|
|
42
|
+
|
|
43
|
+
/* Focus Ring */
|
|
44
|
+
--focus-ring: 0 0 0 2px var(--color-bg-surface), 0 0 0 4px var(--color-intent-primary);
|
|
45
|
+
|
|
46
|
+
color-scheme: dark;
|
|
47
|
+
}
|
|
48
|
+
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/* Auto-generated from tokens.json */
|
|
2
|
+
/* Light Theme */
|
|
3
|
+
|
|
4
|
+
:root,
|
|
5
|
+
[data-theme="light"] {
|
|
6
|
+
/* Background Colors */
|
|
7
|
+
--color-bg-default: var(--color-stone-50);
|
|
8
|
+
--color-bg-surface: var(--color-white);
|
|
9
|
+
--color-bg-elevated: var(--color-white);
|
|
10
|
+
--color-bg-subtle: var(--color-stone-100);
|
|
11
|
+
--color-bg-muted: var(--color-stone-200);
|
|
12
|
+
|
|
13
|
+
/* Text Colors */
|
|
14
|
+
--color-text-primary: var(--color-stone-900);
|
|
15
|
+
--color-text-secondary: var(--color-stone-600);
|
|
16
|
+
--color-text-muted: var(--color-stone-400);
|
|
17
|
+
--color-text-inverse: var(--color-white);
|
|
18
|
+
|
|
19
|
+
/* Border Colors */
|
|
20
|
+
--color-border-default: var(--color-stone-200);
|
|
21
|
+
--color-border-subtle: var(--color-stone-100);
|
|
22
|
+
--color-border-strong: var(--color-stone-400);
|
|
23
|
+
|
|
24
|
+
/* Intent Colors */
|
|
25
|
+
--color-intent-primary: var(--color-indigo-600);
|
|
26
|
+
--color-intent-primary-hover: var(--color-indigo-700);
|
|
27
|
+
--color-intent-primary-bg: var(--color-indigo-50);
|
|
28
|
+
--color-intent-success: var(--color-emerald-600);
|
|
29
|
+
--color-intent-success-bg: #ecfdf5;
|
|
30
|
+
--color-intent-warning: var(--color-amber-600);
|
|
31
|
+
--color-intent-warning-bg: #fffbeb;
|
|
32
|
+
--color-intent-danger: var(--color-rose-600);
|
|
33
|
+
--color-intent-danger-hover: var(--color-rose-700);
|
|
34
|
+
--color-intent-danger-bg: #fff1f2;
|
|
35
|
+
|
|
36
|
+
/* Status Colors - Semantic aliases for status indicators */
|
|
37
|
+
--color-success-default: var(--color-emerald-500);
|
|
38
|
+
--color-success-subtle: #ecfdf5;
|
|
39
|
+
--color-error-default: var(--color-rose-500);
|
|
40
|
+
--color-error-subtle: #fff1f2;
|
|
41
|
+
--color-warning-default: var(--color-amber-500);
|
|
42
|
+
--color-warning-subtle: #fffbeb;
|
|
43
|
+
|
|
44
|
+
/* Focus Ring */
|
|
45
|
+
--focus-ring: 0 0 0 2px var(--color-bg-surface), 0 0 0 4px var(--color-intent-primary);
|
|
46
|
+
|
|
47
|
+
color-scheme: light;
|
|
48
|
+
}
|
|
49
|
+
|