@upstart.gg/style-system 0.0.95 → 0.0.97

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/src/colors.ts CHANGED
@@ -1,249 +1,5 @@
1
- export const colors = {
2
- inherit: "inherit",
3
- current: "currentColor",
4
- transparent: "transparent",
5
- black: "#000",
6
- white: "#fff",
7
- "slate-50": "#f8fafc",
8
- "slate-100": "#f1f5f9",
9
- "slate-200": "#e2e8f0",
10
- "slate-300": "#cbd5e1",
11
- "slate-400": "#94a3b8",
12
- "slate-500": "#64748b",
13
- "slate-600": "#475569",
14
- "slate-700": "#334155",
15
- "slate-800": "#1e293b",
16
- "slate-900": "#0f172a",
17
- "slate-950": "#020617",
18
- "gray-50": "#f9fafb",
19
- "gray-100": "#f3f4f6",
20
- "gray-200": "#e5e7eb",
21
- "gray-300": "#d1d5db",
22
- "gray-400": "#9ca3af",
23
- "gray-500": "#6b7280",
24
- "gray-600": "#4b5563",
25
- "gray-700": "#374151",
26
- "gray-800": "#1f2937",
27
- "gray-900": "#111827",
28
- "gray-950": "#030712",
29
- "zinc-50": "#fafafa",
30
- "zinc-100": "#f4f4f5",
31
- "zinc-200": "#e4e4e7",
32
- "zinc-300": "#d4d4d8",
33
- "zinc-400": "#a1a1aa",
34
- "zinc-500": "#71717a",
35
- "zinc-600": "#52525b",
36
- "zinc-700": "#3f3f46",
37
- "zinc-800": "#27272a",
38
- "zinc-900": "#18181b",
39
- "zinc-950": "#09090b",
40
- "neutral-50": "#fafafa",
41
- "neutral-100": "#f5f5f5",
42
- "neutral-200": "#e5e5e5",
43
- "neutral-300": "#d4d4d4",
44
- "neutral-400": "#a3a3a3",
45
- "neutral-500": "#737373",
46
- "neutral-600": "#525252",
47
- "neutral-700": "#404040",
48
- "neutral-800": "#262626",
49
- "neutral-900": "#171717",
50
- "neutral-950": "#0a0a0a",
51
- "stone-50": "#fafaf9",
52
- "stone-100": "#f5f5f4",
53
- "stone-200": "#e7e5e4",
54
- "stone-300": "#d6d3d1",
55
- "stone-400": "#a8a29e",
56
- "stone-500": "#78716c",
57
- "stone-600": "#57534e",
58
- "stone-700": "#44403c",
59
- "stone-800": "#292524",
60
- "stone-900": "#1c1917",
61
- "stone-950": "#0c0a09",
62
- "red-50": "#fef2f2",
63
- "red-100": "#fee2e2",
64
- "red-200": "#fecaca",
65
- "red-300": "#fca5a5",
66
- "red-400": "#f87171",
67
- "red-500": "#ef4444",
68
- "red-600": "#dc2626",
69
- "red-700": "#b91c1c",
70
- "red-800": "#991b1b",
71
- "red-900": "#7f1d1d",
72
- "red-950": "#450a0a",
73
- "orange-50": "#fff7ed",
74
- "orange-100": "#ffedd5",
75
- "orange-200": "#fed7aa",
76
- "orange-300": "#fdba74",
77
- "orange-400": "#fb923c",
78
- "orange-500": "#f97316",
79
- "orange-600": "#ea580c",
80
- "orange-700": "#c2410c",
81
- "orange-800": "#9a3412",
82
- "orange-900": "#7c2d12",
83
- "orange-950": "#431407",
84
- "amber-50": "#fffbeb",
85
- "amber-100": "#fef3c7",
86
- "amber-200": "#fde68a",
87
- "amber-300": "#fcd34d",
88
- "amber-400": "#fbbf24",
89
- "amber-500": "#f59e0b",
90
- "amber-600": "#d97706",
91
- "amber-700": "#b45309",
92
- "amber-800": "#92400e",
93
- "amber-900": "#78350f",
94
- "amber-950": "#451a03",
95
- "yellow-50": "#fefce8",
96
- "yellow-100": "#fef9c3",
97
- "yellow-200": "#fef08a",
98
- "yellow-300": "#fde047",
99
- "yellow-400": "#facc15",
100
- "yellow-500": "#eab308",
101
- "yellow-600": "#ca8a04",
102
- "yellow-700": "#a16207",
103
- "yellow-800": "#854d0e",
104
- "yellow-900": "#713f12",
105
- "yellow-950": "#422006",
106
- "lime-50": "#f7fee7",
107
- "lime-100": "#ecfccb",
108
- "lime-200": "#d9f99d",
109
- "lime-300": "#bef264",
110
- "lime-400": "#a3e635",
111
- "lime-500": "#84cc16",
112
- "lime-600": "#65a30d",
113
- "lime-700": "#4d7c0f",
114
- "lime-800": "#3f6212",
115
- "lime-900": "#365314",
116
- "lime-950": "#1a2e05",
117
- "green-50": "#f0fdf4",
118
- "green-100": "#dcfce7",
119
- "green-200": "#bbf7d0",
120
- "green-300": "#86efac",
121
- "green-400": "#4ade80",
122
- "green-500": "#22c55e",
123
- "green-600": "#16a34a",
124
- "green-700": "#15803d",
125
- "green-800": "#166534",
126
- "green-900": "#14532d",
127
- "green-950": "#052e16",
128
- "emerald-50": "#ecfdf5",
129
- "emerald-100": "#d1fae5",
130
- "emerald-200": "#a7f3d0",
131
- "emerald-300": "#6ee7b7",
132
- "emerald-400": "#34d399",
133
- "emerald-500": "#10b981",
134
- "emerald-600": "#059669",
135
- "emerald-700": "#047857",
136
- "emerald-800": "#065f46",
137
- "emerald-900": "#064e3b",
138
- "emerald-950": "#022c22",
139
- "teal-50": "#f0fdfa",
140
- "teal-100": "#ccfbf1",
141
- "teal-200": "#99f6e4",
142
- "teal-300": "#5eead4",
143
- "teal-400": "#2dd4bf",
144
- "teal-500": "#14b8a6",
145
- "teal-600": "#0d9488",
146
- "teal-700": "#0f766e",
147
- "teal-800": "#115e59",
148
- "teal-900": "#134e4a",
149
- "teal-950": "#042f2e",
150
- "cyan-50": "#ecfeff",
151
- "cyan-100": "#cffafe",
152
- "cyan-200": "#a5f3fc",
153
- "cyan-300": "#67e8f9",
154
- "cyan-400": "#22d3ee",
155
- "cyan-500": "#06b6d4",
156
- "cyan-600": "#0891b2",
157
- "cyan-700": "#0e7490",
158
- "cyan-800": "#155e75",
159
- "cyan-900": "#164e63",
160
- "cyan-950": "#083344",
161
- "sky-50": "#f0f9ff",
162
- "sky-100": "#e0f2fe",
163
- "sky-200": "#bae6fd",
164
- "sky-300": "#7dd3fc",
165
- "sky-400": "#38bdf8",
166
- "sky-500": "#0ea5e9",
167
- "sky-600": "#0284c7",
168
- "sky-700": "#0369a1",
169
- "sky-800": "#075985",
170
- "sky-900": "#0c4a6e",
171
- "sky-950": "#082f49",
172
- "blue-50": "#eff6ff",
173
- "blue-100": "#dbeafe",
174
- "blue-200": "#bfdbfe",
175
- "blue-300": "#93c5fd",
176
- "blue-400": "#60a5fa",
177
- "blue-500": "#3b82f6",
178
- "blue-600": "#2563eb",
179
- "blue-700": "#1d4ed8",
180
- "blue-800": "#1e40af",
181
- "blue-900": "#1e3a8a",
182
- "blue-950": "#172554",
183
- "indigo-50": "#eef2ff",
184
- "indigo-100": "#e0e7ff",
185
- "indigo-200": "#c7d2fe",
186
- "indigo-300": "#a5b4fc",
187
- "indigo-400": "#818cf8",
188
- "indigo-500": "#6366f1",
189
- "indigo-600": "#4f46e5",
190
- "indigo-700": "#4338ca",
191
- "indigo-800": "#3730a3",
192
- "indigo-900": "#312e81",
193
- "indigo-950": "#1e1b4b",
194
- "violet-50": "#f5f3ff",
195
- "violet-100": "#ede9fe",
196
- "violet-200": "#ddd6fe",
197
- "violet-300": "#c4b5fd",
198
- "violet-400": "#a78bfa",
199
- "violet-500": "#8b5cf6",
200
- "violet-600": "#7c3aed",
201
- "violet-700": "#6d28d9",
202
- "violet-800": "#5b21b6",
203
- "violet-900": "#4c1d95",
204
- "violet-950": "#2e1065",
205
- "purple-50": "#faf5ff",
206
- "purple-100": "#f3e8ff",
207
- "purple-200": "#e9d5ff",
208
- "purple-300": "#d8b4fe",
209
- "purple-400": "#c084fc",
210
- "purple-500": "#a855f7",
211
- "purple-600": "#9333ea",
212
- "purple-700": "#7e22ce",
213
- "purple-800": "#6b21a8",
214
- "purple-900": "#581c87",
215
- "purple-950": "#3b0764",
216
- "fuchsia-50": "#fdf4ff",
217
- "fuchsia-100": "#fae8ff",
218
- "fuchsia-200": "#f5d0fe",
219
- "fuchsia-300": "#f0abfc",
220
- "fuchsia-400": "#e879f9",
221
- "fuchsia-500": "#d946ef",
222
- "fuchsia-600": "#c026d3",
223
- "fuchsia-700": "#a21caf",
224
- "fuchsia-800": "#86198f",
225
- "fuchsia-900": "#701a75",
226
- "fuchsia-950": "#4a044e",
227
- "pink-50": "#fdf2f8",
228
- "pink-100": "#fce7f3",
229
- "pink-200": "#fbcfe8",
230
- "pink-300": "#f9a8d4",
231
- "pink-400": "#f472b6",
232
- "pink-500": "#ec4899",
233
- "pink-600": "#db2777",
234
- "pink-700": "#be185d",
235
- "pink-800": "#9d174d",
236
- "pink-900": "#831843",
237
- "pink-950": "#500724",
238
- "rose-50": "#fff1f2",
239
- "rose-100": "#ffe4e6",
240
- "rose-200": "#fecdd3",
241
- "rose-300": "#fda4af",
242
- "rose-400": "#fb7185",
243
- "rose-500": "#f43f5e",
244
- "rose-600": "#e11d48",
245
- "rose-700": "#be123c",
246
- "rose-800": "#9f1239",
247
- "rose-900": "#881337",
248
- "rose-950": "#4c0519",
249
- };
1
+ import colors from "tailwindcss/colors";
2
+
3
+ const { inherit, current, black, white, transparent, neutral, ...colorPalette } = colors;
4
+
5
+ export { colorPalette, neutral };
@@ -1,92 +1,20 @@
1
1
  @layer upstart-theme, upstart-generated, upstart-utilities;
