File tree Expand file tree Collapse file tree
ui-components/stylesheets Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ // PROBE FILE — deliberate lint violations for testing scripts/lint-colors.js. DELETE ME.
2+
3+ .probe {
4+ // Check 1: banned SCSS alias
5+ color : $ff-grey-700 ;
6+
7+ // Check 1: hex literal in a color property
8+ background-color : #374151 ;
9+
10+ // Check 1: named color keyword in a color property
11+ border : 1px solid black ;
12+
13+ // Check 1: raw palette var used directly in a color property
14+ fill : var (--ff-palette-red-500 );
15+ }
Original file line number Diff line number Diff line change 1+ <!-- PROBE FILE — deliberate lint violations for testing scripts/lint-colors.js. DELETE ME. -->
2+ <template >
3+ <!-- Check 2: banned Tailwind utility classes in templates -->
4+ <div class =" bg-black" >probe: bg-black</div >
5+ <div class =" text-red-50" >probe: text-red-50</div >
6+ <div class =" text-gray-100" >probe: text-gray-100</div >
7+ <div class =" text-yellow-200" >probe: text-yellow-200</div >
8+
9+ <!-- Check 1: hex literal in a color property -->
10+ <span style =" color : #374151 ;" >probe: hex literal</span >
11+
12+ <!-- Check 1: named color keyword in a color property -->
13+ <span style =" background : white ;" >probe: named color</span >
14+
15+ <!-- Check 1: banned SVG fill/stroke attributes -->
16+ <svg >
17+ <rect fill =" #ff0000" />
18+ <rect stroke =" red" />
19+ <rect fill =" var(--ff-palette-grey-700)" />
20+ </svg >
21+ </template >
Original file line number Diff line number Diff line change 44[data-theme = " light" ] {
55 color-scheme : light ;
66
7+ /* PROBE: theme-parity violation — token defined in light but not dark. DELETE ME. */
8+ --ff-color-probe-only-light : var (--ff-palette-white );
9+
710 --ff-color-bg-app : var (--ff-palette-white );
811 --ff-color-bg-surface : var (--ff-palette-grey-50 );
912 --ff-color-bg-surface-raised : var (--ff-palette-grey-100 );
You can’t perform that action at this time.
0 commit comments