style(theme): 深色模式配色由 slate 换成 zinc,去掉整页蓝调
slate 色阶带明显蓝调(页面底 B-R=+22、列底 +26),整页发蓝,与目标的中性灰 相差很远。换成 Tailwind 的 zinc 色阶做 1:1 映射,保持原有明暗层次不变 (卡片仍比列背景更亮),只去色偏:改后页面底 B-R=+2、列底 +2。 只替换带 dark: 前缀的类(16 个文件、182 处),外加 style.css 里三处 html.dark 基底色;浅色模式一字未动(页面底仍为 slate-100 #f1f5f9)。
This commit is contained in:
@@ -19,7 +19,7 @@ const emit = defineEmits<{
|
||||
|
||||
/** 每列一个色点:三列在余光里也能区分开 */
|
||||
const COLUMN_DOT: Record<ColumnId, string> = {
|
||||
todo: 'bg-slate-400 dark:bg-slate-500',
|
||||
todo: 'bg-slate-400 dark:bg-zinc-500',
|
||||
doing: 'bg-sky-500 dark:bg-sky-400',
|
||||
done: 'bg-emerald-500 dark:bg-emerald-400',
|
||||
}
|
||||
@@ -57,14 +57,14 @@ useDraggable(listRef, {
|
||||
|
||||
<template>
|
||||
<section
|
||||
class="flex flex-col rounded-xl border border-slate-200 bg-slate-100/70 md:min-h-0 dark:border-slate-800 dark:bg-slate-900/60"
|
||||
class="flex flex-col rounded-xl border border-slate-200 bg-slate-100/70 md:min-h-0 dark:border-zinc-800 dark:bg-zinc-900/60"
|
||||
>
|
||||
<header class="flex items-center gap-2 px-3 pt-3 pb-2">
|
||||
<span class="size-1.5 shrink-0 rounded-full" :class="dotClass" aria-hidden="true" />
|
||||
<h2 class="text-sm font-medium text-slate-700 dark:text-slate-300">{{ column.title }}</h2>
|
||||
<h2 class="text-sm font-medium text-slate-700 dark:text-zinc-300">{{ column.title }}</h2>
|
||||
<span
|
||||
data-role="column-count"
|
||||
class="ml-auto rounded-full border border-slate-200 bg-white px-2 py-0.5 text-xs font-medium text-slate-500 dark:border-slate-700 dark:bg-slate-800 dark:text-slate-400"
|
||||
class="ml-auto rounded-full border border-slate-200 bg-white px-2 py-0.5 text-xs font-medium text-slate-500 dark:border-zinc-700 dark:bg-zinc-800 dark:text-zinc-400"
|
||||
>
|
||||
{{ tasks.length }}
|
||||
</span>
|
||||
@@ -88,7 +88,7 @@ useDraggable(listRef, {
|
||||
|
||||
<p
|
||||
v-if="tasks.length === 0"
|
||||
class="rounded-lg border border-dashed border-slate-300/70 px-3 py-10 text-center text-xs text-slate-400 dark:border-slate-700 dark:text-slate-500"
|
||||
class="rounded-lg border border-dashed border-slate-300/70 px-3 py-10 text-center text-xs text-slate-400 dark:border-zinc-700 dark:text-zinc-500"
|
||||
>
|
||||
暂无任务
|
||||
</p>
|
||||
|
||||
Reference in New Issue
Block a user