Files
patriothacks/src/index.css
T
OmO Orchestrator d58e6dfd1d feat(ui): add shared design-token system and inline-SVG icon set
Adds src/styles/tokens.css (color palette incl. 4 category accent
families + 4 resource-type accents, spacing, radius, elevation,
type scale) imported once from src/index.css, and src/shell/icons.tsx
(13 mini-app icons + 4 resource icons + chevron/wallet, inline SVG)
to replace emoji-glyph icon rendering, which showed as blank
glyph-not-found boxes. No behavior change.
2026-11-18 00:08:01 -05:00

62 lines
1.6 KiB
CSS

/*
* Shell-wide reset for the Alipay/WeChat/Tuya mini-app aesthetic (draft D5).
*
* `box-sizing: border-box` on every element is required so that a card's
* own `padding` never pushes its rendered box past a `width: 100%`
* allotment from its flex/grid parent (the browser's content-box default
* does exactly that, and did: the Fair Draw envelope card was overflowing
* past its parent's padding at phone width, bleeding edge-to-edge with
* its rounded corners clipped off, until this reset was added - visual QA
* finding, plan todo 58).
*
* Single light theme only (finding D4 / plan Must-NOT-have): no
* `prefers-color-scheme: dark` override and no `color-scheme` hint here -
* this app was never approved for a dark theme and must not silently grow
* one from a leftover template media query.
*/
@import "./styles/tokens.css";
*,
*::before,
*::after {
box-sizing: border-box;
}
:root {
--sans: system-ui, 'Segoe UI', Roboto, sans-serif;
font: 18px/145% var(--sans);
letter-spacing: 0.18px;
color: var(--color-ink);
background: var(--color-canvas);
font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
@media (max-width: 1024px) {
font-size: 16px;
}
}
#root {
width: 1126px;
max-width: 100%;
margin: 0 auto;
/* Most miniapp cards (WalletCard, ResourceTiles' balance card, etc.)
* never set their own text-align and depend on this inherited default -
* do not remove without auditing every miniapp. */
text-align: center;
min-height: 100svh;
display: flex;
flex-direction: column;
}
body {
margin: 0;
}
p {
margin: 0;
}