Skip to content

Commit 5e4983d

Browse files
committed
Lighten background from neutral-950 to neutral-900
Original used hsl(0 0% 12%) (~#1f1f1f, 12% lightness) neutral-950 is too dark (~5% lightness) neutral-900 (~15% lightness) is closer to original
1 parent 4092c89 commit 5e4983d

25 files changed

+39
-39
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -662,7 +662,7 @@ function AppInner() {
662662

663663
return (
664664
<>
665-
<div className="flex h-screen overflow-hidden bg-neutral-950 [@media(max-width:768px)]:flex-col">
665+
<div className="flex h-screen overflow-hidden bg-neutral-900 [@media(max-width:768px)]:flex-col">
666666
<LeftSidebar
667667
projects={projects}
668668
workspaceMetadata={workspaceMetadata}

src/components/AIView.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ const AIViewInner: React.FC<AIViewProps> = ({
245245
return (
246246
<div
247247
className={cn(
248-
"flex flex-1 flex-row bg-neutral-950 text-neutral-300 overflow-x-auto overflow-y-hidden [@media(max-width:768px)]:flex-col",
248+
"flex flex-1 flex-row bg-neutral-900 text-neutral-300 overflow-x-auto overflow-y-hidden [@media(max-width:768px)]:flex-col",
249249
className
250250
)}
251251
style={{ containerType: "inline-size" }}
@@ -286,7 +286,7 @@ const AIViewInner: React.FC<AIViewProps> = ({
286286
return (
287287
<div
288288
className={cn(
289-
"flex flex-1 flex-row bg-neutral-950 text-neutral-300 overflow-x-auto overflow-y-hidden [@media(max-width:768px)]:flex-col",
289+
"flex flex-1 flex-row bg-neutral-900 text-neutral-300 overflow-x-auto overflow-y-hidden [@media(max-width:768px)]:flex-col",
290290
className
291291
)}
292292
style={{ containerType: "inline-size" }}
@@ -302,7 +302,7 @@ const AIViewInner: React.FC<AIViewProps> = ({
302302
return (
303303
<div
304304
className={cn(
305-
"flex flex-1 flex-row bg-neutral-950 text-neutral-300 overflow-x-auto overflow-y-hidden [@media(max-width:768px)]:flex-col",
305+
"flex flex-1 flex-row bg-neutral-900 text-neutral-300 overflow-x-auto overflow-y-hidden [@media(max-width:768px)]:flex-col",
306306
className
307307
)}
308308
style={{ containerType: "inline-size" }}
@@ -320,7 +320,7 @@ const AIViewInner: React.FC<AIViewProps> = ({
320320
return (
321321
<div
322322
className={cn(
323-
"flex flex-1 flex-row bg-neutral-950 text-neutral-300 overflow-x-auto overflow-y-hidden [@media(max-width:768px)]:flex-col",
323+
"flex flex-1 flex-row bg-neutral-900 text-neutral-300 overflow-x-auto overflow-y-hidden [@media(max-width:768px)]:flex-col",
324324
className
325325
)}
326326
style={{ containerType: "inline-size" }}

src/components/ChatInputToast.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export const ChatInputToast: React.FC<ChatInputToastProps> = ({ toast, onDismiss
7373
{toast.title && <div className="mb-1.5 font-semibold">{toast.title}</div>}
7474
<div className="mt-1.5 leading-[1.4] text-neutral-300">{toast.message}</div>
7575
{toast.solution && (
76-
<div className="font-monospace text-code-type mt-2 rounded bg-neutral-950 px-2 py-1.5 text-[11px]">
76+
<div className="font-monospace text-code-type mt-2 rounded bg-neutral-900 px-2 py-1.5 text-[11px]">
7777
{toast.solution}
7878
</div>
7979
)}

src/components/CommandPalette.stories.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,8 @@ type Story = StoryObj<typeof meta>;
174174

175175
export const Default: Story = {
176176
render: () => (
177-
<div className="flex min-h-[600px] flex-col gap-5 bg-neutral-950 p-5">
178-
<div className="font-primary [&_kbd]:font-monospace rounded border border-neutral-800 bg-neutral-900 p-4 text-[13px] leading-[1.6] text-neutral-300 [&_kbd]:rounded-[3px] [&_kbd]:border [&_kbd]:border-neutral-800 [&_kbd]:bg-neutral-950 [&_kbd]:px-1.5 [&_kbd]:py-0.5 [&_kbd]:text-[11px]">
177+
<div className="flex min-h-[600px] flex-col gap-5 bg-neutral-900 p-5">
178+
<div className="font-primary [&_kbd]:font-monospace rounded border border-neutral-800 bg-neutral-900 p-4 text-[13px] leading-[1.6] text-neutral-300 [&_kbd]:rounded-[3px] [&_kbd]:border [&_kbd]:border-neutral-800 [&_kbd]:bg-neutral-900 [&_kbd]:px-1.5 [&_kbd]:py-0.5 [&_kbd]:text-[11px]">
179179
<strong>Command Palette</strong>
180180
<br />
181181
<br />

src/components/CommandPalette.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ export const CommandPalette: React.FC<CommandPaletteProps> = ({ getSlashContext
369369
shouldFilter={shouldUseCmdkFilter}
370370
>
371371
<Command.Input
372-
className="w-full border-b border-none border-neutral-900 bg-neutral-950 px-3.5 py-3 text-sm text-neutral-100 outline-none"
372+
className="w-full border-b border-none border-neutral-900 bg-neutral-900 px-3.5 py-3 text-sm text-neutral-100 outline-none"
373373
value={query}
374374
onValueChange={handleQueryChange}
375375
placeholder={

src/components/CommandSuggestions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ export const CommandSuggestions: React.FC<CommandSuggestionsProps> = ({
114114
</div>
115115
</div>
116116
))}
117-
<div className="shrink-0 border-t border-neutral-800 bg-neutral-950 px-2.5 py-1 text-center text-[10px] text-neutral-400 [&_span]:font-medium [&_span]:text-neutral-400">
117+
<div className="shrink-0 border-t border-neutral-800 bg-neutral-900 px-2.5 py-1 text-center text-[10px] text-neutral-400 [&_span]:font-medium [&_span]:text-neutral-400">
118118
<span>Tab</span> to complete • <span>↑↓</span> to navigate • <span>Esc</span> to dismiss
119119
</div>
120120
</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="relative m-0 h-[11px] w-3 cursor-pointer appearance-none rounded-sm border border-neutral-800 bg-neutral-950 checked:border-sky-600 checked:bg-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="relative m-0 h-[11px] w-3 cursor-pointer appearance-none rounded-sm border border-neutral-800 bg-neutral-900 checked:border-sky-600 checked:bg-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/ErrorBoundary.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export class ErrorBoundary extends Component<Props, State> {
4242
}
4343

4444
return (
45-
<div className="bg-error-bg-neutral-950 border-danger-soft text-danger-soft m-5 rounded border p-5">
45+
<div className="bg-error-bg-neutral-900 border-danger-soft text-danger-soft m-5 rounded border p-5">
4646
<h3 className="m-0 mb-2.5 text-base">
4747
Something went wrong{this.props.workspaceInfo && ` in ${this.props.workspaceInfo}`}
4848
</h3>

src/components/ImageAttachments.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const ImageAttachments: React.FC<ImageAttachmentsProps> = ({ images, onRe
1919
{images.map((image) => (
2020
<div
2121
key={image.id}
22-
className="relative h-20 w-20 overflow-hidden rounded border border-neutral-800 bg-neutral-950"
22+
className="relative h-20 w-20 overflow-hidden rounded border border-neutral-800 bg-neutral-900"
2323
>
2424
<img src={image.url} alt="Attached image" className="h-full w-full object-cover" />
2525
<button

src/components/KebabMenu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const KebabMenu: React.FC<KebabMenuProps> = ({ items, className }) => {
9898
createPortal(
9999
<div
100100
ref={menuRef}
101-
className="fixed z-[10000] min-w-40 overflow-hidden rounded-[3px] border border-neutral-800 bg-neutral-950 shadow-[0_4px_16px_rgba(0,0,0,0.8)]"
101+
className="fixed z-[10000] min-w-40 overflow-hidden rounded-[3px] border border-neutral-800 bg-neutral-900 shadow-[0_4px_16px_rgba(0,0,0,0.8)]"
102102
style={{
103103
top: `${dropdownPosition.top}px`,
104104
left: `${dropdownPosition.left}px`,
@@ -113,10 +113,10 @@ export const KebabMenu: React.FC<KebabMenuProps> = ({ items, className }) => {
113113
"w-full border-none border-b border-modal-bg text-xs py-2 px-3 text-left transition-all duration-150 font-primary flex items-center gap-2",
114114
"last:border-b-0",
115115
item.disabled
116-
? "bg-neutral-950 text-neutral-400-light cursor-not-allowed opacity-50 hover:bg-neutral-950 hover:text-neutral-400-light"
116+
? "bg-neutral-900 text-neutral-400-light cursor-not-allowed opacity-50 hover:bg-neutral-900 hover:text-neutral-400-light"
117117
: item.active
118118
? "bg-white/15 text-neutral-300 cursor-pointer hover:bg-white/15 hover:text-white"
119-
: "bg-neutral-950 text-neutral-300 cursor-pointer hover:bg-white/15 hover:text-white"
119+
: "bg-neutral-900 text-neutral-300 cursor-pointer hover:bg-white/15 hover:text-white"
120120
)}
121121
>
122122
{item.emoji && (

0 commit comments

Comments
 (0)