Skip to content
Brok UI

Loading…

No results

Lint UI-305

no-dark-color-override

Dark mode is driven by tokens, not per-utility dark: colour overrides.

UI-305 default: warning tokens DARK_COLOR_OVERRIDE

Configure

In the lint.rules block of ui.json. It accepts message, exclude; see the policy for what the entries match.

ui.json JSON
"no-dark-color-override": ["warning", { "message": "...", "exclude": ["resources/views/legacy/**"] }]
terminal
php artisan ui:check --explain no-dark-color-override

Suppress one line

blade
{{-- ui-lint-disable-next-line no-dark-color-override: reason --}}