Skip to content

Commit ad4db66

Browse files
committed
TEMP CHECK: Add probe files for color linting tests
1 parent 66a77a6 commit ad4db66

3 files changed

Lines changed: 39 additions & 0 deletions

File tree

frontend/src/__lint_probe__.scss

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}

frontend/src/__lint_probe__.vue

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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>

frontend/src/ui-components/stylesheets/ff-theme-light.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
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);

0 commit comments

Comments
 (0)