2
-
3
2
  @layer upstart-theme {
4
-
5
3
  [data-upstart-theme] {
6
4
  font-family: initial;
7
5
  background: initial;
8
6
  color: initial;
9
7
  }
10
-
11
- :root {
12
- /* Luminance threshold for deciding between light and dark text */
13
- --luminance-threshold: 0.6;
14
- --l-threshold: 0.7;
15
- --l: clamp(0, (var(--l-threshold) / l - 1) * infinity, 1);
16
-
17
- }
18
-
19
8
  }
20
-
21
9
  @layer upstart-generated {
22
10
  :root {
23
-
24
-
25
- /* Background Colors (3 shades, 0, 1 and 2) */
26
- --color-bg-neutral-0: var(--color-neutral-0);
27
- --color-bg-neutral-1: var(--color-neutral-1);
28
- --color-bg-neutral-2: var(--color-neutral-2);
29
-
30
- --color-bg-primary-0: var(--color-primary-0);
31
- --color-bg-primary-1: var(--color-primary-1);
32
- --color-bg-primary-2: var(--color-primary-2);
33
-
34
- --color-bg-secondary-0: var(--color-secondary-0);
35
- --color-bg-secondary-1: var(--color-secondary-1);
36
- --color-bg-secondary-2: var(--color-secondary-2);
37
-
38
- --color-bg-tertiary-0: var(--color-tertiary-0);
39
- --color-bg-tertiary-1: var(--color-tertiary-1);
40
- --color-bg-tertiary-2: var(--color-tertiary-2);
41
-
42
- --color-bg-accent-0: var(--color-accent-0);
43
- --color-bg-accent-1: var(--color-accent-1);
44
- --color-bg-accent-2: var(--color-accent-2);
45
-
46
- /* Interactive Element Colors (from shade #3 to #5) */
47
- --color-interactive-primary-1: var(--color-primary-3);
48
- --color-interactive-primary-2: var(--color-primary-4);
49
- --color-interactive-primary-3: var(--color-primary-5);
50
-
51
- --color-interactive-secondary-1: var(--color-secondary-3);
52
- --color-interactive-secondary-2: var(--color-secondary-4);
53
- --color-interactive-secondary-3: var(--color-secondary-5);
54
-
55
- --color-interactive-tertiary-1: var(--color-tertiary-3);
56
- --color-interactive-tertiary-2: var(--color-tertiary-4);
57
- --color-interactive-tertiary-3: var(--color-tertiary-5);
58
-
59
-
60
- /** Borders and separators shades (3 shades) */
61
- --color-border-neutral-1: var(--color-neutral-6);
62
- --color-border-neutral-2: var(--color-neutral-7);
63
- --color-border-neutral-3: var(--color-neutral-8);
64
-
65
- --color-border-primary-1: var(--color-primary-6);
66
- --color-border-primary-2: var(--color-primary-7);
67
- --color-border-primary-3: var(--color-primary-8);
68
-
69
- --color-border-secondary-1: var(--color-secondary-6);
70
- --color-border-secondary-2: var(--color-secondary-7);
71
- --color-border-secondary-3: var(--color-secondary-8);
72
-
73
- --color-border-tertiary-1: var(--color-tertiary-6);
74
- --color-border-tertiary-2: var(--color-tertiary-7);
75
- --color-border-tertiary-3: var(--color-tertiary-8);
76
-
77
- /* Solid Element Colors (from shade #9 to #10) */
78
- --color-solid-neutral-1: var(--color-neutral-9);
79
- --color-solid-neutral-2: var(--color-neutral-10);
80
-
81
- --color-solid-primary-1: var(--color-primary-9);
82
- --color-solid-primary-2: var(--color-primary-10);
83
-
84
- --color-solid-secondary-1: var(--color-secondary-9);
85
- --color-solid-secondary-2: var(--color-secondary-10);
86
-
87
- --color-solid-tertiary-1: var(--color-tertiary-9);
88
- --color-solid-tertiary-2: var(--color-tertiary-10);
89
-
11
+ button,
12
+ [role="button"] {
13
+ cursor: pointer;
14
+ }
15
+ :disabled {
16
+ cursor: default;
17
+ }
90
18
  /* Fonts stacks */
91
19
  --font-system-ui: system-ui, sans-serif;
92
20
  --font-transitional: Charter, Bitstream Charter, Sitka Text, Cambria, serif;
@@ -105,10 +33,7 @@
105
33
  --font-handwritten: Segoe Print, Bradley Hand, Chilanka, TSCu_Comic, casual, cursive;
106
34
  }
107
35
  }
