refactor(theming): replace red-* palette with semantic error-* tokens

Sweep 30 files: text/bg/border/ring/from/to/via/fill/stroke/shadow/divide/decoration/
outline/placeholder-red-N → -error-N. All red usages were semantically error/danger
(no brand red), so tokens now flow through the design-system CSS variables and respond
to palette overrides.
This commit is contained in:
c0mrade
2026-05-26 11:08:22 +03:00
parent e1b48c1ccb
commit 9c5e38b594
30 changed files with 66 additions and 60 deletions

View File

@@ -83,8 +83,8 @@ export default function Contests() {
if (error) {
return (
<div className="card border-red-500/20 bg-red-500/10">
<p className="text-red-400">{t('contests.error')}</p>
<div className="card border-error-500/20 bg-error-500/10">
<p className="text-error-400">{t('contests.error')}</p>
</div>
);
}
@@ -125,7 +125,7 @@ export default function Contests() {
{result && (
<div
className={`mb-4 rounded-lg p-4 ${result.is_winner ? 'bg-success-500/20 text-success-400' : 'bg-red-500/20 text-red-400'}`}
className={`mb-4 rounded-lg p-4 ${result.is_winner ? 'bg-success-500/20 text-success-400' : 'bg-error-500/20 text-error-400'}`}
>
<p className="font-medium">{result.message}</p>
</div>