diff --git a/ui/src/app/skins/7like/7like.css b/ui/src/app/skins/7like/7like.css new file mode 100644 index 0000000..47abcd8 --- /dev/null +++ b/ui/src/app/skins/7like/7like.css @@ -0,0 +1,636 @@ +/* The SCOPED 7.css build: postcss-prefix-selector rewrote every selector to + `.win7` (root rules) or `.win7 ` (the rest), so the whole framework is + inert until SettingsService.applySkin puts that class on . All 61 + icons are data URIs, so nothing needs copying into assets — and NOT the + `7.inline.css` build, which flattens away the --w7-* vars the dark palette + below depends on. The deep path is required: 7.css ships no `exports` map + and Tailwind's resolver only reads `style`/`mainFields`, so a bare + `@import "7.css"` finds no entry. */ +@import "7.css/dist/7.scoped.css" layer(skin); + +/* ========================================================================== + Windows 7 skin — SettingsService.applySkin puts `.win7` on + ========================================================================== + + Three tiers, and the split matters: + + - `@layer skin` (the 7.css import at the top of this file) owns the + CONTROLS: buttons, inputs, tabs, progress bars, tree views, the Aero + title bar. It sits ABOVE `utilities`, so a bare `button` rule in 7.css + beats `.rounded-md` on that same button. That inversion is the whole + trick — it restyles ~1900 inline utility classes with no template edits. + - This unlayered section owns the BRIDGE: it re-points the app's own + semantic tokens at Win7 values, so utilities Tailwind still controls + (bg-card, border-border, text-muted-foreground) also come out + Win7-correct. It adds NO new tokens on purpose — a new colour token + would need a matching `--color-*` line in `@theme inline`. + - `@layer skinfix` (last, above `skin`) hands individual properties BACK to + the utilities layer with `revert-layer`, for the places where 7.css's + Win7-dialog metrics are wrong for this app. + + WARNING for future edits: because `skin` outranks `utilities`, any Tailwind + utility added later to a