Spaces:
Running on Zero
Running on Zero
Download frontend/src/index.css from vechey/khmersense: direct link, hf CLI and curl.
- Browser
- Download file 2.96 kB
-
https://huggingface.co/spaces/vechey/khmersense/resolve/main/frontend/src/index.css
- Command line
-
hf download hf://spaces/vechey/khmersense/frontend/src/index.css
-
curl -L -o index.css https://huggingface.co/spaces/vechey/khmersense/resolve/main/frontend/src/index.css
2.96 kB
| @import "tailwindcss"; | |
| @custom-variant dark (&:where([data-theme="dark"], [data-theme="dark"] *)); | |
| @theme { | |
| --font-sans: "IBM Plex Sans", "Noto Sans Khmer", ui-sans-serif, system-ui, sans-serif; | |
| --font-mono: "IBM Plex Mono", ui-monospace, monospace; | |
| --font-khmer: "Noto Sans Khmer", "IBM Plex Sans", sans-serif; | |
| } | |
| /* Sentiment colours: validated diverging set — blue (positive) / gray (neutral) / red (negative). | |
| Always paired with a text label, never colour alone. */ | |
| :root { | |
| color-scheme: light; | |
| --bg: #fbfbfa; | |
| --field: #ffffff; | |
| --sunk: #f3f3f1; | |
| --line: #e6e6e3; | |
| --line-strong: #cdcdc9; | |
| --ink: #161616; | |
| --ink-2: #424242; | |
| --muted: #767676; | |
| --pos: #257de0; | |
| --neu: #a1a1a1; | |
| --neg: #ec4647; | |
| --focus: #257de0; | |
| } | |
| :root[data-theme="dark"] { | |
| color-scheme: dark; | |
| --bg: #141414; | |
| --field: #1b1b1b; | |
| --sunk: #1f1f1f; | |
| --line: #2a2a2a; | |
| --line-strong: #3d3d3d; | |
| --ink: #ececec; | |
| --ink-2: #c2c2c2; | |
| --muted: #8f8f8f; | |
| --pos: #338ced; | |
| --neu: #6e6e6e; | |
| --neg: #eb6263; | |
| --focus: #338ced; | |
| } | |
| html { background: var(--bg); } | |
| body { | |
| margin: 0; | |
| background: var(--bg); | |
| color: var(--ink); | |
| font-family: var(--font-sans); | |
| font-size: 15px; | |
| -webkit-font-smoothing: antialiased; | |
| } | |
| [lang="km"] { font-family: var(--font-khmer); line-height: 1.8; } | |
| :focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; } | |
| ::selection { background: color-mix(in oklab, var(--pos) 22%, transparent); } | |
| .field { | |
| width: 100%; | |
| border: 1px solid var(--line-strong); | |
| background: var(--field); | |
| border-radius: 4px; | |
| outline: none; | |
| transition: border-color .15s; | |
| } | |
| .field:focus { border-color: var(--ink); } | |
| .field::placeholder { color: var(--muted); } | |
| .btn { | |
| display: inline-flex; align-items: center; justify-content: center; gap: .5rem; | |
| height: 2.75rem; padding: 0 1.25rem; border-radius: 4px; | |
| background: var(--ink); color: var(--bg); font-weight: 500; white-space: nowrap; | |
| transition: opacity .15s; | |
| } | |
| .btn:hover { opacity: .88; } | |
| .btn:disabled { opacity: .3; cursor: not-allowed; } | |
| .btn-ghost { | |
| display: inline-flex; align-items: center; gap: .5rem; height: 2.25rem; padding: 0 .75rem; | |
| border: 1px solid var(--line-strong); border-radius: 4px; font-size: 14px; color: var(--ink); | |
| } | |
| .btn-ghost:hover { background: var(--sunk); } | |
| .eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); } | |
| @keyframes progress { from { transform: translateX(-100%); } to { transform: translateX(250%); } } | |
| .progress { position: relative; height: 2px; overflow: hidden; background: var(--line); } | |
| .progress::after { content: ""; position: absolute; inset: 0; width: 40%; background: var(--ink); animation: progress 1.1s ease-in-out infinite; } | |
| @media (prefers-reduced-motion: reduce) { .progress::after { animation: none; width: 100%; opacity: .4; } } | |