rocioadlc commited on
Commit
c229546
·
verified ·
1 Parent(s): 6dd1fdc

Delete theme.py

Browse files
Files changed (1) hide show
  1. theme.py +0 -94
theme.py DELETED
@@ -1,94 +0,0 @@
1
-
2
- from __future__ import annotations
3
-
4
- from typing import Iterable
5
-
6
- from gradio.themes.base import Base
7
- from gradio.themes.utils import colors, fonts, sizes
8
-
9
-
10
- class Theme(Base):
11
- def __init__(
12
- self,
13
- *,
14
- primary_hue: colors.Color | str = colors.lime,
15
- secondary_hue: colors.Color | str = colors.emerald,
16
- neutral_hue: colors.Color | str = colors.stone,
17
- spacing_size: sizes.Size | str = sizes.spacing_lg,
18
- radius_size: sizes.Size | str = sizes.radius_none,
19
- text_size: sizes.Size | str = sizes.text_md,
20
- font: fonts.Font | str | Iterable[fonts.Font | str] = (
21
- fonts.GoogleFont("Quicksand"),
22
- "ui-sans-serif",
23
- "system-ui",
24
- "sans-serif",
25
- ),
26
- font_mono: fonts.Font | str | Iterable[fonts.Font | str] = (
27
- fonts.GoogleFont("IBM Plex Mono"),
28
- "ui-monospace",
29
- "Consolas",
30
- "monospace",
31
- ),
32
- ):
33
- super().__init__(
34
- primary_hue=primary_hue,
35
- secondary_hue=secondary_hue,
36
- neutral_hue=neutral_hue,
37
- spacing_size=spacing_size,
38
- radius_size=radius_size,
39
- text_size=text_size,
40
- font=font,
41
- font_mono=font_mono,
42
- )
43
- self.name = "theme"
44
- super().set(
45
- # Colors
46
- slider_color="*neutral_900",
47
- slider_color_dark="*neutral_500",
48
- body_text_color="rgb(18,13,5)",
49
- block_label_text_color="rgb(243, 239, 224)",
50
- block_title_text_color="rgb(243, 239, 224)",
51
- body_text_color_subdued="*neutral_400",
52
- body_background_fill='*primary_800',
53
- background_fill_primary='*primary_600',
54
- background_fill_primary_dark='*primary_900',
55
- background_fill_secondary_dark='*primary_900',
56
- block_background_fill='rgb(53,66,48)',
57
- block_background_fill_dark="*neutral_800",
58
- input_background_fill_dark="*neutral_700",
59
- # Button Colors
60
- button_primary_background_fill="rgb(53,66,48)",
61
- button_primary_background_fill_hover='*primary_200',
62
- button_primary_text_color='*primary_600',
63
- button_primary_background_fill_dark="*neutral_600",
64
- button_primary_background_fill_hover_dark="*neutral_600",
65
- button_primary_text_color_dark="white",
66
- button_secondary_background_fill="*button_primary_background_fill",
67
- button_secondary_background_fill_hover="*button_primary_background_fill_hover",
68
- button_secondary_text_color="*button_primary_text_color",
69
- button_cancel_background_fill="*button_primary_background_fill",
70
- button_cancel_background_fill_hover="*button_primary_background_fill_hover",
71
- button_cancel_text_color="*button_primary_text_color",
72
- checkbox_label_background_fill="*button_primary_background_fill",
73
- checkbox_label_background_fill_hover="*button_primary_background_fill_hover",
74
- checkbox_label_text_color="*button_primary_text_color",
75
- checkbox_background_color_selected="*neutral_600",
76
- checkbox_background_color_dark="*neutral_700",
77
- checkbox_background_color_selected_dark="*neutral_700",
78
- checkbox_border_color_selected_dark="*neutral_800",
79
- # Padding
80
- checkbox_label_padding="*spacing_md",
81
- button_large_padding="*spacing_lg",
82
- button_small_padding="*spacing_sm",
83
- # Borders
84
- block_border_width="0px",
85
- block_border_width_dark="1px",
86
- shadow_drop_lg="0 1px 4px 0 rgb(0 0 0 / 0.1)",
87
- block_shadow="*shadow_drop_lg",
88
- block_shadow_dark="none",
89
- # Block Labels
90
- block_title_text_weight="600",
91
- block_label_text_weight="600",
92
- block_label_text_size="*text_md",
93
- )
94
-