AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
Use Evernote green brand variables
tianmae7ab2781799e
diff --git a/apps/web/src/components/AssetsPane.tsx b/apps/web/src/components/AssetsPane.tsxindex 280eb048..4fe3f1b4 100644--- a/apps/web/src/components/AssetsPane.tsx+++ b/apps/web/src/components/AssetsPane.tsx@@ -81,16 +81,16 @@ export const AssetsPane = ({ onClose }: AssetsPaneProps) => {{resources.map((resource) => (<akey={resource.id}- className="group relative flex min-h-16 items-center gap-3.5 rounded-xl border border-slate-200/80 bg-white p-3.5 text-left transition-all duration-200 hover:border-[#627f58]/35 hover:shadow-[0_8px_20px_-4px_rgba(98,127,88,0.06)]"+ className="group relative flex min-h-16 items-center gap-3.5 rounded-xl border border-slate-200/80 bg-white p-3.5 text-left transition-all duration-200 hover:border-emerald-500/35 hover:shadow-[0_8px_20px_-4px_rgb(var(--brand-green-rgb)/0.06)]"href={resource.url}target="_blank"rel="noreferrer">- <span className="flex h-11 w-11 shrink-0 items-center justify-center rounded-lg border border-slate-100 bg-slate-50/50 text-[#627f58] transition-colors group-hover:bg-[#f3f7f1]/60 group-hover:border-[#627f58]/20">+ <span className="flex h-11 w-11 shrink-0 items-center justify-center rounded-lg border border-slate-100 bg-slate-50/50 text-emerald-500 transition-colors group-hover:bg-emerald-50/60 group-hover:border-emerald-500/20">{resource.kind === "image" ? <ImageIcon className="h-5 w-5" /> : <FileIcon className="h-5 w-5" />}</span><span className="min-w-0 flex-1">- <span className="block truncate text-sm font-bold text-slate-800 leading-snug group-hover:text-[#526d49] transition-colors">+ <span className="block truncate text-sm font-bold text-slate-800 leading-snug group-hover:text-emerald-700 transition-colors">{resource.filename || resource.id}</span><span className="mt-1.5 block truncate text-[11px] font-medium text-slate-400">diff --git a/apps/web/src/components/EditorPane.tsx b/apps/web/src/components/EditorPane.tsxindex e2e7cb1a..131e58b1 100644--- a/apps/web/src/components/EditorPane.tsx+++ b/apps/web/src/components/EditorPane.tsx@@ -196,7 +196,7 @@ const MobileNotebookSelectSheet = ({key={option.id}className={cn("h-12 px-3 text-base",- selected ? "bg-[#f3f7f1] font-semibold text-[#526d49] data-[selected=true]:bg-[#f3f7f1]" : "text-slate-700"+ selected ? "bg-emerald-50 font-semibold text-emerald-700 data-[selected=true]:bg-emerald-50" : "text-slate-700")}style={{ paddingLeft: `${12 + option.depth * 18}px` }}value={option.id}@@ -1078,7 +1078,7 @@ export const EditorPane = ({persistCurrentDraft(event.target.value, tagsText);markDirty();}}- className="block w-full rounded-md border-0 bg-transparent text-2xl font-bold leading-tight text-slate-950 outline-none transition placeholder:text-slate-300 focus-visible:bg-slate-50 focus-visible:shadow-[inset_3px_0_0_#627f58] sm:text-3xl"+ className="block w-full rounded-md border-0 bg-transparent text-2xl font-bold leading-tight text-slate-950 outline-none transition placeholder:text-slate-300 focus-visible:bg-slate-50 focus-visible:shadow-[inset_3px_0_0_var(--brand-green)] sm:text-3xl"placeholder={DEFAULT_MEMO_TITLE}/><label className="flex h-8 items-center gap-2 rounded-md border border-transparent px-2 text-sm text-slate-500 transition focus-within:border-slate-200 focus-within:bg-slate-50 focus-within:ring-2 focus-within:ring-emerald-500/15">diff --git a/apps/web/src/components/LoginScreen.tsx b/apps/web/src/components/LoginScreen.tsxindex 29cdcb71..c73dee7b 100644--- a/apps/web/src/components/LoginScreen.tsx+++ b/apps/web/src/components/LoginScreen.tsx@@ -25,14 +25,14 @@ export const LoginScreen = ({ error, isSubmitting, onSubmit }: LoginScreenProps)};return (- <main className="flex h-[100dvh] items-center justify-center bg-gradient-to-tr from-emerald-50/70 via-[#f6faf7] to-[#ebf3ee] px-4 py-8 text-slate-950">- <div className="absolute inset-0 bg-[radial-gradient(circle_at_top_right,rgba(98,127,88,0.06),transparent_45%)] pointer-events-none" />- <div className="absolute inset-0 bg-[radial-gradient(circle_at_bottom_left,rgba(98,127,88,0.04),transparent_55%)] pointer-events-none" />- <GitHubRepositoryLink className="absolute right-4 top-[max(1rem,env(safe-area-inset-top))] z-10 h-10 w-10 justify-center rounded-full border border-slate-200 bg-white/85 text-slate-600 shadow-sm backdrop-blur transition hover:bg-white hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#627f58]/70" iconClassName="h-5 w-5" />+ <main className="flex h-[100dvh] items-center justify-center bg-gradient-to-tr from-emerald-50/70 via-emerald-50 to-emerald-100 px-4 py-8 text-slate-950">+ <div className="absolute inset-0 bg-[radial-gradient(circle_at_top_right,rgb(var(--brand-green-rgb)/0.06),transparent_45%)] pointer-events-none" />+ <div className="absolute inset-0 bg-[radial-gradient(circle_at_bottom_left,rgb(var(--brand-green-rgb)/0.04),transparent_55%)] pointer-events-none" />+ <GitHubRepositoryLink className="absolute right-4 top-[max(1rem,env(safe-area-inset-top))] z-10 h-10 w-10 justify-center rounded-full border border-slate-200 bg-white/85 text-slate-600 shadow-sm backdrop-blur transition hover:bg-white hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70" iconClassName="h-5 w-5" />- <section className="relative w-full max-w-[400px] rounded-2xl border border-[#627f58]/12 bg-white/95 p-8 shadow-[0_20px_50px_rgba(98,127,88,0.08)] backdrop-blur-md transition-all duration-300 hover:shadow-[0_24px_60px_rgba(98,127,88,0.12)]">+ <section className="relative w-full max-w-[400px] rounded-2xl border border-emerald-500/15 bg-white/95 p-8 shadow-[0_20px_50px_rgb(var(--brand-green-rgb)/0.08)] backdrop-blur-md transition-all duration-300 hover:shadow-[0_24px_60px_rgb(var(--brand-green-rgb)/0.12)]"><div className="mb-8 flex items-center gap-4">- <div className="flex h-12 w-12 items-center justify-center rounded-xl bg-gradient-to-br from-emerald-500 to-[#627f58] text-white shadow-[0_8px_16px_-4px_rgba(98,127,88,0.35)]">+ <div className="flex h-12 w-12 items-center justify-center rounded-xl bg-gradient-to-br from-emerald-500 to-emerald-600 text-white shadow-[0_8px_16px_-4px_rgb(var(--brand-green-rgb)/0.35)]"><LockKeyhole className="h-5.5 w-5.5" /></div><div className="min-w-0">@@ -46,7 +46,7 @@ export const LoginScreen = ({ error, isSubmitting, onSubmit }: LoginScreenProps)<span className="mb-2 block text-sm font-semibold text-slate-700">账号</span><InputautoComplete="username"- className="h-11 rounded-lg bg-slate-50/50 px-3.5 focus-visible:bg-white focus-visible:ring-4 focus-visible:ring-[#627f58]/10"+ className="h-11 rounded-lg bg-slate-50/50 px-3.5 focus-visible:bg-white focus-visible:ring-4 focus-visible:ring-emerald-500/10"value={username}onChange={(event) => setUsername(event.target.value)}/>@@ -56,7 +56,7 @@ export const LoginScreen = ({ error, isSubmitting, onSubmit }: LoginScreenProps)<span className="mb-2 block text-sm font-semibold text-slate-700">密码</span><InputautoComplete="current-password"- className="h-11 rounded-lg bg-slate-50/50 px-3.5 focus-visible:bg-white focus-visible:ring-4 focus-visible:ring-[#627f58]/10"+ className="h-11 rounded-lg bg-slate-50/50 px-3.5 focus-visible:bg-white focus-visible:ring-4 focus-visible:ring-emerald-500/10"type="password"value={password}onChange={(event) => setPassword(event.target.value)}@@ -70,7 +70,7 @@ export const LoginScreen = ({ error, isSubmitting, onSubmit }: LoginScreenProps))}<Button- className="w-full h-11 justify-center rounded-lg bg-[#627f58] hover:bg-[#526d49] text-white font-semibold transition-all duration-200 shadow-[0_8px_20px_-4px_rgba(98,127,88,0.25)] hover:shadow-[0_12px_24px_-4px_rgba(98,127,88,0.35)]"+ className="w-full h-11 justify-center rounded-lg bg-emerald-500 hover:bg-emerald-600 text-white font-semibold transition-all duration-200 shadow-[0_8px_20px_-4px_rgb(var(--brand-green-rgb)/0.25)] hover:shadow-[0_12px_24px_-4px_rgb(var(--brand-green-rgb)/0.35)]"size="md"type="submit"variant="solid"diff --git a/apps/web/src/components/MemoCard.tsx b/apps/web/src/components/MemoCard.tsxindex 9c23bbea..60beb2a0 100644--- a/apps/web/src/components/MemoCard.tsx+++ b/apps/web/src/components/MemoCard.tsx@@ -309,7 +309,7 @@ export const MemoCard = ({!selectionMode && selected? "lg:bg-slate-100": checked- ? "bg-[#f3f7f1] ring-1 ring-[#cbd9c4] lg:bg-slate-100 lg:ring-0"+ ? "bg-emerald-50 ring-1 ring-emerald-200 lg:bg-slate-100 lg:ring-0": "active:bg-slate-50 lg:hover:bg-slate-50")}>@@ -330,7 +330,7 @@ export const MemoCard = ({className={cn("flex h-8 w-8 items-center justify-center rounded-full border transition-all duration-150",checked- ? "border-[#627f58] bg-[#627f58] text-white shadow-[0_4px_10px_rgba(98,127,88,0.22)]"+ ? "border-emerald-500 bg-emerald-500 text-white shadow-[0_4px_10px_rgb(var(--brand-green-rgb)/0.22)]": "border-slate-300 bg-white text-transparent")}aria-hidden="true"@@ -341,7 +341,7 @@ export const MemoCard = ({)}<buttonclassName={cn(- "min-w-0 flex-1 px-4 py-4 text-left touch-pan-y focus-visible:bg-slate-50 focus-visible:shadow-[inset_3px_0_0_#627f58] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-emerald-500/60 [-webkit-touch-callout:none] lg:py-4 transition-all duration-200",+ "min-w-0 flex-1 px-4 py-4 text-left touch-pan-y focus-visible:bg-slate-50 focus-visible:shadow-[inset_3px_0_0_var(--brand-green)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-emerald-500/60 [-webkit-touch-callout:none] lg:py-4 transition-all duration-200",listDensity === "compact" && "py-3",showSelectionControl && "pl-3 lg:pl-3",!isTrashView && !multiSelectKeyDown && "lg:cursor-grab lg:active:cursor-grabbing",@@ -362,7 +362,7 @@ export const MemoCard = ({title="Ctrl/Cmd 点击切换选择,Shift 点击连续选择,可拖到左侧笔记本移动,移动端长按进入选择"><div className={cn("mb-2 flex min-w-0 items-center gap-1.5 text-base font-semibold leading-6 text-slate-900 lg:text-base", listDensity === "compact" && "mb-1")}>- {memo.isPinned && <Star className="h-4 w-4 shrink-0 fill-current text-[#627f58]" />}+ {memo.isPinned && <Star className="h-4 w-4 shrink-0 fill-current text-emerald-500" />}<span className="min-w-0 truncate">{memoTitle}</span></div><divdiff --git a/apps/web/src/components/MemoListPane.tsx b/apps/web/src/components/MemoListPane.tsxindex eb3649cd..a3e45321 100644--- a/apps/web/src/components/MemoListPane.tsx+++ b/apps/web/src/components/MemoListPane.tsx@@ -201,14 +201,14 @@ const MobileListActionsSheet = ({{memoListDensityOptions.map((option) => (<ToggleGroupItemkey={option.value}- className="h-11 w-full justify-start gap-3 rounded-md px-3 text-left text-sm data-[state=on]:bg-[#f3f7f1] data-[state=on]:text-[#526d49]"+ className="h-11 w-full justify-start gap-3 rounded-md px-3 text-left text-sm data-[state=on]:bg-emerald-50 data-[state=on]:text-emerald-700"size="default"value={option.value}aria-label={option.label}>- <span className={listDensity === option.value ? "text-[#627f58]" : "text-slate-500"}>{option.icon}</span>+ <span className={listDensity === option.value ? "text-emerald-500" : "text-slate-500"}>{option.icon}</span><span className="min-w-0 flex-1 truncate">{option.label}</span>- <CheckCircleCheck className={cn("h-4 w-4 shrink-0", listDensity === option.value ? "text-[#627f58]" : "text-transparent")} />+ <CheckCircleCheck className={cn("h-4 w-4 shrink-0", listDensity === option.value ? "text-emerald-500" : "text-transparent")} /></ToggleGroupItem>))}</ToggleGroup>@@ -221,14 +221,14 @@ const MobileListActionsSheet = ({key={option.value}className={cn("flex h-11 w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium transition",- sortMode === option.value ? "bg-[#f3f7f1] text-[#526d49]" : "text-slate-800 hover:bg-slate-50"+ sortMode === option.value ? "bg-emerald-50 text-emerald-700" : "text-slate-800 hover:bg-slate-50")}type="button"aria-pressed={sortMode === option.value}onClick={() => onSortModeChange(option.value)}><span className="min-w-0 flex-1 truncate">{option.label}</span>- <CheckCircleCheck className={cn("h-4 w-4 shrink-0", sortMode === option.value ? "text-[#627f58]" : "text-transparent")} />+ <CheckCircleCheck className={cn("h-4 w-4 shrink-0", sortMode === option.value ? "text-emerald-500" : "text-transparent")} /></button>))}@@ -364,7 +364,7 @@ const MobileMoveSheet = ({key={option.id}className={cn("h-11 gap-2 px-3",- selected ? "bg-[#f3f7f1] font-semibold text-[#526d49] data-[selected=true]:bg-[#f3f7f1]" : "text-slate-700"+ selected ? "bg-emerald-50 font-semibold text-emerald-700 data-[selected=true]:bg-emerald-50" : "text-slate-700")}style={{ paddingLeft: `${12 + option.depth * 18}px` }}value={option.id}@@ -375,9 +375,9 @@ const MobileMoveSheet = ({disabled={isMoving}onSelect={() => onMove(option.id)}>- <NotebookIcon className={cn("h-4 w-4 shrink-0", selected ? "text-[#627f58]" : "text-slate-600")} />+ <NotebookIcon className={cn("h-4 w-4 shrink-0", selected ? "text-emerald-500" : "text-slate-600")} /><span className="min-w-0 flex-1 truncate">{option.name}</span>- {selected ? <CheckCircleCheck className="h-4 w-4 shrink-0 text-[#627f58]" /> : null}+ {selected ? <CheckCircleCheck className="h-4 w-4 shrink-0 text-emerald-500" /> : null}</CommandItem>);})}@@ -1074,7 +1074,7 @@ export const MemoListPane = ({tabIndex={0}onKeyDown={handleListKeyDown}>- <header className="border-b border-slate-200 bg-[#f6faf7] px-4 pb-3 pt-[max(0.75rem,env(safe-area-inset-bottom))] lg:bg-white lg:py-3 lg:pt-3">+ <header className="border-b border-slate-200 bg-emerald-50 px-4 pb-3 pt-[max(0.75rem,env(safe-area-inset-bottom))] lg:bg-white lg:py-3 lg:pt-3">{selectionMode ? (<div className="mb-3 flex h-10 min-w-0 items-center gap-3 lg:hidden"><button@@ -1370,7 +1370,7 @@ export const MemoListPane = ({className={cn("flex h-9 w-9 items-center justify-center rounded-full border transition",filterMode === option.value- ? "border-emerald-600 bg-emerald-600 text-white shadow-[0_8px_18px_rgba(5,150,105,0.22)]"+ ? "border-emerald-600 bg-emerald-600 text-white shadow-[0_8px_18px_rgb(var(--brand-green-rgb)/0.22)]": "border-slate-200 bg-white text-slate-500 hover:bg-slate-50 hover:text-slate-800")}type="button"@@ -1408,7 +1408,7 @@ export const MemoListPane = ({{selectionMode && (<div className="sticky top-0 z-10 mb-3 hidden flex-wrap items-center justify-between gap-2 rounded-md border border-slate-200 bg-white px-3 py-2 shadow-panel lg:flex"><div className="flex items-center gap-2 text-sm font-medium text-slate-700">- <CheckSquare className="h-4 w-4 text-[#627f58]" />+ <CheckSquare className="h-4 w-4 text-emerald-500" />{selectionCountLabel}</div><div className="flex min-w-0 flex-wrap items-center gap-2">@@ -1513,7 +1513,7 @@ export const MemoListPane = ({<div className="space-y-4 lg:space-y-0 lg:overflow-hidden lg:rounded-sm lg:border-y lg:border-slate-200 lg:bg-white">{memoGroups.map((group) => (<section key={group.key}>- <div className="sticky top-0 z-[4] flex h-7 items-center justify-between bg-[#f6faf7]/90 px-1 text-xs font-medium text-slate-300 backdrop-blur lg:h-9 lg:border-b lg:border-slate-200 lg:bg-white/95 lg:px-4 lg:text-sm lg:font-semibold lg:text-slate-500">+ <div className="sticky top-0 z-[4] flex h-7 items-center justify-between bg-emerald-50/90 px-1 text-xs font-medium text-slate-300 backdrop-blur lg:h-9 lg:border-b lg:border-slate-200 lg:bg-white/95 lg:px-4 lg:text-sm lg:font-semibold lg:text-slate-500"><span>{group.label}</span><span className="text-[11px] font-medium text-slate-300 lg:text-sm lg:font-semibold lg:text-slate-500">{group.items.length}</span></div>@@ -1719,7 +1719,7 @@ export const MemoListPane = ({onPinSelectedMemos(selectedPinTarget);}}>- <Star className={cn("h-4 w-4", !selectedPinTarget && "fill-current text-[#627f58]")} />+ <Star className={cn("h-4 w-4", !selectedPinTarget && "fill-current text-emerald-500")} />{selectionPinLabel}</DropdownMenuItem><DropdownMenuItemdiff --git a/apps/web/src/components/NotebookPane.tsx b/apps/web/src/components/NotebookPane.tsxindex 6e965b69..16bb5583 100644--- a/apps/web/src/components/NotebookPane.tsx+++ b/apps/web/src/components/NotebookPane.tsx@@ -309,7 +309,7 @@ export const NotebookPane = ({onClick={onCreateMemo}disabled={!canCreateMemo || isCreatingMemo}>- <span className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-emerald-600 text-white shadow-[0_8px_18px_rgba(5,150,105,0.28)] transition-transform duration-200 group-hover:scale-105">+ <span className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-emerald-600 text-white shadow-[0_8px_18px_rgb(var(--brand-green-rgb)/0.28)] transition-transform duration-200 group-hover:scale-105"><Plus className="h-6 w-6" /></span><span className="min-w-0 truncate text-sm font-semibold text-slate-950">新建笔记</span>@@ -383,7 +383,7 @@ export const NotebookPane = ({onClick={onOpenSettings}className="flex w-full items-center gap-3 rounded-lg border border-slate-200 bg-white p-2 text-left hover:bg-slate-50 hover:border-slate-300 transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70">- <div className="flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-[#809f75] to-[#526d49] text-sm font-semibold text-white uppercase shadow-[0_2px_8px_rgba(98,127,88,0.15)]">+ <div className="flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-gradient-to-br from-emerald-400 to-emerald-600 text-sm font-semibold text-white uppercase shadow-[0_2px_8px_rgb(var(--brand-green-rgb)/0.15)]">{user?.username?.charAt(0) ?? "L"}</div><div className="min-w-0 flex-1">diff --git a/apps/web/src/components/NotebookTreeItem.tsx b/apps/web/src/components/NotebookTreeItem.tsxindex f8d55414..6316b5a7 100644--- a/apps/web/src/components/NotebookTreeItem.tsx+++ b/apps/web/src/components/NotebookTreeItem.tsx@@ -155,12 +155,12 @@ export const NotebookTreeItem = ({className={cn("group relative flex h-9 items-center gap-1 rounded-md px-2 text-sm transition-all duration-200 select-none",selected- ? "bg-[#f3f7f1] font-medium text-[#526d49]"+ ? "bg-emerald-50 font-medium text-emerald-700": hasSelectedDescendant- ? "bg-[#f3f7f1]/70 text-[#526d49] hover:bg-[#f3f7f1]"+ ? "bg-emerald-50/70 text-emerald-700 hover:bg-emerald-50": "text-slate-700 hover:bg-slate-50",dropPosition === "inside" && "ring-2 ring-[#9eb093]",- dropPosition === "inside" && hasChildren && !open && "bg-[#f3f7f1]"+ dropPosition === "inside" && hasChildren && !open && "bg-emerald-50")}draggableonDragStart={(event) => {@@ -233,7 +233,7 @@ export const NotebookTreeItem = ({}}}>- <NotebookIcon className={cn("h-4 w-4 shrink-0 transition-colors duration-200", selected || hasSelectedDescendant ? "text-[#627f58]" : "text-slate-500")} />+ <NotebookIcon className={cn("h-4 w-4 shrink-0 transition-colors duration-200", selected || hasSelectedDescendant ? "text-emerald-500" : "text-slate-500")} /><span className="truncate">{node.name}</span></button><button@@ -281,10 +281,10 @@ export const NotebookTreeItem = ({</button>) : null}{dropPosition === "before" && (- <div className="absolute top-0 right-2 h-[3px] bg-[#627f58] rounded-full z-30 animate-pulse" style={{ left: `${20 + depth * 14}px` }} />+ <div className="absolute top-0 right-2 h-[3px] bg-emerald-500 rounded-full z-30 animate-pulse" style={{ left: `${20 + depth * 14}px` }} />)}{dropPosition === "after" && (- <div className="absolute bottom-0 right-2 h-[3px] bg-[#627f58] rounded-full z-30 animate-pulse" style={{ left: `${20 + depth * 14}px` }} />+ <div className="absolute bottom-0 right-2 h-[3px] bg-emerald-500 rounded-full z-30 animate-pulse" style={{ left: `${20 + depth * 14}px` }} />)}</div></ContextMenuTrigger>diff --git a/apps/web/src/components/SettingsPane.tsx b/apps/web/src/components/SettingsPane.tsxindex 51a45b9d..9841205c 100644--- a/apps/web/src/components/SettingsPane.tsx+++ b/apps/web/src/components/SettingsPane.tsx@@ -125,7 +125,7 @@ export const SettingsPane = ({<div className="mx-auto max-w-2xl space-y-6">{/* Section 1: User Profile */}<div className="rounded-xl border border-slate-200 bg-white p-5 shadow-sm flex items-center gap-4">- <div className="flex h-14 w-14 shrink-0 items-center justify-center rounded-2xl bg-gradient-to-br from-[#809f75] to-[#526d49] text-xl font-bold text-white uppercase shadow-md">+ <div className="flex h-14 w-14 shrink-0 items-center justify-center rounded-2xl bg-gradient-to-br from-emerald-400 to-emerald-600 text-xl font-bold text-white uppercase shadow-md">{user?.username?.charAt(0) ?? "U"}</div><div className="min-w-0 flex-1">@@ -194,7 +194,7 @@ export const SettingsPane = ({<form className="space-y-4 rounded-lg bg-slate-50/60 border border-slate-100 p-4" onSubmit={handleSubmit}><div className="flex flex-col gap-3 sm:flex-row"><Input- className="min-w-0 flex-1 rounded-lg focus-visible:ring-4 focus-visible:ring-[#627f58]/10"+ className="min-w-0 flex-1 rounded-lg focus-visible:ring-4 focus-visible:ring-emerald-500/10"value={name}onChange={(event) => setName(event.target.value)}placeholder="Token 用途描述,例如: Cline Agent"@@ -202,7 +202,7 @@ export const SettingsPane = ({<Buttonsize="md"variant="solid"- className="h-10 bg-[#627f58] hover:bg-[#526d49] text-white shrink-0"+ className="h-10 bg-emerald-500 hover:bg-emerald-600 text-white shrink-0"type="submit"disabled={createMutation.isPending}>@@ -220,7 +220,7 @@ export const SettingsPane = ({className={cn("flex min-h-9 items-center gap-3 rounded-lg border px-3 py-1 cursor-pointer transition-all duration-150",selectedScopes.has(scope)- ? "border-[#627f58]/30 bg-[#f3f7f1]/50 text-[#526d49]"+ ? "border-emerald-500/30 bg-emerald-50/50 text-emerald-700": "border-slate-200 bg-white text-slate-600 hover:bg-slate-50/50")}>diff --git a/apps/web/src/components/WorkspaceApp.tsx b/apps/web/src/components/WorkspaceApp.tsxindex f0332eaa..2db2f4e0 100644--- a/apps/web/src/components/WorkspaceApp.tsx+++ b/apps/web/src/components/WorkspaceApp.tsx@@ -85,7 +85,7 @@ const MobileBottomNavButton = ({<buttonclassName={cn("flex h-14 flex-col items-center justify-center gap-1 rounded-md text-xs font-medium transition-all duration-200",- active ? "text-[#627f58]" : "text-slate-500 hover:bg-[#f3f7f1] hover:text-[#627f58]"+ active ? "text-emerald-500" : "text-slate-500 hover:bg-emerald-50 hover:text-emerald-500")}type="button"aria-current={active ? "page" : undefined}@@ -121,7 +121,7 @@ const MobileBottomNav = ({<div aria-hidden="true" /><MobileBottomNavButton active={activeItem === "settings"} icon={<UserRound className="h-5 w-5" />} label="我的" onClick={onOpenSettings} /><button- className="absolute left-1/2 top-[-1.35rem] flex h-16 w-16 -translate-x-1/2 items-center justify-center rounded-full border-[6px] border-white bg-[#627f58] text-white shadow-[0_12px_26px_rgba(98,127,88,0.32)] transition hover:bg-[#526d49] disabled:cursor-not-allowed disabled:bg-[#b7c5b0] disabled:opacity-70 disabled:hover:bg-[#b7c5b0]"+ className="absolute left-1/2 top-[-1.35rem] flex h-16 w-16 -translate-x-1/2 items-center justify-center rounded-full border-[6px] border-white bg-emerald-500 text-white shadow-[0_12px_26px_rgb(var(--brand-green-rgb)/0.32)] transition hover:bg-emerald-600 disabled:cursor-not-allowed disabled:bg-emerald-200 disabled:opacity-70 disabled:hover:bg-emerald-200"type="button"title={!canCreateMemo ? "当前视图不可新建笔记" : isCreating ? "正在创建" : "新建笔记"}aria-label={!canCreateMemo ? "当前视图不可新建笔记" : isCreating ? "正在创建" : "新建笔记"}@@ -254,7 +254,7 @@ const MobileNotebookPicker = ({<buttonclassName={cn("mb-1 flex h-12 w-full items-center gap-3 rounded-md px-3 text-left text-sm transition",- allSelected ? "bg-[#f3f7f1] font-semibold text-[#526d49]" : "text-slate-800 hover:bg-slate-50"+ allSelected ? "bg-emerald-50 font-semibold text-emerald-700" : "text-slate-800 hover:bg-slate-50")}type="button"data-mobile-notebook-id="__all__"@@ -270,7 +270,7 @@ const MobileNotebookPicker = ({<span>{searchActive ? "匹配的笔记本" : "笔记本"}</span>{!searchActive && expandableNotebookIds.length > 0 && (<button- className="rounded-md px-2 py-1 text-[#627f58] transition hover:bg-[#f3f7f1] hover:text-[#526d49]"+ className="rounded-md px-2 py-1 text-emerald-500 transition hover:bg-emerald-50 hover:text-emerald-700"type="button"aria-label={allNotebookBranchesExpanded ? "收起全部笔记本" : "展开全部笔记本"}aria-pressed={allNotebookBranchesExpanded}@@ -300,7 +300,7 @@ const MobileNotebookPicker = ({</div>{searchQuery && (<button- className="mt-3 text-sm font-semibold text-[#627f58]"+ className="mt-3 text-sm font-semibold text-emerald-500"type="button"onClick={() => setNotebookSearch("")}>@@ -344,9 +344,9 @@ const MobileNotebookPickerItem = ({className={cn("flex h-12 w-full items-center gap-3 rounded-md px-3 text-left text-sm transition",selected- ? "bg-[#f3f7f1] font-semibold text-[#526d49]"+ ? "bg-emerald-50 font-semibold text-emerald-700": hasSelectedDescendant- ? "bg-[#f3f7f1]/70 text-[#526d49] hover:bg-[#f3f7f1]"+ ? "bg-emerald-50/70 text-emerald-700 hover:bg-emerald-50": "text-slate-800 hover:bg-slate-50")}style={{ paddingLeft: `${12 + depth * 18}px` }}@@ -1391,7 +1391,7 @@ export const WorkspaceApp = ({};return (- <div className="flex h-[100dvh] overflow-hidden bg-[#f6faf7] text-slate-950">+ <div className="flex h-[100dvh] overflow-hidden bg-emerald-50 text-slate-950"><div className="min-w-0 flex-1"><mainclassName={cn(diff --git a/apps/web/src/components/ui/button.tsx b/apps/web/src/components/ui/button.tsxindex e920cd3b..b209cac9 100644--- a/apps/web/src/components/ui/button.tsx+++ b/apps/web/src/components/ui/button.tsx@@ -4,11 +4,11 @@ import { cva, type VariantProps } from "class-variance-authority";import * as React from "react";const buttonVariants = cva(- "inline-flex shrink-0 items-center justify-center rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#627f58]/70 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",+ "inline-flex shrink-0 items-center justify-center rounded-md font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants: {variant: {- solid: "bg-[#627f58] text-white hover:bg-[#526d49] border-[#627f58]",+ solid: "bg-emerald-500 text-white hover:bg-emerald-600 border-emerald-500",soft: "bg-slate-50 text-slate-700 hover:bg-slate-100 border-slate-200",ghost: "bg-transparent text-slate-600 hover:bg-slate-50 hover:text-slate-900 border-transparent",outline: "bg-white text-slate-700 hover:bg-slate-50 border border-slate-200",diff --git a/apps/web/src/components/ui/checkbox.tsx b/apps/web/src/components/ui/checkbox.tsxindex 0c427088..73158c03 100644--- a/apps/web/src/components/ui/checkbox.tsx+++ b/apps/web/src/components/ui/checkbox.tsx@@ -10,7 +10,7 @@ const Checkbox = React.forwardRef<<CheckboxPrimitive.Rootref={ref}className={cn(- "peer h-4 w-4 shrink-0 rounded border border-slate-300 bg-white text-white shadow-sm outline-none transition focus-visible:ring-2 focus-visible:ring-[#627f58]/70 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-[#627f58] data-[state=checked]:bg-[#627f58]",+ "peer h-4 w-4 shrink-0 rounded border border-slate-300 bg-white text-white shadow-sm outline-none transition focus-visible:ring-2 focus-visible:ring-emerald-500/70 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-emerald-500 data-[state=checked]:bg-emerald-500",className)}{...props}diff --git a/apps/web/src/components/ui/dialog.tsx b/apps/web/src/components/ui/dialog.tsxindex 218a86f9..d84d9123 100644--- a/apps/web/src/components/ui/dialog.tsx+++ b/apps/web/src/components/ui/dialog.tsx@@ -38,7 +38,7 @@ const DialogContent = React.forwardRef<{...props}>{children}- <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-[#627f58] focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-slate-100 data-[state=open]:text-slate-500">+ <DialogPrimitive.Close className="absolute right-4 top-4 rounded-sm opacity-70 ring-offset-white transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-slate-100 data-[state=open]:text-slate-500"><X className="h-4 w-4" /><span className="sr-only">Close</span></DialogPrimitive.Close>diff --git a/apps/web/src/components/ui/input.tsx b/apps/web/src/components/ui/input.tsxindex a06292f3..bd7ffb6e 100644--- a/apps/web/src/components/ui/input.tsx+++ b/apps/web/src/components/ui/input.tsx@@ -8,7 +8,7 @@ const Input = React.forwardRef<HTMLInputElement, InputProps>(({ className, type,ref={ref}type={type}className={cn(- "flex h-10 w-full rounded-md border border-slate-200 bg-white px-3 text-sm text-slate-950 outline-none transition placeholder:text-slate-400 focus-visible:border-[#627f58] focus-visible:ring-2 focus-visible:ring-[#627f58]/20 disabled:cursor-not-allowed disabled:opacity-50",+ "flex h-10 w-full rounded-md border border-slate-200 bg-white px-3 text-sm text-slate-950 outline-none transition placeholder:text-slate-400 focus-visible:border-emerald-500 focus-visible:ring-2 focus-visible:ring-emerald-500/20 disabled:cursor-not-allowed disabled:opacity-50",className)}{...props}diff --git a/apps/web/src/components/ui/select.tsx b/apps/web/src/components/ui/select.tsxindex 5763e6c9..820eb1f7 100644--- a/apps/web/src/components/ui/select.tsx+++ b/apps/web/src/components/ui/select.tsx@@ -14,7 +14,7 @@ const SelectTrigger = React.forwardRef<<SelectPrimitive.Triggerref={ref}className={cn(- "flex h-9 w-full items-center justify-between rounded-md border border-slate-200 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-slate-500 focus:outline-none focus:ring-2 focus:ring-[#627f58] focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",+ "flex h-9 w-full items-center justify-between rounded-md border border-slate-200 bg-white px-3 py-2 text-sm ring-offset-white placeholder:text-slate-500 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",className)}{...props}diff --git a/apps/web/src/components/ui/switch.tsx b/apps/web/src/components/ui/switch.tsxindex c0fe6453..1d0bc3a0 100644--- a/apps/web/src/components/ui/switch.tsx+++ b/apps/web/src/components/ui/switch.tsx@@ -8,7 +8,7 @@ const Switch = React.forwardRef<>(({ className, ...props }, ref) => (<SwitchPrimitive.RootclassName={cn(- "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#627f58] focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[#627f58] data-[state=unchecked]:bg-slate-200",+ "peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-emerald-500 data-[state=unchecked]:bg-slate-200",className)}{...props}diff --git a/apps/web/src/components/ui/toggle-group.tsx b/apps/web/src/components/ui/toggle-group.tsxindex 55038098..085654b0 100644--- a/apps/web/src/components/ui/toggle-group.tsx+++ b/apps/web/src/components/ui/toggle-group.tsx@@ -4,7 +4,7 @@ import { cva, type VariantProps } from "class-variance-authority";import { cn } from "@/lib/utils";const toggleGroupVariants = cva(- "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[#627f58]/70 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-emerald-50 data-[state=on]:text-emerald-800",+ "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-emerald-50 data-[state=on]:text-emerald-800",{variants: {variant: {diff --git a/apps/web/src/lib/app-helpers.ts b/apps/web/src/lib/app-helpers.tsindex 4c1f9fa6..71338c20 100644--- a/apps/web/src/lib/app-helpers.ts+++ b/apps/web/src/lib/app-helpers.ts@@ -512,7 +512,7 @@ export const setMemoDragPreview = (dataTransfer: DataTransfer, label: string) =>const dragImage = document.createElement("div");dragImage.innerHTML = `- <svg style="width: 15px; height: 15px; color: #627f58; flex-shrink: 0;" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24">+ <svg style="width: 15px; height: 15px; color: var(--brand-green); flex-shrink: 0;" fill="none" stroke="currentColor" stroke-width="2.5" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" d="M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"></path></svg><span style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600;">${label}</span>diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.cssindex ab085887..e7372e99 100644--- a/apps/web/src/styles/globals.css+++ b/apps/web/src/styles/globals.css@@ -6,6 +6,25 @@:root {--background: 80 11% 96%;--foreground: 224 71% 4%;+ --brand-green: #00a82d;+ --brand-green-hover: #008f26;+ --brand-green-muted: #e6f6ea;+ --brand-green-soft: #f0fbf3;+ --brand-green-border: #99dcab;+ --brand-green-text: #00751f;+ --brand-green-rgb: 0 168 45;+ --brand-green-hover-rgb: 0 143 38;+ --brand-green-50-rgb: 230 246 234;+ --brand-green-100-rgb: 204 237 213;+ --brand-green-200-rgb: 153 220 171;+ --brand-green-300-rgb: 102 202 128;+ --brand-green-400-rgb: 51 185 86;+ --brand-green-500-rgb: 0 168 45;+ --brand-green-600-rgb: 0 143 38;+ --brand-green-700-rgb: 0 117 31;+ --brand-green-800-rgb: 0 92 25;+ --brand-green-900-rgb: 0 67 18;+ --brand-green-950-rgb: 0 43 11;--card: 0 0% 100%;--card-foreground: 224 71% 4%;@@ -13,24 +32,24 @@--popover: 0 0% 100%;--popover-foreground: 224 71% 4%;- --primary: 102 18% 42%;+ --primary: 136 100% 33%;--primary-foreground: 80 11% 96%;- --secondary: 90 16% 95%;- --secondary-foreground: 102 18% 42%;+ --secondary: 136 55% 94%;+ --secondary-foreground: 136 100% 25%;--muted: 210 40% 96.1%;--muted-foreground: 215.4 16.3% 46.9%;- --accent: 90 16% 95%;- --accent-foreground: 102 18% 42%;+ --accent: 136 55% 94%;+ --accent-foreground: 136 100% 25%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 210 40% 98%;--border: 220 13% 91%;--input: 220 13% 91%;- --ring: 102 18% 42%;+ --ring: 136 100% 33%;--radius: 0.5rem;}@@ -115,29 +134,29 @@ textarea {.ProseMirror blockquote {margin: 0 0 1rem;- border-left: 3px solid #627f58;+ border-left: 3px solid var(--brand-green);padding: 0.1rem 0 0.1rem 1rem;color: #475569;- background: #f4f6f1;+ background: var(--brand-green-soft);}.ProseMirror code {- border: 1px solid #cdd9c5;+ border: 1px solid var(--brand-green-border);border-radius: 5px;- background: #f4f6f1;+ background: var(--brand-green-soft);padding: 0.08rem 0.28rem;font-size: 0.9em;- color: #293b2b;+ color: rgb(var(--brand-green-800-rgb));}.ProseMirror pre {margin: 0 0 1rem;overflow-x: auto;- border: 1px solid #cdd9c5;+ border: 1px solid var(--brand-green-border);border-radius: 8px;- background: #13231a;+ background: rgb(var(--brand-green-950-rgb));padding: 0.9rem 1rem;- color: #edf3e9;+ color: var(--brand-green-muted);}.ProseMirror pre code {@@ -150,7 +169,7 @@ textarea {.ProseMirror hr {margin: 1.5rem 0;border: 0;- border-top: 1px solid #a9bea0;+ border-top: 1px solid rgb(var(--brand-green-300-rgb));}.ProseMirror img {@@ -158,12 +177,12 @@ textarea {max-width: 100%;height: auto;margin: 1rem 0;- border: 1px solid #cdd9c5;+ border: 1px solid var(--brand-green-border);border-radius: 8px;}.ProseMirror img.ProseMirror-selectednode {- outline: 2px solid #627f58;+ outline: 2px solid var(--brand-green);outline-offset: 3px;}diff --git a/apps/web/tailwind.config.ts b/apps/web/tailwind.config.tsindex 6d2e6b75..133468de 100644--- a/apps/web/tailwind.config.ts+++ b/apps/web/tailwind.config.ts@@ -1,6 +1,8 @@import type { Config } from "tailwindcss";import tailwindAnimate from "tailwindcss-animate";+const brandGreen = (shade: number) => `rgb(var(--brand-green-${shade}-rgb) / <alpha-value>)`;+export default {content: {relative: true,@@ -62,17 +64,17 @@ export default {foreground: "hsl(var(--card-foreground))",},emerald: {- 50: "#f4f6f1",- 100: "#e5ebdf",- 200: "#cdd9c5",- 300: "#a9bea0",- 400: "#819c76",- 500: "#627f58",- 600: "#4b6545",- 700: "#394f37",- 800: "#293b2b",- 900: "#1c2b20",- 950: "#101a13",+ 50: brandGreen(50),+ 100: brandGreen(100),+ 200: brandGreen(200),+ 300: brandGreen(300),+ 400: brandGreen(400),+ 500: brandGreen(500),+ 600: brandGreen(600),+ 700: brandGreen(700),+ 800: brandGreen(800),+ 900: brandGreen(900),+ 950: brandGreen(950),},},keyframes: {@@ -93,4 +95,3 @@ export default {},plugins: [tailwindAnimate],} satisfies Config;-