Skip to content

Commit 14994dc

Browse files
BillLeoutsakosvl346Bill Leoutsakos
andauthored
fix(ui): use defined status and interaction color tokens (#8012)
Co-authored-by: Bill Leoutsakos <billleoutsakos@Bills-MacBook-Pro.local>
1 parent 5414fb9 commit 14994dc

6 files changed

Lines changed: 11 additions & 12 deletions

File tree

‎apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content/components/browser-session/browser-downloads.tsx‎

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,29 +134,28 @@ export function BrowserDownloads({ scopeId, open, requestOpen, onClose }: Browse
134134
size='sm'
135135
aria-label={label}
136136
title={label}
137-
className={cn(
138-
'relative size-[30px] shrink-0 overflow-hidden p-0',
139-
hasUnviewedCompletion && 'text-[var(--brand-primary)]'
140-
)}
137+
className='relative size-[30px] shrink-0 overflow-hidden p-0'
141138
onClick={() => setHasUnviewedCompletion(false)}
142139
>
143140
{hasActiveDownloads ? (
144-
<Loader animate className='size-[14px] text-[var(--brand-primary)]' />
141+
<Loader animate className='size-[14px] text-[var(--brand-blue)]' />
145142
) : completionAnimationVersion > 0 ? (
146143
<CircleCheck
147144
key={completionAnimationVersion}
148145
className='zoom-in-50 size-[14px] animate-in text-[var(--badge-success-text)] duration-150 motion-reduce:animate-none'
149146
/>
150147
) : (
151-
<Download className='size-[14px]' />
148+
<Download
149+
className={cn('size-[14px]', hasUnviewedCompletion && 'text-[var(--brand-blue)]')}
150+
/>
152151
)}
153152
{hasActiveDownloads && aggregatePercent !== null && (
154153
<span
155154
aria-hidden
156155
className='absolute inset-x-1.5 bottom-1 h-0.5 overflow-hidden rounded-full bg-[var(--surface-6)]'
157156
>
158157
<span
159-
className='block h-full rounded-full bg-[var(--brand-primary)] transition-[width] duration-150'
158+
className='block h-full rounded-full bg-[var(--brand-blue)] transition-[width] duration-150'
160159
style={{ width: `${aggregatePercent}%` }}
161160
/>
162161
</span>

‎apps/sim/app/workspace/[workspaceId]/home/home.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -787,7 +787,7 @@ function HomeContent({ chatId, userName, userId }: HomeProps) {
787787
{isResourceCollapsed && resourceActivityIds.size > 0 && (
788788
<span
789789
aria-hidden='true'
790-
className='-top-0.5 -right-0.5 absolute size-1.5 rounded-full bg-[var(--brand-primary)]'
790+
className='-top-0.5 -right-0.5 absolute size-1.5 rounded-full bg-[var(--brand-blue)]'
791791
/>
792792
)}
793793
</span>

‎apps/sim/app/workspace/[workspaceId]/logs/components/log-details/components/execution-snapshot/execution-snapshot.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ export function ExecutionSnapshot({
135135
className={cn('flex flex-col items-center justify-center gap-4 p-8', className)}
136136
style={{ height, width }}
137137
>
138-
<div className='flex items-center gap-3 text-[var(--text-warning)]'>
138+
<div className='flex items-center gap-3 text-[var(--warning)]'>
139139
<CircleAlert className='size-[20px]' />
140140
<span className='text-base'>Logged State Not Found</span>
141141
</div>

‎apps/sim/app/workspace/[workspaceId]/settings/components/workflow-mcp-servers/workflow-mcp-servers.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ function ServerDetailView({
612612
{activeConfigTab === 'cursor' && (
613613
<a
614614
href={getCursorInstallUrl(server.isPublic, server.name)}
615-
className='absolute top-1.5 right-2 inline-flex rounded-md bg-[var(--surface-5)] ring-[length:var(--border-width)] ring-[var(--border-1)] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-[var(--brand-primary)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--surface-2)]'
615+
className='absolute top-1.5 right-2 inline-flex rounded-md bg-[var(--surface-5)] ring-[length:var(--border-width)] ring-[var(--border-1)] focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-[var(--selection)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--surface-2)]'
616616
>
617617
<img
618618
src='https://cursor.com/deeplink/mcp-install-dark.svg'

‎apps/sim/app/workspace/[workspaceId]/tables/components/import-progress-menu/import-progress-menu.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export function ImportProgressMenu({ workspaceId, tableId }: ImportProgressMenuP
9393
isReadyExport ? (
9494
<button
9595
type='button'
96-
className='text-[var(--brand-primary)] hover-hover:underline'
96+
className='text-[var(--selection)] hover-hover:underline'
9797
onClick={() => download(row)}
9898
>
9999
Download

‎packages/emcn/src/components/tab-strip/tab-strip.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ const Tab = forwardRef<HTMLDivElement, TabProps>(function Tab(
461461
{tab.attention && !tab.active && (
462462
<span
463463
className={cn(
464-
'size-1.5 shrink-0 rounded-full bg-[var(--brand-primary)]',
464+
'size-1.5 shrink-0 rounded-full bg-[var(--brand-blue)]',
465465
tab.pinned && 'absolute right-1 bottom-1'
466466
)}
467467
aria-label='Background activity'

0 commit comments

Comments
 (0)