Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,14 +20,7 @@ class NordTheme(Base):
|
|
| 20 |
font=(fonts.GoogleFont("Inter"), "ui-sans-serif", "system-ui", "sans-serif"),
|
| 21 |
font_mono=(fonts.GoogleFont("Fira Code"), "ui-monospace", "monospace"),
|
| 22 |
)
|
| 23 |
-
|
| 24 |
-
# Now override any additional tokens via set()
|
| 25 |
self.set(
|
| 26 |
-
# Radius tokens
|
| 27 |
-
radius_sm=sizes.radius_sm,
|
| 28 |
-
radius_md=sizes.radius_md,
|
| 29 |
-
radius_lg=sizes.radius_lg,
|
| 30 |
-
|
| 31 |
# Main backgrounds
|
| 32 |
body_background_fill="#2E3440",
|
| 33 |
body_text_color="#ECEFF4",
|
|
@@ -36,12 +29,12 @@ class NordTheme(Base):
|
|
| 36 |
block_border_color="#4C566A",
|
| 37 |
block_label_background_fill="#434C5E",
|
| 38 |
block_label_text_color="#ECEFF4",
|
| 39 |
-
|
| 40 |
# Input styling
|
| 41 |
input_background_fill="#434C5E",
|
| 42 |
input_border_color="transparent",
|
| 43 |
input_text_color="#ECEFF4",
|
| 44 |
-
|
| 45 |
# Button styling
|
| 46 |
button_primary_background_fill="#5E81AC",
|
| 47 |
button_primary_background_fill_hover="#81A1C1",
|
|
@@ -49,13 +42,15 @@ class NordTheme(Base):
|
|
| 49 |
button_secondary_background_fill="#4C566A",
|
| 50 |
button_secondary_background_fill_hover="#5a657a",
|
| 51 |
button_secondary_text_color="#ECEFF4",
|
| 52 |
-
|
| 53 |
# Accent colors
|
| 54 |
border_color_accent="#5E81AC",
|
| 55 |
background_fill_primary_dark="#2E3440",
|
| 56 |
color_accent_soft="#4c566a",
|
|
|
|
|
|
|
| 57 |
block_radius="12px",
|
| 58 |
-
|
| 59 |
# Error and success colors
|
| 60 |
color_red="#BF616A",
|
| 61 |
color_green="#A3BE8C",
|
|
@@ -63,6 +58,7 @@ class NordTheme(Base):
|
|
| 63 |
color_orange="#D08770",
|
| 64 |
)
|
| 65 |
|
|
|
|
| 66 |
# --- Enhanced Configuration ---
|
| 67 |
|
| 68 |
PROGRAMMING_LANGUAGES = sorted([
|
|
|
|
| 20 |
font=(fonts.GoogleFont("Inter"), "ui-sans-serif", "system-ui", "sans-serif"),
|
| 21 |
font_mono=(fonts.GoogleFont("Fira Code"), "ui-monospace", "monospace"),
|
| 22 |
)
|
|
|
|
|
|
|
| 23 |
self.set(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 24 |
# Main backgrounds
|
| 25 |
body_background_fill="#2E3440",
|
| 26 |
body_text_color="#ECEFF4",
|
|
|
|
| 29 |
block_border_color="#4C566A",
|
| 30 |
block_label_background_fill="#434C5E",
|
| 31 |
block_label_text_color="#ECEFF4",
|
| 32 |
+
|
| 33 |
# Input styling
|
| 34 |
input_background_fill="#434C5E",
|
| 35 |
input_border_color="transparent",
|
| 36 |
input_text_color="#ECEFF4",
|
| 37 |
+
|
| 38 |
# Button styling
|
| 39 |
button_primary_background_fill="#5E81AC",
|
| 40 |
button_primary_background_fill_hover="#81A1C1",
|
|
|
|
| 42 |
button_secondary_background_fill="#4C566A",
|
| 43 |
button_secondary_background_fill_hover="#5a657a",
|
| 44 |
button_secondary_text_color="#ECEFF4",
|
| 45 |
+
|
| 46 |
# Accent colors
|
| 47 |
border_color_accent="#5E81AC",
|
| 48 |
background_fill_primary_dark="#2E3440",
|
| 49 |
color_accent_soft="#4c566a",
|
| 50 |
+
|
| 51 |
+
# Global block corner radius
|
| 52 |
block_radius="12px",
|
| 53 |
+
|
| 54 |
# Error and success colors
|
| 55 |
color_red="#BF616A",
|
| 56 |
color_green="#A3BE8C",
|
|
|
|
| 58 |
color_orange="#D08770",
|
| 59 |
)
|
| 60 |
|
| 61 |
+
|
| 62 |
# --- Enhanced Configuration ---
|
| 63 |
|
| 64 |
PROGRAMMING_LANGUAGES = sorted([
|