Add shared Icon primitive and controlled glyph vocabulary (Carbon, filled)

This commit is contained in:
2026-06-06 23:51:47 +03:00
parent af9ee1e4c0
commit 3e89d9a531
18 changed files with 587 additions and 77 deletions
+30
View File
@@ -0,0 +1,30 @@
/* Shared icon primitive (arch 09 §5). Icons are fill: currentColor SVG, so they
inherit the surrounding text colour and theme automatically. The size classes
map to the Carbon scale tokens; the glyph keeps its own rounded geometry and is
exempt from --radius (square chrome applies to chrome, not icons). */
.icon {
display: inline-block;
flex: 0 0 auto;
fill: currentColor;
vertical-align: middle;
}
.sm {
width: var(--icon-sm);
height: var(--icon-sm);
}
.md {
width: var(--icon-md);
height: var(--icon-md);
}
.lg {
width: var(--icon-lg);
height: var(--icon-lg);
}
.xl {
width: var(--icon-xl);
height: var(--icon-xl);
}