Skip to content

Commit 52db15d

Browse files
committed
Fix invalid Tailwind classes caught by Codex
- Replace text-gray-200-dim with text-gray-400 - Replace text-gray-500-dark with text-gray-600 - Replace all bg-accent* with bg-sky-* - Replace bg-muted-dark with bg-gray-600 - Replace border-dark with border-gray-950
1 parent cfce8d2 commit 52db15d

21 files changed

+54
-54
lines changed

src/components/CommandPalette.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ const PaletteDemo: React.FC<{ autoOpen?: boolean }> = ({ autoOpen = true }) => {
132132
<>
133133
<button
134134
onClick={() => open()}
135-
className="bg-accent-dark font-primary hover:bg-accent-hover active:bg-accent-dark cursor-pointer self-start rounded border-none px-4 py-2 text-[13px] text-white"
135+
className="bg-sky-600-dark font-primary hover:bg-sky-600-hover active:bg-sky-600-dark cursor-pointer self-start rounded border-none px-4 py-2 text-[13px] text-white"
136136
>
137137
Open Command Palette (⌘⇧P)
138138
</button>

src/components/CommandSuggestions.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ export const CommandSuggestions: React.FC<CommandSuggestionsProps> = ({
104104
role="option"
105105
aria-selected={index === selectedIndex}
106106
className={cn(
107-
"px-2.5 py-1.5 cursor-pointer transition-colors duration-150 flex items-center justify-between gap-3 hover:bg-accent-darker",
108-
index === selectedIndex ? "bg-accent-darker" : "bg-transparent"
107+
"px-2.5 py-1.5 cursor-pointer transition-colors duration-150 flex items-center justify-between gap-3 hover:bg-sky-600-darker",
108+
index === selectedIndex ? "bg-sky-600-darker" : "bg-transparent"
109109
)}
110110
>
111111
<div className="font-monospace shrink-0 text-xs text-sky-600">{suggestion.display}</div>

src/components/Context1MCheckbox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export const Context1MCheckbox: React.FC<Context1MCheckboxProps> = ({ modelStrin
2222
type="checkbox"
2323
checked={use1M}
2424
onChange={(e) => setUse1M(e.target.checked)}
25-
className="checked:bg-accent relative m-0 h-[11px] w-3 cursor-pointer appearance-none rounded-sm border border-gray-800 bg-gray-950 checked:border-sky-600 checked:after:absolute checked:after:top-0 checked:after:left-[3px] checked:after:h-[6px] checked:after:w-1 checked:after:rotate-45 checked:after:border-r-[1.5px] checked:after:border-b-[1.5px] checked:after:border-solid checked:after:border-white checked:after:content-[''] hover:border-sky-600"
25+
className="checked:bg-sky-600 relative m-0 h-[11px] w-3 cursor-pointer appearance-none rounded-sm border border-gray-800 bg-gray-950 checked:border-sky-600 checked:after:absolute checked:after:top-0 checked:after:left-[3px] checked:after:h-[6px] checked:after:w-1 checked:after:rotate-45 checked:after:border-r-[1.5px] checked:after:border-b-[1.5px] checked:after:border-solid checked:after:border-white checked:after:content-[''] hover:border-sky-600"
2626
/>
2727
1M Context
2828
</label>

src/components/DirectorySelectModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export const DirectorySelectModal: React.FC = () => {
8282
onKeyDown={handleKeyDown}
8383
placeholder="/home/user/projects/my-project"
8484
autoFocus
85-
className="border-gray-800-medium mb-5 w-full rounded border bg-gray-900 px-3 py-2 font-mono text-sm text-white placeholder:text-gray-500 focus:border-sky-600 focus:outline-none"
85+
className="border-gray-700 mb-5 w-full rounded border bg-gray-900 px-3 py-2 font-mono text-sm text-white placeholder:text-gray-500 focus:border-sky-600 focus:outline-none"
8686
/>
8787
{error && <div className="text-error -mt-3 mb-3 text-xs">{error}</div>}
8888
<ModalActions>

src/components/LeftSidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function LeftSidebar(props: LeftSidebarProps) {
4949
"w-10 h-10 bg-gray-900 border border-gray-800 rounded-md cursor-pointer",
5050
"items-center justify-center text-gray-200 text-xl transition-all duration-200",
5151
"shadow-[0_2px_4px_rgba(0,0,0,0.3)]",
52-
"hover:bg-gray-900 hover:border-bg-light",
52+
"hover:bg-gray-900 hover:border-gray-800",
5353
"active:scale-95"
5454
)}
5555
>
@@ -69,7 +69,7 @@ export function LeftSidebar(props: LeftSidebarProps) {
6969
{/* Sidebar */}
7070
<div
7171
className={cn(
72-
"h-screen bg-gray-900 border-r border-dark flex flex-col shrink-0",
72+
"h-screen bg-gray-900 border-r border-gray-950 flex flex-col shrink-0",
7373
"transition-all duration-200 overflow-hidden relative z-[100]",
7474
collapsed ? "w-8" : "w-72",
7575
"max-md:fixed max-md:left-0 max-md:top-0 max-md:w-72 max-md:z-[1000]",

src/components/Messages/ChatBarrier/StreamingBarrier.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const StreamingBarrier: React.FC<StreamingBarrierProps> = ({
2424
<span className="text-assistant-border font-mono text-[11px] whitespace-nowrap select-none">
2525
~{tokenCount.toLocaleString()} tokens
2626
{tps !== undefined && tps > 0 && (
27-
<span className="text-gray-200-dim ml-1">@ {tps} t/s</span>
27+
<span className="text-gray-400 ml-1">@ {tps} t/s</span>
2828
)}
2929
</span>
3030
)}

src/components/Modal.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ export const ModalInfo: React.FC<{
5757
<div
5858
id={id}
5959
className={cn(
60-
"bg-gray-900 border border-gray-800-medium rounded p-3 mb-5 text-[13px]",
60+
"bg-gray-900 border border-gray-700 rounded p-3 mb-5 text-[13px]",
6161
"[&_p]:m-0 [&_p]:mb-2 [&_p]:text-gray-500 [&_p:last-child]:mb-0",
6262
"[&_code]:text-sky-600 [&_code]:font-mono",
6363
className
@@ -144,7 +144,7 @@ export const Button: React.FC<ButtonProps> = ({ children, className, ...props })
144144
export const CancelButton: React.FC<ButtonProps> = ({ children, className, ...props }) => (
145145
<Button
146146
className={cn(
147-
"bg-border-gray-700 text-gray-200 hover:bg-border-darker disabled:hover:bg-border-gray-700",
147+
"bg-gray-700 text-gray-200 hover:bg-gray-800 disabled:hover:bg-gray-700",
148148
className
149149
)}
150150
{...props}
@@ -155,7 +155,7 @@ export const CancelButton: React.FC<ButtonProps> = ({ children, className, ...pr
155155

156156
export const PrimaryButton: React.FC<ButtonProps> = ({ children, className, ...props }) => (
157157
<Button
158-
className={cn("bg-accent text-white hover:bg-accent-dark disabled:hover:bg-accent", className)}
158+
className={cn("bg-sky-600 text-white hover:bg-sky-700 disabled:hover:bg-sky-600", className)}
159159
{...props}
160160
>
161161
{children}

src/components/NewWorkspaceModal.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const NewWorkspaceModal: React.FC<NewWorkspaceModalProps> = ({
100100
describedById={infoId}
101101
>
102102
<form onSubmit={(event) => void handleSubmit(event)}>
103-
<div className="[&_input]:border-gray-800-medium [&_select]:border-gray-800-medium mb-5 [&_input]:w-full [&_input]:rounded [&_input]:border [&_input]:bg-gray-900 [&_input]:px-3 [&_input]:py-2 [&_input]:text-sm [&_input]:text-white [&_input]:focus:border-sky-600 [&_input]:focus:outline-none [&_input]:disabled:cursor-not-allowed [&_input]:disabled:opacity-60 [&_label]:mb-2 [&_label]:block [&_label]:text-sm [&_label]:text-gray-200 [&_option]:bg-gray-900 [&_option]:text-white [&_select]:w-full [&_select]:cursor-pointer [&_select]:rounded [&_select]:border [&_select]:bg-gray-900 [&_select]:px-3 [&_select]:py-2 [&_select]:text-sm [&_select]:text-white [&_select]:focus:border-sky-600 [&_select]:focus:outline-none [&_select]:disabled:cursor-not-allowed [&_select]:disabled:opacity-60">
103+
<div className="[&_input]:border-gray-700 [&_select]:border-gray-700 mb-5 [&_input]:w-full [&_input]:rounded [&_input]:border [&_input]:bg-gray-900 [&_input]:px-3 [&_input]:py-2 [&_input]:text-sm [&_input]:text-white [&_input]:focus:border-sky-600 [&_input]:focus:outline-none [&_input]:disabled:cursor-not-allowed [&_input]:disabled:opacity-60 [&_label]:mb-2 [&_label]:block [&_label]:text-sm [&_label]:text-gray-200 [&_option]:bg-gray-900 [&_option]:text-white [&_select]:w-full [&_select]:cursor-pointer [&_select]:rounded [&_select]:border [&_select]:bg-gray-900 [&_select]:px-3 [&_select]:py-2 [&_select]:text-sm [&_select]:text-white [&_select]:focus:border-sky-600 [&_select]:focus:outline-none [&_select]:disabled:cursor-not-allowed [&_select]:disabled:opacity-60">
104104
<label htmlFor="branchName">
105105
<TooltipWrapper inline>
106106
<span className="cursor-help underline decoration-[#666] decoration-dotted underline-offset-2">
@@ -137,7 +137,7 @@ const NewWorkspaceModal: React.FC<NewWorkspaceModalProps> = ({
137137
{error && <div className="text-danger-light mt-1.5 text-[13px]">{error}</div>}
138138
</div>
139139

140-
<div className="[&_input]:border-gray-800-medium [&_select]:border-gray-800-medium mb-5 [&_input]:w-full [&_input]:rounded [&_input]:border [&_input]:bg-gray-900 [&_input]:px-3 [&_input]:py-2 [&_input]:text-sm [&_input]:text-white [&_input]:focus:border-sky-600 [&_input]:focus:outline-none [&_input]:disabled:cursor-not-allowed [&_input]:disabled:opacity-60 [&_label]:mb-2 [&_label]:block [&_label]:text-sm [&_label]:text-gray-200 [&_option]:bg-gray-900 [&_option]:text-white [&_select]:w-full [&_select]:cursor-pointer [&_select]:rounded [&_select]:border [&_select]:bg-gray-900 [&_select]:px-3 [&_select]:py-2 [&_select]:text-sm [&_select]:text-white [&_select]:focus:border-sky-600 [&_select]:focus:outline-none [&_select]:disabled:cursor-not-allowed [&_select]:disabled:opacity-60">
140+
<div className="[&_input]:border-gray-700 [&_select]:border-gray-700 mb-5 [&_input]:w-full [&_input]:rounded [&_input]:border [&_input]:bg-gray-900 [&_input]:px-3 [&_input]:py-2 [&_input]:text-sm [&_input]:text-white [&_input]:focus:border-sky-600 [&_input]:focus:outline-none [&_input]:disabled:cursor-not-allowed [&_input]:disabled:opacity-60 [&_label]:mb-2 [&_label]:block [&_label]:text-sm [&_label]:text-gray-200 [&_option]:bg-gray-900 [&_option]:text-white [&_select]:w-full [&_select]:cursor-pointer [&_select]:rounded [&_select]:border [&_select]:bg-gray-900 [&_select]:px-3 [&_select]:py-2 [&_select]:text-sm [&_select]:text-white [&_select]:focus:border-sky-600 [&_select]:focus:outline-none [&_select]:disabled:cursor-not-allowed [&_select]:disabled:opacity-60">
141141
<label htmlFor="trunkBranch">Trunk Branch:</label>
142142
{hasBranches ? (
143143
<select

src/components/ProjectSidebar.tsx

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const DraggableProjectItemBase: React.FC<DraggableProjectItemProps> = ({
8080
className={cn(
8181
"py-1 px-3 flex items-center border-l-transparent transition-all duration-150 bg-gray-900",
8282
isDragging ? "cursor-grabbing opacity-40 [&_*]:!cursor-grabbing" : "cursor-grab",
83-
isOver && "bg-accent/[0.08]",
83+
isOver && "bg-sky-600/[0.08]",
8484
selected && "bg-gray-900 border-l-accent",
8585
"hover:bg-gray-900 hover:[&_button]:opacity-100 hover:[&_[data-drag-handle]]:opacity-100"
8686
)}
@@ -137,13 +137,13 @@ const ProjectDragLayer: React.FC = () => {
137137
<div className="pointer-events-none fixed inset-0 z-[9999] cursor-grabbing">
138138
<div style={{ transform: `translate(${currentOffset.x + 10}px, ${currentOffset.y + 10}px)` }}>
139139
<div className="border-l-accent flex w-fit max-w-72 min-w-44 items-center rounded border-l-[3px] bg-gray-900/95 px-3 py-1.5 text-gray-200 shadow-[0_6px_24px_rgba(0,0,0,0.4)]">
140-
<span className="text-gray-200-dim mr-1.5 text-xs"></span>
140+
<span className="text-gray-400 mr-1.5 text-xs"></span>
141141
<span className="mr-2 text-[10px] text-gray-500"></span>
142142
<div className="min-w-0 flex-1">
143143
<div className="truncate text-sm font-medium tracking-[0.2px] text-gray-200">
144144
{name}
145145
</div>
146-
<div className="text-gray-500-dark font-monospace mt-0.5 truncate text-[11px]">
146+
<div className="text-gray-600 font-monospace mt-0.5 truncate text-[11px]">
147147
{abbrevPath}
148148
</div>
149149
</div>
@@ -422,7 +422,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
422422
>
423423
{!collapsed && (
424424
<>
425-
<div className="border-dark flex items-center justify-between border-b bg-gray-900 p-4">
425+
<div className="border-gray-950 flex items-center justify-between border-b bg-gray-900 p-4">
426426
<h2 className="m-0 text-[13px] font-semibold tracking-[0.8px] text-gray-200 uppercase">
427427
Projects
428428
</h2>
@@ -445,7 +445,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
445445
<p className="mb-4 text-[13px] text-gray-500">No projects</p>
446446
<button
447447
onClick={onAddProject}
448-
className="bg-accent hover:bg-accent-dark cursor-pointer rounded border-none px-4 py-2 text-[13px] text-white transition-colors duration-200"
448+
className="bg-sky-600 hover:bg-sky-600-dark cursor-pointer rounded border-none px-4 py-2 text-[13px] text-white transition-colors duration-200"
449449
>
450450
Add Project
451451
</button>
@@ -482,7 +482,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
482482
<span
483483
data-drag-handle
484484
aria-hidden
485-
className="text-gray-200-dim mr-1.5 cursor-grab text-xs opacity-0 transition-opacity duration-150 select-none"
485+
className="text-gray-400 mr-1.5 cursor-grab text-xs opacity-0 transition-opacity duration-150 select-none"
486486
>
487487
488488
</span>
@@ -499,7 +499,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
499499
{projectName}
500500
</div>
501501
<TooltipWrapper inline>
502-
<div className="text-gray-500-dark font-monospace mt-px truncate text-[11px]">
502+
<div className="text-gray-600 font-monospace mt-px truncate text-[11px]">
503503
{abbreviatePath(projectPath)}
504504
</div>
505505
<Tooltip className="tooltip" align="left">
@@ -515,7 +515,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
515515
}}
516516
aria-label={`Manage secrets for ${projectName}`}
517517
data-project-path={projectPath}
518-
className="text-gray-500-dark hover:bg-accent/10 mr-1 flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-[3px] border-none bg-transparent text-sm opacity-0 transition-all duration-200 hover:text-sky-600"
518+
className="text-gray-600 hover:bg-sky-600/10 mr-1 flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-[3px] border-none bg-transparent text-sm opacity-0 transition-all duration-200 hover:text-sky-600"
519519
>
520520
🔑
521521
</button>
@@ -532,7 +532,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
532532
title="Remove project"
533533
aria-label={`Remove project ${projectName}`}
534534
data-project-path={projectPath}
535-
className="text-gray-500-dark hover:text-danger-light hover:bg-danger-light/10 flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-[3px] border-none bg-transparent text-base opacity-0 transition-all duration-200"
535+
className="text-gray-600 hover:text-danger-light hover:bg-danger-light/10 flex h-5 w-5 shrink-0 cursor-pointer items-center justify-center rounded-[3px] border-none bg-transparent text-base opacity-0 transition-all duration-200"
536536
>
537537
×
538538
</button>
@@ -549,7 +549,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
549549
onClick={() => onAddWorkspace(projectPath)}
550550
data-project-path={projectPath}
551551
aria-label={`Add workspace to ${projectName}`}
552-
className="border-gray-800-medium hover:border-gray-800-darker w-full cursor-pointer rounded border border-dashed bg-transparent px-3 py-1.5 text-left text-[13px] text-gray-500 transition-all duration-200 hover:bg-gray-900 hover:text-gray-200"
552+
className="border-gray-700 hover:border-gray-800-darker w-full cursor-pointer rounded border border-dashed bg-transparent px-3 py-1.5 text-left text-[13px] text-gray-500 transition-all duration-200 hover:bg-gray-900 hover:text-gray-200"
553553
>
554554
+ New Workspace
555555
{selectedWorkspace?.projectPath === projectPath &&
@@ -596,12 +596,12 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
596596
>
597597
<div className="flex items-center gap-1.5">
598598
<span>Older than {formatOldWorkspaceThreshold()}</span>
599-
<span className="text-gray-200-dim font-normal">
599+
<span className="text-gray-400 font-normal">
600600
({old.length})
601601
</span>
602602
</div>
603603
<span
604-
className="arrow text-gray-200-dim text-[11px] transition-transform duration-200 ease-in-out"
604+
className="arrow text-gray-400 text-[11px] transition-transform duration-200 ease-in-out"
605605
style={{
606606
transform: showOldWorkspaces
607607
? "rotate(90deg)"
@@ -629,7 +629,7 @@ const ProjectSidebarInner: React.FC<ProjectSidebarProps> = ({
629629
<TooltipWrapper inline>
630630
<button
631631
onClick={onToggleCollapsed}
632-
className="border-dark mt-auto flex h-9 w-full cursor-pointer items-center justify-center border-t border-none bg-transparent p-0 text-sm text-gray-500 transition-all duration-200 hover:bg-gray-900 hover:text-gray-200"
632+
className="border-gray-950 mt-auto flex h-9 w-full cursor-pointer items-center justify-center border-t border-none bg-transparent p-0 text-sm text-gray-500 transition-all duration-200 hover:bg-gray-900 hover:text-gray-200"
633633
>
634634
{collapsed ? "»" : "«"}
635635
</button>

src/components/RightSidebar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -211,8 +211,8 @@ const RightSidebarComponent: React.FC<RightSidebarProps> = ({
211211
<div
212212
className={cn(
213213
"w-1 flex-shrink-0 z-10 transition-[background] duration-150",
214-
"bg-border-gray-800 cursor-col-resize hover:bg-accent",
215-
isResizing && "bg-accent"
214+
"bg-border-gray-800 cursor-col-resize hover:bg-sky-600",
215+
isResizing && "bg-sky-600"
216216
)}
217217
onMouseDown={(e) => onStartResize(e as unknown as React.MouseEvent)}
218218
/>

0 commit comments

Comments
 (0)