style(frontend): enforce color-hex-length in scss

- Stylelint:
  - re-enable `color-hex-length` in the frontend Stylelint config while keeping the agreed Angular and legacy Sass exceptions as-is
- SCSS:
  - normalize repeatable long hex colors to their short form where the value is identical
- Validation:
  - `just ui stylelint`
This commit is contained in:
James Cox
2026-04-22 17:26:44 -04:00
committed by Zach Yale
parent 7b9830faf5
commit a991351bb5
45 changed files with 110 additions and 111 deletions
@@ -5,7 +5,7 @@ $bg-primary: #0f0f1a;
$bg-secondary: #1a1a2e;
$bg-tertiary: #252542;
$bg-darker: #0a0a12;
$text-primary: #ffffff;
$text-primary: #fff;
$text-secondary: rgb(255 255 255 / 80%);
$text-tertiary: rgb(255 255 255 / 50%);
$accent-secondary: #ec4899;
@@ -6,7 +6,7 @@
overflow: hidden;
box-sizing: border-box;
background: #1a1a1a;
color: #ffffff;
color: #fff;
position: relative;
touch-action: none;
overscroll-behavior: none;
@@ -110,7 +110,7 @@
}
&.bg-black {
background: #000000;
background: #000;
}
&.bg-gray {
@@ -118,7 +118,7 @@
}
&.bg-white {
background: #ffffff;
background: #fff;
}
&:not(.infinite-scroll) {
@@ -513,7 +513,7 @@
border: none;
border-radius: 12px;
font-weight: 600;
color: #ffffff;
color: #fff;
cursor: pointer;
transition: all 0.3s ease;
box-shadow: 0 4px 20px rgb(74 144 226 / 30%);
@@ -13,7 +13,7 @@
background: linear-gradient(135deg, #2d2d2d 0%, #1f1f1f 100%);
border-bottom: 1px solid #404040;
box-shadow: 0 2px 8px rgb(0 0 0 / 30%);
color: #ffffff;
color: #fff;
opacity: 1;
pointer-events: auto;
transform: translateY(0);
@@ -142,7 +142,7 @@
padding: 8px 12px;
background: none;
border: none;
color: #ffffff;
color: #fff;
font-size: 13px;
cursor: pointer;
border-radius: 6px;
@@ -126,7 +126,7 @@ $transition-normal: 200ms ease;
left: 2px;
width: 18px;
height: 18px;
background: #ffffff;
background: #fff;
border-radius: 50%;
transition: transform 300ms ease;
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
@@ -260,7 +260,7 @@ $transition-normal: 200ms ease;
left: 2px;
width: 20px;
height: 20px;
background: #ffffff;
background: #fff;
border-radius: 50%;
transition: transform 300ms ease;
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);
@@ -146,7 +146,7 @@ $transition-normal: 200ms ease;
left: 2px;
width: 18px;
height: 18px;
background: #ffffff;
background: #fff;
border-radius: 50%;
transition: transform 300ms ease;
box-shadow: 0 2px 4px rgb(0 0 0 / 20%);