Skip to content

Commit 553bfab

Browse files
committed
style: rgba 旧色清零 - 全部辉光/渐变归位生物发光光谱
1 parent ae6075c commit 553bfab

23 files changed

Lines changed: 45 additions & 44 deletions

File tree

‎client/src/components/ui/KnowledgeGalaxy.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const colorMap = {
3636

3737
const glowColorMap = {
3838
brand: '0 0 8px 2px rgba(251, 146, 60, 0.6)',
39-
accent: '0 0 8px 2px rgba(34, 211, 238, 0.6)',
39+
accent: '0 0 8px 2px rgba(111, 180, 232, 0.6)',
4040
purple: '0 0 8px 2px color-mix(in srgb, var(--kb-amber) 60%, transparent)',
4141
};
4242

‎client/src/features/dashboard/components/DashboardCard.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ interface DashboardCardProps {
2626

2727
const ACCENT_GLOW: Record<NonNullable<DashboardCardProps['accent']>, string> = {
2828
pomodoro: 'hover:shadow-[0_0_24px_-6px_rgba(249,115,22,0.45)]',
29-
note: 'hover:shadow-[0_0_24px_-6px_rgba(59,130,246,0.45)]',
29+
note: 'hover:shadow-[0_0_24px_-6px_rgba(74,155,217,0.45)]',
3030
flashcard: 'hover:shadow-[0_0_24px_-6px_rgba(16,185,129,0.45)]',
31-
feynman: 'hover:shadow-[0_0_24px_-6px_rgba(139,92,246,0.45)]',
32-
brand: 'hover:shadow-[0_0_24px_-6px_rgba(99,102,241,0.45)]',
31+
feynman: 'hover:shadow-[0_0_24px_-6px_rgba(74,155,217,0.45)]',
32+
brand: 'hover:shadow-[0_0_24px_-6px_rgba(64,171,146,0.45)]',
3333
default: 'hover:shadow-[0_0_24px_-6px_rgba(255,255,255,0.25)]',
3434
};
3535

‎client/src/features/dashboard/components/deep-sea/creatures/BubbleStreak.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ export default function BubbleStreak({ streakDays, todayChecked, loading }: Prop
9393
</div>
9494

9595
{/* 有色弥散阴影 */}
96-
<div className="absolute inset-0 pointer-events-none rounded-[var(--kb-radius-lg)] shadow-[inset_0_0_30px_rgba(34,211,238,0.03)]" />
96+
<div className="absolute inset-0 pointer-events-none rounded-[var(--kb-radius-lg)] shadow-[inset_0_0_30px_rgba(111,180,232,0.03)]" />
9797
</motion.div>
9898
);
9999
}

‎client/src/features/dashboard/components/ritual/BreathingCreature.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ function Jellyfish() {
2525
<defs>
2626
<radialGradient id="jelly-bell" cx="50%" cy="40%" r="60%">
2727
<stop offset="0%" stopColor="rgba(99,179,237,0.55)" />
28-
<stop offset="70%" stopColor="rgba(59,130,246,0.28)" />
29-
<stop offset="100%" stopColor="rgba(59,130,246,0.05)" />
28+
<stop offset="70%" stopColor="rgba(74,155,217,0.28)" />
29+
<stop offset="100%" stopColor="rgba(74,155,217,0.05)" />
3030
</radialGradient>
3131
</defs>
3232
{/* 外层光晕 */}
@@ -55,8 +55,8 @@ function AuroraBand() {
5555
<svg viewBox="0 0 176 176" className="w-full h-full" style={breathStyle} aria-hidden>
5656
<defs>
5757
<linearGradient id="aurora-grad" x1="0%" y1="0%" x2="100%" y2="0%">
58-
<stop offset="0%" stopColor="rgba(129,140,248,0.05)" />
59-
<stop offset="40%" stopColor="rgba(129,140,248,0.45)" />
58+
<stop offset="0%" stopColor="rgba(111,180,232,0.05)" />
59+
<stop offset="40%" stopColor="rgba(111,180,232,0.45)" />
6060
<stop offset="60%" stopColor="rgba(52,211,153,0.4)" />
6161
<stop offset="100%" stopColor="rgba(52,211,153,0.05)" />
6262
</linearGradient>

‎client/src/features/dashboard/components/ritual/ClosingCeremony.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export function ClosingCeremony({ goal, masteryMark, streakDays, durationMs, onC
126126
<button
127127
type="button"
128128
onClick={onClose}
129-
className="flex items-center gap-1.5 px-5 py-2.5 rounded-kb-full bg-focus text-white text-sm font-medium hover:bg-focus/90 active:scale-95 transition-all duration-200 shadow-[0_0_12px_rgba(59,130,246,0.35)]"
129+
className="flex items-center gap-1.5 px-5 py-2.5 rounded-kb-full bg-focus text-white text-sm font-medium hover:bg-focus/90 active:scale-95 transition-all duration-200 shadow-[0_0_12px_rgba(74,155,217,0.35)]"
130130
>
131131
<Sparkles className="w-4 h-4" strokeWidth={2} />
132132
开始学习

‎client/src/features/dashboard/components/ritual/RitualComplete.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export function RitualComplete({ goal, masteryMark, streakDays, onEnter }: Props
8181
<button
8282
type="button"
8383
onClick={onEnter}
84-
className="flex items-center gap-1.5 px-5 py-2.5 rounded-kb-full bg-focus text-white text-sm font-medium hover:bg-focus/90 active:scale-95 transition-all duration-200 shadow-[0_0_12px_rgba(59,130,246,0.35)]"
84+
className="flex items-center gap-1.5 px-5 py-2.5 rounded-kb-full bg-focus text-white text-sm font-medium hover:bg-focus/90 active:scale-95 transition-all duration-200 shadow-[0_0_12px_rgba(74,155,217,0.35)]"
8585
>
8686
<Sparkles className="w-4 h-4" strokeWidth={2} />
8787
进入学习

‎client/src/features/dashboard/components/ritual/RitualFooter.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export function RitualFooter({ totalSteps, stepIndex, isLast, cycleLit, requireC
4949
'text-white transition-all duration-500 active:scale-95',
5050
dimmed
5151
? 'bg-focus/40 animate-breathe' // 首圈未满:半透明呼吸态(仍可点击)
52-
: 'bg-focus hover:bg-focus/90 shadow-[0_0_12px_rgba(59,130,246,0.35)]',
52+
: 'bg-focus hover:bg-focus/90 shadow-[0_0_12px_rgba(74,155,217,0.35)]',
5353
)}
5454
>
5555
{isLast ? '开始学习' : '下一步'}

‎client/src/features/dashboard/styles/dashboard-nebula.css‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
/* ── 双主题变量 ── */
99
:root {
1010
/* 浅色 · 晨曦星云:淡蓝/金 */
11-
--kb-nebula-core-a: rgba(59, 130, 246, 0.06);
11+
--kb-nebula-core-a: rgba(74, 155, 217, 0.06);
1212
--kb-nebula-core-b: rgba(245, 158, 11, 0.05);
13-
--kb-nebula-core-c: rgba(6, 182, 212, 0.04);
14-
--kb-nebula-star: rgba(59, 130, 246, 0.35);
13+
--kb-nebula-core-c: rgba(74, 155, 217, 0.04);
14+
--kb-nebula-star: rgba(74, 155, 217, 0.35);
1515
--kb-nebula-star-soft: rgba(255, 255, 255, 0.5);
1616
}
1717

1818
[data-theme="dark"] {
1919
/* 深色 · 深空星云:靛蓝/赛博青 */
20-
--kb-nebula-core-a: rgba(99, 102, 241, 0.08);
21-
--kb-nebula-core-b: rgba(6, 182, 212, 0.06);
22-
--kb-nebula-core-c: rgba(139, 92, 246, 0.04);
23-
--kb-nebula-star: rgba(99, 102, 241, 0.4);
20+
--kb-nebula-core-a: rgba(64, 171, 146, 0.08);
21+
--kb-nebula-core-b: rgba(74, 155, 217, 0.06);
22+
--kb-nebula-core-c: rgba(232, 184, 75, 0.04);
23+
--kb-nebula-star: rgba(64, 171, 146, 0.4);
2424
--kb-nebula-star-soft: rgba(255, 255, 255, 0.35);
2525
}
2626

‎client/src/features/dashboard/styles/dashboard.css‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,9 @@
9090
inset: 0;
9191
pointer-events: none;
9292
background:
93-
radial-gradient(ellipse 420px 260px at 18% 82%, rgba(99, 102, 241, 0.10), transparent 70%),
93+
radial-gradient(ellipse 420px 260px at 18% 82%, rgba(64, 171, 146, 0.10), transparent 70%),
9494
radial-gradient(ellipse 360px 220px at 72% 78%, rgba(20, 184, 166, 0.08), transparent 70%),
95-
radial-gradient(ellipse 300px 200px at 88% 60%, rgba(139, 92, 246, 0.07), transparent 70%),
95+
radial-gradient(ellipse 300px 200px at 88% 60%, rgba(232, 184, 75, 0.07), transparent 70%),
9696
radial-gradient(ellipse 260px 180px at 8% 55%, rgba(56, 189, 248, 0.06), transparent 70%);
9797
animation: kb-seafloor-drift 26s ease-in-out infinite alternate;
9898
will-change: transform;

‎client/src/features/feynman/components/SocraticDialogue.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ export default function SocraticDialogue({
223223
className={cn(
224224
'flex items-end gap-2 p-3 rounded-2xl',
225225
'border border-border/40 bg-bg-elevated/80 backdrop-blur-sm',
226-
'focus-within:border-brand-400/50 focus-within:shadow-[0_0_16px_rgba(59,130,246,0.08)]',
226+
'focus-within:border-brand-400/50 focus-within:shadow-[0_0_16px_rgba(74,155,217,0.08)]',
227227
'transition-all duration-300',
228228
)}
229229
initial={{ opacity: 0, y: 10 }}

0 commit comments

Comments
 (0)