Spaces:
Running
Running
Download theme.css from jejunepixels/token-visualiser: direct link, hf CLI and curl.
- Browser
- Download file 5.49 kB
-
https://huggingface.co/spaces/jejunepixels/token-visualiser/resolve/main/theme.css
- Command line
-
hf download hf://spaces/jejunepixels/token-visualiser/theme.css
-
curl -L -o theme.css https://huggingface.co/spaces/jejunepixels/token-visualiser/resolve/main/theme.css
5.49 kB
| /* Token Visualiser: Streamlit hooks for the shared look in brand.css (shared-ui/). | |
| Streamlit's own theme stays light (.streamlit/config.toml), so the mint control panel is | |
| unchanged. The start page follows the browser's light/dark setting through brand.css tokens. */ | |
| /* No Streamlit top bar: the start page and chart stage fill the window, as in the Gradio Spaces. */ | |
| [data-testid="stHeader"] { display: none ; } | |
| [data-testid="stMainBlockContainer"]:has(.st-key-start_page) { padding-top: 0; } | |
| /* Serif subheadings in the workspace panel. */ | |
| h2, h3 { font-family: var(--brand-serif) ; font-weight: 400 ; } | |
| .brand-header [data-testid="stHeaderActionElements"] { display: none ; } | |
| /* ---- Start page ---------------------------------------------------------- */ | |
| .stApp:has(.st-key-start_page) { background: var(--brand-page) ; } | |
| .st-key-start_page { color: var(--brand-text); } | |
| .st-key-start_page [data-testid="stWidgetLabel"], .st-key-start_page [data-testid="stWidgetLabel"] p { | |
| color: var(--brand-text) ; | |
| font-weight: 600; | |
| } | |
| .st-key-start_page [data-testid="stCaptionContainer"], .st-key-start_page [data-testid="stCaptionContainer"] p { | |
| color: var(--brand-subdued) ; | |
| } | |
| .st-key-start_page [data-testid="stMarkdownContainer"], .st-key-start_page [data-testid="stText"] { color: var(--brand-text); } | |
| .st-key-start_page [data-baseweb="select"] > div, .st-key-start_page .react-aria-ComboBox > div, | |
| .st-key-start_page [data-baseweb="input"], .st-key-start_page [data-baseweb="base-input"], | |
| .st-key-start_page [data-testid="stFileUploaderDropzone"] { | |
| border-radius: var(--brand-radius-control) ; | |
| border-color: var(--brand-line) ; | |
| background-color: var(--brand-input) ; | |
| color: var(--brand-text) ; | |
| } | |
| .st-key-start_page [data-baseweb="select"] *, .st-key-start_page .react-aria-ComboBox *, .st-key-start_page input, | |
| .st-key-start_page [data-testid="stFileUploaderDropzoneInstructions"] * { | |
| color: var(--brand-text) ; | |
| -webkit-text-fill-color: var(--brand-text); | |
| } | |
| .st-key-start_page input::placeholder { color: var(--brand-subdued) ; -webkit-text-fill-color: var(--brand-subdued); } | |
| .st-key-start_page [data-baseweb="select"]:focus-within > div, .st-key-start_page .react-aria-ComboBox:focus-within > div, | |
| .st-key-start_page [data-baseweb="input"]:focus-within { | |
| border-color: var(--brand-amber) ; | |
| box-shadow: 0 0 0 2px #f4bf6733; | |
| } | |
| .st-key-start_page [data-testid="stExpander"] details { | |
| border-color: var(--brand-line) ; | |
| border-radius: 14px ; | |
| background: transparent ; | |
| } | |
| .st-key-start_page [data-testid="stExpander"] summary, .st-key-start_page [data-testid="stExpander"] summary * { | |
| color: var(--brand-text) ; | |
| } | |
| .st-key-start_page [data-testid="stExpander"] summary:hover * { color: var(--brand-link) ; } | |
| .st-key-start_page [data-baseweb="tab"] p { color: var(--brand-subdued) ; } | |
| .st-key-start_page [data-baseweb="tab"][aria-selected="true"] p { color: var(--brand-text) ; } | |
| .st-key-start_page [data-baseweb="tab-border"] { background-color: var(--brand-line) ; } | |
| .st-key-start_page button[kind="secondary"], .st-key-start_page [data-testid="stLinkButton"] a { | |
| border-radius: var(--brand-radius-control); | |
| border-color: var(--brand-line) ; | |
| background: var(--brand-input-hover) ; | |
| color: var(--brand-text) ; | |
| } | |
| .st-key-start_page button[kind="secondary"]:hover, .st-key-start_page [data-testid="stLinkButton"] a:hover { | |
| border-color: var(--brand-amber) ; | |
| } | |
| .st-key-start_page button[kind="primary"], .st-key-start_page button[kind="primary"] * { color: var(--brand-on-amber) ; } | |
| .st-key-hf_load_preset button p { font: 600 16px/1.4 var(--brand-sans) ; } | |
| .st-key-start_page [data-testid="stProgress"] p, .st-key-start_page [data-testid="stSpinner"] * { color: var(--brand-text) ; } | |
| /* ---- Shared controls ------------------------------------------------------ */ | |
| [data-testid="stVerticalBlockBorderWrapper"], [data-testid="stExpander"] { | |
| border-color: #82968b40 ; | |
| border-radius: 14px ; | |
| } | |
| [data-baseweb="input"], [data-baseweb="base-input"], [data-baseweb="select"] > div, .react-aria-ComboBox > div, | |
| [data-baseweb="textarea"], [data-testid="stFileUploaderDropzone"] { | |
| border-radius: 10px ; | |
| border-color: #82968b66 ; | |
| background-color: #fff ; | |
| color: #203c3a; | |
| } | |
| [data-baseweb="input"]:focus-within, [data-baseweb="select"]:focus-within, .react-aria-ComboBox:focus-within > div { | |
| border-color: #f4bf67 ; | |
| box-shadow: 0 0 0 2px #f4bf6733; | |
| } | |
| [data-testid="stButton"] button, [data-testid="stDownloadButton"] button { | |
| border-radius: 10px; | |
| border-color: #82968b66; | |
| min-height: 44px; | |
| } | |
| button[kind="primary"] { background: #f4bf67 ; border-color: #f4bf67 ; color: #17242b ; } | |
| button[kind="primary"]:hover { background: #e7aa45 ; border-color: #e7aa45 ; } | |
| /* The round "Change model" button keeps its label for screen readers only. */ | |
| .st-key-clear_model button p { | |
| position: absolute ; | |
| width: 1px; | |
| height: 1px; | |
| overflow: hidden; | |
| clip-path: inset(50%); | |
| white-space: nowrap; | |
| } | |
| .st-key-clear_model { --brand-return-label: "Change model"; } | |