Skip to content

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

fix(web): quiet secondary chrome to ink

tianma-if31c2b2f2c919
diff --git a/apps/web/src/components/CompanionActionCard.tsx b/apps/web/src/components/CompanionActionCard.tsx
index 30c9ec69..de1c9c85 100644
--- a/apps/web/src/components/CompanionActionCard.tsx
+++ b/apps/web/src/components/CompanionActionCard.tsx
@@ -33,7 +33,7 @@ export function CompanionActionCard({ action, busy, onApply, onDismiss, onOpenNo
<button
type="button"
disabled={busy}
- className="inline-flex max-w-full items-center gap-1 font-medium hover:text-emerald-600 hover:underline "
+ className="inline-flex max-w-full items-center gap-1 font-medium hover:text-slate-950 hover:underline "
onClick={() => onOpenNote(note.id, note.notebookId)}
>
<FileText className="h-3 w-3 shrink-0 text-slate-400" />
@@ -60,9 +60,9 @@ export function CompanionActionCard({ action, busy, onApply, onDismiss, onOpenNo
type="button"
disabled={busy}
onClick={() => onOpenNote(action.notes[0].id, action.notes[0].notebookId)}
- className="group/note inline-flex max-w-full items-center gap-1.5 text-xs font-semibold text-slate-800 hover:text-emerald-600 "
+ className="group/note inline-flex max-w-full items-center gap-1.5 text-xs font-semibold text-slate-800 hover:text-slate-950 "
>
- <FileText className="h-3.5 w-3.5 shrink-0 text-slate-400 group-hover/note:text-emerald-600 " />
+ <FileText className="h-3.5 w-3.5 shrink-0 text-slate-400 group-hover/note:text-slate-950 " />
<span className="truncate">{action.notes[0].title || t("common.untitledMemo")}</span>
<ArrowUpRight className="h-3 w-3 shrink-0 opacity-40 group-hover/note:opacity-100" />
</button>
@@ -74,7 +74,7 @@ export function CompanionActionCard({ action, busy, onApply, onDismiss, onOpenNo
</div>
) : null}
<div className="space-y-1 border-t border-slate-200/50 pt-2 text-xs ">
- <p className="break-words font-medium text-emerald-700 ">
+ <p className="break-words font-medium text-slate-800 ">
{t("companion.actions.addTags", { tags: action.plan.tags.join(" · ") })}
</p>
{action.notes[0] ? (
@@ -109,7 +109,7 @@ export function CompanionActionCard({ action, busy, onApply, onDismiss, onOpenNo
</div>
</div>
) : action.status === "applied" ? (
- <div className="flex items-center justify-between gap-2 rounded-lg border border-emerald-200/50 bg-emerald-50/60 p-2.5 text-xs text-emerald-700 ">
+ <div className="flex items-center justify-between gap-2 rounded-lg border border-slate-200 bg-slate-50 p-2.5 text-xs text-slate-700 ">
<span className="flex items-center gap-1.5 font-medium">
<Check className="h-3.5 w-3.5" />
{t("companion.actions.status.applied")}
diff --git a/apps/web/src/components/CompanionChat.tsx b/apps/web/src/components/CompanionChat.tsx
index 0ef82f11..cc3c6df7 100644
--- a/apps/web/src/components/CompanionChat.tsx
+++ b/apps/web/src/components/CompanionChat.tsx
@@ -279,7 +279,7 @@ export function CompanionChat({
if (!available) {
return <div className="flex min-h-0 flex-1 flex-col items-center justify-center gap-3 overflow-y-auto p-4 text-center">
- <MessageCircle aria-hidden="true" className="h-9 w-9 text-emerald-600" />
+ <MessageCircle aria-hidden="true" className="h-9 w-9 text-slate-500" />
<p className="max-w-md text-sm leading-relaxed text-slate-600">{t("companion.unavailableHelp")}</p>
</div>;
}
@@ -331,7 +331,7 @@ export function CompanionChat({
) : null}
{turn.status === "running" ? (
<p role="status" className="flex items-center gap-2 text-xs text-slate-500">
- <Loader2 className="h-4 w-4 animate-spin text-emerald-600" aria-hidden="true" />
+ <Loader2 className="h-4 w-4 animate-spin text-slate-500" aria-hidden="true" />
<span className="sr-only">{t("companion.status.running")}</span>
</p>
) : turn.status === "failed" || turn.status === "cancelled" ? (
@@ -348,7 +348,7 @@ export function CompanionChat({
{mentions.map(mention => {
const Icon = mentionIcon(mention.type);
return <li key={`${mention.type}:${mention.id}`}>
- <button type="button" className="inline-flex items-center gap-1 rounded-full bg-emerald-50 px-2 py-0.5 text-xs text-emerald-800"
+ <button type="button" className="inline-flex items-center gap-1 rounded-full bg-slate-100 px-2 py-0.5 text-xs text-slate-800"
aria-label={t("companion.mentions.remove", { title: mentionLabel(mention) })}
onClick={() => setMentions(previous => previous.filter(item => item !== mention))}>
<Icon className="h-3 w-3" />{mentionLabel(mention)}<X className="h-3 w-3" />
@@ -378,7 +378,7 @@ export function CompanionChat({
id="companion-message"
rows={2}
aria-describedby="companion-ask-hint"
- className="max-h-32 min-h-10 flex-1 resize-none rounded-md border border-slate-200 px-3 py-2 text-sm leading-5 outline-none focus:border-emerald-400 focus:ring-2 focus:ring-emerald-500/15"
+ className="max-h-32 min-h-10 flex-1 resize-none rounded-md border border-slate-200 px-3 py-2 text-sm leading-5 outline-none focus:border-slate-900 focus:ring-2 focus:ring-slate-900/10"
maxLength={4000}
value={message}
disabled={busy}
diff --git a/apps/web/src/components/CompanionQuestionForm.tsx b/apps/web/src/components/CompanionQuestionForm.tsx
index 45c57bc7..3400daf6 100644
--- a/apps/web/src/components/CompanionQuestionForm.tsx
+++ b/apps/web/src/components/CompanionQuestionForm.tsx
@@ -17,7 +17,7 @@ export function CompanionQuestionForm({
return current.optionIds.length > 0 || Boolean(current.text.trim());
});
return (
- <form className="space-y-3 rounded-md border border-emerald-200/80 bg-emerald-50/50 p-2.5" onSubmit={event => {
+ <form className="space-y-3 rounded-md border border-slate-200 bg-slate-50 p-2.5" onSubmit={event => {
event.preventDefault();
if (!ready || busy) return;
onSubmit(questions.map(question => {
@@ -53,7 +53,7 @@ export function CompanionQuestionForm({
))}
{(question.inputType === "free_text" || question.inputType !== "multi_select") ? (
<input
- className="w-full rounded-md border border-slate-200 px-2 py-1 text-xs outline-none focus:border-emerald-400"
+ className="w-full rounded-md border border-slate-200 px-2 py-1 text-xs outline-none focus:border-slate-900"
placeholder={question.inputType === "free_text" ? undefined : t("companion.questions.other")}
disabled={busy}
value={value(question.id).text}
diff --git a/apps/web/src/components/CompanionRunTimeline.tsx b/apps/web/src/components/CompanionRunTimeline.tsx
index fee8069c..d6811f8d 100644
--- a/apps/web/src/components/CompanionRunTimeline.tsx
+++ b/apps/web/src/components/CompanionRunTimeline.tsx
@@ -37,8 +37,8 @@ function CompanionToolList({
<ul className="space-y-1">
{todos.map(todo => (
<li key={todo.id} className="flex items-start gap-1.5 text-xs text-slate-700">
- {todo.status === "completed" ? <Check className="mt-0.5 h-3 w-3 shrink-0 text-emerald-600" /> : todo.status === "in_progress"
- ? <Loader2 className="mt-0.5 h-3 w-3 shrink-0 animate-spin text-emerald-600" />
+ {todo.status === "completed" ? <Check className="mt-0.5 h-3 w-3 shrink-0 text-slate-950" /> : todo.status === "in_progress"
+ ? <Loader2 className="mt-0.5 h-3 w-3 shrink-0 animate-spin text-slate-500" />
: <Circle className="mt-0.5 h-3 w-3 shrink-0 text-slate-400" />}
<span className={todo.status === "completed" ? "text-slate-500 line-through" : ""}>{todo.content}</span>
</li>
@@ -58,7 +58,7 @@ function CompanionToolList({
const key = `${tool.id}-${effect.memoId}-${index}`;
return (
<div key={key} className="mt-0.5 flex flex-wrap items-center gap-x-2 gap-y-1 pl-0.5">
- <button type="button" disabled={busy} className="inline-flex max-w-full items-center gap-1 font-medium hover:text-emerald-600 hover:underline"
+ <button type="button" disabled={busy} className="inline-flex max-w-full items-center gap-1 font-medium hover:text-slate-950 hover:underline"
onClick={() => onOpenNote(effect.memoId!, effect.notebookId || "")}>
<FileText className="h-3 w-3 shrink-0 text-slate-400" />
<span className="truncate">{effect.title || t("common.untitledMemo")}</span>
diff --git a/apps/web/src/components/CompanionToolActionCard.tsx b/apps/web/src/components/CompanionToolActionCard.tsx
index 2af00771..8ff86451 100644
--- a/apps/web/src/components/CompanionToolActionCard.tsx
+++ b/apps/web/src/components/CompanionToolActionCard.tsx
@@ -42,7 +42,7 @@ export function CompanionToolActionCard({ action, busy, onApply, onDismiss, onOp
type="button"
disabled={busy}
onClick={() => onOpenNote(note.id, note.notebookId)}
- className="inline-flex max-w-full items-center gap-1 text-xs font-medium text-slate-800 hover:text-emerald-600 hover:underline "
+ className="inline-flex max-w-full items-center gap-1 text-xs font-medium text-slate-800 hover:text-slate-950 hover:underline "
>
<FileText className="h-3 w-3 shrink-0 text-slate-400" />
<span className="truncate">{note.title || t("common.untitledMemo")}</span>
@@ -101,7 +101,7 @@ export function CompanionToolActionCard({ action, busy, onApply, onDismiss, onOp
</div>
) : action.status === "applied" ? (
<div className="space-y-2">
- <div className="flex items-center justify-between gap-2 rounded-lg border border-emerald-200/50 bg-emerald-50/60 p-2.5 text-xs text-emerald-700 ">
+ <div className="flex items-center justify-between gap-2 rounded-lg border border-slate-200 bg-slate-50 p-2.5 text-xs text-slate-700 ">
<span className="flex items-center gap-1.5 font-medium">
<Check className="h-3.5 w-3.5" />
{t("companion.actions.status.applied")}
diff --git a/apps/web/src/components/DesktopRendererErrorBoundary.tsx b/apps/web/src/components/DesktopRendererErrorBoundary.tsx
index 62f10833..2fb98817 100644
--- a/apps/web/src/components/DesktopRendererErrorBoundary.tsx
+++ b/apps/web/src/components/DesktopRendererErrorBoundary.tsx
@@ -77,7 +77,7 @@ export class DesktopRendererErrorBoundary extends React.Component<{ children: Re
</p>
<div className="mt-5 flex flex-wrap gap-3">
<button
- className="rounded-lg bg-emerald-500 px-4 py-2 text-sm font-semibold text-white hover:bg-emerald-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500"
+ className="rounded-lg bg-emerald-500 px-4 py-2 text-sm font-semibold text-white hover:bg-emerald-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20"
type="button"
onClick={() => window.location.reload()}
>
@@ -85,7 +85,7 @@ export class DesktopRendererErrorBoundary extends React.Component<{ children: Re
</button>
{desktop ? (
<button
- className="rounded-lg border border-slate-300 bg-card px-4 py-2 text-sm font-semibold text-slate-700 hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500"
+ className="rounded-lg border border-slate-300 bg-card px-4 py-2 text-sm font-semibold text-slate-700 hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20"
type="button"
disabled={this.state.reporting}
onClick={() => void this.report()}
diff --git a/apps/web/src/components/DiagramEditorPane.tsx b/apps/web/src/components/DiagramEditorPane.tsx
index b958dc38..b44af889 100644
--- a/apps/web/src/components/DiagramEditorPane.tsx
+++ b/apps/web/src/components/DiagramEditorPane.tsx
@@ -491,7 +491,7 @@ const ArchitectureComponentLibrary = ({
{categories.length > 0 ? categories.map((category) => (
<Collapsible key={category.id} defaultOpen>
<DropdownMenuItem asChild onSelect={(event) => event.preventDefault()}>
- <CollapsibleTrigger className="group flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-xs font-semibold text-slate-700 hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--brand-green)]">
+ <CollapsibleTrigger className="group flex w-full items-center gap-2 rounded-md px-2 py-1.5 text-left text-xs font-semibold text-slate-700 hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/25">
<ChevronDown className="h-4 w-4 text-slate-400 transition-transform group-data-[state=closed]:-rotate-90" />
{t(category.labelKey)}
</CollapsibleTrigger>
@@ -580,7 +580,7 @@ const ArchitectureIconPicker = ({
<Button
variant="outline"
size="icon"
- className="h-8 w-8 shrink-0 rounded-md border-slate-200 bg-card p-0 text-slate-700 hover:bg-slate-50 focus-visible:ring-1 focus-visible:ring-[var(--brand-green)]"
+ className="h-8 w-8 shrink-0 rounded-md border-slate-200 bg-card p-0 text-slate-700 hover:bg-slate-50 focus-visible:ring-1 focus-visible:ring-slate-900/25"
aria-label={t("diagram.changeNodeIcon")}
>
<CurrentLucide className="h-4 w-4" />
@@ -613,7 +613,7 @@ const ArchitectureIconPicker = ({
{categories.length > 0 ? categories.map((category) => (
<Collapsible key={category.id} defaultOpen>
<DropdownMenuItem asChild onSelect={(event) => event.preventDefault()}>
- <CollapsibleTrigger className="group flex w-full items-center gap-1.5 rounded-md px-2 py-1 text-left text-xs font-semibold text-slate-700 hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-[var(--brand-green)]">
+ <CollapsibleTrigger className="group flex w-full items-center gap-1.5 rounded-md px-2 py-1 text-left text-xs font-semibold text-slate-700 hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-slate-900/25">
<ChevronDown className="h-3.5 w-3.5 text-slate-400 transition-transform group-data-[state=closed]:-rotate-90" />
{t(category.labelKey)}
</CollapsibleTrigger>
@@ -3042,7 +3042,7 @@ export const DiagramEditorPane = ({
? "bg-rose-50 text-rose-700"
: saveStatus === "saved"
? "bg-slate-100 text-slate-500"
- : "bg-emerald-50 text-emerald-700";
+ : "bg-slate-100 text-slate-700";
return (
<TooltipProvider>
@@ -3355,9 +3355,9 @@ export const DiagramEditorPane = ({
>
<span>{t("diagram.navHintPan")}</span>
<span className="text-slate-300 dark:text-slate-600">·</span>
- <span className={cn("inline-flex items-center transition-colors duration-150", shiftSelectActive && "font-medium text-emerald-600 dark:text-emerald-400")}>
+ <span className={cn("inline-flex items-center transition-colors duration-150", shiftSelectActive && "font-medium text-slate-950")}>
<span className="mr-1">{t("diagram.navHintHoldShift")}</span>
- <kbd className={cn("mr-1 inline-flex items-center rounded border px-1.5 py-0.5 text-xs font-semibold transition-colors duration-150", shiftSelectActive ? "border-emerald-300 bg-emerald-50 text-emerald-700 dark:border-emerald-700 dark:bg-emerald-950 dark:text-emerald-300" : "border-slate-200 bg-slate-100 text-slate-600 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300")}>
+ <kbd className={cn("mr-1 inline-flex items-center rounded border px-1.5 py-0.5 text-xs font-semibold transition-colors duration-150", shiftSelectActive ? "border-slate-400 bg-slate-100 text-slate-950" : "border-slate-200 bg-slate-100 text-slate-600 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-300")}>
Shift
</kbd>
<span>{t("diagram.navHintBoxSelect")}</span>
diff --git a/apps/web/src/components/EditorOutline.tsx b/apps/web/src/components/EditorOutline.tsx
index fb1ddce1..c138ca21 100644
--- a/apps/web/src/components/EditorOutline.tsx
+++ b/apps/web/src/components/EditorOutline.tsx
@@ -219,7 +219,7 @@ export const EditorOutline = ({ editor, scrollContainer, collapsed, shortcutLabe
<TooltipTrigger asChild>
<button
type="button"
- className="flex h-7 w-6 shrink-0 items-center justify-center rounded text-slate-400 transition-colors hover:bg-slate-200/70 hover:text-slate-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/60"
+ className="flex h-7 w-6 shrink-0 items-center justify-center rounded text-slate-400 transition-colors hover:bg-slate-200/70 hover:text-slate-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20"
onClick={() => toggleItem(item.pos)}
aria-label={toggleLabel}
aria-expanded={!itemCollapsed}
@@ -239,7 +239,7 @@ export const EditorOutline = ({ editor, scrollContainer, collapsed, shortcutLabe
<button
type="button"
- className="min-w-0 flex-1 truncate py-1 text-left font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/60"
+ className="min-w-0 flex-1 truncate py-1 text-left font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20"
onClick={() => jumpToHeading(item)}
aria-current={isActive ? "location" : undefined}
>
@@ -282,7 +282,7 @@ export const EditorOutline = ({ editor, scrollContainer, collapsed, shortcutLabe
<button
type="button"
className={cn(
- "group flex items-center text-left text-xs font-bold uppercase tracking-wider text-slate-500 transition-colors hover:text-slate-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/60",
+ "group flex items-center text-left text-xs font-bold uppercase tracking-wider text-slate-500 transition-colors hover:text-slate-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20",
collapsed ? "h-7 w-7 justify-center rounded-md hover:bg-slate-100" : "gap-1.5 rounded-sm"
)}
onClick={() => onCollapsedChange(!collapsed)}
diff --git a/apps/web/src/components/EditorPane.tsx b/apps/web/src/components/EditorPane.tsx
index 1051e833..91e61763 100644
--- a/apps/web/src/components/EditorPane.tsx
+++ b/apps/web/src/components/EditorPane.tsx
@@ -3390,7 +3390,7 @@ const RichEditorPane = ({
imageUploadState === "error"
? "bg-rose-50 text-rose-700"
: imageUploadState !== "idle"
- ? "bg-emerald-50 text-emerald-700"
+ ? "bg-slate-100 text-slate-700"
: saveStateClassName;
const updatedLabel = formatDateTime(memo.updatedAt);
@@ -3714,7 +3714,7 @@ const RichEditorPane = ({
"hidden rounded-md px-2 py-1 text-xs font-medium md:inline-flex",
imageUploadState === "error"
? "bg-rose-50 text-rose-700"
- : "bg-emerald-50 text-emerald-700"
+ : "bg-slate-100 text-slate-700"
)}
>
{imageUploadState === "error"
@@ -3927,12 +3927,12 @@ const RichEditorPane = ({
<DropdownMenuItem
className={cn(
"flex h-9 w-full items-center gap-2 px-3 text-left text-xs hover:bg-slate-50 cursor-pointer outline-none",
- isMemoShared ? "bg-emerald-50 text-emerald-800" : "text-slate-700",
+ isMemoShared ? "bg-workspace-selection text-slate-950" : "text-slate-700",
)}
disabled={isLocalMemoId(memo.id)}
onClick={() => setShareOpen(true)}
>
- <Share2 className={cn("h-4 w-4", isMemoShared ? "text-emerald-600" : "text-slate-500")} />
+ <Share2 className={cn("h-4 w-4", isMemoShared ? "text-slate-950" : "text-slate-500")} />
{t(isLocalMemoId(memo.id) ? "sharing.afterSync" : isMemoShared ? "sharing.manage" : "sharing.action")}
</DropdownMenuItem>
)}
@@ -4171,7 +4171,7 @@ const RichEditorPane = ({
/>
<div className="absolute right-3 top-3 flex gap-2">
<button
- className="rounded-full border border-emerald-200 bg-emerald-50 px-3 py-1.5 text-sm font-semibold text-emerald-800 shadow-sm"
+ className="rounded-full border border-slate-900 bg-slate-900 px-3 py-1.5 text-sm font-semibold text-slate-50 shadow-sm"
type="button"
onClick={() => void handleMobileClipboardInput()}
>
diff --git a/apps/web/src/components/EditorPaneErrorBoundary.tsx b/apps/web/src/components/EditorPaneErrorBoundary.tsx
index 24a06aec..f739f3e0 100644
--- a/apps/web/src/components/EditorPaneErrorBoundary.tsx
+++ b/apps/web/src/components/EditorPaneErrorBoundary.tsx
@@ -60,14 +60,14 @@ export class EditorPaneErrorBoundary extends React.Component<Props, State> {
</p>
<div className="mt-5 flex flex-wrap gap-3">
<button
- className="rounded-lg bg-emerald-500 px-4 py-2 text-sm font-semibold text-white hover:bg-emerald-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500"
+ className="rounded-lg bg-emerald-500 px-4 py-2 text-sm font-semibold text-white hover:bg-emerald-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20"
type="button"
onClick={this.props.onBackToList}
>
{zh ? "返回笔记列表" : "Back to note list"}
</button>
<button
- className="rounded-lg border border-slate-300 bg-card px-4 py-2 text-sm font-semibold text-slate-700 hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500"
+ className="rounded-lg border border-slate-300 bg-card px-4 py-2 text-sm font-semibold text-slate-700 hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20"
type="button"
onClick={this.retry}
>
@@ -85,7 +85,7 @@ export const EditorRecoveryPane = () => {
return (
<main className="flex h-full min-h-0 items-center justify-center bg-workspace-canvas p-6 text-slate-900">
<section className="w-full max-w-lg rounded-2xl border border-slate-200 bg-card p-6 shadow-sm" role="status">
- <div className="mb-4 flex h-11 w-11 items-center justify-center rounded-full bg-emerald-50 text-xl text-emerald-700">✓</div>
+ <div className="mb-4 flex h-11 w-11 items-center justify-center rounded-full bg-slate-100 text-xl text-slate-800">✓</div>
<h1 className="text-lg font-semibold">{zh ? "已进入安全启动模式" : "Safe startup mode is active"}</h1>
<p className="mt-2 text-sm leading-6 text-slate-600">
{zh
diff --git a/apps/web/src/components/EditorTagPicker.tsx b/apps/web/src/components/EditorTagPicker.tsx
index 0065f4d8..8d42d44e 100644
--- a/apps/web/src/components/EditorTagPicker.tsx
+++ b/apps/web/src/components/EditorTagPicker.tsx
@@ -184,7 +184,7 @@ export const EditorTagPicker = ({ contentMarkdown, disabled, loadTags, title, va
className={aiStatus.kind === "error"
? "inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-rose-700 outline-none transition hover:bg-rose-50 focus-visible:ring-2 focus-visible:ring-rose-500/20 disabled:opacity-50"
: aiStatus.kind === "success"
- ? "inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-emerald-50 text-emerald-700 outline-none transition focus-visible:ring-2 focus-visible:ring-slate-400/30 disabled:opacity-50"
+ ? "inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md bg-slate-100 text-slate-900 outline-none transition focus-visible:ring-2 focus-visible:ring-slate-400/30 disabled:opacity-50"
: "inline-flex h-7 w-7 shrink-0 items-center justify-center rounded-md text-slate-600 outline-none transition hover:bg-slate-100 hover:text-slate-950 focus-visible:ring-2 focus-visible:ring-slate-400/30 disabled:opacity-50"}
aria-label={aiDescription}
onClick={() => void generateAndApplyTags()}
diff --git a/apps/web/src/components/InfographicEditorPane.tsx b/apps/web/src/components/InfographicEditorPane.tsx
index 0d26f0c1..4ba8c587 100644
--- a/apps/web/src/components/InfographicEditorPane.tsx
+++ b/apps/web/src/components/InfographicEditorPane.tsx
@@ -430,7 +430,7 @@ export default function InfographicEditorPane({ memo, repository, readOnly, onBa
return <div className="flex h-full min-h-0 flex-col bg-card text-foreground">
<header className="flex flex-wrap items-center gap-2 border-b border-slate-200 px-4 py-3">
<Button variant="ghost" size="icon" className="lg:hidden" onClick={onBackToList} aria-label={t("common.back")}><ChevronLeft className="h-4 w-4" /></Button>
- <Presentation className="h-5 w-5 text-emerald-700" />
+ <Presentation className="h-5 w-5 text-slate-900" />
<div className="min-w-40 flex-1"><MemoTitleInput value={title} onValueChange={setTitle} placeholder={t("infographic.name")} readOnly={readOnly} /></div>
{readOnly ? <span className="text-xs text-slate-500">{t("infographic.readOnly")}</span> : <Button size="sm" disabled={!dirty || !ready || saving || Boolean(renderError) || (Boolean(syntax.trim()) && !previewReady)} onClick={() => void save()}>{saving ? t("infographic.saving") : t("infographic.save")}</Button>}
<Button variant="outline" size="sm" disabled={!previewReady || Boolean(renderError)} onClick={() => void exportImage("svg")}><Download className="mr-1 h-4 w-4" />{t("infographic.exportSvg")}</Button>
@@ -443,7 +443,7 @@ export default function InfographicEditorPane({ memo, repository, readOnly, onBa
<Conversation className="min-h-0 flex-1" aria-label={t("infographic.historyTitle")}>
<ConversationContent className="gap-4 p-0 pb-5">
{history.map((turn) => <div key={turn.id} className="space-y-2">
- <Message from="user"><MessageContent className="whitespace-pre-wrap break-words group-[.is-user]:rounded-xl group-[.is-user]:bg-emerald-50 group-[.is-user]:px-3 group-[.is-user]:py-2">{turn.prompt}</MessageContent></Message>
+ <Message from="user"><MessageContent className="whitespace-pre-wrap break-words group-[.is-user]:rounded-xl group-[.is-user]:bg-slate-100 group-[.is-user]:px-3 group-[.is-user]:py-2">{turn.prompt}</MessageContent></Message>
<Message from="assistant"><MessageContent className="w-full rounded-xl border border-slate-200 bg-card px-3 py-2 text-foreground">
<MessageResponse className="edgeever-infographic-chat-response break-words">{turn.response || (turn.kind === "clarified" ? t("infographic.historyClarified") : turn.kind === "failed" ? t("infographic.historyFailed") : t(turn.kind === "generated" ? "infographic.historyGenerated" : "infographic.historyRefined", { title: turn.resultTitle || t("infographic.name") }))}</MessageResponse>
{turn.decision && turn.decision !== turn.response && <p className="text-xs text-slate-600">{turn.decision}</p>}
@@ -454,8 +454,8 @@ export default function InfographicEditorPane({ memo, repository, readOnly, onBa
</MessageContent></Message>
</div>)}
{activeTurn && <div className="space-y-2" aria-live="polite">
- <Message from="user"><MessageContent className="whitespace-pre-wrap break-words group-[.is-user]:rounded-xl group-[.is-user]:bg-emerald-50 group-[.is-user]:px-3 group-[.is-user]:py-2">{activeTurn.prompt}</MessageContent></Message>
- <Message from="assistant"><MessageContent className="w-full rounded-xl border border-emerald-200 bg-card px-3 py-2 text-foreground">
+ <Message from="user"><MessageContent className="whitespace-pre-wrap break-words group-[.is-user]:rounded-xl group-[.is-user]:bg-slate-100 group-[.is-user]:px-3 group-[.is-user]:py-2">{activeTurn.prompt}</MessageContent></Message>
+ <Message from="assistant"><MessageContent className="w-full rounded-xl border border-slate-200 bg-card px-3 py-2 text-foreground">
<MessageResponse className="edgeever-infographic-chat-response break-words" isAnimating={generating}>{activeTurn.response || activeTurn.question || t("infographic.generating")}</MessageResponse>
{activeTurn.decision && activeTurn.decision !== activeTurn.response && <p className="text-xs text-slate-600">{activeTurn.decision}</p>}
{activeTurn.template && <p className="text-xs text-slate-500">{activeTurn.template}</p>}
@@ -464,9 +464,9 @@ export default function InfographicEditorPane({ memo, repository, readOnly, onBa
</ConversationContent>
<ConversationScrollButton aria-label={t("infographic.scrollToBottom")} />
</Conversation>
- {!readOnly && <div className="shrink-0 rounded-xl border border-emerald-100 bg-emerald-50/50 p-4">
- <label className="mb-2 block text-sm font-medium text-slate-800" htmlFor="infographic-prompt"><Sparkles className="mr-1 inline h-4 w-4 text-emerald-700" />{t(syntax.trim() ? "infographic.refine" : "infographic.describe")}</label>
- <textarea id="infographic-prompt" maxLength={1000} disabled={generating} className="min-h-24 w-full rounded-md border border-slate-200 bg-card p-3 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-emerald-500 disabled:opacity-60" placeholder={t(syntax.trim() ? "infographic.refinePrompt" : "infographic.prompt")} value={prompt} onChange={(event) => setPrompt(event.target.value)} onKeyDown={(event) => {
+ {!readOnly && <div className="shrink-0 rounded-xl border border-slate-200 bg-slate-50 p-4">
+ <label className="mb-2 block text-sm font-medium text-slate-800" htmlFor="infographic-prompt"><Sparkles className="mr-1 inline h-4 w-4 text-slate-700" />{t(syntax.trim() ? "infographic.refine" : "infographic.describe")}</label>
+ <textarea id="infographic-prompt" maxLength={1000} disabled={generating} className="min-h-24 w-full rounded-md border border-slate-200 bg-card p-3 text-sm text-foreground outline-none placeholder:text-muted-foreground focus-visible:ring-2 focus-visible:ring-slate-900/20 disabled:opacity-60" placeholder={t(syntax.trim() ? "infographic.refinePrompt" : "infographic.prompt")} value={prompt} onChange={(event) => setPrompt(event.target.value)} onKeyDown={(event) => {
if (event.key !== "Enter" || event.shiftKey || event.nativeEvent.isComposing || event.keyCode === 229) return;
event.preventDefault();
if (!event.repeat && prompt.trim() && !generating) void generate();
diff --git a/apps/web/src/components/LoginScreen.tsx b/apps/web/src/components/LoginScreen.tsx
index 53864cf5..bfcccca3 100644
--- a/apps/web/src/components/LoginScreen.tsx
+++ b/apps/web/src/components/LoginScreen.tsx
@@ -48,7 +48,7 @@ export const LoginScreen = ({ error, instanceUrl: initialInstanceUrl, isSubmitti
return (
<main className="flex h-[100dvh] items-center justify-center bg-[var(--workspace-canvas)] px-4 py-8 text-slate-950">
<div className="pointer-events-none absolute inset-0 bg-[radial-gradient(circle_at_50%_15%,rgb(var(--brand-green-rgb)/0.045),transparent_42%)]" />
- <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-card/85 text-slate-600 backdrop-blur transition hover:border-slate-300 hover:bg-card hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/60" iconClassName="h-5 w-5" />
+ <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-card/85 text-slate-600 backdrop-blur transition hover:border-slate-300 hover:bg-card hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20" iconClassName="h-5 w-5" />
<section className="relative w-full max-w-[400px] rounded-2xl border border-slate-200 bg-card/95 p-8 shadow-[0_20px_50px_rgb(0_0_0/0.08)] backdrop-blur-md">
<div className="mb-8 flex items-center gap-4">
@@ -86,7 +86,7 @@ export const LoginScreen = ({ error, instanceUrl: initialInstanceUrl, isSubmitti
autoCapitalize="none"
autoComplete="url"
autoCorrect="off"
- className="h-11 rounded-lg bg-slate-50/50 px-3.5 focus-visible:bg-card focus-visible:ring-2 focus-visible:ring-emerald-500/20"
+ className="h-11 rounded-lg bg-slate-50/50 px-3.5 focus-visible:bg-card focus-visible:ring-2 focus-visible:ring-slate-900/10"
inputMode="url"
placeholder={t("login.instanceUrlPlaceholder")}
required
@@ -101,7 +101,7 @@ export const LoginScreen = ({ error, instanceUrl: initialInstanceUrl, isSubmitti
<span className="mb-2 block text-sm font-semibold text-slate-700">{t("login.username")}</span>
<Input
autoComplete="username"
- className="h-11 rounded-lg bg-slate-50/50 px-3.5 focus-visible:bg-card focus-visible:ring-2 focus-visible:ring-emerald-500/20"
+ className="h-11 rounded-lg bg-slate-50/50 px-3.5 focus-visible:bg-card focus-visible:ring-2 focus-visible:ring-slate-900/10"
required
value={username}
onChange={(event) => setUsername(event.target.value)}
@@ -112,7 +112,7 @@ export const LoginScreen = ({ error, instanceUrl: initialInstanceUrl, isSubmitti
<span className="mb-2 block text-sm font-semibold text-slate-700">{t("login.password")}</span>
<Input
autoComplete="current-password"
- className="h-11 rounded-lg bg-slate-50/50 px-3.5 focus-visible:bg-card focus-visible:ring-2 focus-visible:ring-emerald-500/20"
+ className="h-11 rounded-lg bg-slate-50/50 px-3.5 focus-visible:bg-card focus-visible:ring-2 focus-visible:ring-slate-900/10"
required
type="password"
value={password}
diff --git a/apps/web/src/components/MemoEditorHeaderActions.tsx b/apps/web/src/components/MemoEditorHeaderActions.tsx
index 20fd774f..378476e6 100644
--- a/apps/web/src/components/MemoEditorHeaderActions.tsx
+++ b/apps/web/src/components/MemoEditorHeaderActions.tsx
@@ -59,7 +59,7 @@ export const MemoEditorHeaderActions = ({
aria-label={t("editor.moreAria")}
>
<MoreHorizontal className="h-4 w-4" />
- {deployedUpdateUnseen ? <span className="absolute right-1 top-1 h-1.5 w-1.5 rounded-full bg-emerald-500 ring-2 ring-white" /> : null}
+ {deployedUpdateUnseen ? <span className="absolute right-1 top-1 h-1.5 w-1.5 rounded-full bg-emerald-500 ring-2 ring-card" /> : null}
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent
@@ -95,7 +95,7 @@ export const MemoEditorHeaderActions = ({
>
<span className="relative flex h-4 w-4 shrink-0 items-center justify-center">
<Info className="h-4 w-4 text-slate-500" />
- {deployedUpdateUnseen ? <span className="absolute -right-0.5 -top-0.5 h-1.5 w-1.5 rounded-full bg-emerald-500 ring-1 ring-white" /> : null}
+ {deployedUpdateUnseen ? <span className="absolute -right-0.5 -top-0.5 h-1.5 w-1.5 rounded-full bg-emerald-500 ring-2 ring-card" /> : null}
</span>
{t("systemInfo.title")}
</DropdownMenuItem>
diff --git a/apps/web/src/components/MemoEditorMetadataRow.tsx b/apps/web/src/components/MemoEditorMetadataRow.tsx
index 9eb14371..3bf13262 100644
--- a/apps/web/src/components/MemoEditorMetadataRow.tsx
+++ b/apps/web/src/components/MemoEditorMetadataRow.tsx
@@ -51,7 +51,7 @@ export const MemoEditorMetadataRow = ({
<>
<div className={cn("flex flex-wrap items-center gap-1.5 sm:gap-2", rowClassName)}>
<button
- className="flex h-7 min-w-0 max-w-full items-center gap-1 rounded-md border border-transparent bg-transparent px-1.5 text-xs font-medium text-slate-600 outline-none transition hover:border-slate-200 hover:bg-slate-50 hover:text-slate-900 focus-visible:border-emerald-300 focus-visible:ring-2 focus-visible:ring-emerald-500/20 disabled:opacity-50 sm:hidden"
+ className="flex h-7 min-w-0 max-w-full items-center gap-1 rounded-md border border-transparent bg-transparent px-1.5 text-xs font-medium text-slate-600 outline-none transition hover:border-slate-200 hover:bg-slate-50 hover:text-slate-900 focus-visible:border-slate-400 focus-visible:ring-2 focus-visible:ring-slate-900/10 disabled:opacity-50 sm:hidden"
type="button"
disabled={disabled || notebookUpdatePending}
aria-label={t("editor.currentNotebookAria", { name: currentNotebookLabel })}
diff --git a/apps/web/src/components/MemoListMobileSheets.tsx b/apps/web/src/components/MemoListMobileSheets.tsx
index 9a17f25c..85ded87f 100644
--- a/apps/web/src/components/MemoListMobileSheets.tsx
+++ b/apps/web/src/components/MemoListMobileSheets.tsx
@@ -142,14 +142,14 @@ export const MobileListActionsSheet = ({
{memoListDensityOptions.map((option) => (
<ToggleGroupItem
key={option.value}
- 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"
+ className="h-11 w-full justify-start gap-3 rounded-md px-3 text-left text-sm data-[state=on]:bg-workspace-selection data-[state=on]:text-slate-950"
size="default"
value={option.value}
aria-label={option.label}
>
- <span className={listDensity === option.value ? "text-emerald-500" : "text-slate-500"}>{option.icon}</span>
+ <span className={listDensity === option.value ? "text-slate-950" : "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-emerald-500" : "text-transparent")} />
+ <CheckCircleCheck className={cn("h-4 w-4 shrink-0", listDensity === option.value ? "text-slate-950" : "text-transparent")} />
</ToggleGroupItem>
))}
</ToggleGroup>
@@ -161,14 +161,14 @@ export 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-emerald-50 text-emerald-700" : "text-slate-800 hover:bg-slate-50"
+ sortMode === option.value ? "bg-workspace-selection font-semibold text-slate-950" : "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-emerald-500" : "text-transparent")} />
+ <CheckCircleCheck className={cn("h-4 w-4 shrink-0", sortMode === option.value ? "text-slate-950" : "text-transparent")} />
</button>
))}
@@ -240,7 +240,7 @@ export const MobileMoveSheet = ({
key={option.id}
className={cn(
"h-11 gap-2 px-3",
- selected ? "bg-emerald-50 font-semibold text-emerald-700 data-[selected=true]:bg-emerald-50" : "text-slate-700"
+ selected ? "bg-workspace-selection font-semibold text-slate-950 data-[selected=true]:bg-workspace-selection" : "text-slate-700"
)}
style={{ paddingLeft: `${12 + option.depth * 18}px` }}
value={option.id}
@@ -251,9 +251,9 @@ export const MobileMoveSheet = ({
disabled={isMoving}
onSelect={() => onMove(option.id)}
>
- <NotebookIcon className={cn("h-4 w-4 shrink-0", selected ? "text-emerald-500" : "text-slate-600")} />
+ <NotebookIcon className={cn("h-4 w-4 shrink-0", selected ? "text-slate-950" : "text-slate-600")} />
<span className="min-w-0 flex-1 truncate">{option.name}</span>
- {selected ? <CheckCircleCheck className="h-4 w-4 shrink-0 text-emerald-500" /> : null}
+ {selected ? <CheckCircleCheck className="h-4 w-4 shrink-0 text-slate-950" /> : null}
</CommandItem>
);
})}
diff --git a/apps/web/src/components/MemoListPane.tsx b/apps/web/src/components/MemoListPane.tsx
index 2826ea82..8532fff1 100644
--- a/apps/web/src/components/MemoListPane.tsx
+++ b/apps/web/src/components/MemoListPane.tsx
@@ -1045,11 +1045,11 @@ export const MemoListPane = ({
onDrop={handleFileDrop}
>
{fileDragActive && (
- <div className="pointer-events-none absolute inset-2 z-40 flex items-center justify-center rounded-lg border-2 border-dashed border-emerald-500 bg-emerald-50/95 p-6 text-center shadow-lg backdrop-blur-sm">
+ <div className="pointer-events-none absolute inset-2 z-40 flex items-center justify-center rounded-lg border-2 border-dashed border-slate-400 bg-slate-50/95 p-6 text-center shadow-lg backdrop-blur-sm">
<div>
- <FileUp className="mx-auto h-8 w-8 text-emerald-600" />
- <div className="mt-3 text-sm font-semibold text-emerald-950">{t("memoList.dropMarkdownTitle")}</div>
- <div className="mt-1 text-xs text-emerald-800">{t("memoList.dropMarkdownDescription")}</div>
+ <FileUp className="mx-auto h-8 w-8 text-slate-700" />
+ <div className="mt-3 text-sm font-semibold text-slate-950">{t("memoList.dropMarkdownTitle")}</div>
+ <div className="mt-1 text-xs text-slate-600">{t("memoList.dropMarkdownDescription")}</div>
</div>
</div>
)}
diff --git a/apps/web/src/components/MemoTitleInput.tsx b/apps/web/src/components/MemoTitleInput.tsx
index 2883cedc..7217f66e 100644
--- a/apps/web/src/components/MemoTitleInput.tsx
+++ b/apps/web/src/components/MemoTitleInput.tsx
@@ -23,7 +23,7 @@ export const MemoTitleInput = ({
{...props}
aria-label={ariaLabel ?? placeholder}
className={cn(
- "block w-full rounded-md border-0 bg-transparent px-2 py-1 text-sm font-semibold leading-tight text-slate-900 outline-none transition placeholder:text-slate-300 hover:bg-slate-100/60 focus-visible:bg-muted focus-visible:shadow-[inset_3px_0_0_var(--brand-green)] read-only:text-slate-600 read-only:hover:bg-transparent read-only:focus-visible:bg-transparent read-only:focus-visible:shadow-none sm:text-base",
+ "block w-full rounded-md border-0 bg-transparent px-2 py-1 text-sm font-semibold leading-tight text-slate-900 outline-none transition placeholder:text-slate-300 hover:bg-slate-100/60 focus-visible:bg-muted focus-visible:shadow-[inset_3px_0_0_rgb(var(--slate-950-rgb))] read-only:text-slate-600 read-only:hover:bg-transparent read-only:focus-visible:bg-transparent read-only:focus-visible:shadow-none sm:text-base",
className
)}
maxLength={160}
diff --git a/apps/web/src/components/NotebookPane.tsx b/apps/web/src/components/NotebookPane.tsx
index e6dcd505..03855105 100644
--- a/apps/web/src/components/NotebookPane.tsx
+++ b/apps/web/src/components/NotebookPane.tsx
@@ -252,7 +252,7 @@ const SidebarCollapseButton = ({
<button
type="button"
className={cn(
- "flex h-8 w-8 items-center justify-center rounded-md text-slate-600 transition-colors duration-150 hover:bg-slate-100 hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70",
+ "flex h-8 w-8 items-center justify-center rounded-md text-slate-600 transition-colors duration-150 hover:bg-slate-100 hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20",
className
)}
aria-label={label}
@@ -291,7 +291,7 @@ const SidebarRailButton = ({
aria-label={label}
onClick={onClick}
className={cn(
- "flex h-9 w-9 items-center justify-center rounded-lg text-slate-600 transition-colors duration-150 hover:bg-slate-100 hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70 disabled:cursor-not-allowed disabled:opacity-50",
+ "flex h-9 w-9 items-center justify-center rounded-lg text-slate-600 transition-colors duration-150 hover:bg-slate-100 hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20 disabled:cursor-not-allowed disabled:opacity-50",
active && "edgeever-workspace-selection text-slate-950"
)}
>
@@ -326,14 +326,14 @@ const CreateMemoTypeItems = ({ onCreateMemo }: { onCreateMemo: (kind?: NoteCreat
<DropdownMenuItem className="gap-2 text-xs leading-5" onSelect={() => onCreateMemo("infographic")}>
<Presentation className="h-4 w-4 shrink-0" />
<span className="min-w-0 flex-1 truncate">{t("infographic.name")}</span>
- <span className="inline-flex shrink-0 items-center rounded-full border border-emerald-200/80 bg-emerald-50 px-1.5 text-xs font-normal leading-5 text-emerald-700">
+ <span className="inline-flex shrink-0 items-center rounded-full border border-slate-200 bg-slate-100 px-1.5 text-xs font-normal leading-5 text-slate-600">
Beta
</span>
</DropdownMenuItem>
<DropdownMenuItem className="gap-2 text-xs leading-5" onSelect={() => onCreateMemo("table")}>
<TableProperties className="h-4 w-4 shrink-0" />
<span className="min-w-0 flex-1 truncate">{t("structuredTable.name")}</span>
- <span className="inline-flex shrink-0 items-center rounded-full border border-emerald-200/80 bg-emerald-50 px-1.5 text-xs font-normal leading-5 text-emerald-700">
+ <span className="inline-flex shrink-0 items-center rounded-full border border-slate-200 bg-slate-100 px-1.5 text-xs font-normal leading-5 text-slate-600">
Beta
</span>
</DropdownMenuItem>
@@ -415,7 +415,7 @@ const SyncStatusBar = ({
)}
</m.span>
<button
- className="min-w-0 flex-1 truncate text-left text-xs font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/40"
+ className="min-w-0 flex-1 truncate text-left text-xs font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/15"
type="button"
onClick={() => setDetailsOpen(true)}
>
@@ -713,7 +713,7 @@ export const NotebookPane = ({
onClick={() => onCreateMemo()}
disabled={!canCreateMemo || isCreatingMemo}
>
- <span className="flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-emerald-500 text-white shadow-[0_5px_12px_rgb(var(--brand-green-rgb)/0.22)] transition-transform duration-150 group-hover:scale-[1.03] group-focus-visible:ring-2 group-focus-visible:ring-emerald-500/70 group-focus-visible:ring-offset-2">
+ <span className="flex h-9 w-9 shrink-0 items-center justify-center rounded-full bg-emerald-500 text-white shadow-[0_5px_12px_rgb(var(--brand-green-rgb)/0.22)] transition-transform duration-150 group-hover:scale-[1.03] group-focus-visible:ring-2 group-focus-visible:ring-slate-900/20 group-focus-visible:ring-offset-2">
<Plus className="h-5 w-5" />
</span>
<span className="whitespace-nowrap text-sm font-semibold text-slate-950">{t("notebookPane.newMemo")}</span>
@@ -861,7 +861,7 @@ export const NotebookPane = ({
<TooltipTrigger asChild>
<button
type="button"
- className="flex h-8 w-8 items-center justify-center rounded-full bg-emerald-500 text-white shadow-[0_3px_8px_rgb(var(--brand-green-rgb)/0.24)] transition-transform duration-150 hover:scale-[1.03] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"
+ className="flex h-8 w-8 items-center justify-center rounded-full bg-emerald-500 text-white shadow-[0_3px_8px_rgb(var(--brand-green-rgb)/0.24)] transition-transform duration-150 hover:scale-[1.03] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50"
aria-label={t("notebookPane.newMemo")}
onClick={() => onCreateMemo()}
disabled={!canCreateMemo || isCreatingMemo}
@@ -877,7 +877,7 @@ export const NotebookPane = ({
<DropdownMenuTrigger asChild>
<button
type="button"
- className="flex h-8 w-8 items-center justify-center rounded-lg text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70 disabled:cursor-not-allowed disabled:opacity-50"
+ className="flex h-8 w-8 items-center justify-center rounded-lg text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-800 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20 disabled:cursor-not-allowed disabled:opacity-50"
aria-label={t("diagram.createType")}
disabled={!canCreateMemo || isCreatingMemo}
>
@@ -942,7 +942,7 @@ export const NotebookPane = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<button
- className="flex h-9 w-full items-center gap-3 rounded-md px-3 text-left text-xs font-medium leading-5 text-slate-700 transition-colors duration-200 hover:bg-workspace-hover hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-400/70 data-[state=open]:bg-workspace-hover data-[state=open]:text-slate-950"
+ className="flex h-9 w-full items-center gap-3 rounded-md px-3 text-left text-xs font-medium leading-5 text-slate-700 transition-colors duration-200 hover:bg-workspace-hover hover:text-slate-950 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20 data-[state=open]:bg-workspace-hover data-[state=open]:text-slate-950"
type="button"
aria-label={t("pwa.sidebarDownloadsTitle") || "下载 EdgeEver 客户端与浏览器插件"}
>
@@ -1065,7 +1065,7 @@ export const NotebookPane = ({
>
<div className="flex min-w-0 items-center gap-2.5">
<BrandIconContainer>
- <Download className="h-3.5 w-3.5 text-emerald-600 " />
+ <Download className="h-3.5 w-3.5 text-slate-700" />
</BrandIconContainer>
<span className="truncate font-medium">{t("pwa.sidebarAndroidApk") || "APK 下载"}</span>
</div>
diff --git a/apps/web/src/components/PublicSharePage.tsx b/apps/web/src/components/PublicSharePage.tsx
index 2fb198a2..3f298f28 100644
--- a/apps/web/src/components/PublicSharePage.tsx
+++ b/apps/web/src/components/PublicSharePage.tsx
@@ -160,7 +160,7 @@ const PublicSharePasswordForm = ({
return (
<main className="flex min-h-[100dvh] items-center justify-center bg-slate-50 px-5">
<section className="w-full max-w-md rounded-2xl border border-slate-200 bg-card p-8 shadow-sm">
- <LockKeyhole className="mx-auto h-9 w-9 text-emerald-600" />
+ <LockKeyhole className="mx-auto h-9 w-9 text-slate-700" />
<h1 className="mt-4 text-center text-xl font-semibold text-slate-900">{t("sharing.passwordRequiredTitle")}</h1>
<p className="mt-2 text-center text-sm leading-6 text-slate-500">{t("sharing.passwordRequiredHint")}</p>
<form className="mt-6 space-y-3" onSubmit={submit}>
@@ -261,7 +261,7 @@ export const PublicSharePage = () => {
<article className="mx-auto max-w-4xl overflow-hidden rounded-2xl border border-slate-200 bg-card shadow-sm">
<header className="border-b border-slate-200 px-5 py-6 sm:px-10 sm:py-8">
<div className="mb-5 flex items-center justify-between gap-4 text-xs text-slate-500">
- <span className="flex items-center gap-1.5 font-semibold text-emerald-700">
+ <span className="flex items-center gap-1.5 font-semibold text-slate-700">
<ShieldCheck className="h-4 w-4" /> EdgeEver · {t("sharing.readOnly")}
</span>
<span className="flex items-center gap-1.5">
diff --git a/apps/web/src/components/PublicTableFormPage.tsx b/apps/web/src/components/PublicTableFormPage.tsx
index 5a00bcf0..4ab76c16 100644
--- a/apps/web/src/components/PublicTableFormPage.tsx
+++ b/apps/web/src/components/PublicTableFormPage.tsx
@@ -94,7 +94,7 @@ export const PublicTableFormPage = () => {
};
if (formQuery.isLoading) {
- return <div className="grid min-h-screen place-items-center"><LoaderCircle className="h-6 w-6 animate-spin text-emerald-700" /></div>;
+ return <div className="grid min-h-screen place-items-center"><LoaderCircle className="h-6 w-6 animate-spin text-slate-500" /></div>;
}
if (formQuery.isError || !form) {
return <div className="grid min-h-screen place-items-center px-6 text-sm text-slate-600">{t("structuredTable.form.closed")}</div>;
@@ -129,7 +129,7 @@ export const PublicTableFormPage = () => {
return (
<div className="flex min-h-[100dvh] items-center justify-center bg-slate-50/60 px-4">
<main className="w-full max-w-md rounded-2xl border border-slate-200/80 bg-card p-8 shadow-sm space-y-5 text-center">
- <div className="mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-emerald-50 text-emerald-600">
+ <div className="mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-slate-100 text-slate-700">
<Check className="h-6 w-6" />
</div>
<h1 className="text-xl font-semibold text-slate-900">{t("structuredTable.form.submitted")}</h1>
@@ -174,7 +174,7 @@ export const PublicTableFormPage = () => {
<div className="pt-0.5">
<input
type="checkbox"
- className="h-4 w-4 rounded border-slate-300 text-emerald-600 focus:ring-emerald-500/70"
+ className="h-4 w-4 rounded border-slate-300 text-slate-900 focus:ring-slate-900/20"
checked={value === true}
aria-label={field.name}
onChange={(event) => setValues((current) => ({ ...current, [field.id]: event.target.checked }))}
@@ -182,7 +182,7 @@ export const PublicTableFormPage = () => {
</div>
) : field.type === "select" ? (
<select
- className="h-10 w-full rounded-md border border-slate-200 bg-card px-3 text-slate-900 outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70"
+ className="h-10 w-full rounded-md border border-slate-200 bg-card px-3 text-slate-900 outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20"
value={typeof value === "string" ? value : ""}
required={field.required}
aria-label={field.name}
diff --git a/apps/web/src/components/PwaIosPrompt.tsx b/apps/web/src/components/PwaIosPrompt.tsx
index 27e8a859..2cdc2825 100644
--- a/apps/web/src/components/PwaIosPrompt.tsx
+++ b/apps/web/src/components/PwaIosPrompt.tsx
@@ -15,11 +15,11 @@ export const PwaIosPrompt = () => {
<div className="fixed bottom-6 left-4 right-4 z-50 mx-auto max-w-md animate-in fade-in slide-in-from-bottom-5 duration-300">
<div className="relative overflow-hidden rounded-2xl border border-slate-200/80 bg-card/95 p-4 shadow-[0_12px_30px_rgba(15,23,42,0.08)] backdrop-blur-md">
{/* Decorative top accent line */}
- <div className="absolute top-0 left-0 right-0 h-1 bg-gradient-to-r from-emerald-500 to-teal-500" />
+ <div className="absolute top-0 left-0 right-0 h-1 bg-slate-900" />
<button
onClick={dismissIOSPrompt}
- className="absolute right-2 top-2 rounded-full p-1 text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600 focus:outline-none focus:ring-2 focus:ring-emerald-500/20"
+ className="absolute right-2 top-2 rounded-full p-1 text-slate-400 transition-colors hover:bg-slate-100 hover:text-slate-600 focus:outline-none focus:ring-2 focus:ring-slate-900/10"
aria-label={t("common.close") || "Close"}
>
<X className="h-4 w-4" />
diff --git a/apps/web/src/components/SettingsPane.tsx b/apps/web/src/components/SettingsPane.tsx
index 3c3fe7e5..0367d3f7 100644
--- a/apps/web/src/components/SettingsPane.tsx
+++ b/apps/web/src/components/SettingsPane.tsx
@@ -74,10 +74,6 @@ interface TabItem {
label: string;
badge?: string;
icon: React.ComponentType<{ className?: string }>;
- colorClass: string;
- bgColorClass: string;
- hoverColorClass: string;
- iconColorClass: string;
}
export const SettingsPane = ({
@@ -111,28 +107,16 @@ export const SettingsPane = ({
key: "general",
label: t("settings.tabs.general"),
icon: SlidersHorizontal,
- colorClass: "text-emerald-700",
- bgColorClass: "bg-emerald-50/80",
- hoverColorClass: "hover:bg-emerald-50/40",
- iconColorClass: "text-emerald-600",
},
{
key: "ai",
label: t("settings.tabs.ai"),
icon: Sparkles,
- colorClass: "text-emerald-700",
- bgColorClass: "bg-emerald-50/80",
- hoverColorClass: "hover:bg-emerald-50/40",
- iconColorClass: "text-emerald-600",
},
{
key: "data",
label: t("settings.tabs.data"),
icon: Database,
- colorClass: "text-emerald-700",
- bgColorClass: "bg-emerald-50/80",
- hoverColorClass: "hover:bg-emerald-50/40",
- iconColorClass: "text-emerald-600",
},
...(isOwner
? [
@@ -140,10 +124,6 @@ export const SettingsPane = ({
key: "users" as const,
label: t("users.title"),
icon: Users,
- colorClass: "text-emerald-700",
- bgColorClass: "bg-emerald-50/80",
- hoverColorClass: "hover:bg-emerald-50/40",
- iconColorClass: "text-emerald-600",
},
]
: []),
@@ -151,19 +131,11 @@ export const SettingsPane = ({
key: "advanced",
label: t("settings.tabs.advanced"),
icon: Wrench,
- colorClass: "text-emerald-700",
- bgColorClass: "bg-emerald-50/80",
- hoverColorClass: "hover:bg-emerald-50/40",
- iconColorClass: "text-emerald-600",
},
{
key: "account",
label: t("settings.tabs.account"),
icon: Shield,
- colorClass: "text-emerald-700",
- bgColorClass: "bg-emerald-50/80",
- hoverColorClass: "hover:bg-emerald-50/40",
- iconColorClass: "text-emerald-600",
},
];
@@ -191,14 +163,6 @@ export const SettingsPane = ({
return User;
})();
- const HeaderIconColorClass = (() => {
- if (activeMobileTab !== null) {
- const activeItem = tabItems.find((item) => item.key === activeMobileTab);
- return activeItem ? activeItem.iconColorClass : "text-emerald-700";
- }
- return "text-emerald-700";
- })();
-
const renderTabContent = (key: TabKey) => {
switch (key) {
case "general":
@@ -279,7 +243,7 @@ export const SettingsPane = ({
</Button>
<div className="min-w-0">
<h1 className={`flex items-center gap-2 ${WORKSPACE_PAGE_TITLE_CLASSNAME}`}>
- <HeaderIcon className={cn("h-4 w-4 shrink-0 transition-colors", HeaderIconColorClass)} />
+ <HeaderIcon className="h-4 w-4 shrink-0 text-slate-900" />
<span className="truncate text-slate-900">{getHeaderTitle()}</span>
</h1>
</div>
@@ -349,8 +313,8 @@ export const SettingsPane = ({
className="flex w-full items-center justify-between gap-4 p-4 text-left transition-colors hover:bg-slate-50/50"
>
<div className="flex items-center gap-3">
- <div className="flex h-8 w-8 items-center justify-center rounded-lg bg-emerald-50/80">
- <LayoutTemplate className="h-4 w-4 text-emerald-600" />
+ <div className="flex h-8 w-8 items-center justify-center rounded-lg bg-slate-100">
+ <LayoutTemplate className="h-4 w-4 text-slate-700" />
</div>
<span className="text-xs font-normal leading-5 text-slate-800">{t("nav.templates")}</span>
</div>
@@ -362,8 +326,8 @@ export const SettingsPane = ({
className="flex w-full items-center justify-between gap-4 border-t border-slate-100 p-4 text-left transition-colors hover:bg-slate-50/50"
>
<div className="flex items-center gap-3">
- <div className="flex h-8 w-8 items-center justify-center rounded-lg bg-emerald-50/80">
- <Sparkles className="h-4 w-4 text-emerald-600" />
+ <div className="flex h-8 w-8 items-center justify-center rounded-lg bg-slate-100">
+ <Sparkles className="h-4 w-4 text-slate-700" />
</div>
<span className="text-xs font-normal leading-5 text-slate-800">{t("nav.prompts")}</span>
</div>
@@ -381,12 +345,12 @@ export const SettingsPane = ({
className="flex w-full items-center justify-between gap-4 p-4 text-left transition-colors hover:bg-slate-50/50"
>
<div className="flex items-center gap-3">
- <div className={cn("flex h-8 w-8 items-center justify-center rounded-lg", item.bgColorClass)}>
- <Icon className={cn("h-4 w-4", item.iconColorClass)} />
+ <div className="flex h-8 w-8 items-center justify-center rounded-lg bg-slate-100">
+ <Icon className="h-4 w-4 text-slate-700" />
</div>
<span className="text-xs font-normal leading-5 text-slate-800">{item.label}</span>
{item.badge ? (
- <span className="rounded-full border border-emerald-200/80 bg-emerald-50 px-1.5 text-xs font-normal leading-5 text-emerald-700">
+ <span className="rounded-full border border-slate-200 bg-slate-100 px-1.5 text-xs font-normal leading-5 text-slate-600">
{item.badge}
</span>
) : null}
@@ -400,12 +364,12 @@ export const SettingsPane = ({
<button
type="button"
onClick={() => setSystemInfoOpen(true)}
- className="flex min-h-16 w-full items-center justify-between gap-3 px-4 py-2.5 text-left text-slate-600 transition-colors hover:bg-slate-200/50 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70"
+ className="flex min-h-16 w-full items-center justify-between gap-3 px-4 py-2.5 text-left text-slate-600 transition-colors hover:bg-slate-200/50 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20"
>
<span className="flex min-w-0 items-center gap-3">
- <span className="relative flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-emerald-50/80">
- <Info className="h-4 w-4 text-emerald-600" />
- {deployedUpdateUnseen ? <span className="absolute right-0.5 top-0.5 h-1.5 w-1.5 rounded-full bg-emerald-500 ring-2 ring-white" /> : null}
+ <span className="relative flex h-8 w-8 shrink-0 items-center justify-center rounded-lg bg-slate-100">
+ <Info className="h-4 w-4 text-slate-700" />
+ {deployedUpdateUnseen ? <span className="absolute right-0.5 top-0.5 h-1.5 w-1.5 rounded-full bg-emerald-500 ring-2 ring-card" /> : null}
</span>
<span className="min-w-0">
<span className="block truncate text-sm font-semibold">{t("systemInfo.title")}</span>
diff --git a/apps/web/src/components/TableEditorPane.tsx b/apps/web/src/components/TableEditorPane.tsx
index 605dfd76..e9324d1b 100644
--- a/apps/web/src/components/TableEditorPane.tsx
+++ b/apps/web/src/components/TableEditorPane.tsx
@@ -68,7 +68,7 @@ type TableEditorPaneProps = {
type EditingCell = { recordId: string; fieldId: string };
-const controlClassName = "h-8 rounded-md border border-slate-200 bg-card px-2 text-xs text-slate-700 outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70 disabled:cursor-not-allowed disabled:opacity-50";
+const controlClassName = "h-8 rounded-md border border-slate-200 bg-card px-2 text-xs text-slate-700 outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20 disabled:cursor-not-allowed disabled:opacity-50";
const snapshotOf = (title: string, document: TableDocument) => JSON.stringify({ title, document });
@@ -111,7 +111,7 @@ const FieldHeader = ({
<DropdownMenuTrigger asChild>
<button
type="button"
- className="flex w-full min-w-36 items-center justify-between gap-2 rounded-md px-2 py-1 text-left text-xs font-medium text-slate-600 hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70"
+ className="flex w-full min-w-36 items-center justify-between gap-2 rounded-md px-2 py-1 text-left text-xs font-medium text-slate-600 hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20"
aria-label={t("structuredTable.editField", { name: field.name })}
disabled={readOnly}
>
@@ -262,7 +262,7 @@ const AttachmentCell = ({
href={href}
target="_blank"
rel="noreferrer"
- className="h-8 w-8 shrink-0 overflow-hidden rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70"
+ className="h-8 w-8 shrink-0 overflow-hidden rounded focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20"
aria-label={openLabel}
>
<img src={href} alt="" className="h-full w-full object-cover" />
@@ -273,7 +273,7 @@ const AttachmentCell = ({
) : (
<>
<Paperclip className="h-3.5 w-3.5 shrink-0 text-slate-400" aria-hidden="true" />
- <a href={href} className="min-w-0 flex-1 truncate text-sm text-emerald-700 underline-offset-2 hover:underline" target="_blank" rel="noreferrer">{item.filename}</a>
+ <a href={href} className="min-w-0 flex-1 truncate text-sm text-slate-800 underline-offset-2 hover:underline" target="_blank" rel="noreferrer">{item.filename}</a>
</>
)}
<div className="hidden items-center gap-1 group-hover/attachment:flex group-focus-within/attachment:flex">
@@ -414,7 +414,7 @@ const RecordCell = ({
return (
<button
type="button"
- className="block h-8 w-full min-w-36 truncate rounded-md px-2 text-left text-sm text-slate-800 hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70 disabled:hover:bg-transparent"
+ className="block h-8 w-full min-w-36 truncate rounded-md px-2 text-left text-sm text-slate-800 hover:bg-slate-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20 disabled:hover:bg-transparent"
disabled={readOnly}
onClick={() => onEdit({ recordId: record.id, fieldId: field.id })}
>
@@ -756,7 +756,7 @@ export const TableEditorPane = ({
</TooltipTrigger>
<TooltipContent>{t("structuredTable.back")}</TooltipContent>
</Tooltip>
- <TableProperties className="h-4 w-4 text-emerald-600" aria-hidden="true" />
+ <TableProperties className="h-4 w-4 text-slate-900" aria-hidden="true" />
<div className="min-w-0 flex-1">
<MemoTitleInput
ariaLabel={t("structuredTable.title")}
@@ -797,7 +797,7 @@ export const TableEditorPane = ({
variant="outline"
size="sm"
disabled={readOnly}
- className={formAccepting ? "border-emerald-200 bg-emerald-50 text-emerald-700 hover:border-emerald-300 hover:bg-emerald-100 hover:text-emerald-800" : undefined}
+ className={formAccepting ? "border-slate-900 bg-slate-100 text-slate-950 hover:bg-slate-200" : undefined}
onClick={() => setFormOpen(true)}
>
<Form className="h-4 w-4" />
diff --git a/apps/web/src/components/WorkspaceMobileChrome.tsx b/apps/web/src/components/WorkspaceMobileChrome.tsx
index cadb4527..bdbf578d 100644
--- a/apps/web/src/components/WorkspaceMobileChrome.tsx
+++ b/apps/web/src/components/WorkspaceMobileChrome.tsx
@@ -34,9 +34,9 @@ const MobileBottomNavButton = ({
}) => (
<button
className={cn(
- "relative mx-auto flex h-12 w-20 flex-col items-center justify-center gap-0.5 rounded-md text-xs font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--brand-green)]",
+ "relative mx-auto flex h-12 w-20 flex-col items-center justify-center gap-0.5 rounded-md text-xs font-medium transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/25",
active
- ? "font-bold text-slate-950 [&_svg]:text-emerald-700"
+ ? "font-bold text-slate-950 [&_svg]:text-slate-950"
: "text-slate-500 hover:bg-slate-100 hover:text-slate-950"
)}
type="button"
@@ -44,7 +44,7 @@ const MobileBottomNavButton = ({
aria-label={label}
onClick={onClick}
>
- {active ? <span aria-hidden="true" className="absolute top-0 h-0.5 w-5 rounded-full bg-emerald-700" /> : null}
+ {active ? <span aria-hidden="true" className="absolute top-0 h-0.5 w-5 rounded-full bg-slate-950" /> : null}
{icon}
<span>{label}</span>
</button>
@@ -78,7 +78,7 @@ export const MobileBottomNav = ({
<DropdownMenu>
<DropdownMenuTrigger asChild>
<button
- className="flex h-mobile-touch flex-col items-center justify-center gap-0.5 rounded-md text-xs font-medium text-emerald-700 transition hover:bg-emerald-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500 disabled:cursor-not-allowed disabled:opacity-50"
+ className="flex h-mobile-touch flex-col items-center justify-center gap-0.5 rounded-md text-xs font-medium text-emerald-700 transition hover:bg-emerald-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20 disabled:cursor-not-allowed disabled:opacity-50"
type="button"
aria-label={createMemoLabel}
disabled={!canCreateMemo || isCreating}
@@ -111,7 +111,7 @@ export const MobileBottomNav = ({
<DropdownMenuItem className="gap-2 text-xs leading-5" onSelect={() => onCreateMemo("table")}>
<TableProperties className="h-4 w-4 shrink-0" />
<span className="min-w-0 flex-1 truncate">{t("structuredTable.name")}</span>
- <span className="inline-flex shrink-0 items-center rounded-full border border-emerald-200/80 bg-emerald-50 px-1.5 text-xs font-normal leading-5 text-emerald-700">
+ <span className="inline-flex shrink-0 items-center rounded-full border border-slate-200 bg-slate-100 px-1.5 text-xs font-normal leading-5 text-slate-600">
Beta
</span>
</DropdownMenuItem>
diff --git a/apps/web/src/components/dialogs/AiAssistantDialog.tsx b/apps/web/src/components/dialogs/AiAssistantDialog.tsx
index e44faffc..e3af7c6d 100644
--- a/apps/web/src/components/dialogs/AiAssistantDialog.tsx
+++ b/apps/web/src/components/dialogs/AiAssistantDialog.tsx
@@ -77,7 +77,7 @@ const FREEFORM_VALUE = "custom";
const PROMPT_VALUE_PREFIX = "prompt:";
const AI_ASSISTANT_LAYER_SELECTOR = '[data-edgeever-ai-assistant-layer="true"]';
const AI_ASSISTANT_VIEWPORT_GAP = 12;
-const AI_ASSISTANT_SELECT_TRIGGER_CLASSNAME = "h-10 w-full min-w-0 shadow-none focus:border-emerald-400 focus:ring-2 focus:ring-emerald-500/15 focus:ring-offset-0 data-[state=open]:border-emerald-400 data-[state=open]:ring-2 data-[state=open]:ring-emerald-500/15";
+const AI_ASSISTANT_SELECT_TRIGGER_CLASSNAME = "h-10 w-full min-w-0 shadow-none focus:border-slate-900 focus:ring-2 focus:ring-slate-900/10 focus:ring-offset-0 data-[state=open]:border-slate-900 data-[state=open]:ring-2 data-[state=open]:ring-slate-900/10";
const getViewportSize = () => ({
height: typeof window === "undefined" ? 768 : window.innerHeight,
@@ -671,9 +671,9 @@ export const AiAssistantDialog = ({
onPointerDown={handleDragStart}
>
<div className="flex min-w-0 flex-1 items-center gap-2">
- <Sparkles className="h-5 w-5 shrink-0 text-emerald-600" />
+ <Sparkles className="h-5 w-5 shrink-0 text-slate-700" />
<span className="truncate text-sm font-semibold text-slate-950">{t("aiAssistant.title")}</span>
- <span className="shrink-0 rounded-full bg-emerald-100 px-2 py-0.5 text-xs font-medium text-emerald-800">
+ <span className="shrink-0 rounded-full bg-slate-100 px-2 py-0.5 text-xs font-medium text-slate-700">
{t(chatting
? "aiAssistant.workspaceScope"
: usesComposerAsSource
@@ -731,7 +731,7 @@ export const AiAssistantDialog = ({
<div className="min-h-0 flex-1 overflow-y-auto pr-1">
<div className="grid gap-4">
{hasSelection ? (
- <p className="max-h-12 overflow-hidden whitespace-pre-wrap border-l-2 border-emerald-200 pl-3 text-xs leading-5 text-slate-500">
+ <p className="max-h-12 overflow-hidden whitespace-pre-wrap border-l-2 border-slate-300 pl-3 text-xs leading-5 text-slate-500">
{selectionMarkdown}
</p>
) : null}
@@ -743,7 +743,7 @@ export const AiAssistantDialog = ({
: "aiAssistant.inputContent")}
<textarea
ref={instructionRef}
- className="min-h-24 resize-y rounded-md border border-slate-200 bg-card px-3 py-2 text-sm font-normal text-slate-900 outline-none focus:border-emerald-400 focus:ring-2 focus:ring-emerald-500/15"
+ className="min-h-24 resize-y rounded-md border border-slate-200 bg-card px-3 py-2 text-sm font-normal text-slate-900 outline-none focus:border-slate-900 focus:ring-2 focus:ring-slate-900/10"
value={customInstruction}
onChange={(event) => {
handleComposerChange(event.target.value);
@@ -780,7 +780,7 @@ export const AiAssistantDialog = ({
{onOpenPromptLibrary ? (
<button
type="button"
- className="inline-flex items-center gap-1 text-xs font-medium text-emerald-700 hover:text-emerald-800"
+ className="inline-flex items-center gap-1 text-xs font-medium text-slate-800 hover:text-slate-950"
onClick={() => {
onOpenChange(false);
onOpenPromptLibrary();
@@ -824,7 +824,7 @@ export const AiAssistantDialog = ({
variant="outline"
className={cn(
"h-10 min-w-0 w-full gap-1.5 whitespace-nowrap px-3 text-sm font-medium",
- isFreeformCustom && "border-emerald-200 bg-emerald-50 text-emerald-800 hover:bg-emerald-100 hover:text-emerald-900",
+ isFreeformCustom && "border-slate-900 bg-slate-100 text-slate-950 hover:bg-slate-200 hover:text-slate-950",
)}
onClick={() => handleActionChange(FREEFORM_VALUE)}
>
@@ -953,7 +953,7 @@ export const AiAssistantDialog = ({
<span className="shrink-0 text-slate-400">{formatAiAttachmentSize(attachment.byteLength)}</span>
<button
type="button"
- className="ml-0.5 rounded p-0.5 text-slate-400 hover:bg-slate-200 hover:text-slate-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500"
+ className="ml-0.5 rounded p-0.5 text-slate-400 hover:bg-slate-200 hover:text-slate-700 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20"
aria-label={t("aiAssistant.removeAttachment", { name: attachment.filename })}
onClick={() => {
setAttachments((current) => current.filter((_, itemIndex) => itemIndex !== index));
@@ -976,7 +976,7 @@ export const AiAssistantDialog = ({
<div className="flex items-center justify-between gap-3">
<span className="text-sm font-medium text-slate-700">{t("aiAssistant.result")}</span>
{isGenerating ? (
- <span className="flex items-center gap-1.5 text-xs font-medium text-emerald-700">
+ <span className="flex items-center gap-1.5 text-xs font-medium text-slate-600">
<Loader2 className="h-3.5 w-3.5 animate-spin" />{t("aiAssistant.generating")}
</span>
) : null}
@@ -1005,7 +1005,7 @@ export const AiAssistantDialog = ({
<span className="text-sm font-medium text-slate-700">{t("aiAssistant.refine")}</span>
<div className="flex flex-col gap-2 sm:flex-row">
<input
- className="h-10 min-w-0 flex-1 rounded-md border border-slate-200 bg-card px-3 text-sm outline-none focus:border-emerald-400 focus:ring-2 focus:ring-emerald-500/15"
+ className="h-10 min-w-0 flex-1 rounded-md border border-slate-200 bg-card px-3 text-sm outline-none focus:border-slate-900 focus:ring-2 focus:ring-slate-900/10"
value={refinement}
onChange={(event) => setRefinement(event.target.value)}
aria-label={t("aiAssistant.refine")}
diff --git a/apps/web/src/components/dialogs/ConfirmDialogs.tsx b/apps/web/src/components/dialogs/ConfirmDialogs.tsx
index 1db7cd2c..d00b1645 100644
--- a/apps/web/src/components/dialogs/ConfirmDialogs.tsx
+++ b/apps/web/src/components/dialogs/ConfirmDialogs.tsx
@@ -43,7 +43,7 @@ export const AppConfirmDialog = ({
tone === "danger"
? "bg-rose-50 text-rose-700"
: tone === "primary"
- ? "bg-emerald-50 text-emerald-700"
+ ? "bg-slate-100 text-slate-800"
: "bg-slate-100 text-slate-600";
const confirmVariant = tone === "danger" ? "danger" : "solid";
const Icon = tone === "danger" ? AlertTriangle : ShieldCheck;
@@ -177,7 +177,7 @@ export const NotebookNameDialog = ({
<Input
id="notebook-name-input"
ref={inputRef}
- className="mt-2 h-11 text-base focus-visible:border-emerald-300 focus-visible:ring-emerald-500/20"
+ className="mt-2 h-11 text-base focus-visible:border-slate-400 focus-visible:ring-slate-900/10"
value={name}
disabled={isSaving}
maxLength={80}
diff --git a/apps/web/src/components/dialogs/ExternalLinkDialog.tsx b/apps/web/src/components/dialogs/ExternalLinkDialog.tsx
index b91c4e9f..d0dfcf4f 100644
--- a/apps/web/src/components/dialogs/ExternalLinkDialog.tsx
+++ b/apps/web/src/components/dialogs/ExternalLinkDialog.tsx
@@ -84,7 +84,7 @@ export const ExternalLinkDialog = ({
<DialogContent className="max-w-md gap-0 overflow-hidden p-0">
<DialogHeader className="border-b border-slate-200 px-5 py-5 pr-12 text-left">
<DialogTitle className="flex items-center gap-2 text-base">
- <LinkIcon className="h-5 w-5 text-emerald-600" />
+ <LinkIcon className="h-5 w-5 text-slate-700" />
{canRemove ? t("externalLinkDialog.editTitle") : t("externalLinkDialog.title")}
</DialogTitle>
<DialogDescription className="pt-1 leading-5">
diff --git a/apps/web/src/components/dialogs/MathFormulaDialog.tsx b/apps/web/src/components/dialogs/MathFormulaDialog.tsx
index 8e1203c0..914f05a2 100644
--- a/apps/web/src/components/dialogs/MathFormulaDialog.tsx
+++ b/apps/web/src/components/dialogs/MathFormulaDialog.tsx
@@ -84,7 +84,7 @@ export const MathFormulaDialog = ({
<DialogContent className="max-w-lg gap-0 overflow-hidden p-0">
<DialogHeader className="border-b border-slate-200 px-5 py-5 pr-12 text-left">
<DialogTitle className="flex items-center gap-2 text-base">
- <Sigma className="h-5 w-5 text-emerald-600" />
+ <Sigma className="h-5 w-5 text-slate-700" />
{editing ? t("mathFormulaDialog.editTitle") : t("mathFormulaDialog.title")}
</DialogTitle>
<DialogDescription className="pt-1 leading-5">
@@ -107,7 +107,7 @@ export const MathFormulaDialog = ({
type="button"
className={
kind === value
- ? "flex-1 rounded-sm bg-emerald-50 px-3 py-1.5 text-xs font-medium text-emerald-800"
+ ? "flex-1 rounded-sm bg-workspace-selection px-3 py-1.5 text-xs font-semibold text-slate-950"
: "flex-1 rounded-sm px-3 py-1.5 text-xs font-medium text-slate-600 hover:bg-slate-50"
}
aria-pressed={kind === value}
@@ -129,7 +129,7 @@ export const MathFormulaDialog = ({
value={latex}
rows={3}
spellCheck={false}
- className="w-full resize-y rounded-md border border-slate-200 bg-card px-3 py-2 font-mono text-sm text-slate-900 outline-none ring-emerald-500/30 placeholder:text-slate-400 focus:border-emerald-400 focus:ring-2"
+ className="w-full resize-y rounded-md border border-slate-200 bg-card px-3 py-2 font-mono text-sm text-slate-900 outline-none ring-slate-900/15 placeholder:text-slate-400 focus:border-slate-900 focus:ring-2"
placeholder={t("mathFormulaDialog.latexPlaceholder")}
aria-invalid={Boolean(error) || undefined}
onChange={(event) => {
diff --git a/apps/web/src/components/dialogs/RevisionHistoryDialog.tsx b/apps/web/src/components/dialogs/RevisionHistoryDialog.tsx
index 120d3ca3..de70d0a4 100644
--- a/apps/web/src/components/dialogs/RevisionHistoryDialog.tsx
+++ b/apps/web/src/components/dialogs/RevisionHistoryDialog.tsx
@@ -86,7 +86,7 @@ export const RevisionHistoryDialog = ({
<DialogHeader className="border-b border-slate-200 px-5 py-4 pr-12 text-left">
<div className="min-w-0">
<DialogTitle className="flex items-center gap-2 text-lg font-semibold text-slate-950">
- <History className="h-5 w-5 text-emerald-600" />
+ <History className="h-5 w-5 text-slate-700" />
{t("revisions.title")}
</DialogTitle>
<DialogDescription className="mt-1 truncate text-sm text-slate-500">
@@ -146,14 +146,14 @@ export const RevisionHistoryDialog = ({
className={cn(
"group flex flex-col w-full rounded-lg border p-3 text-left transition-all duration-200",
selectedRevision?.id === revision.id
- ? "border-emerald-200 bg-emerald-50/30 shadow-sm ring-1 ring-emerald-100/50"
+ ? "border-slate-300 bg-slate-50 shadow-sm ring-1 ring-slate-200"
: "border-slate-100/80 bg-card/60 hover:border-slate-200 hover:bg-slate-50/80"
)}
onClick={() => setSelectedRevisionId(revision.id)}
>
<span className={cn(
"block text-sm font-semibold transition-colors duration-200",
- selectedRevision?.id === revision.id ? "text-emerald-950" : "text-slate-900 group-hover:text-slate-950"
+ selectedRevision?.id === revision.id ? "text-slate-950" : "text-slate-900 group-hover:text-slate-950"
)}>
{t("revisions.revisionName", { revision: revision.revision })}
</span>
@@ -180,7 +180,7 @@ export const RevisionHistoryDialog = ({
</div>
<div className="flex h-11 items-center justify-between bg-slate-50/90 backdrop-blur-sm px-4">
<div className="text-xs font-semibold text-slate-600">{t("revisions.currentContent")}</div>
- <div className="h-2 w-2 rounded-full bg-emerald-500" />
+ <div className="h-2 w-2 rounded-full bg-slate-950" />
</div>
</div>
@@ -213,7 +213,7 @@ export const RevisionHistoryDialog = ({
<div
className={cn(
"grid grid-cols-[3rem_minmax(0,1fr)] px-0 font-mono text-sm leading-6 transition-colors",
- rightRow.state === "changed" && "bg-emerald-50/45 text-emerald-950 border-l-2 border-emerald-400/85",
+ rightRow.state === "changed" && "bg-slate-100 text-slate-950 border-l-2 border-slate-900",
rightRow.state === "empty" && "bg-slate-50/30 text-transparent select-none border-l-2 border-transparent",
rightRow.state === "same" && "text-slate-700 border-l-2 border-transparent hover:bg-slate-50/30"
)}
diff --git a/apps/web/src/components/dialogs/ShareMemoDialog.tsx b/apps/web/src/components/dialogs/ShareMemoDialog.tsx
index b81ef08d..351c14a8 100644
--- a/apps/web/src/components/dialogs/ShareMemoDialog.tsx
+++ b/apps/web/src/components/dialogs/ShareMemoDialog.tsx
@@ -143,7 +143,7 @@ export const ShareMemoDialog = ({
<DialogContent className="max-w-lg gap-0 overflow-hidden p-0">
<DialogHeader className="border-b border-slate-200 px-5 py-5 pr-12 text-left">
<DialogTitle className="flex items-center gap-2 text-base">
- <Share2 className="h-5 w-5 text-emerald-600" />
+ <Share2 className="h-5 w-5 text-slate-700" />
{t("sharing.title")}
</DialogTitle>
<DialogDescription className="pt-1 leading-5">
diff --git a/apps/web/src/components/dialogs/ShareNoteImageDialog.tsx b/apps/web/src/components/dialogs/ShareNoteImageDialog.tsx
index 0b892ebe..4dba535b 100644
--- a/apps/web/src/components/dialogs/ShareNoteImageDialog.tsx
+++ b/apps/web/src/components/dialogs/ShareNoteImageDialog.tsx
@@ -210,7 +210,7 @@ export const ShareNoteImageDialog = ({
<DialogContent className="max-h-[94vh] max-w-5xl gap-0 overflow-hidden p-0">
<DialogHeader className="border-b border-slate-200 px-5 py-3.5 pr-12 text-left">
<DialogTitle className="flex items-center gap-2 text-base font-semibold">
- <Share2 className="h-4.5 w-4.5 text-emerald-600" />
+ <Share2 className="h-4.5 w-4.5 text-slate-700" />
{t("editor.imageShare.title")}
</DialogTitle>
<DialogDescription className="sr-only">{t("editor.imageShare.description")}</DialogDescription>
@@ -231,7 +231,7 @@ export const ShareNoteImageDialog = ({
</div>
) : (
<div className="flex min-h-64 items-center justify-center gap-2 text-sm text-slate-500" role="status">
- <LoaderCircle className="h-5 w-5 animate-spin text-emerald-600" />
+ <LoaderCircle className="h-5 w-5 animate-spin text-slate-500" />
{t("editor.imageShare.generating")}
</div>
)}
@@ -253,9 +253,9 @@ export const ShareNoteImageDialog = ({
key={item.id}
aria-pressed={isSelected}
className={cn(
- "group relative flex items-center gap-2.5 rounded-lg border p-2 text-left text-xs font-medium transition-all outline-none focus-visible:ring-2 focus-visible:ring-emerald-500",
+ "group relative flex items-center gap-2.5 rounded-lg border p-2 text-left text-xs font-medium transition-all outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20",
isSelected
- ? "border-emerald-500 bg-emerald-50/40 text-emerald-950 ring-1 ring-emerald-500"
+ ? "border-slate-900 bg-slate-50 text-slate-950 ring-1 ring-slate-900"
: "border-slate-200 bg-card text-slate-700 hover:border-slate-300 hover:bg-slate-50/70",
)}
type="button"
@@ -284,9 +284,9 @@ export const ShareNoteImageDialog = ({
key={item.id}
aria-pressed={fontStyle === item.id}
className={cn(
- "h-8 rounded-md border text-xs font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-emerald-500",
+ "h-8 rounded-md border text-xs font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20",
fontStyle === item.id
- ? "border-emerald-500 bg-emerald-50 text-emerald-900 font-semibold"
+ ? "border-slate-900 bg-slate-100 text-slate-950 font-semibold"
: "border-slate-200 bg-card text-slate-600 hover:bg-slate-50",
)}
type="button"
@@ -306,9 +306,9 @@ export const ShareNoteImageDialog = ({
key={item.id}
aria-pressed={fontSize === item.id}
className={cn(
- "h-7 rounded border text-xs font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-emerald-500",
+ "h-7 rounded border text-xs font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20",
fontSize === item.id
- ? "border-emerald-500 bg-emerald-50/80 text-emerald-900 font-semibold"
+ ? "border-slate-900 bg-slate-100 text-slate-950 font-semibold"
: "border-slate-200 bg-card text-slate-600 hover:bg-slate-50",
)}
type="button"
@@ -329,9 +329,9 @@ export const ShareNoteImageDialog = ({
key={item.id}
aria-pressed={cardWidth === item.id}
className={cn(
- "h-7 rounded border text-xs font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-emerald-500",
+ "h-7 rounded border text-xs font-medium transition-colors outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20",
cardWidth === item.id
- ? "border-emerald-500 bg-emerald-50/80 text-emerald-900 font-semibold"
+ ? "border-slate-900 bg-slate-100 text-slate-950 font-semibold"
: "border-slate-200 bg-card text-slate-600 hover:bg-slate-50",
)}
type="button"
diff --git a/apps/web/src/components/dialogs/TableFormDialog.tsx b/apps/web/src/components/dialogs/TableFormDialog.tsx
index 7997acd0..fe07e943 100644
--- a/apps/web/src/components/dialogs/TableFormDialog.tsx
+++ b/apps/web/src/components/dialogs/TableFormDialog.tsx
@@ -366,7 +366,7 @@ export const TableFormDialog = ({
<label className="block space-y-1 text-sm">
<span>{t("structuredTable.form.formDescription")}</span>
<textarea
- className="min-h-20 w-full rounded-md border border-slate-200 px-3 py-2 text-sm outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70"
+ className="min-h-20 w-full rounded-md border border-slate-200 px-3 py-2 text-sm outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20"
value={draft.description}
onChange={(event) => changeText({ description: event.target.value })}
aria-label={t("structuredTable.form.formDescription")}
diff --git a/apps/web/src/components/dialogs/TemplatesDialog.tsx b/apps/web/src/components/dialogs/TemplatesDialog.tsx
index fbb20636..6e9efd6e 100644
--- a/apps/web/src/components/dialogs/TemplatesDialog.tsx
+++ b/apps/web/src/components/dialogs/TemplatesDialog.tsx
@@ -58,7 +58,7 @@ export const TemplatesDialog = ({
<DialogHeader className="flex flex-row items-start justify-between gap-3 border-b border-slate-200 px-5 py-4 text-left">
<div className="min-w-0">
<DialogTitle className="flex items-center gap-2 text-base font-semibold text-slate-950">
- <LayoutList className="h-4 w-4 text-emerald-700" />
+ <LayoutList className="h-4 w-4 text-slate-900" />
{t("templates.title")}
</DialogTitle>
<DialogDescription className="mt-1 text-xs text-slate-500">
@@ -72,7 +72,7 @@ export const TemplatesDialog = ({
<section>
<h3 className="mb-2 text-xs font-bold text-slate-900">{t("templates.myTemplates")}</h3>
{editingTemplate && (
- <div className="mb-4 space-y-3 rounded-xl border border-emerald-200/80 bg-card p-4 shadow-xs">
+ <div className="mb-4 space-y-3 rounded-xl border border-slate-200 bg-card p-4 shadow-xs">
<h4 className="text-xs font-semibold text-slate-800">{t("templates.editTemplateTitle")}</h4>
<div className="grid gap-2.5 sm:grid-cols-2">
<Input value={draft.name} onChange={(event) => setDraft((current) => ({ ...current, name: event.target.value }))} placeholder={t("templates.namePlaceholder")} />
@@ -81,7 +81,7 @@ export const TemplatesDialog = ({
<Input value={draft.tags} onChange={(event) => setDraft((current) => ({ ...current, tags: event.target.value }))} placeholder={t("templates.tagsPlaceholder")} />
</div>
<textarea
- className="min-h-36 w-full resize-y rounded-lg border border-slate-200 bg-card p-3 font-mono text-xs text-slate-900 outline-none focus-visible:border-emerald-500 focus-visible:ring-2 focus-visible:ring-emerald-500/20"
+ className="min-h-36 w-full resize-y rounded-lg border border-slate-200 bg-card p-3 font-mono text-xs text-slate-900 outline-none focus-visible:border-slate-900 focus-visible:ring-2 focus-visible:ring-slate-900/10"
value={draft.contentMarkdown}
onChange={(event) => setDraft((current) => ({ ...current, contentMarkdown: event.target.value }))}
placeholder={t("templates.contentPlaceholder")}
@@ -94,7 +94,7 @@ export const TemplatesDialog = ({
)}
<div className="grid gap-3 sm:grid-cols-2">
{savedTemplates.map((template) => (
- <div key={template.id} className="rounded-xl border border-slate-200 bg-card p-3.5 shadow-2xs hover:border-emerald-200 transition">
+ <div key={template.id} className="rounded-xl border border-slate-200 bg-card p-3.5 shadow-2xs hover:border-slate-300 transition">
<button
className="block w-full text-left disabled:opacity-50"
type="button"
@@ -117,7 +117,7 @@ export const TemplatesDialog = ({
</div>
<button
type="button"
- className="text-xs font-semibold text-emerald-700 hover:text-emerald-800 transition"
+ className="text-xs font-semibold text-slate-800 hover:text-slate-950 transition"
disabled={!canCreateMemo || isCreating}
onClick={() => onUseSavedTemplate(template)}
>
diff --git a/apps/web/src/components/editor/EditorNoteLinkPicker.tsx b/apps/web/src/components/editor/EditorNoteLinkPicker.tsx
index af15b2e2..bcc01701 100644
--- a/apps/web/src/components/editor/EditorNoteLinkPicker.tsx
+++ b/apps/web/src/components/editor/EditorNoteLinkPicker.tsx
@@ -65,7 +65,7 @@ export const EditorNoteLinkPicker = ({
<CommandGroup>
{candidates.map((candidate) => (
<CommandItem key={candidate.id} value={candidate.id} onSelect={() => onInsert(candidate)}>
- <Link2 className="h-4 w-4 shrink-0 text-emerald-600" />
+ <Link2 className="h-4 w-4 shrink-0 text-slate-600" />
<span className="min-w-0 flex-1 truncate">{candidate.title || t("common.untitledMemo")}</span>
<span className="max-w-40 truncate text-xs text-slate-400">{candidate.excerpt}</span>
</CommandItem>
diff --git a/apps/web/src/components/editor/EditorPaneChrome.tsx b/apps/web/src/components/editor/EditorPaneChrome.tsx
index 24750814..ac135439 100644
--- a/apps/web/src/components/editor/EditorPaneChrome.tsx
+++ b/apps/web/src/components/editor/EditorPaneChrome.tsx
@@ -219,7 +219,7 @@ export const MobileNotebookSelectSheet = ({
key={option.id}
className={cn(
"h-12 px-3 text-base",
- selected ? "bg-emerald-50 font-semibold text-emerald-700 data-[selected=true]:bg-emerald-50" : "text-slate-700",
+ selected ? "bg-workspace-selection font-semibold text-slate-950 data-[selected=true]:bg-workspace-selection" : "text-slate-700",
)}
style={{ paddingLeft: `${12 + option.depth * 18}px` }}
value={option.id}
diff --git a/apps/web/src/components/editor/NoteLinkSuggestion.tsx b/apps/web/src/components/editor/NoteLinkSuggestion.tsx
index a6d25b07..a4597f66 100644
--- a/apps/web/src/components/editor/NoteLinkSuggestion.tsx
+++ b/apps/web/src/components/editor/NoteLinkSuggestion.tsx
@@ -82,7 +82,7 @@ export const NoteLinkSuggestion = forwardRef<NoteLinkSuggestionHandle, NoteLinkS
onMouseDown={(event) => event.preventDefault()}
onSelect={() => command(item)}
>
- <Link2 className="h-4 w-4 shrink-0 text-emerald-600" />
+ <Link2 className="h-4 w-4 shrink-0 text-slate-600" />
<span className="min-w-0 flex-1 truncate">{item.title || labels.untitled}</span>
<span className="max-w-40 truncate text-xs text-slate-400">{item.excerpt}</span>
</CommandItem>
diff --git a/apps/web/src/components/editor/editor-save-chrome.ts b/apps/web/src/components/editor/editor-save-chrome.ts
index 6714d176..e2d62abf 100644
--- a/apps/web/src/components/editor/editor-save-chrome.ts
+++ b/apps/web/src/components/editor/editor-save-chrome.ts
@@ -32,7 +32,7 @@ export const getEditorSaveChrome = ({
: saveState === "queued"
? "bg-slate-50 text-slate-400"
: saveState === "saving" || hasUnsavedChanges
- ? "bg-emerald-50 text-emerald-700"
+ ? "bg-slate-100 text-slate-700"
: "bg-slate-100 text-slate-500";
return { saveLabel, saveStateClassName };
diff --git a/apps/web/src/components/execution/ExecutionCenterButton.tsx b/apps/web/src/components/execution/ExecutionCenterButton.tsx
index 89a5110f..7fbe06aa 100644
--- a/apps/web/src/components/execution/ExecutionCenterButton.tsx
+++ b/apps/web/src/components/execution/ExecutionCenterButton.tsx
@@ -27,7 +27,7 @@ export const ExecutionCenterButton = ({ onClick, className }: ExecutionCenterBut
variant="ghost"
aria-label={t("executionHistory.openCenter")}
className={cn(
- "h-9 w-9 shrink-0 text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-950 focus-visible:ring-2 focus-visible:ring-emerald-500/70",
+ "h-9 w-9 shrink-0 text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-950 focus-visible:ring-2 focus-visible:ring-slate-900/20",
className,
)}
onClick={onClick}
diff --git a/apps/web/src/components/pdf/PdfViewer.tsx b/apps/web/src/components/pdf/PdfViewer.tsx
index 5183cf7c..3329f8af 100644
--- a/apps/web/src/components/pdf/PdfViewer.tsx
+++ b/apps/web/src/components/pdf/PdfViewer.tsx
@@ -140,7 +140,7 @@ const PdfDocument = ({ url, active, fitWidth, zoom, onError }: PdfDocumentProps)
if (!document) {
return (
<span className="flex min-h-72 items-center justify-center gap-2 text-sm text-slate-500">
- <Loader2 className="h-5 w-5 animate-spin text-emerald-600" aria-hidden="true" />
+ <Loader2 className="h-5 w-5 animate-spin text-slate-500" aria-hidden="true" />
{t("pdfViewer.loading")}
</span>
);
diff --git a/apps/web/src/components/plugins/PluginToolbarMenu.tsx b/apps/web/src/components/plugins/PluginToolbarMenu.tsx
index 097b40d4..82ed8897 100644
--- a/apps/web/src/components/plugins/PluginToolbarMenu.tsx
+++ b/apps/web/src/components/plugins/PluginToolbarMenu.tsx
@@ -94,7 +94,7 @@ export const PluginToolbarMenu = ({
}}
>
{pendingAction === key ? (
- <LoaderCircle className="h-4 w-4 animate-spin text-emerald-600" />
+ <LoaderCircle className="h-4 w-4 animate-spin text-slate-500" />
) : action.type === "panel" ? (
<PanelRightOpen className="h-4 w-4 text-slate-500" />
) : (
@@ -113,13 +113,13 @@ export const PluginToolbarMenu = ({
<TooltipTrigger asChild>
<DropdownMenuTrigger asChild>
<Button
- className={cn("relative hidden h-8 w-8 text-slate-600 hover:bg-slate-50 hover:text-slate-950 focus-visible:ring-2 focus-visible:ring-emerald-500/70 lg:inline-flex", className)}
+ className={cn("relative hidden h-8 w-8 text-slate-600 hover:bg-slate-50 hover:text-slate-950 focus-visible:ring-2 focus-visible:ring-slate-900/20 lg:inline-flex", className)}
size="icon"
variant="ghost"
aria-label={t("plugins.toolbar.open")}
>
<Puzzle className="h-4 w-4" />
- {hasActions ? <span className="absolute right-1 top-1 h-1.5 w-1.5 rounded-full bg-emerald-500 ring-2 ring-white" aria-hidden="true" /> : null}
+ {hasActions ? <span className="absolute right-1 top-1 h-1.5 w-1.5 rounded-full bg-emerald-500 ring-2 ring-card" aria-hidden="true" /> : null}
</Button>
</DropdownMenuTrigger>
</TooltipTrigger>
diff --git a/apps/web/src/components/plugins/PluginUpdateDialog.tsx b/apps/web/src/components/plugins/PluginUpdateDialog.tsx
index 9bc22a07..20f69b91 100644
--- a/apps/web/src/components/plugins/PluginUpdateDialog.tsx
+++ b/apps/web/src/components/plugins/PluginUpdateDialog.tsx
@@ -24,7 +24,7 @@ export const PluginUpdateDialog = ({
<Dialog open={true} onOpenChange={(open) => { if (!open && !isUpdating) onCancel(); }}>
<DialogContent className="max-w-md overflow-hidden rounded-lg border border-slate-200 bg-card p-0 shadow-lg">
<DialogHeader className="flex flex-row items-start gap-4 border-b border-slate-200 px-5 py-5 text-left">
- <span className={`flex h-10 w-10 shrink-0 items-center justify-center rounded-full ${hasAddedAccess ? "bg-amber-50 text-amber-700" : "bg-emerald-50 text-emerald-700"}`}>
+ <span className={`flex h-10 w-10 shrink-0 items-center justify-center rounded-full ${hasAddedAccess ? "bg-amber-50 text-amber-700" : "bg-slate-100 text-slate-800"}`}>
{hasAddedAccess ? <AlertTriangle className="h-5 w-5" /> : <ShieldCheck className="h-5 w-5" />}
</span>
<div className="min-w-0 flex-1">
diff --git a/apps/web/src/components/settings/AccountInfoCard.tsx b/apps/web/src/components/settings/AccountInfoCard.tsx
index 6608525f..48130f80 100644
--- a/apps/web/src/components/settings/AccountInfoCard.tsx
+++ b/apps/web/src/components/settings/AccountInfoCard.tsx
@@ -22,7 +22,7 @@ export const AccountInfoCard = ({ user }: { user: AuthUser | null }) => {
</CardTitle>
</CardHeader>
<CardContent className="flex items-center gap-3 p-4 pt-0">
- <div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-emerald-50 text-emerald-700">
+ <div className="flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-slate-100 text-slate-800">
<UserRound className="h-5 w-5" />
</div>
<div className="min-w-0">
diff --git a/apps/web/src/components/settings/AiProviderCard.tsx b/apps/web/src/components/settings/AiProviderCard.tsx
index dda6c971..dcaad9a5 100644
--- a/apps/web/src/components/settings/AiProviderCard.tsx
+++ b/apps/web/src/components/settings/AiProviderCard.tsx
@@ -250,7 +250,7 @@ export const AiProviderCard = ({ provider: saved, defaultDisplayName, defaultMod
<span className="min-w-0 truncate font-mono text-xs text-slate-400">({model.modelId})</span>
) : null}
{model.id === defaultModelId ? (
- <span className="shrink-0 rounded border border-emerald-200/60 bg-emerald-50 px-1 py-0.5 text-xs font-medium text-emerald-700">
+ <span className="shrink-0 rounded border border-slate-200 bg-slate-100 px-1 py-0.5 text-xs font-medium text-slate-700">
{t("aiModel.defaultBadge")}
</span>
) : null}
diff --git a/apps/web/src/components/settings/AiTagSuggestionPromptCard.tsx b/apps/web/src/components/settings/AiTagSuggestionPromptCard.tsx
index 7330674b..d8537a95 100644
--- a/apps/web/src/components/settings/AiTagSuggestionPromptCard.tsx
+++ b/apps/web/src/components/settings/AiTagSuggestionPromptCard.tsx
@@ -73,7 +73,7 @@ export const AiTagSuggestionPromptCard = () => {
<>
<textarea
aria-label={t("settings.aiTagPromptTitle")}
- className="min-h-44 w-full resize-y rounded-md border border-slate-200 bg-card px-3 py-2 font-mono text-xs leading-5 text-slate-800 outline-none transition focus:border-emerald-500 focus:ring-2 focus:ring-emerald-100 disabled:cursor-not-allowed disabled:bg-slate-50 disabled:text-slate-500"
+ className="min-h-44 w-full resize-y rounded-md border border-slate-200 bg-card px-3 py-2 font-mono text-xs leading-5 text-slate-800 outline-none transition focus:border-slate-900 focus:ring-2 focus:ring-slate-200 disabled:cursor-not-allowed disabled:bg-slate-50 disabled:text-slate-500"
disabled={disabled}
maxLength={4000}
onChange={(event) => setPrompt(event.target.value)}
diff --git a/apps/web/src/components/settings/CustomEditorThemeDialog.tsx b/apps/web/src/components/settings/CustomEditorThemeDialog.tsx
index f5bc4af6..5c95ff74 100644
--- a/apps/web/src/components/settings/CustomEditorThemeDialog.tsx
+++ b/apps/web/src/components/settings/CustomEditorThemeDialog.tsx
@@ -161,7 +161,7 @@ export const CustomEditorThemeDialog = ({
onClick={() => setActiveMode("light")}
className={`flex flex-1 items-center justify-center gap-1.5 rounded-md py-1 text-xs font-medium transition-all ${
activeMode === "light"
- ? "bg-card text-emerald-800 shadow-sm"
+ ? "bg-card font-semibold text-slate-950 shadow-sm"
: "text-slate-500 hover:text-slate-800"
}`}
>
@@ -173,7 +173,7 @@ export const CustomEditorThemeDialog = ({
onClick={() => setActiveMode("dark")}
className={`flex flex-1 items-center justify-center gap-1.5 rounded-md py-1 text-xs font-medium transition-all ${
activeMode === "dark"
- ? "bg-card text-emerald-800 shadow-sm"
+ ? "bg-card font-semibold text-slate-950 shadow-sm"
: "text-slate-500 hover:text-slate-800"
}`}
>
@@ -224,7 +224,7 @@ export const CustomEditorThemeDialog = ({
value={draft.customCss || ""}
onChange={(event) => setDraft((current) => ({ ...current, customCss: event.target.value }))}
placeholder="e.g. h1 { font-style: italic; } blockquote { border-radius: 6px; }"
- className="min-h-[72px] w-full rounded-md border border-slate-200 bg-card p-2 font-mono text-xs focus:border-emerald-500 focus:outline-none"
+ className="min-h-[72px] w-full rounded-md border border-slate-200 bg-card p-2 font-mono text-xs focus:border-slate-900 focus:outline-none"
maxLength={2000}
/>
</label>
diff --git a/apps/web/src/components/settings/DataExportCard.tsx b/apps/web/src/components/settings/DataExportCard.tsx
index 3081e808..5faa2953 100644
--- a/apps/web/src/components/settings/DataExportCard.tsx
+++ b/apps/web/src/components/settings/DataExportCard.tsx
@@ -39,7 +39,7 @@ const Progress = ({ progress }: { progress: EdgeEverZipProgress }) => {
const percentage = progress.total > 0 ? Math.round((progress.completed / progress.total) * 100) : 0;
return (
<div className="h-1.5 overflow-hidden rounded-full bg-slate-200">
- <div className="h-full rounded-full bg-emerald-500 transition-[width]" style={{ width: `${percentage}%` }} />
+ <div className="h-full rounded-full bg-slate-900 transition-[width]" style={{ width: `${percentage}%` }} />
</div>
);
};
diff --git a/apps/web/src/components/settings/DesktopLocalBackupCard.tsx b/apps/web/src/components/settings/DesktopLocalBackupCard.tsx
index 6ae2152b..ec602202 100644
--- a/apps/web/src/components/settings/DesktopLocalBackupCard.tsx
+++ b/apps/web/src/components/settings/DesktopLocalBackupCard.tsx
@@ -60,7 +60,7 @@ export const DesktopLocalBackupCard = () => {
<CardContent className="grid gap-3 p-4 pt-0">
<CardDescription className="text-xs leading-5">{t("dataExport.desktopLocalDescription")}</CardDescription>
{backups.length > 0 ? (
- <select className="h-10 rounded-md border border-slate-200 bg-card px-3 text-sm text-slate-950 outline-none focus:border-emerald-500 focus:ring-2 focus:ring-emerald-500/20" value={selectedPath} disabled={state === "working"} onChange={(event) => setSelectedPath(event.target.value)}>
+ <select className="h-10 rounded-md border border-slate-200 bg-card px-3 text-sm text-slate-950 outline-none focus:border-slate-900 focus:ring-2 focus:ring-slate-900/10" value={selectedPath} disabled={state === "working"} onChange={(event) => setSelectedPath(event.target.value)}>
{backups.map((backup) => <option key={backup.path} value={backup.path}>{backup.name} · {formatSize(backup.size)}</option>)}
</select>
) : <p className="text-xs text-slate-500">{state === "working" ? t("dataExport.desktopLocalRefreshing") : t("dataExport.desktopLocalEmpty")}</p>}
diff --git a/apps/web/src/components/settings/FeedbackLink.tsx b/apps/web/src/components/settings/FeedbackLink.tsx
index 077904ae..ade31312 100644
--- a/apps/web/src/components/settings/FeedbackLink.tsx
+++ b/apps/web/src/components/settings/FeedbackLink.tsx
@@ -34,7 +34,7 @@ export const FeedbackLink = ({ className }: { className?: string }) => {
return (
<a
className={cn(
- "flex min-h-16 w-full items-center justify-between gap-3 rounded-xl px-4 py-2.5 text-left text-sm font-semibold text-slate-600 transition-colors hover:bg-slate-200/50 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70",
+ "flex min-h-16 w-full items-center justify-between gap-3 rounded-xl px-4 py-2.5 text-left text-sm font-semibold text-slate-600 transition-colors hover:bg-slate-200/50 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20",
className
)}
href={href}
diff --git a/apps/web/src/components/settings/LoginDevicesCard.tsx b/apps/web/src/components/settings/LoginDevicesCard.tsx
index 4c9da273..d521a70b 100644
--- a/apps/web/src/components/settings/LoginDevicesCard.tsx
+++ b/apps/web/src/components/settings/LoginDevicesCard.tsx
@@ -162,7 +162,7 @@ export const LoginDevicesCard = ({ authRequired, isLoggingOut, onLogout }: Login
<p className={SETTINGS_ITEM_TITLE_CLASSNAME}>{session.label || t(`loginDevices.${deviceKind}`)}</p>
)}
{session.isCurrent ? (
- <span className="rounded-full bg-emerald-50 px-2 py-0.5 text-xs font-semibold text-emerald-700">
+ <span className="rounded-full bg-slate-100 px-2 py-0.5 text-xs font-semibold text-slate-700">
{t("loginDevices.current")}
</span>
) : null}
diff --git a/apps/web/src/components/settings/McpConfigCard.tsx b/apps/web/src/components/settings/McpConfigCard.tsx
index bdf617cc..dc0a1ddd 100644
--- a/apps/web/src/components/settings/McpConfigCard.tsx
+++ b/apps/web/src/components/settings/McpConfigCard.tsx
@@ -114,9 +114,9 @@ const AccessLevelPicker = ({ value, onChange }: AccessLevelPickerProps) => {
<label
htmlFor={inputId}
className={cn(
- "flex h-8 cursor-pointer select-none items-center gap-1.5 rounded-[5px] px-2.5 text-xs font-medium transition-all focus-within:ring-2 focus-within:ring-emerald-500/40",
+ "flex h-8 cursor-pointer select-none items-center gap-1.5 rounded-[5px] px-2.5 text-xs font-medium transition-all focus-within:ring-2 focus-within:ring-slate-900/15",
checked
- ? "bg-card font-semibold text-emerald-800 shadow-sm"
+ ? "bg-card font-semibold text-slate-950 shadow-sm"
: "text-slate-600 hover:text-slate-900"
)}
>
@@ -131,7 +131,7 @@ const AccessLevelPicker = ({ value, onChange }: AccessLevelPickerProps) => {
/>
<span
aria-hidden="true"
- className={cn("h-1.5 w-1.5 rounded-full", checked ? "bg-emerald-500" : "bg-slate-400")}
+ className={cn("h-1.5 w-1.5 rounded-full", checked ? "bg-slate-950" : "bg-slate-400")}
/>
{t(`mcp.accessLevels.${option}.label`)}
</label>
@@ -215,7 +215,7 @@ const TokenList = ({ tokens, availableScopes, newlyCreatedTokenId, isLoading, is
<Tooltip>
<TooltipTrigger asChild>
<span
- className="cursor-help rounded-md border border-slate-200/80 bg-slate-100 px-2 py-0.5 text-xs font-normal text-slate-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/40"
+ className="cursor-help rounded-md border border-slate-200/80 bg-slate-100 px-2 py-0.5 text-xs font-normal text-slate-600 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/15"
tabIndex={0}
>
{accessLabel}
@@ -231,7 +231,7 @@ const TokenList = ({ tokens, availableScopes, newlyCreatedTokenId, isLoading, is
className={cn(
"rounded-md px-2 py-0.5 text-xs font-normal",
accessLevel === "full"
- ? "border border-emerald-200/60 bg-emerald-50 text-emerald-700"
+ ? "border border-slate-200 bg-slate-100 text-slate-700"
: "border border-slate-200/80 bg-slate-100 text-slate-600"
)}
>
diff --git a/apps/web/src/components/settings/ObjectStorageCard.tsx b/apps/web/src/components/settings/ObjectStorageCard.tsx
index 62e1b28b..13cd85cf 100644
--- a/apps/web/src/components/settings/ObjectStorageCard.tsx
+++ b/apps/web/src/components/settings/ObjectStorageCard.tsx
@@ -109,7 +109,7 @@ export const ObjectStorageCard = ({ demoMode }: { demoMode: boolean }) => {
onClick={() => { setProvider(item); testMutation.reset(); saveMutation.reset(); }}
className={cn(
"flex items-start gap-3 rounded-xl border p-3 text-left transition-colors",
- provider === item ? "border-emerald-500 bg-emerald-50/70" : "border-slate-200 hover:bg-slate-50",
+ provider === item ? "border-slate-900 bg-slate-50" : "border-slate-200 hover:bg-slate-50",
)}
>
{item === "builtin" ? <Database className="mt-0.5 h-4 w-4 text-slate-900" /> : <Cloud className="mt-0.5 h-4 w-4 text-slate-900" />}
diff --git a/apps/web/src/components/settings/PluginManagerCard.tsx b/apps/web/src/components/settings/PluginManagerCard.tsx
index bafd0997..f73138f1 100644
--- a/apps/web/src/components/settings/PluginManagerCard.tsx
+++ b/apps/web/src/components/settings/PluginManagerCard.tsx
@@ -400,7 +400,7 @@ export const PluginManagerCard = ({
<CardTitle className="flex min-w-0 items-center gap-2 text-sm">
<Puzzle className="h-4 w-4 shrink-0 text-slate-900" />
{selectedPluginId ? t("plugins.details.title") : t("plugins.title")}
- <span className="inline-flex items-center rounded-full border border-emerald-200/80 bg-emerald-50 px-1.5 text-xs font-normal leading-5 text-emerald-700">
+ <span className="inline-flex items-center rounded-full border border-slate-200 bg-slate-100 px-1.5 text-xs font-normal leading-5 text-slate-600">
Beta
</span>
</CardTitle>
diff --git a/apps/web/src/components/settings/ProductHuntLink.tsx b/apps/web/src/components/settings/ProductHuntLink.tsx
index dc924117..4f43ccb2 100644
--- a/apps/web/src/components/settings/ProductHuntLink.tsx
+++ b/apps/web/src/components/settings/ProductHuntLink.tsx
@@ -20,7 +20,7 @@ export const ProductHuntLink = ({ className }: { className?: string }) => {
return (
<a
className={cn(
- "flex min-h-16 w-full items-center justify-between gap-3 rounded-xl px-4 py-2.5 text-left text-sm font-semibold text-slate-600 transition-colors hover:bg-slate-200/50 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-emerald-500/70",
+ "flex min-h-16 w-full items-center justify-between gap-3 rounded-xl px-4 py-2.5 text-left text-sm font-semibold text-slate-600 transition-colors hover:bg-slate-200/50 hover:text-slate-900 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20",
className
)}
href={PRODUCT_HUNT_URL}
diff --git a/apps/web/src/components/settings/SystemInfoPanel.tsx b/apps/web/src/components/settings/SystemInfoPanel.tsx
index aa7a7730..99734817 100644
--- a/apps/web/src/components/settings/SystemInfoPanel.tsx
+++ b/apps/web/src/components/settings/SystemInfoPanel.tsx
@@ -480,7 +480,7 @@ export const SystemInfoPanel = ({ active = true }: { active?: boolean }) => {
<section key={group.id} className="grid gap-2" aria-labelledby={headingId}>
<div className="flex flex-wrap items-center justify-between gap-2 px-0.5">
<div className="flex min-w-0 items-center gap-2">
- <div className="flex h-6 w-6 shrink-0 items-center justify-center rounded-md border border-emerald-100 bg-emerald-50 text-emerald-700">
+ <div className="flex h-6 w-6 shrink-0 items-center justify-center rounded-md border border-slate-200 bg-slate-100 text-slate-700">
{isCloud
? <Cloud className="h-3.5 w-3.5" />
: isClient
@@ -533,12 +533,12 @@ export const SystemInfoPanel = ({ active = true }: { active?: boolean }) => {
<span>{clientAheadHint}</span>
</p>
) : isCloud && active && release ? (
- <div className="flex flex-wrap items-center gap-2 rounded-lg border border-emerald-200/80 bg-emerald-50/70 px-3 py-1.5 text-slate-800" role="status">
- <CircleCheck className="h-3.5 w-3.5 shrink-0 text-emerald-600" />
- <div className="min-w-0 flex-1 text-xs font-medium text-emerald-950">
+ <div className="flex flex-wrap items-center gap-2 rounded-lg border border-slate-200 bg-slate-50 px-3 py-1.5 text-slate-800" role="status">
+ <CircleCheck className="h-3.5 w-3.5 shrink-0 text-slate-700" />
+ <div className="min-w-0 flex-1 text-xs font-medium text-slate-950">
{t("systemInfo.deployedUpdateTitle", { version: releaseTag?.replace(/^v/, "") ?? release.version })}
</div>
- <a className="inline-flex shrink-0 items-center gap-1 text-xs font-semibold text-emerald-700 underline underline-offset-2 hover:text-emerald-900" href={releaseUrl} target="_blank" rel="noreferrer">
+ <a className="inline-flex shrink-0 items-center gap-1 text-xs font-semibold text-slate-800 underline underline-offset-2 hover:text-slate-950" href={releaseUrl} target="_blank" rel="noreferrer">
{t("systemInfo.viewReleaseNotes")} <ExternalLink className="h-3 w-3" />
</a>
</div>
@@ -567,7 +567,7 @@ export const SystemInfoPanel = ({ active = true }: { active?: boolean }) => {
<dt className="truncate text-xs font-normal text-slate-400">{item.label}</dt>
<dd className="mt-0.5 flex min-w-0 items-center gap-1.5">
{item.status === "connected" ? (
- <span className="inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-emerald-500 shadow-[0_0_4px_rgba(16,185,129,0.5)]" />
+ <span className="inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-slate-950" />
) : item.status === "connecting" ? (
<span className="inline-block h-1.5 w-1.5 shrink-0 rounded-full bg-amber-500 animate-pulse" />
) : item.status === "failed" ? (
diff --git a/apps/web/src/components/settings/WebDavBackupCard.tsx b/apps/web/src/components/settings/WebDavBackupCard.tsx
index 756035b9..4e19c673 100644
--- a/apps/web/src/components/settings/WebDavBackupCard.tsx
+++ b/apps/web/src/components/settings/WebDavBackupCard.tsx
@@ -27,7 +27,7 @@ const Progress = ({ progress }: { progress: EdgeEverZipProgress }) => {
const percentage = progress.total > 0 ? Math.round((progress.completed / progress.total) * 100) : 0;
return (
<div className="h-1.5 overflow-hidden rounded-full bg-slate-200">
- <div className="h-full rounded-full bg-emerald-500 transition-[width]" style={{ width: `${percentage}%` }} />
+ <div className="h-full rounded-full bg-slate-900 transition-[width]" style={{ width: `${percentage}%` }} />
</div>
);
};
@@ -122,16 +122,16 @@ export const WebDavBackupCard = () => {
{WEBDAV_AUTO_BACKUP_ENABLED ? (
<>
<label className="grid gap-1.5 text-xs font-medium text-slate-700">{t("dataExport.webdavInterval")}
- <select className="h-10 rounded-md border border-slate-200 bg-card px-3 text-sm text-slate-950 outline-none focus:border-emerald-500 focus:ring-2 focus:ring-emerald-500/20" value={schedule.intervalDays} disabled={busy} onChange={(event) => updateSchedule({ intervalDays: Number(event.target.value) as WebDavBackupSchedule["intervalDays"] })}>
+ <select className="h-10 rounded-md border border-slate-200 bg-card px-3 text-sm text-slate-950 outline-none focus:border-slate-900 focus:ring-2 focus:ring-slate-900/10" value={schedule.intervalDays} disabled={busy} onChange={(event) => updateSchedule({ intervalDays: Number(event.target.value) as WebDavBackupSchedule["intervalDays"] })}>
<option value={1}>{t("dataExport.webdavIntervals.daily")}</option><option value={7}>{t("dataExport.webdavIntervals.weekly")}</option><option value={14}>{t("dataExport.webdavIntervals.biweekly")}</option><option value={30}>{t("dataExport.webdavIntervals.monthly")}</option>
</select>
</label>
- <label className="flex items-center gap-2 self-end pb-2 text-xs font-medium text-slate-700"><input type="checkbox" className="h-4 w-4 accent-emerald-600" checked={schedule.enabled} disabled={busy} onChange={(event) => updateSchedule({ enabled: event.target.checked })} />{t("dataExport.webdavEnableAuto")}</label>
+ <label className="flex items-center gap-2 self-end pb-2 text-xs font-medium text-slate-700"><input type="checkbox" className="h-4 w-4 accent-[var(--checkbox-on)]" checked={schedule.enabled} disabled={busy} onChange={(event) => updateSchedule({ enabled: event.target.checked })} />{t("dataExport.webdavEnableAuto")}</label>
</>
) : null}
</div>
<p className="text-xs leading-4 text-slate-500">{t(WEBDAV_AUTO_BACKUP_ENABLED ? "dataExport.webdavSecurityNote" : "dataExport.webdavManualSecurityNote")}</p>
- {WEBDAV_AUTO_BACKUP_ENABLED && schedule.enabled ? <p className="text-xs leading-4 text-emerald-700">{schedule.lastSuccessAt ? t("dataExport.webdavLastSuccess", { time: new Date(schedule.lastSuccessAt).toLocaleString() }) : t("dataExport.webdavWaitingForFirstBackup")}</p> : null}
+ {WEBDAV_AUTO_BACKUP_ENABLED && schedule.enabled ? <p className="text-xs leading-4 text-slate-600">{schedule.lastSuccessAt ? t("dataExport.webdavLastSuccess", { time: new Date(schedule.lastSuccessAt).toLocaleString() }) : t("dataExport.webdavWaitingForFirstBackup")}</p> : null}
{busy ? <div className="grid gap-1.5" aria-live="polite"><div className="flex items-center justify-between text-xs text-slate-500"><span>{t("dataExport.webdavWorking")}</span><span>{t("dataExport.progress", { completed: progress.completed, total: progress.total })}</span></div><Progress progress={progress} /></div> : null}
{state === "complete" ? <p className="flex items-center gap-1.5 text-xs text-emerald-700"><CheckCircle2 className="h-3.5 w-3.5" />{operation === "webdav-test" ? t("dataExport.webdavTestComplete") : message}</p> : null}
{state === "error" ? <p className="flex items-center gap-1.5 text-xs text-red-600" role="alert"><AlertCircle className="h-3.5 w-3.5 shrink-0" />{message}</p> : null}
diff --git a/apps/web/src/components/ui/badge.tsx b/apps/web/src/components/ui/badge.tsx
index e76d9a36..c8cec46c 100644
--- a/apps/web/src/components/ui/badge.tsx
+++ b/apps/web/src/components/ui/badge.tsx
@@ -3,11 +3,11 @@ import { cva, type VariantProps } from "class-variance-authority";
import { cn } from "@/lib/utils";
const badgeVariants = cva(
- "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-offset-2",
+ "inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-slate-900/20 focus:ring-offset-2",
{
variants: {
variant: {
- default: "border-transparent bg-emerald-500 text-white",
+ default: "border-transparent bg-slate-900 text-slate-50",
secondary: "border-transparent bg-slate-100 text-slate-900",
destructive: "border-transparent bg-red-600 text-white",
outline: "border-slate-200 text-slate-950",
diff --git a/apps/web/src/components/ui/button.tsx b/apps/web/src/components/ui/button.tsx
index ff947b37..f3acdaff 100644
--- a/apps/web/src/components/ui/button.tsx
+++ b/apps/web/src/components/ui/button.tsx
@@ -8,7 +8,7 @@ const ButtonTooltip = React.lazy(() =>
);
const buttonVariants = cva(
- "inline-flex shrink-0 items-center justify-center rounded-md font-medium transition-[color,background-color,border-color,box-shadow,transform] duration-150 active:scale-[0.98] 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",
+ "inline-flex shrink-0 items-center justify-center rounded-md font-medium transition-[color,background-color,border-color,box-shadow,transform] duration-150 active:scale-[0.98] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-slate-900/20 focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",
{
variants: {
variant: {
diff --git a/apps/web/src/components/ui/checkbox.tsx b/apps/web/src/components/ui/checkbox.tsx
index bb19a6cd..248e0e26 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.Root
ref={ref}
className={cn(
- "peer h-4 w-4 shrink-0 rounded border border-slate-300 bg-card 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",
+ "peer h-4 w-4 shrink-0 rounded border border-slate-300 bg-card shadow-sm outline-none transition focus-visible:ring-2 focus-visible:ring-slate-900/25 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-[var(--checkbox-on)] data-[state=checked]:bg-[var(--checkbox-on)] data-[state=checked]:text-[var(--checkbox-mark)]",
className
)}
{...props}
diff --git a/apps/web/src/components/ui/dialog.tsx b/apps/web/src/components/ui/dialog.tsx
index a04aafb5..1f6f27c2 100644
--- a/apps/web/src/components/ui/dialog.tsx
+++ b/apps/web/src/components/ui/dialog.tsx
@@ -43,7 +43,7 @@ const DialogContent = React.forwardRef<
>
{children}
{showCloseButton ? (
- <DialogPrimitive.Close className="absolute right-4 top-4 flex h-8 w-8 items-center justify-center rounded-md text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-900 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-offset-2 disabled:pointer-events-none">
+ <DialogPrimitive.Close className="absolute right-4 top-4 flex h-8 w-8 items-center justify-center rounded-md text-slate-500 transition-colors hover:bg-slate-100 hover:text-slate-900 focus:outline-none focus:ring-2 focus:ring-slate-900/20 focus:ring-offset-2 disabled:pointer-events-none">
<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.tsx
index 8428b0e4..3aa564c3 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-card 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",
+ "flex h-10 w-full rounded-md border border-slate-200 bg-card px-3 text-sm text-slate-950 outline-none transition placeholder:text-slate-400 focus-visible:border-slate-900 focus-visible:ring-2 focus-visible:ring-slate-900/10 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.tsx
index e4aab53a..e8b64f91 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.Trigger
ref={ref}
className={cn(
- "flex h-9 w-full items-center justify-between rounded-md border border-slate-200 bg-card px-3 py-2 text-xs ring-offset-background 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",
+ "flex h-9 w-full items-center justify-between rounded-md border border-slate-200 bg-card px-3 py-2 text-xs ring-offset-background placeholder:text-slate-500 focus:outline-none focus:ring-2 focus:ring-slate-900/20 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.tsx
index 12e5dcf2..3f14e060 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.Root
className={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-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",
+ "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-slate-900/25 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-[var(--switch-track-on)] data-[state=unchecked]:bg-slate-200",
className
)}
{...props}
@@ -16,7 +16,7 @@ const Switch = React.forwardRef<
>
<SwitchPrimitive.Thumb
className={cn(
- "pointer-events-none block h-4 w-4 rounded-full bg-[var(--switch-thumb)] shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=unchecked]:translate-x-0"
+ "pointer-events-none block h-4 w-4 rounded-full bg-[var(--switch-thumb)] shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-4 data-[state=checked]:bg-[var(--switch-thumb-on)] data-[state=unchecked]:translate-x-0"
)}
/>
</SwitchPrimitive.Root>
diff --git a/apps/web/src/lib/ui-palette.test.mjs b/apps/web/src/lib/ui-palette.test.mjs
index 2a703a95..67dc49a2 100644
--- a/apps/web/src/lib/ui-palette.test.mjs
+++ b/apps/web/src/lib/ui-palette.test.mjs
@@ -17,6 +17,26 @@ describe("application color system", () => {
expect(contrastRatio("#11694a", "#f0f8f4")).toBeGreaterThanOrEqual(4.5);
});
+ test("keeps menus, switches, and secondary icons in ink", () => {
+ const switchSource = readFileSync(new URL("../components/ui/switch.tsx", import.meta.url), "utf8");
+ const checkbox = readFileSync(new URL("../components/ui/checkbox.tsx", import.meta.url), "utf8");
+ const settings = readFileSync(new URL("../components/SettingsPane.tsx", import.meta.url), "utf8");
+
+ expect(globals).toContain("--accent: 210 16% 89%;");
+ expect(globals).toContain("--accent-foreground: 0 0% 7%;");
+ expect(globals).not.toContain("--accent-foreground: 158 70% 25%;");
+ expect(globals).toContain("--switch-track-on: #525252;");
+ expect(globals).toContain("--switch-track-on: #e7ebe8;");
+ expect(switchSource).toContain("data-[state=checked]:bg-[var(--switch-track-on)]");
+ expect(switchSource).not.toContain("bg-emerald-500");
+ expect(checkbox).toContain("data-[state=checked]:bg-[var(--checkbox-on)]");
+ expect(checkbox).not.toContain("bg-emerald-500");
+ expect(settings).not.toContain("text-emerald-");
+ expect(contrastRatio("#ffffff", "#525252")).toBeGreaterThanOrEqual(4.5);
+ expect(contrastRatio("#ffffff", "#1a1d21")).toBeGreaterThanOrEqual(4.5);
+ expect(contrastRatio("#101311", "#e7ebe8")).toBeGreaterThanOrEqual(4.5);
+ });
+
test("keeps the light workspace on a cool gray palette while preserving text hierarchy", () => {
expect(globals).toContain("--workspace-canvas: #eef1f4;");
expect(globals).toContain("--workspace-sidebar: #e7ebef;");
diff --git a/apps/web/src/styles/globals.css b/apps/web/src/styles/globals.css
index 8344dccc..ef89f2c0 100644
--- a/apps/web/src/styles/globals.css
+++ b/apps/web/src/styles/globals.css
@@ -254,7 +254,7 @@ html.dark[data-edgeever-environment="demo"] body::after {
}
.ProseMirror .tiptap-mathematics-render--editable:hover {
- background: rgb(22 160 110 / 0.08);
+ background: rgb(var(--slate-900-rgb) / 0.06);
}
.ProseMirror .inline-math-error,
@@ -308,6 +308,10 @@ html.dark[data-edgeever-environment="demo"] body::after {
--search-match: rgb(254 240 138 / 0.8);
--search-match-active: rgb(251 191 36 / 0.9);
--switch-thumb: #ffffff;
+ --switch-track-on: #525252;
+ --switch-thumb-on: #ffffff;
+ --checkbox-on: #1a1d21;
+ --checkbox-mark: #ffffff;
--slate-50-rgb: 250 250 250;
--slate-100-rgb: 245 245 245;
--slate-200-rgb: 229 229 229;
@@ -356,24 +360,24 @@ html.dark[data-edgeever-environment="demo"] body::after {
--popover: 0 0% 100%;
--popover-foreground: 0 0% 13%;
- --primary: 158 76% 36%;
- --primary-foreground: 80 11% 96%;
+ --primary: 0 0% 9%;
+ --primary-foreground: 0 0% 100%;
- --secondary: 158 32% 94%;
- --secondary-foreground: 158 70% 25%;
+ --secondary: 0 0% 96%;
+ --secondary-foreground: 0 0% 15%;
--muted: 0 0% 95%;
--muted-foreground: 0 0% 40%;
- --accent: 158 32% 94%;
- --accent-foreground: 158 70% 25%;
+ --accent: 210 16% 89%;
+ --accent-foreground: 0 0% 7%;
--destructive: 0 84.2% 60.2%;
--destructive-foreground: 210 40% 98%;
--border: 0 0% 88%;
--input: 0 0% 88%;
- --ring: 158 76% 36%;
+ --ring: 0 0% 15%;
--radius: 0.5rem;
}
@@ -395,19 +399,19 @@ html.dark[data-edgeever-environment="demo"] body::after {
--card-foreground: 144 9% 88%;
--popover: 150 10% 14%;
--popover-foreground: 144 9% 88%;
- --primary: 160 76% 36%;
- --primary-foreground: 150 33% 97%;
- --secondary: 150 10% 18%;
- --secondary-foreground: 160 35% 72%;
+ --primary: 140 10% 92%;
+ --primary-foreground: 150 12% 8%;
+ --secondary: 150 8% 18%;
+ --secondary-foreground: 140 10% 90%;
--muted: 150 8% 18%;
--muted-foreground: 145 8% 62%;
- --accent: 150 10% 20%;
- --accent-foreground: 160 40% 75%;
+ --accent: 140 8% 18%;
+ --accent-foreground: 140 10% 93%;
--destructive: 0 72% 51%;
--destructive-foreground: 144 12% 96%;
--border: 150 10% 23%;
--input: 150 10% 23%;
- --ring: 160 76% 36%;
+ --ring: 140 8% 75%;
--workspace-canvas: #101311;
--workspace-sidebar: #121612;
--workspace-memo-list: #151a17;
@@ -426,6 +430,10 @@ html.dark[data-edgeever-environment="demo"] body::after {
--search-match: rgb(22 160 110 / 0.32);
--search-match-active: rgb(36 185 134 / 0.48);
--switch-thumb: #eef2ef;
+ --switch-track-on: #e7ebe8;
+ --switch-thumb-on: #101311;
+ --checkbox-on: #e7ebe8;
+ --checkbox-mark: #101311;
--slate-50-rgb: 15 20 17;
--slate-100-rgb: 21 28 24;
--slate-200-rgb: 38 49 43;
@@ -1703,10 +1711,10 @@ html[data-edgeever-extension-theme] .edgeever-memo-divider {
.ProseMirror .edgeever-code-copy-button:hover,
.ProseMirror .edgeever-code-copy-button:focus-visible {
- border-color: var(--brand-green);
- color: var(--brand-green-text);
+ border-color: #1a1d21;
+ color: #1a1d21;
background: rgb(255 255 255 / 0.96);
- box-shadow: 0 1px 4px rgb(var(--brand-green-rgb) / 0.12);
+ box-shadow: 0 1px 4px rgb(26 29 33 / 0.08);
outline: none;
}