Skip to content

Commit 08af7db

Browse files
authored
improvement(ui): unbold the app, align the folder chevron, tidy the feedback modal (#6400)
#6241 deleted the --font-weight-* scale from globals.css and its fontWeight mapping from tailwind.config.ts. font-medium jumped 440/480 -> 500, font-semibold 500/550 -> 600, and body dropped 420 -> 400, so every existing call site snapped a full step above a body that got lighter. #6291 fixed packages/emcn only; the product call sites were left behind. Strips the weight class from body, label, row, and heading text across app/workspace, ee, workflow-renderer, the non-workspace route groups, and components/ui/button.tsx, whose buttonVariants injected font-medium into every consumer. Keeps it only where it steps up: markdown/prose bold and micro avatar initials. Also aligns the workflow-tree folder chevron to the sidebar section header (14px, 150ms), and on the feedback modal drops the prompt line above the Feedback field and re-homes Copy ID as a footer secondary action.
1 parent 3b4d587 commit 08af7db

117 files changed

Lines changed: 300 additions & 427 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
/** Shared className for inline auth action links. */
22
export const AUTH_TEXT_LINK =
3-
'font-medium text-[var(--brand-accent)] underline-offset-4 transition hover:text-[var(--brand-accent-hover)] hover:underline disabled:cursor-not-allowed disabled:opacity-50' as const
3+
'text-[var(--brand-accent)] underline-offset-4 transition hover:text-[var(--brand-accent-hover)] hover:underline disabled:cursor-not-allowed disabled:opacity-50' as const

apps/sim/app/(interfaces)/chat/components/auth/email/email-auth.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,7 @@ export default function EmailAuth({ identifier }: EmailAuthProps) {
217217
Didn't receive a code?{' '}
218218
{countdown > 0 ? (
219219
<span>
220-
Resend in{' '}
221-
<span className='font-medium text-[var(--text-primary)]'>{countdown}s</span>
220+
Resend in <span className='text-[var(--text-primary)]'>{countdown}s</span>
222221
</span>
223222
) : (
224223
<button

apps/sim/app/(interfaces)/chat/components/header/header.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function ChatHeader({ chatConfig, starCount }: ChatHeaderProps) {
4040
className='size-6 rounded-md object-cover'
4141
/>
4242
)}
43-
<h2 className='font-medium text-[var(--text-primary)] text-lg'>
43+
<h2 className='text-[var(--text-primary)] text-lg'>
4444
{chatConfig?.customizations?.headerText || chatConfig?.title || 'Chat'}
4545
</h2>
4646
</div>

apps/sim/app/(interfaces)/chat/components/message-container/message-container.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ export function ChatMessageContainer({
3939
{messages.length === 0 ? (
4040
<div className='flex flex-col items-center justify-center py-10'>
4141
<div className='space-y-2 text-center'>
42-
<h3 className='font-medium text-[var(--text-primary)] text-lg'>
43-
How can I help you today?
44-
</h3>
42+
<h3 className='text-[var(--text-primary)] text-lg'>How can I help you today?</h3>
4543
<p className='text-[var(--text-muted)] text-sm'>
4644
{chatConfig?.description || 'Ask me anything.'}
4745
</p>

apps/sim/app/(interfaces)/chat/components/message/components/markdown-renderer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ function LinkWithPreview({ href, children }: { href: string; children: React.Rea
1818
</a>
1919
</Tooltip.Trigger>
2020
<Tooltip.Content side='top' align='center' sideOffset={5} className='max-w-sm'>
21-
<span className='truncate font-medium text-xs'>{href}</span>
21+
<span className='truncate text-xs'>{href}</span>
2222
</Tooltip.Content>
2323
</Tooltip.Root>
2424
)

apps/sim/app/(interfaces)/chat/components/message/message.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export const ClientChatMessage = memo(function ClientChatMessage({
187187
{getFileIcon(attachment.type)}
188188
</div>
189189
<div className='min-w-0 flex-1'>
190-
<div className='truncate font-medium text-[var(--text-primary)] text-xs md:text-sm'>
190+
<div className='truncate text-[var(--text-primary)] text-xs md:text-sm'>
191191
{attachment.name}
192192
</div>
193193
{attachment.size && (

apps/sim/app/(interfaces)/resume/[workflowId]/[executionId]/resume-page-client.tsx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -705,9 +705,7 @@ export default function ResumeExecutionPage({
705705
<Tooltip.Provider>
706706
<div className='flex flex-1 items-center justify-center p-6'>
707707
<div className='max-w-[400px] text-center'>
708-
<h1 className='mb-2 font-medium text-[20px] text-[var(--text-primary)]'>
709-
Execution Not Found
710-
</h1>
708+
<h1 className='mb-2 text-[20px] text-[var(--text-primary)]'>Execution Not Found</h1>
711709
<p className='mb-6 text-[14px] text-[var(--text-secondary)]'>
712710
This execution could not be located or has already completed.
713711
</p>
@@ -726,7 +724,7 @@ export default function ResumeExecutionPage({
726724
{/* Header */}
727725
<div className='mb-8 flex items-center justify-between'>
728726
<div>
729-
<h1 className='font-medium text-[20px] text-[var(--text-primary)]'>Paused Execution</h1>
727+
<h1 className='text-[20px] text-[var(--text-primary)]'>Paused Execution</h1>
730728
<p className='mt-1 text-[14px] text-[var(--text-secondary)]'>
731729
Select a pause point to review and resume
732730
</p>

apps/sim/app/_shell/desktop-update-gate.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ export function DesktopUpdateGate() {
8787
data-native-surface-occlusion='takeover'
8888
>
8989
<div className='flex max-w-sm flex-col gap-2'>
90-
<h1 className='font-medium text-[var(--text-primary)] text-lg'>Update Sim to continue</h1>
90+
<h1 className='text-[var(--text-primary)] text-lg'>Update Sim to continue</h1>
9191
<p className='text-[var(--text-secondary)] text-sm'>
9292
This version of the Sim desktop app is no longer compatible with the latest Sim. Install
9393
the update to keep going.

apps/sim/app/f/[token]/public-file-email-auth.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,7 @@ export function PublicFileEmailAuth({ token }: PublicFileEmailAuthProps) {
173173
Didn't receive a code?{' '}
174174
{countdown > 0 ? (
175175
<span>
176-
Resend in{' '}
177-
<span className='font-medium text-[var(--text-primary)]'>{countdown}s</span>
176+
Resend in <span className='text-[var(--text-primary)]'>{countdown}s</span>
178177
</span>
179178
) : (
180179
<button

apps/sim/app/f/[token]/public-file-view.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export function PublicFileView({
8585
</>
8686
)}
8787
<div className='flex min-w-0 flex-col'>
88-
<span className='truncate font-medium text-[14px] text-[var(--text-body)]'>{name}</span>
88+
<span className='truncate text-[14px] text-[var(--text-body)]'>{name}</span>
8989
{provenance ? (
9090
<span className='truncate text-[12px] text-[var(--text-muted)]'>{provenance}</span>
9191
) : null}

0 commit comments

Comments
 (0)