CaiYuanhao commited on
Commit
2ea6cbc
·
verified ·
1 Parent(s): b23c7f0

Keep the studio font stack in CSS for Gradio theme compatibility

Browse files
Files changed (2) hide show
  1. app.css +2 -0
  2. app.py +1 -2
app.css CHANGED
@@ -2,6 +2,8 @@
2
  width: 100% !important;
3
  max-width: 1536px !important;
4
  margin-inline: auto;
 
 
5
  --pose-line: var(--border-color-primary);
6
  --pose-muted: var(--body-text-color-subdued);
7
  }
 
2
  width: 100% !important;
3
  max-width: 1536px !important;
4
  margin-inline: auto;
5
+ --font: Arial, Helvetica, sans-serif;
6
+ font-family: var(--font);
7
  --pose-line: var(--border-color-primary);
8
  --pose-muted: var(--body-text-color-subdued);
9
  }
app.py CHANGED
@@ -177,8 +177,7 @@ def build_demo():
177
  demo = build_demo()
178
 
179
  if __name__ == "__main__":
180
- theme = gr.themes.Base(primary_hue="zinc", secondary_hue="zinc", neutral_hue="zinc",
181
- font=["Arial", "Helvetica", "sans-serif"]).set(
182
  body_background_fill="white", body_text_color_subdued="#626267",
183
  body_text_color_subdued_dark="#bdbdc2",
184
  button_primary_background_fill="#262626", button_primary_background_fill_hover="#111111",
 
177
  demo = build_demo()
178
 
179
  if __name__ == "__main__":
180
+ theme = gr.themes.Base(primary_hue="zinc", secondary_hue="zinc", neutral_hue="zinc").set(
 
181
  body_background_fill="white", body_text_color_subdued="#626267",
182
  body_text_color_subdued_dark="#bdbdc2",
183
  button_primary_background_fill="#262626", button_primary_background_fill_hover="#111111",