Pure black dark theme

This commit is contained in:
Theo Browne committed 2026-07-16 17:34:19 -07:00
1 parent fc5065c2f1
commit 70d022da5d
7 files changed
+36 -37

No files matched your search

+5 -5
View File
@@ -7,14 +7,14 @@
content="width=device-width, initial-scale=1.0, viewport-fit=cover, interactive-widget=resizes-content"
/>
<meta name="theme-color" content="#ffffff" media="(prefers-color-scheme: light)" />
<meta name="theme-color" content="#161616" media="(prefers-color-scheme: dark)" />
<meta name="theme-color" content="#161616" />
<meta name="theme-color" content="#000000" media="(prefers-color-scheme: dark)" />
<meta name="theme-color" content="#000000" />
<link rel="icon" href="/favicon.ico" sizes="48x48" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png" />
<script>
(() => {
const LIGHT_BACKGROUND = "#ffffff";
const DARK_BACKGROUND = "#161616";
const DARK_BACKGROUND = "#000000";
const themeColorMeta = document.querySelector('meta[name="theme-color"]');
try {
const storedTheme = window.localStorage.getItem("t3code:theme");
@@ -58,8 +58,8 @@
}
html.dark body {
background: #161616;
color: #f5f5f5;
background: #000000;
color: #edeff4;
}
#boot-shell {
+3 -4
View File
@@ -91,11 +91,10 @@ export function AppSidebarLayout({ children }: { children: ReactNode }) {
side="left"
collapsible="offcanvas"
className={
// v2 is a darker, higher-contrast panel: it sits below the main
// surface instead of matching it, so its bordered cards read as
// raised blocks.
// v2 is a raised panel against the pure-black canvas: its card
// surface lets the bordered thread cards read as set into it.
useSidebarV2
? "border-r border-black/15 bg-neutral-100 text-foreground dark:border-white/10 dark:bg-neutral-950"
? "border-r border-black/15 bg-neutral-100 text-foreground dark:border-white/10 dark:bg-card"
: "border-r border-border bg-card text-foreground"
}
resizable={{
@@ -125,7 +125,7 @@ function normalizeComputedColor(value: string | null | undefined, fallback: stri
function terminalThemeFromApp(mountElement?: HTMLElement | null): ITheme {
const isDark = document.documentElement.classList.contains("dark");
const fallbackBackground = isDark ? "rgb(14, 18, 24)" : "rgb(255, 255, 255)";
const fallbackBackground = isDark ? "rgb(0, 0, 0)" : "rgb(255, 255, 255)";
const fallbackForeground = isDark ? "rgb(237, 241, 247)" : "rgb(28, 33, 41)";
const drawerSurface =
mountElement?.closest(".thread-terminal-drawer") ??
@@ -2049,7 +2049,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
>
<div
className={cn(
"group rounded-[13px] p-px transition-colors duration-200",
"group rounded-[20px] p-px transition-colors duration-200",
composerProviderState.composerFrameClassName,
)}
onDragEnter={onComposerDragEnter}
@@ -2061,7 +2061,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
ref={composerSurfaceRef}
data-chat-composer-mobile-collapsed={isComposerCollapsedMobile ? "true" : "false"}
className={cn(
"chat-composer-glass rounded-[12px] border transition-colors duration-200 has-focus-visible:border-foreground/40",
"chat-composer-glass rounded-[19px] border transition-colors duration-200 has-focus-visible:border-foreground/40",
isDragOverComposer
? "border-primary/70 bg-accent/45"
: "border-black/12 dark:border-white/12",
@@ -2089,14 +2089,14 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
>
{!isComposerCollapsedMobile &&
(activePendingApproval ? (
<div className="rounded-t-[11px] border-b border-border/65 bg-muted/20">
<div className="rounded-t-[18px] border-b border-border/65 bg-muted/20">
<ComposerPendingApprovalPanel
approval={activePendingApproval}
pendingCount={pendingApprovals.length}
/>
</div>
) : pendingUserInputs.length > 0 ? (
<div className="rounded-t-[11px] border-b border-border/65 bg-muted/20">
<div className="rounded-t-[18px] border-b border-border/65 bg-muted/20">
<ComposerPendingUserInputPanel
pendingUserInputs={pendingUserInputs}
respondingRequestIds={respondingRequestIds}
@@ -2107,7 +2107,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
/>
</div>
) : showPlanFollowUpPrompt && activeProposedPlan ? (
<div className="rounded-t-[11px] border-b border-border/65 bg-muted/20">
<div className="rounded-t-[18px] border-b border-border/65 bg-muted/20">
<ComposerPlanFollowUpBanner
key={activeProposedPlan.id}
planTitle={proposedPlanTitle(activeProposedPlan.planMarkdown) ?? null}
@@ -2117,7 +2117,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
{isComposerCollapsedMobile && activePendingApproval ? (
<div
className="rounded-t-[11px] border-b border-border/65 bg-muted/20"
className="rounded-t-[18px] border-b border-border/65 bg-muted/20"
data-chat-composer-collapsed-controls="true"
>
<ComposerPendingApprovalPanel
@@ -2134,7 +2134,7 @@ export const ChatComposer = memo(function ChatComposer(props: ChatComposerProps)
</div>
) : isComposerCollapsedMobile && pendingUserInputs.length > 0 ? (
<div
className="rounded-t-[11px] border-b border-border/65 bg-muted/20"
className="rounded-t-[18px] border-b border-border/65 bg-muted/20"
data-chat-composer-collapsed-controls="true"
>
<ComposerPendingUserInputPanel
@@ -171,7 +171,7 @@ export const ComposerPrimaryActions = memo(function ComposerPrimaryActions({
<Button
size="sm"
variant="default"
className="h-9 rounded-l-none rounded-r-full border-l-white/12 px-2 sm:h-8"
className="h-9 rounded-l-none rounded-r-full border-l-white/12 px-2 sm:h-8 dark:border-l-black/15"
aria-label="Implementation actions"
{...pointerFocusProps}
disabled={isSendBusy || isConnecting || isEnvironmentUnavailable}
@@ -849,7 +849,7 @@ function UserTimelineRow({ row }: { row: Extract<TimelineRow, { kind: "message"
return (
<div className="group flex flex-col items-end gap-1">
<div className="relative max-w-[80%] rounded-2xl border border-border bg-secondary p-3">
<div className="relative max-w-[80%] rounded-2xl border border-border bg-secondary p-3 dark:border-transparent dark:bg-white/[0.09]">
{regularImages.length > 0 && (
<div className="mb-2 grid max-w-[420px] grid-cols-2 gap-2">
{regularImages.map((image: NonNullable<TimelineMessage["attachments"]>[number]) => (
+18 -18
View File
@@ -210,7 +210,7 @@
}
.dark .chat-composer-glass {
background: color-mix(in srgb, var(--card) 45%, transparent);
background: color-mix(in srgb, var(--card) 82%, transparent);
}
.dark .chat-composer-lower-chrome {
@@ -313,25 +313,25 @@
@variant dark {
color-scheme: dark;
--background: color-mix(in srgb, var(--color-neutral-950) 95%, var(--color-white));
--background: var(--color-black);
--app-chrome-background: var(--background);
--foreground: var(--color-neutral-100);
--card: color-mix(in srgb, var(--background) 98%, var(--color-white));
--card-foreground: var(--color-neutral-100);
--popover: color-mix(in srgb, var(--background) 98%, var(--color-white));
--popover-foreground: var(--color-neutral-100);
--primary: oklch(0.588 0.217 264);
--primary-foreground: var(--color-white);
--secondary: --alpha(var(--color-white) / 4%);
--secondary-foreground: var(--color-neutral-100);
--muted: --alpha(var(--color-white) / 4%);
--muted-foreground: color-mix(in srgb, var(--color-neutral-500) 90%, var(--color-white));
--accent: --alpha(var(--color-white) / 4%);
--accent-foreground: var(--color-neutral-100);
--foreground: oklch(0.94 0.005 264);
--card: oklch(0.175 0.008 264);
--card-foreground: oklch(0.94 0.005 264);
--popover: oklch(0.2 0.008 264);
--popover-foreground: oklch(0.94 0.005 264);
--primary: oklch(0.95 0.005 264);
--primary-foreground: oklch(0.16 0.008 264);
--secondary: --alpha(var(--color-white) / 5%);
--secondary-foreground: oklch(0.94 0.005 264);
--muted: --alpha(var(--color-white) / 5%);
--muted-foreground: oklch(0.65 0.01 264);
--accent: --alpha(var(--color-white) / 7%);
--accent-foreground: oklch(0.94 0.005 264);
--destructive: color-mix(in srgb, var(--color-red-500) 90%, var(--color-white));
--border: --alpha(var(--color-white) / 6%);
--input: --alpha(var(--color-white) / 8%);
--ring: oklch(0.588 0.217 264);
--border: --alpha(var(--color-white) / 8%);
--input: --alpha(var(--color-white) / 10%);
--ring: --alpha(var(--color-white) / 55%);
--destructive-foreground: var(--color-red-400);
--info: var(--color-blue-500);
--info-foreground: var(--color-blue-400);