davanstrien HF staff commited on
Commit
bd9d9d5
1 Parent(s): 98127fe

Refactor code for improved UI layout and readability

Browse files
Files changed (1) hide show
  1. theme.py +3 -2
theme.py CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
2
  from gradio.themes.base import Base
3
  from gradio.themes.utils import colors, fonts, sizes
4
 
 
5
  class TufteInspired(Base):
6
  def __init__(
7
  self,
@@ -15,12 +16,12 @@ class TufteInspired(Base):
15
  font: list[fonts.Font | str] = [
16
  fonts.GoogleFont("EB Garamond"),
17
  "Georgia",
18
- "serif"
19
  ],
20
  font_mono: list[fonts.Font | str] = [
21
  fonts.GoogleFont("IBM Plex Mono"),
22
  "Consolas",
23
- "monospace"
24
  ],
25
  ):
26
  super().__init__(
 
2
  from gradio.themes.base import Base
3
  from gradio.themes.utils import colors, fonts, sizes
4
 
5
+
6
  class TufteInspired(Base):
7
  def __init__(
8
  self,
 
16
  font: list[fonts.Font | str] = [
17
  fonts.GoogleFont("EB Garamond"),
18
  "Georgia",
19
+ "serif",
20
  ],
21
  font_mono: list[fonts.Font | str] = [
22
  fonts.GoogleFont("IBM Plex Mono"),
23
  "Consolas",
24
+ "monospace",
25
  ],
26
  ):
27
  super().__init__(