Skip to content

Commit f3795c4

Browse files
committed
style(inspiration): 紫青渐变退役,AI 按钮统一磷光蓝渐变
1 parent c0bfb3f commit f3795c4

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎client/src/features/inspiration/components/InspirationCard.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function OrbCollapsed({ item, batchMode, selected, onToggleSelect, onExpand, bre
104104
type="checkbox"
105105
checked={selected}
106106
onChange={() => {}}
107-
className="w-3.5 h-3.5 rounded accent-purple-500 cursor-pointer"
107+
className="w-3.5 h-3.5 rounded accent-brand-500 cursor-pointer"
108108
/>
109109
</div>
110110
)}
@@ -187,7 +187,7 @@ function OrbExpanded({ item, onClose }: OrbExpandedProps) {
187187
onClick={handleSort} disabled={sortLoading}
188188
className={cn(
189189
'flex items-center gap-1 px-2 py-0.5 rounded-kb-md text-xs font-medium',
190-
'bg-gradient-to-r from-purple-500 to-cyan-500 text-text-inverse',
190+
'bg-gradient-to-r from-cyber to-brand-500 text-text-inverse',
191191
'disabled:opacity-60 disabled:cursor-not-allowed',
192192
)}
193193
>

‎client/src/features/inspiration/components/PulseAnimation.tsx‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ interface PulseAnimationProps {
2626
/** 圆环颜色插值:赛博青 → 琥珀 */
2727
function ringColor(index: number, total: number): string {
2828
const t = total <= 1 ? 0 : index / (total - 1);
29-
// 青: rgba(34, 211, 238, 0.6) → 琥珀: rgba(245, 158, 11, 0.4)
29+
// 青: rgba(74, 155, 217, 0.6) → 琥珀: rgba(245, 158, 11, 0.4)
3030
const r = Math.round(34 + (245 - 34) * t);
3131
const g = Math.round(211 + (158 - 211) * t);
3232
const b = Math.round(238 + (11 - 238) * t);
@@ -72,7 +72,7 @@ function ReducedMotion({ clickPoint }: { clickPoint: { x: number; y: number } })
7272
height: PULSE_RING_SIZE * 2,
7373
transform: 'translate(-50%, -50%)',
7474
borderRadius: '50%',
75-
background: 'radial-gradient(circle, rgba(34,211,238,0.25) 0%, transparent 70%)',
75+
background: 'radial-gradient(circle, rgba(74,155,217,0.25) 0%, transparent 70%)',
7676
animation: 'fadeIn 0.4s ease-out forwards',
7777
}}
7878
/>
@@ -160,7 +160,7 @@ function PulseAnimation({
160160
height: 40,
161161
transform: 'translate(-50%, -50%)',
162162
borderRadius: '50%',
163-
background: 'radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%)',
163+
background: 'radial-gradient(circle, rgba(74, 155, 217, 0.15) 0%, transparent 70%)',
164164
pointerEvents: 'none',
165165
}}
166166
/>
@@ -172,7 +172,7 @@ function PulseAnimation({
172172
top: clickPoint.y,
173173
width: 16,
174174
height: 16,
175-
background: 'radial-gradient(circle, rgba(34, 211, 238, 0.9) 0%, rgba(34, 211, 238, 0.3) 70%)',
175+
background: 'radial-gradient(circle, rgba(74, 155, 217, 0.9) 0%, rgba(74, 155, 217, 0.3) 70%)',
176176
}}
177177
/>
178178
</>
@@ -187,7 +187,7 @@ function PulseAnimation({
187187
top: clickPoint.y,
188188
width: 60,
189189
height: 60,
190-
background: 'radial-gradient(circle, rgba(34, 211, 238, 0.8) 0%, transparent 70%)',
190+
background: 'radial-gradient(circle, rgba(74, 155, 217, 0.8) 0%, transparent 70%)',
191191
}}
192192
/>
193193
)}

‎client/src/features/inspiration/components/SortPendingBanner.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function SortPendingBanner({ pendingCount, onSortAll, onDismiss }: SortPendingBa
4747
whileHover={{ scale: 1.03 }}
4848
whileTap={{ scale: 0.97 }}
4949
onClick={onSortAll}
50-
className="px-3 py-1 rounded-full text-xs font-medium bg-gradient-to-r from-cyan-500/20 to-amber-500/20 border border-cyan-400/30 text-text-secondary hover:text-text-primary transition-colors"
50+
className="px-3 py-1 rounded-full text-xs font-medium bg-gradient-to-r from-cyber/20 to-amber/20 border border-cyber/30 text-text-secondary hover:text-text-primary transition-colors"
5151
>
5252
开始整理
5353
</motion.button>

‎client/src/features/inspiration/pages/InspirationPage.tsx‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export default function InspirationPage() {
174174
onClick={enter}
175175
whileHover={{ scale: 1.05 }}
176176
whileTap={{ scale: 0.95 }}
177-
className="ml-auto flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium bg-gradient-to-r from-accent-500 to-brand-500 text-text-inverse hover:from-accent-600 hover:to-brand-600 shadow-sm shadow-accent-500/20"
177+
className="ml-auto flex items-center gap-1.5 px-3 py-1.5 rounded-full text-xs font-medium bg-gradient-to-r from-cyber to-brand-500 text-text-inverse hover:from-cyber/90 hover:to-brand-600 shadow-sm shadow-cyber/20"
178178
>
179179
<Sparkles className="w-3.5 h-3.5" />
180180
沉浸
@@ -278,8 +278,8 @@ export default function InspirationPage() {
278278
disabled={selectedIds.size === 0 || batchProcessing}
279279
className={cn(
280280
'flex items-center gap-1 px-3 py-1 rounded-full text-xs font-medium',
281-
'bg-gradient-to-r from-accent-500 to-brand-500 text-text-inverse',
282-
'hover:from-accent-600 hover:to-brand-600 shadow-sm shadow-accent-500/20',
281+
'bg-gradient-to-r from-cyber to-brand-500 text-text-inverse',
282+
'hover:from-cyber/90 hover:to-brand-600 shadow-sm shadow-cyber/20',
283283
'disabled:opacity-50 disabled:cursor-not-allowed',
284284
)}
285285
>
@@ -295,7 +295,7 @@ export default function InspirationPage() {
295295
{batchProcessing && total > 0 && (
296296
<div className="w-full h-1.5 rounded-full bg-bg-secondary overflow-hidden mt-1">
297297
<motion.div
298-
className="h-full rounded-full bg-gradient-to-r from-accent-500 to-brand-500"
298+
className="h-full rounded-full bg-gradient-to-r from-cyber to-brand-500"
299299
initial={{ width: 0 }}
300300
animate={{ width: `${(progress / total) * 100}%` }}
301301
transition={{ duration: 0.3 }}

0 commit comments

Comments
 (0)