forge
Explore
Log in

Don't you dare go Hollow

🎨 unify application chrome

Browse files at this commit

bf15d5b52920895e8e3910c72987db6eaad9a971Burak BoduroğluParent: cc2f8a5
  • style
    • 🎨 unify application chrome
Show full message
style(ui): 🎨 unify application chrome

- join table controls, headers, rows, and pagination in one surface

- strengthen top-bar control borders and highlight Celebi

- switch the browser favicon to orange
public/favicon.svgmodified+3 -3
@@ -1,5 +1,5 @@
1 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">1 <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64">
2- <rect width="64" height="64" rx="16" fill="#0f766e"/>2+ <rect width="64" height="64" rx="16" fill="#f97316"/>
3- <path fill="#fef3c7" d="M14 18h36v8H14zm4 12h28v18H18z"/>3+ <path fill="#fff7ed" d="M14 18h36v8H14zm4 12h28v18H18z"/>
4- <path fill="#0f766e" d="M24 34h16v4H24zm0 8h12v3H24z"/>4+ <path fill="#9a3412" d="M24 34h16v4H24zm0 8h12v3H24z"/>
5 </svg>5 </svg>
src/components/layout/celebi-thinking-label.test.tsxmodified+2 -2
@@ -8,7 +8,7 @@ test("shows the first thinking phrase immediately", () => {
8 <CelebiThinkingLabel />8 <CelebiThinkingLabel />
9 </PreferencesProvider>9 </PreferencesProvider>
10 ));10 ));
11- expect(screen.getByText("Çelebi is thinking…")).toBeInTheDocument();11+ expect(screen.getByText("Çelebi is thinking…")).toBeTruthy();
12 });12 });
13 13
14 test("rotates to the next phrase after the interval", () => {14 test("rotates to the next phrase after the interval", () => {
@@ -19,6 +19,6 @@ test("rotates to the next phrase after the interval", () => {
19 </PreferencesProvider>19 </PreferencesProvider>
20 ));20 ));
21 vi.advanceTimersByTime(1_800);21 vi.advanceTimersByTime(1_800);
22- expect(screen.getByText("Looking into it…")).toBeInTheDocument();22+ expect(screen.getByText("Looking into it…")).toBeTruthy();
23 vi.useRealTimers();23 vi.useRealTimers();
24 });24 });
src/components/ui/data-table.tsxmodified+6 -6
@@ -154,14 +154,14 @@ export function DataTable<TData, TValue = unknown>(props: DataTableProps<TData,
154 };154 };
155 155
156 return (156 return (
157- <>157+ <div class={cn("overflow-hidden rounded-xl border border-border/70 bg-card shadow-none dark:border-white/10 dark:bg-[#111111]", props.class)}>
158 <Show when={showHeader() || showToolbar()}>158 <Show when={showHeader() || showToolbar()}>
159- <div class="space-y-3">159+ <div class="space-y-3 border-b border-border/70 bg-muted/15 p-3 dark:border-white/10 dark:bg-white/3 sm:p-4">
160 <Show when={showHeader()}>160 <Show when={showHeader()}>
161 <div class="flex flex-wrap items-start justify-between gap-3">161 <div class="flex flex-wrap items-start justify-between gap-3">
162 <div class="min-w-0">162 <div class="min-w-0">
163 <Show when={props.title}>163 <Show when={props.title}>
164- <h2 class="truncate font-display text-2xl font-semibold tracking-tight text-foreground">{props.title}</h2>164+ <h2 class="truncate font-display text-lg font-semibold tracking-tight text-foreground">{props.title}</h2>
165 </Show>165 </Show>
166 <Show when={props.description}>166 <Show when={props.description}>
167 <p class="mt-1 text-sm text-muted-foreground">{props.description}</p>167 <p class="mt-1 text-sm text-muted-foreground">{props.description}</p>
@@ -215,7 +215,7 @@ export function DataTable<TData, TValue = unknown>(props: DataTableProps<TData,
215 </Show>215 </Show>
216 </div>216 </div>
217 </Show>217 </Show>
218- <DataTableFrame class={props.class}>218+ <DataTableFrame class="rounded-none border-0 bg-transparent dark:border-0 dark:bg-transparent">
219 <Table class={cn("data-table", props.tableClass)}>219 <Table class={cn("data-table", props.tableClass)}>
220 <TableHeader>220 <TableHeader>
221 <For each={table.getHeaderGroups()}>221 <For each={table.getHeaderGroups()}>
@@ -278,7 +278,7 @@ export function DataTable<TData, TValue = unknown>(props: DataTableProps<TData,
278 </Table>278 </Table>
279 </DataTableFrame>279 </DataTableFrame>
280 <Show when={props.enablePagination && pageCount() > 1}>280 <Show when={props.enablePagination && pageCount() > 1}>
281- <div class="flex items-center justify-end gap-2 py-3">281+ <div class="flex items-center justify-end gap-2 border-t border-border/70 bg-muted/10 p-3 dark:border-white/10">
282 <span class="mr-auto text-xs font-medium tabular-nums text-muted-foreground">282 <span class="mr-auto text-xs font-medium tabular-nums text-muted-foreground">
283 {t("common.pageOf", { page: pageIndex() + 1, total: pageCount() })}283 {t("common.pageOf", { page: pageIndex() + 1, total: pageCount() })}
284 </span>284 </span>
@@ -290,7 +290,7 @@ export function DataTable<TData, TValue = unknown>(props: DataTableProps<TData,
290 </Button>290 </Button>
291 </div>291 </div>
292 </Show>292 </Show>
293- </>293+ </div>
294 );294 );
295 }295 }
296 296
src/index.cssmodified+11 -3
@@ -152,6 +152,14 @@
152 @apply focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/60 focus-visible:ring-offset-2 focus-visible:ring-offset-background;152 @apply focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-primary/60 focus-visible:ring-offset-2 focus-visible:ring-offset-background;
153 }153 }
154 154
155+@utility topbar-control {
156+ @apply border border-black/12 bg-card text-muted-foreground shadow-xs transition-colors hover:border-black/25 hover:bg-muted hover:text-foreground dark:border-white/16 dark:bg-[#141414] dark:hover:border-white/28 dark:hover:bg-white/8;
157+}
158+
159+@utility topbar-ai-control {
160+ @apply border border-orange-400/70 bg-orange-50 text-orange-700 shadow-[0_2px_10px_rgba(249,115,22,0.18)] transition-all hover:border-orange-500 hover:bg-orange-100 hover:text-orange-800 dark:border-orange-400/60 dark:bg-orange-500/14 dark:text-orange-300 dark:hover:border-orange-300 dark:hover:bg-orange-500/22;
161+}
162+
155 @utility data-shell {163 @utility data-shell {
156 @apply rounded-2xl border border-[#F2F2F3] dark:border-white/8 bg-card shadow-[0_4px_20px_rgb(0,0,0,0.03)] dark:shadow-[inset_0_1px_0_0_rgba(255,255,255,0.06),0_8px_32px_rgba(0,0,0,0.5)];164 @apply rounded-2xl border border-[#F2F2F3] dark:border-white/8 bg-card shadow-[0_4px_20px_rgb(0,0,0,0.03)] dark:shadow-[inset_0_1px_0_0_rgba(255,255,255,0.06),0_8px_32px_rgba(0,0,0,0.5)];
157 }165 }
@@ -164,15 +172,15 @@
164 @apply w-full caption-bottom text-sm;172 @apply w-full caption-bottom text-sm;
165 173
166 & thead {174 & thead {
167- @apply sticky top-0 z-10 border-b border-border bg-background text-muted-foreground dark:border-white/10 dark:bg-[#050505];175+ @apply sticky top-0 z-10 border-b border-border/70 bg-muted/45 text-muted-foreground dark:border-white/10 dark:bg-[#1a1a1a] dark:text-white/65;
168 }176 }
169 177
170 & th {178 & th {
171- @apply h-12 overflow-hidden text-ellipsis whitespace-nowrap border-r border-border/70 px-4 text-left text-sm font-semibold text-muted-foreground last:border-r-0 dark:border-white/10 dark:text-white/70;179+ @apply h-11 overflow-hidden text-ellipsis whitespace-nowrap border-r border-border/70 px-4 text-left text-xs font-semibold tracking-wide text-muted-foreground last:border-r-0 dark:border-white/10 dark:text-white/65;
172 }180 }
173 181
174 & td {182 & td {
175- @apply h-[3.2rem] whitespace-nowrap border-r border-border/60 px-4 py-2.5 align-middle text-sm font-medium last:border-r-0 dark:border-white/8;183+ @apply h-[3.2rem] whitespace-nowrap border-r border-border/60 px-4 py-2.5 align-middle text-sm font-normal text-foreground last:border-r-0 dark:border-white/8 dark:text-white/90;
176 }184 }
177 185
178 & tbody tr {186 & tbody tr {