Retarget forbidColours() at where 2.0.0 writes a role
Plan step 41 review (the user, 2026-09-15): an application without Tailwind names a role through its --md-sys-color-* custom property (CSS, an inline style, a script), an md-ink-* class, or a component's color/tone prop, not a bg-tertiary utility. forbidColours() keeps its name and signature and reports each of those, the role's on- and container roles included; a Tailwind leftover stays family (i)'s single report. ReStride's forbidColours(['tertiary', 'primary-container']) keeps its meaning. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qwx5USif3wFFmxtHg5U1g9
This commit is contained in:
co-authored by
Claude Opus 5
parent
6dc996afdf
commit
d5972b8ddb
@@ -0,0 +1,9 @@
|
||||
/* var(--md-sys-color-tertiary) in a comment is ignored */
|
||||
.hero {
|
||||
background: var(--md-sys-color-tertiary-container);
|
||||
color: var(--md-sys-color-on-primary-container);
|
||||
}
|
||||
|
||||
.fine {
|
||||
color: var(--md-sys-color-primary);
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
<x-button label="Save" color="tertiary" />
|
||||
<x-badge :tone="'tertiary'" />
|
||||
<x-alert :color="$failed ? 'error' : 'info'" />
|
||||
<p class="md-ink-error" style="border-color: var(--md-sys-color-on-tertiary-container)">Failed</p>
|
||||
<div class="bg-tertiary"></div>
|
||||
<x-button color="primary" label="Allowed" />
|
||||
<span style="background: var(--md-sys-color-primary-container)"></span>
|
||||
<span style="background: var(--md-sys-color-tertiary-fixed)">A fixed role is another role</span>
|
||||
Reference in New Issue
Block a user