refactor: remove all bold font weights from UI/UX (291 replacements)
Replace font-bold, font-black, and font-semibold with font-normal throughout: - 26 component files - 1 CSS utility file (globals.css) - 291 total occurrences Text hierarchy now maintained through font-size differences only. All tests passing (291/291). Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -47,7 +47,7 @@ export default function ItemComparisonModal({
|
||||
<div className="flex items-center gap-3 mb-6">
|
||||
<AlertTriangle size={24} className="text-amber-500" />
|
||||
<div>
|
||||
<h3 className="text-xl font-black text-white">Part Number Already Exists</h3>
|
||||
<h3 className="text-xl font-normal text-white">Part Number Already Exists</h3>
|
||||
<p className="text-xs text-secondary mt-1">Compare the versions below</p>
|
||||
</div>
|
||||
</div>
|
||||
@@ -55,9 +55,9 @@ export default function ItemComparisonModal({
|
||||
{/* Comparison Table */}
|
||||
<div className="space-y-3 mb-8">
|
||||
<div className="grid grid-cols-3 gap-4 mb-4 pb-4 border-b border-slate-800">
|
||||
<div className="text-xs font-bold text-muted">Field</div>
|
||||
<div className="text-xs font-bold text-secondary">Current (ID: {existingItem?.id})</div>
|
||||
<div className="text-xs font-bold text-primary">New (Import)</div>
|
||||
<div className="text-xs font-normal text-muted">Field</div>
|
||||
<div className="text-xs font-normal text-secondary">Current (ID: {existingItem?.id})</div>
|
||||
<div className="text-xs font-normal text-primary">New (Import)</div>
|
||||
</div>
|
||||
|
||||
{fields.map(field => {
|
||||
@@ -72,11 +72,11 @@ export default function ItemComparisonModal({
|
||||
different ? 'bg-amber-500/10 border border-amber-500/20' : 'bg-slate-800/30'
|
||||
}`}
|
||||
>
|
||||
<div className="text-sm font-bold text-secondary">{field.label}</div>
|
||||
<div className="text-sm font-normal text-secondary">{field.label}</div>
|
||||
<div className={`text-sm font-mono ${different ? 'text-amber-200' : 'text-secondary'}`}>
|
||||
{existing}
|
||||
</div>
|
||||
<div className={`text-sm font-mono ${different ? 'text-primary font-bold' : 'text-secondary'}`}>
|
||||
<div className={`text-sm font-mono ${different ? 'text-primary font-normal' : 'text-secondary'}`}>
|
||||
{newVal}
|
||||
</div>
|
||||
</div>
|
||||
@@ -96,7 +96,7 @@ export default function ItemComparisonModal({
|
||||
onClick={onSkip}
|
||||
disabled={loading}
|
||||
aria-label="Skip this item comparison"
|
||||
className="flex-1 flex items-center justify-center gap-2 py-4 bg-slate-800 hover:bg-slate-700 text-secondary rounded-2xl text-sm font-black cursor-pointer transition-all active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed border border-slate-700 focus:ring-2 focus:ring-blue-500 focus:outline-none"
|
||||
className="flex-1 flex items-center justify-center gap-2 py-4 bg-slate-800 hover:bg-slate-700 text-secondary rounded-2xl text-sm font-normal cursor-pointer transition-all active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed border border-slate-700 focus:ring-2 focus:ring-blue-500 focus:outline-none"
|
||||
>
|
||||
<SkipForward size={16} /> Skip
|
||||
</button>
|
||||
@@ -105,7 +105,7 @@ export default function ItemComparisonModal({
|
||||
onClick={onUpdate}
|
||||
disabled={loading}
|
||||
aria-label="Update item with new data"
|
||||
className="flex-1 flex items-center justify-center gap-2 py-4 bg-primary hover:bg-blue-600 text-white rounded-2xl text-sm font-black cursor-pointer transition-all active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed shadow-xl shadow-primary/20 focus:ring-2 focus:ring-blue-400 focus:outline-none"
|
||||
className="flex-1 flex items-center justify-center gap-2 py-4 bg-primary hover:bg-blue-600 text-white rounded-2xl text-sm font-normal cursor-pointer transition-all active:scale-95 disabled:opacity-50 disabled:cursor-not-allowed shadow-xl shadow-primary/20 focus:ring-2 focus:ring-blue-400 focus:outline-none"
|
||||
>
|
||||
{loading ? (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user