starfleet-ui
Clone avec HTTPS, un jeton personnel en mot de passe, ou avec SSH, une clé ajoutée dans vos paramètres.
Dernier runRéussi#6 · main · 2 min 01 s
0Étoiles
0Forks
0Issues
| 1 | @import 'tailwindcss'; |
| 2 | |
| 3 | /* |
| 4 | * Design tokens. Panels float over a live 3D map, so surfaces are translucent and |
| 5 | * colour carries meaning: cyan = flight/navigation and focus, amber = cargo/credits, |
| 6 | * emerald = good, red = danger, violet = beyond the lanes / exotic. |
| 7 | * Fonts are system stacks on purpose: no runtime font downloads. |
| 8 | */ |
| 9 | @theme { |
| 10 | --color-space: #02040b; |
| 11 | --color-hud: rgb(4 10 24 / 0.78); |
| 12 | --color-hud-strong: rgb(6 14 32 / 0.92); |
| 13 | --color-line: rgb(56 189 248 / 0.16); |
| 14 | --color-line-strong: rgb(56 189 248 / 0.38); |
| 15 | --color-accent: #22d3ee; |
| 16 | --color-credit: #fbbf24; |
| 17 | --font-display: 'Rajdhani', 'Eurostile', 'Bank Gothic', ui-sans-serif, system-ui, sans-serif; |
| 18 | --font-mono: ui-monospace, 'JetBrains Mono', 'SFMono-Regular', Menlo, Consolas, monospace; |
| 19 | --animate-rise: rise 180ms ease-out; |
| 20 | |
| 21 | @keyframes rise { |
| 22 | from { |
| 23 | opacity: 0; |
| 24 | transform: translateY(6px); |
| 25 | } |
| 26 | to { |
| 27 | opacity: 1; |
| 28 | transform: none; |
| 29 | } |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | @utility hud-panel { |
| 34 | background: var(--color-hud); |
| 35 | border: 1px solid var(--color-line); |
| 36 | border-radius: 0.9rem; |
| 37 | backdrop-filter: blur(14px) saturate(140%); |
| 38 | box-shadow: |
| 39 | 0 10px 40px -12px rgb(0 0 0 / 0.7), |
| 40 | inset 0 1px 0 rgb(255 255 255 / 0.04); |
| 41 | } |
| 42 | |
| 43 | @utility hud-label { |
| 44 | font-size: 0.65rem; |
| 45 | font-weight: 700; |
| 46 | letter-spacing: 0.18em; |
| 47 | text-transform: uppercase; |
| 48 | color: rgb(148 163 184); |
| 49 | } |
| 50 | |
| 51 | @layer base { |
| 52 | html, |
| 53 | body { |
| 54 | background: var(--color-space); |
| 55 | color: rgb(226 232 240); |
| 56 | } |
| 57 | :focus-visible { |
| 58 | outline: 2px solid var(--color-accent); |
| 59 | outline-offset: 2px; |
| 60 | } |
| 61 | /* thin, dark scrollbars inside panels */ |
| 62 | * { |
| 63 | scrollbar-width: thin; |
| 64 | scrollbar-color: rgb(56 189 248 / 0.25) transparent; |
| 65 | } |
| 66 | } |