Skip to content

Commit 2c13973

Browse files
committed
style: 硬编码 violet/cyan/purple/indigo 全部归位令牌色与生物发光光谱
1 parent 5c654dd commit 2c13973

25 files changed

Lines changed: 824 additions & 394 deletions

‎client/src/components/PersonaCard.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const RELATIONSHIP_META: Record<RelationshipType, { label: string; color: string
1414
twin: { label: '双胞胎', color: 'text-emerald-500 bg-emerald-500/10 border-emerald-500/20', icon: '👯' },
1515
rival: { label: '宿敌', color: 'text-red-500 bg-red-500/10 border-red-500/20', icon: '⚔️' },
1616
parent_child: { label: '父子', color: 'text-amber-500 bg-amber-500/10 border-amber-500/20', icon: '👨‍👦' },
17-
ally: { label: '盟友', color: 'text-violet-500 bg-violet-500/10 border-violet-500/20', icon: '🤝' },
17+
ally: { label: '盟友', color: 'text-accent-500 bg-accent-500/10 border-accent-500/20', icon: '🤝' },
1818
};
1919

2020
interface PersonaCardProps {
@@ -30,7 +30,7 @@ export default function PersonaCard({ persona, className }: PersonaCardProps) {
3030
className={cn('rounded-2xl border border-border/20 bg-bg-elevated/50 overflow-hidden', className)}
3131
>
3232
{/* 头部 — 角色名 + 概念 */}
33-
<div className="bg-gradient-to-r from-brand-500/10 to-violet-500/10 p-4 border-b border-border/10">
33+
<div className="bg-gradient-to-r from-brand-500/10 to-accent-500/10 p-4 border-b border-border/10">
3434
<div className="flex items-center gap-1 text-[11px] text-text-tertiary mb-1">
3535
<span className="rounded-full bg-brand-500/10 px-2 py-0.5 text-brand-500">{persona.concept}</span>
3636
</div>

‎client/src/features/assistant/components/PodcastPlayer.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ interface PodcastPlayerProps {
2121

2222
const SPEAKER_META: Record<SpeakerRole, { label: string; icon: typeof Mic; color: string }> = {
2323
host: { label: '主持人', icon: Mic, color: 'text-brand-500 bg-brand-500/10' },
24-
guest: { label: '嘉宾', icon: User, color: 'text-violet-500 bg-violet-500/10' },
24+
guest: { label: '嘉宾', icon: User, color: 'text-accent-500 bg-accent-500/10' },
2525
};
2626

2727
export default function PodcastPlayer({ podcast, className, onClose }: PodcastPlayerProps) {
@@ -139,7 +139,7 @@ export default function PodcastPlayer({ podcast, className, onClose }: PodcastPl
139139

140140
{/* 嘉宾介绍 */}
141141
{podcast.guestIntro && (
142-
<div className="px-4 py-2 bg-gradient-to-r from-brand-500/5 to-violet-500/5 border-b border-border/10">
142+
<div className="px-4 py-2 bg-gradient-to-r from-brand-500/5 to-accent-500/5 border-b border-border/10">
143143
<p className="text-[11px] text-text-tertiary">嘉宾介绍</p>
144144
<p className="text-[12px] text-text-secondary">{podcast.guestIntro}</p>
145145
</div>

‎client/src/features/classroom/components/LiveTranscript.tsx‎

Lines changed: 0 additions & 173 deletions
This file was deleted.

‎client/src/features/classroom/components/PathModeSelector.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ export function PathModeSelector({ capturePath, onPathChange, mode, onModeChange
2525
<div className="space-y-4">
2626
{/* 采集路径 */}
2727
<div>
28-
<span className="text-b3 font-medium text-text-tertiary block mb-2">采集路径</span>
28+
<span className="text-b3 font-medium text-text-tertiary block mb-1.5">采集路径</span>
2929
<div className="flex flex-col gap-1.5">
3030
{PATH_OPTIONS.map(({ value, label, icon: PathIcon, brief }) => (
3131
<button key={value} onClick={() => onPathChange(value)} disabled={disabled}
3232
className={cn(
33-
'flex items-center gap-2.5 px-3 py-2 rounded-kb-md text-left transition-all border',
33+
'flex items-center gap-2.5 px-3 py-1.5 rounded-kb-md text-left transition-all border',
3434
capturePath === value
3535
? 'bg-brand-50 border-brand-200/60 shadow-kb-sm'
3636
: 'border-transparent hover:bg-bg-tertiary/50',
@@ -53,12 +53,12 @@ export function PathModeSelector({ capturePath, onPathChange, mode, onModeChange
5353

5454
{/* 采集模式 */}
5555
<div>
56-
<span className="text-b3 font-medium text-text-tertiary block mb-2">采集模式</span>
56+
<span className="text-b3 font-medium text-text-tertiary block mb-1.5">采集模式</span>
5757
<div className="flex items-center gap-1">
5858
{MODE_OPTIONS.map(({ value, label, icon: ModeIcon }) => (
5959
<button key={value} onClick={() => onModeChange(value)} disabled={disabled}
6060
className={cn(
61-
'flex-1 inline-flex items-center justify-center gap-1.5 py-2 rounded-kb-sm text-b3 font-medium transition-all',
61+
'flex-1 inline-flex items-center justify-center gap-1.5 py-1.5 rounded-kb-sm text-b3 font-medium transition-all',
6262
mode === value
6363
? 'bg-brand-50 text-brand-600 ring-1 ring-brand-200/50'
6464
: 'text-text-tertiary hover:text-text-secondary hover:bg-bg-tertiary/50',

0 commit comments

Comments
 (0)