108
-
109
-
110
36
  @layer upstart-utilities {
111
-
112
37
  /* Font classes */
113
38
  .font-system-ui { font-family: var(--font-system-ui); }
114
39
  .font-transitional { font-family: var(--font-transitional); }
@@ -125,8 +50,4 @@
125
50
  .font-antique { font-family: var(--font-antique); }
126
51
  .font-didone { font-family: var(--font-didone); }
127
52
  .font-handwritten { font-family: var(--font-handwritten); }
128
-
129
53
  }
130
-
131
-
132
-
package/src/editor.css CHANGED
@@ -4,4 +4,12 @@ html, body {
4
4
  font-family: "system-ui", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
5
5
  /* gray background */
6
6
  background-color: #f5f5f5;
7
- }
7
+ overscroll-behavior: none;
8
+ scrollbar-width: none;
9
+ }
10
+
11
+ @property --border-angle {
12
+ inherits: false;
13
+ initial-value: 0deg;
14
+ syntax: '<angle>';
15
+ }
package/src/radix.css CHANGED
@@ -314,16 +314,16 @@
314
314
 
315
315
  *::selection {
316
316
  color: white;
317
- background: #5b57ab;
317
+ background: #5d59ad;
318
318
  }
319
319
 
320
320
 
321
321
  *::-moz-selection { /* Code for Firefox */
322
322
  color: white;
323
- background: #5b57ab;
323
+ background: #5d59ad;
324
324
  }
325
325
 
326
326
  *::-webkit-selection {
327
327
  color: white;
328
- background: #5b57ab;
328
+ background: #5d59ad;
329
329
  }