Spaces:
Running
Running
File size: 2,114 Bytes
0443f48 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
/*
* 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 !important;
--checkbox-background-color-selected: #042AFF !important;
--checkbox-border-color-selected: #042AFF !important;
--checkbox-border-color-focus: #042AFF !important;
--button-primary-background-fill: #042AFF !important;
--button-primary-background-fill-hover: #0320CC !important;
--button-primary-border-color: #042AFF !important;
--color-accent: #042AFF !important;
--color-accent-soft: rgba(4, 42, 255, 0.15) !important;
}
/* 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%)) !important;
}
input[type="range"]::-moz-range-progress {
background: #042AFF !important;
}
/* Radio and checkbox accent */
input[type="radio"],
input[type="checkbox"] {
accent-color: #042AFF !important;
}
/* Tab styling - remove orange, make blue */
button[role="tab"] {
border-bottom-color: transparent !important;
}
button[role="tab"].selected,
button[role="tab"][aria-selected="true"] {
background: transparent !important;
color: #042AFF !important;
border-bottom: 2px solid #042AFF !important;
}
/* Radio group selected item: blue background, white text */
.wrap.selected,
label.selected {
background: #042AFF !important;
border-color: #042AFF !important;
color: white !important;
}
label.selected span {
color: white !important;
}
/* Primary button */
button.primary {
background: #042AFF !important;
border-color: #042AFF !important;
}
button.primary:hover {
background: #0320CC !important;
}
|