Files
livewire-material/tests/Fixtures/design-guard/app-css/app.css
T
Andreas Reinhold / reiniandClaude Opus 5 6dc996afdf Retire forbidAbsolutes() and forbidOpacityInk() from the design guard
Plan step 41 review (the user, 2026-09-15): without Tailwind, bg-white and
text-on-surface/60 compile to nothing like any other utility, so family (i)
now reports every colour utility on an M3 role, a 1.x ink name
(text-meta, border-divider), white, black or current, with or without an
opacity, each with its 2.0.0 replacement (an md-ink-* class, <x-divider>,
<x-surface level>, md-state-layer or the role's var()). Check (iii) reads
named colours anywhere in a declaration's value (border: 1px solid white),
hex codes only in values (an id like #add no longer matches), and masks
strings and url() contents first.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Qwx5USif3wFFmxtHg5U1g9
2026-09-15 08:33:20 +02:00

39 lines
838 B
CSS

/* comments are ignored */
.card {
color: #ff0000;
background: rgb(0, 0, 0);
border-radius: 12px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
font-size: 14px;
font-weight: 600;
line-height: 1.4;
letter-spacing: 0.02em;
transition: opacity 200ms ease-in-out;
}
.fine {
border-radius: var(--md-sys-shape-corner-lg);
color: var(--md-sys-color-primary);
padding: calc(var(--md-sys-measurement-space100) * 2);
border: 0;
}
/* white in a comment is ignored, and so is #fff */
.quiet::before {
content: "white";
border: 1px solid white;
outline-color: #fff;
background: url(data:image/svg+xml;utf8,<svg fill='black'></svg>);
}
#add-button, .red-banner {
color: transparent;
fill: currentColor;
}
@media (min-width: 700px) {
.card {
display: flex;
}
}