Two separate places (Settings filename templates + clip-cutter modal custom template) had their own lint state. Each set the colour by JS as `lintNode.style.color = "#8bc34a"` (green for OK) or `"#ff8a80"` (red for unknown placeholder). Same intent, different implementations, different shades than the rest of the app (--success #00c853 + --error #ff4444). Extracted to a shared .template-lint class with .ok / .warn modifiers driven by the canonical CSS vars. The renderers now swap classNames instead of inline colours. Also picked up the stale `color: #888` on filenameTemplateHint and replaced with the existing .form-note utility class (which uses var(--text-secondary)). The old .clip-template-lint rule stays as a no-op alias for safety, but its hard-coded #8bc34a is removed — colour now comes from .template-lint.ok / .warn. Three hard-coded hex literals retired, two state branches consolidated, semantics now track the global palette. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| build | ||
| docs | ||
| scripts | ||
| src | ||
| .gitignore | ||
| eslint.config.mjs | ||
| package-lock.json | ||
| package.json | ||
| README_AI_RELEASE.md | ||
| tsconfig.json | ||