Spaces:
Running
Running
| /* | |
| * Ultralytics π AGPL-3.0 License - https://ultralytics.com/license | |
| * | |
| * Ultralytics Gradio Theme CSS | |
| * Use this CSS file for consistent Ultralytics blue (#042AFF) styling across Gradio apps | |
| * Compatible with Gradio 6.x | |
| * | |
| * Usage in app.py: | |
| * from pathlib import Path | |
| * custom_css = Path("ultralytics.css").read_text() | |
| * demo.launch(css=custom_css) | |
| */ | |
| /* Override Gradio CSS variables for Ultralytics blue */ | |
| .gradio-container { | |
| --slider-color: #042AFF ; | |
| --checkbox-background-color-selected: #042AFF ; | |
| --checkbox-border-color-selected: #042AFF ; | |
| --checkbox-border-color-focus: #042AFF ; | |
| --button-primary-background-fill: #042AFF ; | |
| --button-primary-background-fill-hover: #0320CC ; | |
| --button-primary-border-color: #042AFF ; | |
| --color-accent: #042AFF ; | |
| --color-accent-soft: rgba(4, 42, 255, 0.15) ; | |
| } | |
| /* Slider filled track */ | |
| input[type="range"]::-webkit-slider-runnable-track { | |
| background: linear-gradient(to right, #042AFF var(--range_progress, 25%), var(--neutral-200, #e5e7eb) var(--range_progress, 25%)) ; | |
| } | |
| input[type="range"]::-moz-range-progress { | |
| background: #042AFF ; | |
| } | |
| /* Radio and checkbox accent */ | |
| input[type="radio"], | |
| input[type="checkbox"] { | |
| accent-color: #042AFF ; | |
| } | |
| /* Tab styling - remove orange, make blue */ | |
| button[role="tab"] { | |
| border-bottom-color: transparent ; | |
| } | |
| button[role="tab"].selected, | |
| button[role="tab"][aria-selected="true"] { | |
| background: transparent ; | |
| color: #042AFF ; | |
| border-bottom: 2px solid #042AFF ; | |
| } | |
| /* Radio group selected item: blue background, white text */ | |
| .wrap.selected, | |
| label.selected { | |
| background: #042AFF ; | |
| border-color: #042AFF ; | |
| color: white ; | |
| } | |
| label.selected span { | |
| color: white ; | |
| } | |
| /* Primary button */ | |
| button.primary { | |
| background: #042AFF ; | |
| border-color: #042AFF ; | |
| } | |
| button.primary:hover { | |
| background: #0320CC ; | |
| } | |