Skip to content

AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.

Tone down workspace accent colors

tianmadcf5af119490
diff --git a/apps/web/src/components/MemoCard.tsx b/apps/web/src/components/MemoCard.tsx
index 60beb2a0..08f24a0a 100644
--- a/apps/web/src/components/MemoCard.tsx
+++ b/apps/web/src/components/MemoCard.tsx
@@ -309,14 +309,14 @@ export const MemoCard = ({
!selectionMode && selected
? "lg:bg-slate-100"
: checked
- ? "bg-emerald-50 ring-1 ring-emerald-200 lg:bg-slate-100 lg:ring-0"
+ ? "bg-slate-50 ring-1 ring-slate-200 lg:bg-slate-100 lg:ring-0"
: "active:bg-slate-50 lg:hover:bg-slate-50"
)}
>
<div className={cn("flex min-h-[132px] items-center", listDensity === "compact" && "min-h-[84px] lg:min-h-[76px]")}>
{showSelectionControl && (
<button
- className="ml-2 flex h-11 w-11 shrink-0 items-center justify-center rounded-full transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70 focus-visible:ring-offset-2 lg:ml-4 lg:h-8 lg:w-8"
+ className="ml-2 flex h-11 w-11 shrink-0 items-center justify-center rounded-full transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400/70 focus-visible:ring-offset-2 lg:ml-4 lg:h-8 lg:w-8"
type="button"
title={selectionControlLabel}
aria-label={selectionControlLabel}
@@ -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-emerald-500 bg-emerald-500 text-white shadow-[0_4px_10px_rgb(var(--brand-green-rgb)/0.22)]"
+ ? "border-slate-700 bg-slate-700 text-white shadow-[0_4px_10px_rgba(15,23,42,0.16)]"
: "border-slate-300 bg-white text-transparent"
)}
aria-hidden="true"
@@ -341,7 +341,7 @@ export const MemoCard = ({
)}
<button
className={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_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",
+ "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_rgb(148,163,184)] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-slate-400/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-emerald-500" />}
+ {memo.isPinned && <Star className="h-4 w-4 shrink-0 fill-current text-slate-500" />}
<span className="min-w-0 truncate">{memoTitle}</span>
</div>
<div
@@ -376,7 +376,7 @@ export const MemoCard = ({
<div className={cn("mt-5 flex flex-wrap items-center gap-2", listDensity === "compact" && "mt-2")}>
<time className="text-xs font-medium text-slate-400 lg:text-sm lg:font-normal lg:text-slate-500">{formatMemoPreviewDate(memo.updatedAt)}</time>
{memo.tags.slice(0, 3).map((tag) => (
- <span key={tag} className="rounded-sm bg-emerald-50 px-1.5 py-0.5 text-xs font-medium text-emerald-700">
+ <span key={tag} className="rounded-sm bg-slate-100 px-1.5 py-0.5 text-xs font-medium text-slate-600">
#{tag}
</span>
))}
@@ -391,7 +391,7 @@ export const MemoCard = ({
)}
>
<button
- className="flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-slate-400 transition hover:bg-slate-100 hover:text-slate-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70 focus-visible:ring-offset-2"
+ className="flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-slate-400 transition hover:bg-slate-100 hover:text-slate-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400/70 focus-visible:ring-offset-2"
type="button"
title="更多操作"
aria-label="更多操作"
@@ -405,8 +405,8 @@ export const MemoCard = ({
</button>
<button
className={cn(
- "flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-slate-400 transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70 focus-visible:ring-offset-2",
- isTrashView ? "hover:bg-emerald-50 hover:text-emerald-700" : "hover:bg-rose-50 hover:text-rose-700"
+ "flex h-8 w-8 shrink-0 items-center justify-center rounded-md text-slate-400 transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400/70 focus-visible:ring-offset-2",
+ isTrashView ? "hover:bg-slate-100 hover:text-slate-800" : "hover:bg-rose-50 hover:text-rose-700"
)}
type="button"
title={isTrashView ? "恢复笔记" : "删除笔记"}
diff --git a/apps/web/src/components/MemoListPane.tsx b/apps/web/src/components/MemoListPane.tsx
index e9eb82b9..6ba1e4a5 100644
--- a/apps/web/src/components/MemoListPane.tsx
+++ b/apps/web/src/components/MemoListPane.tsx
@@ -109,7 +109,7 @@ const MobileSelectionActionButton = ({
onClick: () => void;
}) => (
<button
- className="flex h-12 flex-col items-center justify-center gap-1 rounded-md text-xs font-medium text-slate-700 transition hover:bg-slate-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:text-slate-300 disabled:opacity-100 disabled:hover:bg-transparent"
+ className="flex h-12 flex-col items-center justify-center gap-1 rounded-md text-xs font-medium text-slate-700 transition hover:bg-slate-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400/70 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:text-slate-300 disabled:opacity-100 disabled:hover:bg-transparent"
type="button"
disabled={disabled}
title={title}
@@ -723,7 +723,7 @@ export const MemoListPane = ({
tabIndex={0}
onKeyDown={handleListKeyDown}
>
- <header className="border-b border-slate-200 bg-emerald-50 px-4 pb-2 pt-[max(0.375rem,env(safe-area-inset-bottom))] lg:bg-white lg:py-3 lg:pt-3">
+ <header className="border-b border-slate-200 bg-slate-50 px-4 pb-2 pt-[max(0.375rem,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
@@ -748,7 +748,7 @@ export const MemoListPane = ({
>
<ChevronLeft className="h-5 w-5" />
</button>
- <div className="flex h-9 min-w-0 flex-1 items-center gap-2 rounded-full border border-emerald-200 bg-white px-3 text-sm text-slate-500 shadow-[0_8px_18px_rgba(15,23,42,0.06)]">
+ <div className="flex h-9 min-w-0 flex-1 items-center gap-2 rounded-full border border-slate-200 bg-white px-3 text-sm text-slate-500 shadow-[0_8px_18px_rgba(15,23,42,0.05)]">
<Search className="h-4 w-4 shrink-0" />
<input
ref={mobileSearchInputRef}
@@ -783,7 +783,7 @@ export const MemoListPane = ({
)}
</div>
<button
- className="h-9 shrink-0 rounded-md px-2 text-sm font-semibold text-emerald-700 transition hover:bg-emerald-50 hover:text-emerald-900"
+ className="h-9 shrink-0 rounded-md px-2 text-sm font-semibold text-slate-600 transition hover:bg-slate-100 hover:text-slate-900"
type="button"
onClick={onCancelMobileSearch}
>
@@ -851,7 +851,7 @@ export const MemoListPane = ({
"flex h-8 w-8 shrink-0 items-center justify-center rounded-md border text-xs font-medium transition-all duration-200 outline-none",
filterMode === "all"
? "border-slate-200 bg-white text-slate-600 hover:bg-slate-50 hover:text-slate-900"
- : "border-emerald-200 bg-emerald-50 text-emerald-800 hover:bg-emerald-100"
+ : "border-slate-300 bg-slate-100 text-slate-900 hover:bg-slate-200"
)}
title={`筛选:${activeFilterLabel}`}
>
@@ -864,7 +864,7 @@ export const MemoListPane = ({
key={option.value}
className={cn(
"flex h-9 w-full items-center gap-2 px-3 text-left text-sm cursor-pointer outline-none",
- filterMode === option.value ? "text-emerald-700 bg-emerald-50/50" : "text-slate-700 hover:bg-slate-50"
+ filterMode === option.value ? "bg-slate-100 text-slate-900" : "text-slate-700 hover:bg-slate-50"
)}
onClick={() => handleFilterModeChange(option.value)}
>
@@ -890,7 +890,7 @@ export const MemoListPane = ({
key={option.value}
className={cn(
"flex h-9 w-full items-center gap-2 px-3 text-left text-sm cursor-pointer outline-none",
- sortMode === option.value ? "text-emerald-700 bg-emerald-50/50" : "text-slate-700 hover:bg-slate-50"
+ sortMode === option.value ? "bg-slate-100 text-slate-900" : "text-slate-700 hover:bg-slate-50"
)}
onClick={() => setSortMode(option.value)}
>
@@ -958,14 +958,14 @@ export const MemoListPane = ({
className="flex h-9 w-full items-center gap-2 px-3 text-left text-sm text-slate-700 hover:bg-slate-50 cursor-pointer outline-none"
onClick={onOpenTags}
>
- <Tags className="h-4 w-4 text-emerald-700" />
+ <Tags className="h-4 w-4 text-slate-500" />
标签
</DropdownMenuItem>
<DropdownMenuItem
className="flex h-9 w-full items-center gap-2 px-3 text-left text-sm text-slate-700 hover:bg-slate-50 cursor-pointer outline-none"
onClick={onOpenAssets}
>
- <Archive className="h-4 w-4 text-emerald-700" />
+ <Archive className="h-4 w-4 text-slate-500" />
附件
</DropdownMenuItem>
<DropdownMenuItem
@@ -979,7 +979,7 @@ export const MemoListPane = ({
className="flex h-9 w-full items-center gap-2 px-3 text-left text-sm text-slate-700 hover:bg-slate-50 cursor-pointer outline-none"
onClick={onOpenSettings}
>
- <KeyRound className="h-4 w-4 text-emerald-700" />
+ <KeyRound className="h-4 w-4 text-slate-500" />
MCP Token
</DropdownMenuItem>
</DropdownMenuContent>
@@ -988,7 +988,7 @@ export const MemoListPane = ({
</div>
<div className={cn("items-center gap-2", mobileSearchActive ? "hidden lg:flex" : "flex")}>
- <div className="flex h-9 min-w-0 flex-1 items-center gap-2 rounded-full border border-transparent bg-slate-100 px-3 text-sm text-slate-500 transition focus-within:border-emerald-300 focus-within:bg-white focus-within:ring-2 focus-within:ring-emerald-500/15 lg:rounded-md lg:border-slate-200 lg:bg-slate-50">
+ <div className="flex h-9 min-w-0 flex-1 items-center gap-2 rounded-full border border-transparent bg-slate-100 px-3 text-sm text-slate-500 transition focus-within:border-slate-300 focus-within:bg-white focus-within:ring-2 focus-within:ring-slate-400/20 lg:rounded-md lg:border-slate-200 lg:bg-slate-50">
<Search className="h-4 w-4" />
<input
ref={searchInputRef}
@@ -1023,7 +1023,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_rgb(var(--brand-green-rgb)/0.22)]"
+ ? "border-slate-700 bg-slate-700 text-white shadow-[0_8px_18px_rgba(15,23,42,0.16)]"
: "border-slate-200 bg-white text-slate-500 hover:bg-slate-50 hover:text-slate-800"
)}
type="button"
@@ -1044,7 +1044,7 @@ export const MemoListPane = ({
{search.trim() ? `搜索「${search.trim()}」` : `筛选:${activeFilterLabel}`} · {filteredMemos.length} 条
</span>
<button
- className="shrink-0 font-semibold text-emerald-700 transition hover:text-emerald-900"
+ className="shrink-0 font-semibold text-slate-600 transition hover:text-slate-950"
type="button"
onClick={handleResetListConstraints}
>
@@ -1061,7 +1061,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-emerald-500" />
+ <CheckSquare className="h-4 w-4 text-slate-500" />
{selectionCountLabel}
</div>
<div className="flex min-w-0 flex-wrap items-center gap-2">
@@ -1231,7 +1231,7 @@ export const MemoListPane = ({
onTogglePinMemo(memo);
}}
>
- <Star className={cn("h-4 w-4", memoContextMenu.memo.isPinned && "fill-current text-emerald-600")} />
+ <Star className={cn("h-4 w-4", memoContextMenu.memo.isPinned && "fill-current text-slate-700")} />
{memoContextMenu.memo.isPinned ? "取消置顶" : "置顶笔记"}
</DropdownMenuItem>
)}
@@ -1279,7 +1279,7 @@ export const MemoListPane = ({
key={option.id}
className={cn(
"flex h-9 w-full items-center gap-2 px-3 text-left text-sm transition hover:bg-white",
- option.id === memoContextMenu.memo.notebookId ? "font-semibold text-emerald-700" : "text-slate-700"
+ option.id === memoContextMenu.memo.notebookId ? "font-semibold text-slate-950" : "text-slate-700"
)}
style={{ paddingLeft: `${12 + option.depth * 14}px` }}
type="button"
@@ -1364,7 +1364,7 @@ export const MemoListPane = ({
onPinSelectedMemos(selectedPinTarget);
}}
>
- <Star className={cn("h-4 w-4", !selectedPinTarget && "fill-current text-emerald-500")} />
+ <Star className={cn("h-4 w-4", !selectedPinTarget && "fill-current text-slate-700")} />
{selectionPinLabel}
</DropdownMenuItem>
<DropdownMenuItem
diff --git a/apps/web/src/components/NotebookPane.tsx b/apps/web/src/components/NotebookPane.tsx
index 1285e7e4..d3cd886c 100644
--- a/apps/web/src/components/NotebookPane.tsx
+++ b/apps/web/src/components/NotebookPane.tsx
@@ -58,7 +58,7 @@ const SidebarNavButton = ({
<button
className={cn(
"flex h-9 w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium leading-none transition-all duration-200",
- active ? "bg-emerald-50 text-emerald-800" : "text-slate-700 hover:bg-slate-50 hover:text-slate-950"
+ active ? "bg-slate-100 text-slate-950" : "text-slate-700 hover:bg-slate-50 hover:text-slate-950"
)}
type="button"
aria-current={active ? "page" : undefined}
@@ -118,7 +118,7 @@ const SyncStatusBar = ({
: summary.conflict > 0
? "border-amber-200 bg-amber-50 text-amber-800"
: hasQueuedWork
- ? "border-emerald-200 bg-emerald-50 text-emerald-800"
+ ? "border-slate-200 bg-slate-50 text-slate-700"
: "border-slate-200 bg-white text-slate-500";
return (
@@ -322,9 +322,9 @@ export const NotebookPane = ({
onDragOver={handleNotebookScrollDragOver}
onDrop={stopNotebookDragAutoScroll}
>
- <div className="mb-4 hidden overflow-hidden rounded-full border border-emerald-100 bg-white shadow-[0_10px_28px_rgba(15,23,42,0.08)] lg:flex">
+ <div className="mb-4 hidden overflow-hidden rounded-full border border-slate-200 bg-white shadow-[0_8px_22px_rgba(15,23,42,0.06)] lg:flex">
<button
- className="flex h-14 min-w-0 flex-1 items-center gap-3 px-3 text-left transition-all duration-200 hover:bg-emerald-50/70 disabled:cursor-not-allowed disabled:opacity-50"
+ className="flex h-14 min-w-0 flex-1 items-center gap-3 px-3 text-left transition-all duration-200 hover:bg-slate-50 disabled:cursor-not-allowed disabled:opacity-50"
type="button"
title="新建笔记"
onClick={onCreateMemo}
@@ -350,7 +350,7 @@ export const NotebookPane = ({
<SidebarSectionLabel icon={<NotebookIcon className="h-4 w-4" />} label="笔记本" />
<div className="flex items-center gap-1 opacity-100 transition-opacity duration-200 lg:opacity-0 lg:group-hover:opacity-100 lg:group-focus-within:opacity-100">
<button
- className="flex h-6 w-6 items-center justify-center rounded-md text-slate-500 transition-colors duration-200 hover:bg-emerald-50 hover:text-emerald-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70"
+ className="flex h-6 w-6 items-center justify-center rounded-md text-slate-500 transition-colors duration-200 hover:bg-slate-100 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400/70"
type="button"
title="新建笔记本"
aria-label="新建笔记本"
@@ -361,7 +361,7 @@ export const NotebookPane = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<button
- className="flex h-6 w-6 items-center justify-center rounded-md text-slate-500 transition-colors duration-200 hover:bg-emerald-50 hover:text-emerald-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70"
+ className="flex h-6 w-6 items-center justify-center rounded-md text-slate-500 transition-colors duration-200 hover:bg-slate-100 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400/70"
type="button"
title={`笔记本排序:${activeNotebookSortLabel}`}
aria-label={`笔记本排序:${activeNotebookSortLabel}`}
@@ -424,7 +424,7 @@ export const NotebookPane = ({
<div>
<button
onClick={onOpenSettings}
- className="flex h-9 w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium leading-none text-slate-700 transition-colors duration-200 hover:bg-slate-50 hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70"
+ className="flex h-9 w-full items-center gap-3 rounded-md px-3 text-left text-sm font-medium leading-none text-slate-700 transition-colors duration-200 hover:bg-slate-50 hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-400/70"
type="button"
title="个人中心"
aria-label="个人中心"
diff --git a/apps/web/src/components/NotebookTreeItem.tsx b/apps/web/src/components/NotebookTreeItem.tsx
index 6316b5a7..5ad71c58 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-emerald-50 font-medium text-emerald-700"
+ ? "bg-slate-100 font-medium text-slate-950"
: hasSelectedDescendant
- ? "bg-emerald-50/70 text-emerald-700 hover:bg-emerald-50"
+ ? "bg-slate-50 text-slate-900 hover:bg-slate-100"
: "text-slate-700 hover:bg-slate-50",
- dropPosition === "inside" && "ring-2 ring-[#9eb093]",
- dropPosition === "inside" && hasChildren && !open && "bg-emerald-50"
+ dropPosition === "inside" && "ring-2 ring-slate-300",
+ dropPosition === "inside" && hasChildren && !open && "bg-slate-100"
)}
draggable
onDragStart={(event) => {
@@ -233,13 +233,13 @@ export const NotebookTreeItem = ({
}
}}
>
- <NotebookIcon className={cn("h-4 w-4 shrink-0 transition-colors duration-200", selected || hasSelectedDescendant ? "text-emerald-500" : "text-slate-500")} />
+ <NotebookIcon className={cn("h-4 w-4 shrink-0 transition-colors duration-200", selected || hasSelectedDescendant ? "text-slate-700" : "text-slate-500")} />
<span className="truncate">{node.name}</span>
</button>
<button
className={cn(
"hidden h-6 w-6 items-center justify-center rounded-md group-focus-within:flex group-hover:flex transition-colors duration-150",
- selected ? "hover:bg-[#e6efe1]" : "hover:bg-slate-100"
+ selected ? "hover:bg-slate-200" : "hover:bg-slate-100"
)}
type="button"
title="新建子笔记本"
@@ -254,7 +254,7 @@ export const NotebookTreeItem = ({
<button
className={cn(
"hidden h-6 w-6 items-center justify-center rounded-md group-focus-within:flex group-hover:flex transition-colors duration-150",
- selected ? "hover:bg-[#e6efe1]" : "hover:bg-slate-100"
+ selected ? "hover:bg-slate-200" : "hover:bg-slate-100"
)}
type="button"
title="重命名笔记本"
@@ -281,10 +281,10 @@ export const NotebookTreeItem = ({
</button>
) : null}
{dropPosition === "before" && (
- <div className="absolute top-0 right-2 h-[3px] bg-emerald-500 rounded-full z-30 animate-pulse" style={{ left: `${20 + depth * 14}px` }} />
+ <div className="absolute top-0 right-2 h-[3px] bg-slate-400 rounded-full z-30 animate-pulse" style={{ left: `${20 + depth * 14}px` }} />
)}
{dropPosition === "after" && (
- <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 className="absolute bottom-0 right-2 h-[3px] bg-slate-400 rounded-full z-30 animate-pulse" style={{ left: `${20 + depth * 14}px` }} />
)}
</div>
</ContextMenuTrigger>
diff --git a/apps/web/src/components/WorkspaceApp.tsx b/apps/web/src/components/WorkspaceApp.tsx
index d348d441..bf3f8192 100644
--- a/apps/web/src/components/WorkspaceApp.tsx
+++ b/apps/web/src/components/WorkspaceApp.tsx
@@ -123,7 +123,7 @@ const MobileBottomNavButton = ({
<button
className={cn(
"flex h-14 flex-col items-center justify-center gap-1 rounded-md text-xs font-medium transition-all duration-200",
- active ? "text-emerald-500" : "text-slate-500 hover:bg-emerald-50 hover:text-emerald-500"
+ active ? "text-slate-950" : "text-slate-500 hover:bg-slate-100 hover:text-slate-950"
)}
type="button"
aria-current={active ? "page" : undefined}
@@ -292,7 +292,7 @@ const MobileNotebookPicker = ({
<button
className={cn(
"mb-1 flex h-12 w-full items-center gap-3 rounded-md px-3 text-left text-sm transition",
- allSelected ? "bg-emerald-50 font-semibold text-emerald-700" : "text-slate-800 hover:bg-slate-50"
+ allSelected ? "bg-slate-100 font-semibold text-slate-950" : "text-slate-800 hover:bg-slate-50"
)}
type="button"
data-mobile-notebook-id="__all__"
@@ -308,7 +308,7 @@ const MobileNotebookPicker = ({
<span>{searchActive ? "匹配的笔记本" : "笔记本"}</span>
{!searchActive && expandableNotebookIds.length > 0 && (
<button
- className="rounded-md px-2 py-1 text-emerald-500 transition hover:bg-emerald-50 hover:text-emerald-700"
+ className="rounded-md px-2 py-1 text-slate-500 transition hover:bg-slate-100 hover:text-slate-900"
type="button"
aria-label={allNotebookBranchesExpanded ? "收起全部笔记本" : "展开全部笔记本"}
aria-pressed={allNotebookBranchesExpanded}
@@ -338,7 +338,7 @@ const MobileNotebookPicker = ({
</div>
{searchQuery && (
<button
- className="mt-3 text-sm font-semibold text-emerald-500"
+ className="mt-3 text-sm font-semibold text-slate-600"
type="button"
onClick={() => setNotebookSearch("")}
>
@@ -382,9 +382,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-emerald-50 font-semibold text-emerald-700"
+ ? "bg-slate-100 font-semibold text-slate-950"
: hasSelectedDescendant
- ? "bg-emerald-50/70 text-emerald-700 hover:bg-emerald-50"
+ ? "bg-slate-50 text-slate-900 hover:bg-slate-100"
: "text-slate-800 hover:bg-slate-50"
)}
style={{ paddingLeft: `${12 + depth * 18}px` }}
@@ -1678,15 +1678,15 @@ export const WorkspaceApp = ({
: "下拉刷新网页";
return (
- <div className="flex h-[100dvh] overflow-hidden bg-emerald-50 text-slate-950">
+ <div className="flex h-[100dvh] overflow-hidden bg-slate-50 text-slate-950">
{pullToRefreshVisible && (
<div
className="pointer-events-none fixed inset-x-0 top-[max(0.75rem,env(safe-area-inset-top))] z-50 flex justify-center lg:hidden"
style={{ transform: `translateY(${Math.max(0, pullToRefreshDistance - 24)}px)` }}
aria-hidden="true"
>
- <div className="inline-flex h-9 items-center gap-2 rounded-full border border-emerald-100 bg-white/95 px-3 text-xs font-semibold text-slate-600 shadow-[0_10px_28px_rgba(15,23,42,0.12)] backdrop-blur">
- <RefreshCw className={cn("h-4 w-4 text-emerald-600", (isPullRefreshing || pullToRefreshReady) && "animate-spin")} />
+ <div className="inline-flex h-9 items-center gap-2 rounded-full border border-slate-200 bg-white/95 px-3 text-xs font-semibold text-slate-600 shadow-[0_10px_28px_rgba(15,23,42,0.12)] backdrop-blur">
+ <RefreshCw className={cn("h-4 w-4 text-slate-500", (isPullRefreshing || pullToRefreshReady) && "animate-spin")} />
<span>{pullToRefreshLabel}</span>
</div>
</div>
@@ -1764,7 +1764,7 @@ export const WorkspaceApp = ({
<section
className={cn(
- "relative min-w-0 overflow-hidden border-r border-slate-200 bg-[#f8faf8]",
+ "relative min-w-0 overflow-hidden border-r border-slate-200 bg-slate-50",
rightView === "editor"
? (activePane === "memos" ? "block lg:block lg:bg-white/75 lg:backdrop-blur-lg" : "hidden lg:block lg:bg-white/75 lg:backdrop-blur-lg")
: (activePane === "memos" ? "block lg:hidden" : "hidden lg:hidden")
@@ -1848,7 +1848,7 @@ export const WorkspaceApp = ({
setDesktopActionsOpen={setDesktopActionsOpen}
/>
<div
- className="absolute inset-y-0 right-[-3px] z-20 hidden w-1.5 cursor-col-resize transition hover:bg-emerald-300/70 focus-visible:bg-emerald-400/80 focus-visible:outline-none lg:block"
+ className="absolute inset-y-0 right-[-3px] z-20 hidden w-1.5 cursor-col-resize transition hover:bg-slate-300/70 focus-visible:bg-slate-400/80 focus-visible:outline-none lg:block"
role="separator"
aria-orientation="vertical"
aria-valuemin={MIN_MEMO_LIST_WIDTH_PX}
diff --git a/apps/web/src/components/ui/toggle-group.tsx b/apps/web/src/components/ui/toggle-group.tsx
index 085654b0..789e8ef0 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-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",
+ "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-slate-400/70 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-slate-100 data-[state=on]:text-slate-900",
{
variants: {
variant: {
diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css
index 03dbd422..56cbb740 100644
--- a/apps/web/src/styles/globals.css
+++ b/apps/web/src/styles/globals.css
@@ -73,8 +73,8 @@ body,
body {
margin: 0;
background:
- linear-gradient(180deg, rgba(247, 248, 244, 0.98), rgba(239, 243, 235, 0.98)),
- #f6f7f3;
+ linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(241, 245, 249, 0.98)),
+ #f8fafc;
color: #0f172a;
overscroll-behavior-x: none;
overscroll-behavior-y: auto;
@@ -204,14 +204,14 @@ textarea {
background: transparent;
}
::-webkit-scrollbar-thumb {
- background: rgba(98, 127, 88, 0.16);
+ background: rgba(100, 116, 139, 0.18);
border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
- background: rgba(98, 127, 88, 0.35);
+ background: rgba(100, 116, 139, 0.34);
}
* {
scrollbar-width: thin;
- scrollbar-color: rgba(98, 127, 88, 0.16) transparent;
+ scrollbar-color: rgba(100, 116, 139, 0.18) transparent;
}