Skip to content

Commit 879b935

Browse files
committed
style: AI 色类名残留清零 - 庆典/引导/签名时刻组件归位
1 parent 9afe53f commit 879b935

31 files changed

Lines changed: 629 additions & 127 deletions

‎client/src/components/onboarding/OnboardingOverlay.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ export function OnboardingOverlay() {
102102
key={i}
103103
className={`w-1.5 h-1.5 rounded-full transition-all duration-300 ${
104104
i === currentStep
105-
? 'bg-indigo-400 w-4'
105+
? 'bg-brand-400 w-4'
106106
: i < currentStep
107-
? 'bg-indigo-400/50'
107+
? 'bg-brand-400/50'
108108
: 'bg-white/20'
109109
}`}
110110
/>
@@ -113,7 +113,7 @@ export function OnboardingOverlay() {
113113

114114
{/* 自动演示模式提示 */}
115115
{autoDemo && (
116-
<div className="fixed top-4 left-1/2 -translate-x-1/2 z-50 px-3 py-1 rounded-full bg-indigo-500/30 backdrop-blur-sm border border-indigo-400/30 text-indigo-200 text-xs">
116+
<div className="fixed top-4 left-1/2 -translate-x-1/2 z-50 px-3 py-1 rounded-full bg-brand-500/30 backdrop-blur-sm border border-brand-400/30 text-brand-200 text-xs">
117117
自动演示中...
118118
</div>
119119
)}

‎client/src/components/onboarding/steps/Step1Welcome.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function Step1Welcome() {
2222
<div className="flex gap-3">
2323
<button
2424
onClick={nextStep}
25-
className="flex-1 px-5 py-2.5 rounded-xl bg-indigo-500 hover:bg-indigo-400 text-white font-medium transition-colors"
25+
className="flex-1 px-5 py-2.5 rounded-xl bg-brand-500 hover:bg-brand-400 text-text-inverse font-medium transition-colors"
2626
>
2727
开始探索
2828
</button>
@@ -38,7 +38,7 @@ export function Step1Welcome() {
3838
onClick={toggleAutoDemo}
3939
className={`mt-3 w-full px-4 py-2 rounded-lg text-sm transition-colors ${
4040
autoDemo
41-
? 'bg-indigo-500/30 text-indigo-200'
41+
? 'bg-brand-500/30 text-brand-200'
4242
: 'bg-white/5 text-white/50 hover:text-white/70'
4343
}`}
4444
>

‎client/src/components/onboarding/steps/Step2Navigate.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ export function Step2Navigate() {
4848
{showNext && (
4949
<button
5050
onClick={nextStep}
51-
className="mt-4 w-full px-4 py-2 rounded-xl bg-indigo-500 hover:bg-indigo-400 text-white text-sm font-medium transition-colors"
51+
className="mt-4 w-full px-4 py-2 rounded-xl bg-brand-500 hover:bg-brand-400 text-text-inverse text-sm font-medium transition-colors"
5252
>
5353
下一步 →
5454
</button>

‎client/src/components/onboarding/steps/Step4FunctionalPanel.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function Step4FunctionalPanel() {
3232
{!autoDemo && (
3333
<button
3434
onClick={nextStep}
35-
className="mt-4 w-full px-4 py-2 rounded-xl bg-indigo-500 hover:bg-indigo-400 text-white text-sm font-medium transition-colors"
35+
className="mt-4 w-full px-4 py-2 rounded-xl bg-brand-500 hover:bg-brand-400 text-text-inverse text-sm font-medium transition-colors"
3636
>
3737
下一步 →
3838
</button>

‎client/src/components/onboarding/steps/Step5ExitDemo.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function Step5ExitDemo() {
7373
{!autoDemo && (
7474
<button
7575
onClick={handleExit}
76-
className="block mx-auto px-6 py-2 rounded-xl bg-indigo-500 hover:bg-indigo-400 text-white text-sm font-medium transition-colors"
76+
className="block mx-auto px-6 py-2 rounded-xl bg-brand-500 hover:bg-brand-400 text-text-inverse text-sm font-medium transition-colors"
7777
>
7878
退出并继续 →
7979
</button>

‎client/src/components/onboarding/steps/Step6Panorama.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export function Step6Panorama() {
5656
{!autoDemo && (
5757
<button
5858
onClick={nextStep}
59-
className="w-full px-4 py-2 rounded-xl bg-indigo-500 hover:bg-indigo-400 text-white text-sm font-medium transition-colors"
59+
className="w-full px-4 py-2 rounded-xl bg-brand-500 hover:bg-brand-400 text-text-inverse text-sm font-medium transition-colors"
6060
>
6161
下一步 →
6262
</button>

‎client/src/components/onboarding/steps/Step7Shortcuts.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function Step7Shortcuts() {
3131

3232
<button
3333
onClick={finishGuide}
34-
className="w-full px-5 py-2.5 rounded-xl bg-indigo-500 hover:bg-indigo-400 text-white font-medium transition-colors"
34+
className="w-full px-5 py-2.5 rounded-xl bg-brand-500 hover:bg-brand-400 text-text-inverse font-medium transition-colors"
3535
>
3636
开始使用
3737
</button>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const CATEGORY_COLORS: Record<string, { bg: string; text: string; shadow: string
2828
'类比': { bg: 'bg-blue-500/10', text: 'text-blue-600 dark:text-blue-400', shadow: 'shadow-blue-500/10' },
2929
'反例': { bg: 'bg-amber-500/10', text: 'text-amber-700 dark:text-amber-400', shadow: 'shadow-amber-500/10' },
3030
'应用': { bg: 'bg-emerald-500/10', text: 'text-emerald-600 dark:text-emerald-400', shadow: 'shadow-emerald-500/10' },
31-
'历史': { bg: 'bg-cyan-500/10', text: 'text-cyan-600 dark:text-cyan-400', shadow: 'shadow-cyan-500/10' },
31+
'历史': { bg: 'bg-cyber/10', text: 'text-cyber', shadow: 'shadow-cyber/10' },
3232
'争议': { bg: 'bg-orange-500/10', text: 'text-orange-600 dark:text-orange-400', shadow: 'shadow-orange-500/10' },
3333
};
3434

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export function ConceptInternalized({
9797
{!prefersReduced && particles.map((p) => (
9898
<motion.div
9999
key={p.id}
100-
className="absolute rounded-full bg-violet-300/60"
100+
className="absolute rounded-full bg-cyber/60"
101101
style={{ width: p.size, height: p.size }}
102102
initial={{
103103
x: Math.cos(p.angle) * p.radius,
@@ -110,19 +110,19 @@ export function ConceptInternalized({
110110
))}
111111
{/* 珍珠核心 / Pearl core */}
112112
<motion.div
113-
className="w-14 h-14 rounded-full bg-gradient-to-br from-violet-400/30 to-fuchsia-300/20 border border-violet-300/30 flex items-center justify-center"
113+
className="w-14 h-14 rounded-full bg-gradient-to-br from-cyber/30 to-fuchsia-300/20 border border-cyber/30 flex items-center justify-center"
114114
initial={prefersReduced ? {} : { scale: 0 }}
115115
animate={prefersReduced ? {} : { scale: 1 }}
116116
transition={{ type: 'spring', stiffness: 200, damping: 15, delay: 0.5 }}
117117
>
118-
<Sparkles className="w-6 h-6 text-violet-200" strokeWidth={1.5} />
118+
<Sparkles className="w-6 h-6 text-cyber" strokeWidth={1.5} />
119119
</motion.div>
120120
</div>
121121

122122
{/* 概念名称 / Concept name */}
123123
<div>
124124
<h2 className="text-lg font-semibold text-white/90">概念已内化</h2>
125-
<p className="text-sm text-violet-200/70 mt-1">
125+
<p className="text-sm text-cyber/70 mt-1">
126126
你用自己的话讲清了「{concept}」
127127
</p>
128128
</div>
@@ -185,7 +185,7 @@ export function ConceptInternalized({
185185
{onViewFlashcards && convertedCount > 0 && (
186186
<button
187187
onClick={onViewFlashcards}
188-
className="flex-1 flex items-center justify-center gap-1.5 py-2.5 rounded-xl text-sm font-medium text-white bg-violet-600/80 hover:bg-violet-500/80 transition-colors"
188+
className="flex-1 flex items-center justify-center gap-1.5 py-2.5 rounded-xl text-sm font-medium text-text-inverse bg-cyber/80 hover:bg-cyber/70 transition-colors"
189189
>
190190
<Layers className="w-3.5 h-3.5" />
191191
查看闪卡

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const DEFAULT_ANGLES: DeepeningAngle[] = [
3030
{ key: 'analogy', label: '类比', question: '这个概念像什么?能用生活中什么东西来比喻?', icon: <GitCompareArrows className="w-icon-sm h-icon-sm" strokeWidth={1.5} />, color: 'text-blue-500 bg-blue-500/10' },
3131
{ key: 'counter', label: '反例', question: '什么情况下这个概念不成立?有例外吗?', icon: <Ban className="w-icon-sm h-icon-sm" strokeWidth={1.5} />, color: 'text-amber-600 bg-amber-500/10 dark:text-amber-400' },
3232
{ key: 'apply', label: '应用', question: '在实际生活或工作中,这个概念怎么用?', icon: <Wrench className="w-icon-sm h-icon-sm" strokeWidth={1.5} />, color: 'text-emerald-600 bg-emerald-500/10 dark:text-emerald-400' },
33-
{ key: 'history', label: '历史', question: '这个概念是怎么来的?谁发现的?为什么?', icon: <Landmark className="w-icon-sm h-icon-sm" strokeWidth={1.5} />, color: 'text-cyan-600 bg-cyan-500/10 dark:text-cyan-400' },
33+
{ key: 'history', label: '历史', question: '这个概念是怎么来的?谁发现的?为什么?', icon: <Landmark className="w-icon-sm h-icon-sm" strokeWidth={1.5} />, color: 'text-cyber bg-cyber/10' },
3434
{ key: 'debate', label: '争议', question: '关于这个概念,有什么不同的看法或争论?', icon: <Flame className="w-icon-sm h-icon-sm" strokeWidth={1.5} />, color: 'text-orange-600 bg-orange-500/10 dark:text-orange-400' },
3535
];
3636

0 commit comments

Comments
 (0)