Spaces:
Running
Running
Update themes.py
Browse files
themes.py
CHANGED
@@ -7,23 +7,23 @@ class IndonesiaTheme(Base):
|
|
7 |
def __init__(
|
8 |
self,
|
9 |
*,
|
10 |
-
primary_hue: colors.Color | str = colors.
|
11 |
-
secondary_hue: colors.Color | str = colors.
|
12 |
neutral_hue: colors.Color | str = colors.gray,
|
13 |
spacing_size: sizes.Size | str = sizes.spacing_md,
|
14 |
radius_size: sizes.Size | str = sizes.radius_md,
|
15 |
-
text_size: sizes.Size | str = sizes.
|
16 |
font: fonts.Font
|
17 |
| str
|
18 |
| Iterable[fonts.Font | str] = (
|
19 |
-
fonts.GoogleFont("
|
20 |
"ui-sans-serif",
|
21 |
"sans-serif",
|
22 |
),
|
23 |
font_mono: fonts.Font
|
24 |
| str
|
25 |
| Iterable[fonts.Font | str] = (
|
26 |
-
fonts.GoogleFont("
|
27 |
"ui-monospace",
|
28 |
"monospace",
|
29 |
),
|
@@ -39,17 +39,18 @@ class IndonesiaTheme(Base):
|
|
39 |
font_mono=font_mono,
|
40 |
)
|
41 |
super().set(
|
42 |
-
body_background_fill="linear-gradient(to bottom, #
|
43 |
-
body_background_fill_dark="linear-gradient(to bottom, #
|
44 |
-
button_primary_background_fill="linear-gradient(90deg, #
|
45 |
-
button_primary_background_fill_hover="linear-gradient(90deg, #
|
46 |
button_primary_text_color="white",
|
47 |
-
button_primary_background_fill_dark="linear-gradient(90deg, #
|
48 |
slider_color="*secondary_300",
|
49 |
slider_color_dark="*secondary_600",
|
50 |
block_title_text_weight="600",
|
51 |
-
block_border_width="
|
52 |
-
block_shadow="
|
53 |
-
button_shadow="
|
54 |
-
button_large_padding="
|
55 |
)
|
|
|
|
7 |
def __init__(
|
8 |
self,
|
9 |
*,
|
10 |
+
primary_hue: colors.Color | str = colors.red,
|
11 |
+
secondary_hue: colors.Color | str = colors.gray,
|
12 |
neutral_hue: colors.Color | str = colors.gray,
|
13 |
spacing_size: sizes.Size | str = sizes.spacing_md,
|
14 |
radius_size: sizes.Size | str = sizes.radius_md,
|
15 |
+
text_size: sizes.Size | str = sizes.text_lg,
|
16 |
font: fonts.Font
|
17 |
| str
|
18 |
| Iterable[fonts.Font | str] = (
|
19 |
+
fonts.GoogleFont("Quicksand"),
|
20 |
"ui-sans-serif",
|
21 |
"sans-serif",
|
22 |
),
|
23 |
font_mono: fonts.Font
|
24 |
| str
|
25 |
| Iterable[fonts.Font | str] = (
|
26 |
+
fonts.GoogleFont("IBM Plex Mono"),
|
27 |
"ui-monospace",
|
28 |
"monospace",
|
29 |
),
|
|
|
39 |
font_mono=font_mono,
|
40 |
)
|
41 |
super().set(
|
42 |
+
body_background_fill="linear-gradient(to bottom, #FF7F50, #FFD700, #00FF7F, #00BFFF, #8A2BE2)", # Gradasi dari coral ke gold ke spring green ke deep sky blue ke blue violet
|
43 |
+
body_background_fill_dark="linear-gradient(to bottom, #8B0000, #FF4500, #FF8C00, #FFD700, #00FF00)", # Gradasi dari dark red ke orange red ke dark orange ke gold ke lime
|
44 |
+
button_primary_background_fill="linear-gradient(90deg, #FF69B4, #FF1493)", # Hot pink ke deep pink
|
45 |
+
button_primary_background_fill_hover="linear-gradient(90deg, #FFB6C1, #FF69B4)", # Light pink ke hot pink
|
46 |
button_primary_text_color="white",
|
47 |
+
button_primary_background_fill_dark="linear-gradient(90deg, #C71585, #FF1493)", # Medium violet red ke deep pink
|
48 |
slider_color="*secondary_300",
|
49 |
slider_color_dark="*secondary_600",
|
50 |
block_title_text_weight="600",
|
51 |
+
block_border_width="3px",
|
52 |
+
block_shadow="*shadow_drop_lg",
|
53 |
+
button_shadow="*shadow_drop_lg",
|
54 |
+
button_large_padding="32px",
|
55 |
)
|
56 |
+
|