@superwall/studio 1.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/src/styles.css ADDED
@@ -0,0 +1,221 @@
1
+ @import "tailwindcss";
2
+
3
+ @theme {
4
+ --color-ink: #1a1918;
5
+ --color-bar: #211f1d;
6
+ --color-panel: #242220;
7
+ --color-cream: #fdfef6;
8
+ --color-accent: #46d7d4;
9
+ --color-red: #ff7474;
10
+ --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
11
+ --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
12
+ }
13
+
14
+ @layer base {
15
+ :root {
16
+ color-scheme: dark;
17
+ }
18
+
19
+ ::selection {
20
+ background: color-mix(in srgb, var(--color-accent) 50%, transparent);
21
+ }
22
+
23
+ :focus-visible {
24
+ outline: 2px solid var(--color-accent);
25
+ outline-offset: -2px;
26
+ }
27
+
28
+ button {
29
+ cursor: pointer;
30
+ }
31
+
32
+ * {
33
+ scrollbar-width: none;
34
+ }
35
+
36
+ *::-webkit-scrollbar {
37
+ width: 0;
38
+ height: 0;
39
+ display: none;
40
+ }
41
+ }
42
+
43
+ @layer components {
44
+ .sw-btn {
45
+ display: inline-flex;
46
+ align-items: center;
47
+ justify-content: center;
48
+ gap: 7px;
49
+ height: 30px;
50
+ padding: 0 12px;
51
+ border: 1px solid color-mix(in srgb, var(--color-cream) 18%, transparent);
52
+ background: transparent;
53
+ color: var(--color-cream);
54
+ font-size: 0.8125rem;
55
+ font-weight: 500;
56
+ white-space: nowrap;
57
+ transition: background-color 150ms ease;
58
+ }
59
+
60
+ .sw-btn:hover {
61
+ background: color-mix(in srgb, var(--color-cream) 5%, transparent);
62
+ }
63
+
64
+ .sw-btn--primary {
65
+ background: var(--color-cream);
66
+ border-color: var(--color-cream);
67
+ color: var(--color-ink);
68
+ }
69
+
70
+ .sw-btn--primary:hover {
71
+ background: color-mix(in srgb, var(--color-cream) 85%, transparent);
72
+ }
73
+
74
+ .sw-btn--icon {
75
+ width: 30px;
76
+ padding: 0;
77
+ }
78
+
79
+ .sw-icon,
80
+ .sw-btn svg,
81
+ .sw-segmented svg {
82
+ width: 14px;
83
+ height: 14px;
84
+ stroke: currentColor;
85
+ fill: none;
86
+ stroke-width: 1.5;
87
+ stroke-linecap: round;
88
+ stroke-linejoin: round;
89
+ }
90
+
91
+ .sw-chip {
92
+ display: inline-flex;
93
+ align-items: center;
94
+ height: 20px;
95
+ padding: 0 7px;
96
+ border: 1px solid color-mix(in srgb, var(--color-cream) 18%, transparent);
97
+ color: var(--color-cream);
98
+ white-space: nowrap;
99
+ }
100
+
101
+ .sw-tool-label {
102
+ font-size: 0.75rem;
103
+ font-weight: 500;
104
+ color: color-mix(in srgb, var(--color-cream) 55%, transparent);
105
+ white-space: nowrap;
106
+ }
107
+
108
+ .sw-tool-label--key {
109
+ font-family: var(--font-mono);
110
+ letter-spacing: 0.04em;
111
+ font-size: 11px;
112
+ }
113
+
114
+ .sw-select {
115
+ appearance: none;
116
+ cursor: pointer;
117
+ height: 30px;
118
+ padding: 0 24px 0 9px;
119
+ border: 1px solid color-mix(in srgb, var(--color-cream) 18%, transparent);
120
+ background:
121
+ linear-gradient(
122
+ 45deg,
123
+ transparent 50%,
124
+ color-mix(in srgb, var(--color-cream) 55%, transparent) 50%
125
+ )
126
+ calc(100% - 13px) 55% / 4px 4px no-repeat,
127
+ linear-gradient(
128
+ 135deg,
129
+ color-mix(in srgb, var(--color-cream) 55%, transparent) 50%,
130
+ transparent 50%
131
+ )
132
+ calc(100% - 9px) 55% / 4px 4px no-repeat;
133
+ background-color: transparent;
134
+ color: var(--color-cream);
135
+ font: inherit;
136
+ font-size: 0.8125rem;
137
+ font-weight: 500;
138
+ }
139
+
140
+ .sw-select option {
141
+ background: var(--color-bar);
142
+ }
143
+
144
+ .sw-segmented {
145
+ display: inline-flex;
146
+ border: 1px solid color-mix(in srgb, var(--color-cream) 18%, transparent);
147
+ height: 30px;
148
+ }
149
+
150
+ .sw-segmented button {
151
+ display: inline-flex;
152
+ align-items: center;
153
+ gap: 6px;
154
+ padding: 0 11px;
155
+ font-size: 0.8125rem;
156
+ font-weight: 500;
157
+ color: color-mix(in srgb, var(--color-cream) 55%, transparent);
158
+ transition:
159
+ background-color 150ms ease,
160
+ color 150ms ease;
161
+ }
162
+
163
+ .sw-segmented button + button {
164
+ border-left: 1px solid color-mix(in srgb, var(--color-cream) 18%, transparent);
165
+ }
166
+
167
+ .sw-segmented button[aria-pressed="true"] {
168
+ background: var(--color-cream);
169
+ color: var(--color-ink);
170
+ }
171
+
172
+ input[type="search"]::-webkit-search-cancel-button,
173
+ input[type="search"]::-webkit-search-decoration,
174
+ input[type="search"]::-webkit-search-results-button,
175
+ input[type="search"]::-webkit-search-results-decoration {
176
+ -webkit-appearance: none;
177
+ appearance: none;
178
+ display: none;
179
+ }
180
+
181
+ .sw-input {
182
+ height: 30px;
183
+ padding: 0 9px;
184
+ border: 1px solid color-mix(in srgb, var(--color-cream) 18%, transparent);
185
+ background: transparent;
186
+ color: var(--color-cream);
187
+ font: inherit;
188
+ font-size: 0.8125rem;
189
+ width: 100%;
190
+ }
191
+
192
+ .sw-switch {
193
+ position: relative;
194
+ width: 34px;
195
+ height: 19px;
196
+ border-radius: 9999px;
197
+ background: color-mix(in srgb, var(--color-cream) 18%, transparent);
198
+ transition: background-color 150ms ease;
199
+ flex: none;
200
+ }
201
+
202
+ .sw-switch[aria-checked="true"] {
203
+ background: var(--color-accent);
204
+ }
205
+
206
+ .sw-switch::after {
207
+ content: "";
208
+ position: absolute;
209
+ top: 3px;
210
+ left: 3px;
211
+ width: 13px;
212
+ height: 13px;
213
+ border-radius: 9999px;
214
+ background: var(--color-ink);
215
+ transition: transform 150ms ease;
216
+ }
217
+
218
+ .sw-switch[aria-checked="true"]::after {
219
+ transform: translateX(15px);
220
+ }
221
+ }