Kesheratmex commited on
Commit
4c648b3
·
1 Parent(s): 79e02da

Add light mode overrides and stronger button styling for Gradio 4

Browse files

This update forces light backgrounds even when HF is in dark mode and enhances button appearance for Gradio 4.

Files changed (1) hide show
  1. assets/kesheret.css +28 -0
assets/kesheret.css CHANGED
@@ -68,5 +68,33 @@ html.dark, body.dark { background: #FFFFFF !important; }
68
  @media (max-width: 768px) {
69
  .kesheret-header h1 { font-size: 2rem; }
70
  .gradio-row, .gradio-column { margin: .5rem 0 !important; padding: 1rem !important; }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  }
72
 
 
68
  @media (max-width: 768px) {
69
  .kesheret-header h1 { font-size: 2rem; }
70
  .gradio-row, .gradio-column { margin: .5rem 0 !important; padding: 1rem !important; }
71
+
72
+ /* Force light backgrounds even when HF is in dark mode */
73
+ html.dark, body.dark, .dark .gradio-container, .dark .gradio-row, .dark .gradio-column,
74
+ .gradio-interface, .gr-interface, .gradio-block, .gr-block, .gradio-panel, .gr-panel,
75
+ .gradio-tabs, .gradio-tabitem {
76
+ background: #FFFFFF !important;
77
+ }
78
+
79
+ :root, html, body, html.dark, body.dark {
80
+ --color-background: #FFFFFF !important;
81
+ --color-background-fill: #FFFFFF !important;
82
+ --body-background-fill: #FFFFFF !important;
83
+ --background-fill-primary: #FFFFFF !important;
84
+ --background-fill-secondary: #FFFFFF !important;
85
+ --block-background-fill: #FFFFFF !important;
86
+ }
87
+
88
+ /* Stronger button overrides for Gradio 4 */
89
+ button, .gr-button, .gradio-button {
90
+ background: linear-gradient(135deg, var(--kesheret-blue) 0%, var(--medium-blue) 100%) !important;
91
+ color: #FFFFFF !important;
92
+ border: 1px solid var(--kesheret-blue) !important;
93
+ border-radius: 8px !important;
94
+ }
95
+ button:hover, .gr-button:hover, .gradio-button:hover {
96
+ background: #0056D6 !important;
97
+ }
98
+
99
  }
100