Skip to content

Commit 2ce1a50

Browse files
fix(share): align modal surfaces with dark mode radix scales (anomalyco#742)
1 parent 1160e62 commit 2ce1a50

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

‎packages/app/src/app/components/share-workspace-modal.tsx‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@ export default function ShareWorkspaceModal(props: {
7676

7777
return (
7878
<Show when={props.open}>
79-
<div class="fixed inset-0 z-50 flex items-center justify-center bg-gray-1/60 backdrop-blur-sm p-4 font-sans animate-in fade-in duration-200">
79+
<div class="fixed inset-0 z-50 flex items-center justify-center bg-gray-1/70 backdrop-blur-sm p-4 font-sans animate-in fade-in duration-200">
8080
<div
81-
class="bg-white w-full max-w-lg rounded-2xl shadow-[0_20px_50px_-12px_rgba(0,0,0,0.15)] border border-gray-6 overflow-hidden animate-in fade-in zoom-in-95 duration-300 relative flex flex-col max-h-[90vh]"
81+
class="bg-gray-1 w-full max-w-lg rounded-2xl shadow-[0_20px_50px_-12px_rgba(0,0,0,0.45)] border border-gray-6 overflow-hidden animate-in fade-in zoom-in-95 duration-300 relative flex flex-col max-h-[90vh]"
8282
role="dialog"
8383
aria-modal="true"
8484
>
@@ -110,12 +110,12 @@ export default function ShareWorkspaceModal(props: {
110110
</div>
111111

112112
{/* Tab Switcher */}
113-
<div class="flex p-1 bg-gray-2/80 rounded-xl mt-6">
113+
<div class="flex p-1 bg-gray-2 rounded-xl mt-6 border border-gray-6">
114114
<button
115115
onClick={() => setActiveTab("access")}
116116
class={`flex-1 flex items-center justify-center gap-2 text-[13px] font-bold py-2 px-3 rounded-lg transition-all ${
117117
activeTab() === "access"
118-
? "bg-white shadow-sm text-gray-12"
118+
? "bg-gray-1 shadow-sm text-gray-12 border border-gray-6"
119119
: "text-gray-9 hover:text-gray-11 hover:bg-gray-4/50"
120120
}`}
121121
>
@@ -126,7 +126,7 @@ export default function ShareWorkspaceModal(props: {
126126
onClick={() => setActiveTab("links")}
127127
class={`flex-1 flex items-center justify-center gap-2 text-[13px] font-bold py-2 px-3 rounded-lg transition-all ${
128128
activeTab() === "links"
129-
? "bg-white shadow-sm text-gray-12"
129+
? "bg-gray-1 shadow-sm text-gray-12 border border-gray-6"
130130
: "text-gray-9 hover:text-gray-11 hover:bg-gray-4/50"
131131
}`}
132132
>
@@ -141,7 +141,7 @@ export default function ShareWorkspaceModal(props: {
141141
{/* TAB: LIVE ACCESS */}
142142
<Show when={activeTab() === "access"}>
143143
<div class="space-y-6 pt-2 animate-in fade-in slide-in-from-bottom-3 duration-300">
144-
<div class="bg-amber-2/50 border border-amber-6 p-3 rounded-xl">
144+
<div class="bg-amber-2 border border-amber-6 p-3 rounded-xl">
145145
<p class="text-[13px] text-amber-11 leading-relaxed flex items-start gap-2">
146146
<span class="mt-0.5">⚠️</span>
147147
<span>Share with trusted people only. These credentials grant direct access to your local environment.</span>
@@ -165,7 +165,7 @@ export default function ShareWorkspaceModal(props: {
165165
type={isSecret() && !revealed() ? "password" : "text"}
166166
readonly
167167
value={field.value || field.placeholder || ""}
168-
class="w-full bg-gray-2 border border-gray-6 group-hover:border-gray-8 rounded-xl py-3 pl-4 pr-24 text-[13px] font-mono text-gray-12 transition-all outline-none focus:ring-2 focus:ring-gray-12/5 focus:bg-white"
168+
class="w-full bg-gray-2 border border-gray-6 group-hover:border-gray-8 rounded-xl py-3 pl-4 pr-24 text-[13px] font-mono text-gray-12 transition-all outline-none focus:ring-2 focus:ring-gray-8/40 focus:bg-gray-1"
169169
/>
170170
<div class="absolute right-2 flex items-center gap-1">
171171
<Show when={isSecret()}>
@@ -224,7 +224,7 @@ export default function ShareWorkspaceModal(props: {
224224
</div>
225225

226226
{/* Card: Workspace Profile */}
227-
<div class="bg-white border border-gray-6 rounded-2xl p-4 shadow-sm hover:shadow-md transition-all group">
227+
<div class="bg-gray-1 border border-gray-6 rounded-2xl p-4 shadow-sm hover:shadow-md transition-all group">
228228
<div class="flex items-center gap-3 mb-3">
229229
<div class="p-2 bg-gray-2 rounded-lg text-gray-9 group-hover:text-gray-12 group-hover:bg-gray-3 transition-colors">
230230
<FolderCode size={18} />
@@ -250,7 +250,7 @@ export default function ShareWorkspaceModal(props: {
250250
<button
251251
onClick={() => props.onShareWorkspaceProfile?.()}
252252
disabled={Boolean(props.shareWorkspaceProfileDisabledReason) || !props.onShareWorkspaceProfile || props.shareWorkspaceProfileBusy}
253-
class="w-full py-2.5 bg-gray-12 hover:bg-gray-11 text-white text-[13px] font-bold rounded-xl transition-all active:scale-[0.98] disabled:opacity-50"
253+
class="w-full py-2.5 bg-gray-12 hover:bg-gray-11 text-gray-1 text-[13px] font-bold rounded-xl transition-all active:scale-[0.98] disabled:opacity-50"
254254
>
255255
{props.shareWorkspaceProfileBusy ? "Publishing..." : "Create Public Link"}
256256
</button>
@@ -265,7 +265,7 @@ export default function ShareWorkspaceModal(props: {
265265
/>
266266
<button
267267
onClick={() => handleCopy(props.shareWorkspaceProfileUrl ?? "", "share-workspace-profile")}
268-
class="p-2 bg-gray-12 text-white rounded-lg hover:bg-gray-11 transition-colors"
268+
class="p-2 bg-gray-12 text-gray-1 rounded-lg hover:bg-gray-11 transition-colors"
269269
>
270270
<Show when={copiedKey() === "share-workspace-profile"} fallback={<Copy size={16} />}>
271271
<Check size={16} />
@@ -283,7 +283,7 @@ export default function ShareWorkspaceModal(props: {
283283
</div>
284284

285285
{/* Card: Skills Set */}
286-
<div class="bg-white border border-gray-6 rounded-2xl p-4 shadow-sm hover:shadow-md transition-all group">
286+
<div class="bg-gray-1 border border-gray-6 rounded-2xl p-4 shadow-sm hover:shadow-md transition-all group">
287287
<div class="flex items-center gap-3 mb-3">
288288
<div class="p-2 bg-gray-2 rounded-lg text-gray-9 group-hover:text-gray-12 group-hover:bg-gray-3 transition-colors">
289289
<Boxes size={18} />
@@ -343,9 +343,9 @@ export default function ShareWorkspaceModal(props: {
343343

344344
{/* Section: Local Export */}
345345
<div class="pt-4 mt-2 border-t border-gray-4">
346-
<div class="flex items-center justify-between p-3 bg-gray-2 rounded-2xl group hover:bg-gray-3/50 transition-all border border-transparent hover:border-gray-6">
346+
<div class="flex items-center justify-between p-3 bg-gray-2 rounded-2xl group hover:bg-gray-3 transition-all border border-gray-6">
347347
<div class="flex items-center gap-3">
348-
<div class="p-2 bg-white rounded-lg text-gray-9 shadow-sm">
348+
<div class="p-2 bg-gray-1 rounded-lg text-gray-9 shadow-sm border border-gray-6">
349349
<Download size={18} />
350350
</div>
351351
<div>
@@ -356,7 +356,7 @@ export default function ShareWorkspaceModal(props: {
356356
<button
357357
onClick={() => props.onExportConfig?.()}
358358
disabled={!props.onExportConfig || Boolean(props.exportDisabledReason)}
359-
class="px-4 py-2 bg-white border border-gray-6 hover:border-gray-12 hover:text-gray-12 rounded-xl text-[12px] font-bold text-gray-11 transition-all shadow-sm disabled:opacity-50 disabled:hover:border-gray-6 disabled:hover:text-gray-11"
359+
class="px-4 py-2 bg-gray-1 border border-gray-7 hover:border-gray-8 hover:text-gray-12 rounded-xl text-[12px] font-bold text-gray-11 transition-all shadow-sm disabled:opacity-50 disabled:hover:border-gray-7 disabled:hover:text-gray-11"
360360
>
361361
Export
362362
</button>
@@ -365,24 +365,24 @@ export default function ShareWorkspaceModal(props: {
365365

366366
{/* Section: Bots */}
367367
<div class="pt-2">
368-
<div class="flex items-center justify-between p-3 bg-gray-2 rounded-2xl group hover:bg-gray-3/50 transition-all border border-transparent hover:border-gray-6">
368+
<div class="flex items-center justify-between p-3 bg-gray-2 rounded-2xl group hover:bg-gray-3 transition-all border border-gray-6">
369369
<div class="flex items-center gap-3">
370-
<div class="p-2 bg-white rounded-lg text-gray-9 shadow-sm relative overflow-hidden flex items-center justify-center font-bold font-mono">
370+
<div class="p-2 bg-gray-1 rounded-lg text-gray-9 shadow-sm border border-gray-6 relative overflow-hidden flex items-center justify-center font-bold font-mono">
371371
B
372372
<div class="absolute inset-0 bg-amber-400 opacity-20"></div>
373373
</div>
374374
<div>
375375
<div class="flex items-center gap-2">
376376
<h4 class="text-[13px] font-bold text-gray-12">Bots</h4>
377-
<span class="text-[9px] px-1.5 py-0.5 uppercase tracking-wider font-bold rounded-full border border-gray-6 text-gray-10 bg-white">alpha</span>
377+
<span class="text-[9px] px-1.5 py-0.5 uppercase tracking-wider font-bold rounded-full border border-gray-6 text-gray-10 bg-gray-1">alpha</span>
378378
</div>
379379
<p class="text-[12px] text-gray-10">Configure messaging surfaces</p>
380380
</div>
381381
</div>
382382
<button
383383
onClick={() => props.onOpenBots?.()}
384384
disabled={!props.onOpenBots}
385-
class="px-4 py-2 bg-gray-1 border border-gray-6 hover:border-gray-12 hover:text-gray-12 rounded-xl text-[12px] font-bold text-gray-11 transition-all shadow-sm disabled:opacity-50 disabled:hover:border-gray-6 disabled:hover:text-gray-11"
385+
class="px-4 py-2 bg-gray-1 border border-gray-7 hover:border-gray-8 hover:text-gray-12 rounded-xl text-[12px] font-bold text-gray-11 transition-all shadow-sm disabled:opacity-50 disabled:hover:border-gray-7 disabled:hover:text-gray-11"
386386
>
387387
Open setup
388388
</button>

0 commit comments

Comments
 (0)