Skip to content

Commit 1905ed9

Browse files
committed
style: AI 色类名残留清零完成 - KnowledgeGalaxy/CoralReefCalendar 归位
1 parent 879b935 commit 1905ed9

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { useReducedMotion } from '@/hooks/useReducedMotion';
2020
export interface StarPoint {
2121
id: string;
2222
title: string;
23-
color: 'brand' | 'accent' | 'purple'; // 橙=独立闪卡、青=笔记关联、紫=费曼关联
23+
color: 'brand' | 'accent' | 'purple'; // 橙=独立闪卡、青=笔记关联、琥珀=费曼关联
2424
}
2525

2626
export interface KnowledgeGalaxyProps {
@@ -31,13 +31,13 @@ export interface KnowledgeGalaxyProps {
3131
const colorMap = {
3232
brand: 'bg-brand-400',
3333
accent: 'bg-accent-400',
34-
purple: 'bg-purple-400',
34+
purple: 'bg-amber',
3535
};
3636

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

4343
/** 用确定性哈希为每个星点生成稳定的随机值 */

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ function getCoralStyle(checked: boolean, isToday: boolean) {
3232
if (isToday) {
3333
return {
3434
bg: 'bg-bg-tertiary/40',
35-
glow: 'ring-1 ring-cyan-400/40 ring-offset-1 ring-offset-transparent',
36-
text: 'text-cyan-300/80',
35+
glow: 'ring-1 ring-cyber/40 ring-offset-1 ring-offset-transparent',
36+
text: 'text-cyber/80',
3737
};
3838
}
3939
return {
@@ -51,14 +51,14 @@ export default function CoralReefCalendar({ days, month, year }: Props) {
5151

5252
return (
5353
<motion.div
54-
className="rounded-[var(--kb-radius-lg)] border border-cyan-400/15 bg-bg-elevated/30 backdrop-blur-sm p-3 overflow-hidden"
54+
className="rounded-[var(--kb-radius-lg)] border border-cyber/15 bg-bg-elevated/30 backdrop-blur-sm p-3 overflow-hidden"
5555
whileHover={{ scale: 1.01 }}
5656
transition={{ duration: 0.4, ease: 'easeOut' }}
5757
aria-label={`${year}年${month + 1}月打卡日历`}
5858
>
5959
{/* 标题 */}
6060
<div className="flex items-center justify-between mb-2">
61-
<h3 className="text-[10px] font-medium text-cyan-200/70">
61+
<h3 className="text-[10px] font-medium text-cyber/70">
6262
{year}年{month + 1}月 珊瑚礁
6363
</h3>
6464
<span className="text-[9px] text-brand-400/60">
@@ -69,7 +69,7 @@ export default function CoralReefCalendar({ days, month, year }: Props) {
6969
{/* 星期头 */}
7070
<div className="grid grid-cols-7 gap-0.5 mb-1">
7171
{weeks.map((w) => (
72-
<div key={w} className="text-center text-[7px] text-cyan-300/30 font-medium">{w}</div>
72+
<div key={w} className="text-center text-[7px] text-cyber/30 font-medium">{w}</div>
7373
))}
7474
</div>
7575

0 commit comments

Comments
 (0)