Spaces:
Sleeping
Sleeping
| # Color scheme | |
| PRIMARY_COLOR = "#006838" # Dark green | |
| SECONDARY_COLOR = "#FCAF17" # Gold | |
| ACCENT_COLOR = "#2B3990" # Navy blue | |
| BACKGROUND_COLOR = "#FFFFFF" # White background | |
| TEXT_COLOR = "#000000" # Black for text | |
| CARD_BACKGROUND = "#F5F9FA" # Slightly off-white for cards | |
| SIDEBAR_BACKGROUND = "#F5F9FA" # Light background for sidebar | |
| BUTTON_BACKGROUND = "#FCAF17" # Yellow for buttons | |
| BUTTON_HOVER = "#006838" # Green for hover | |
| # Custom CSS | |
| CUSTOM_CSS = """ | |
| <style> | |
| .stApp { | |
| background-color: #FFFFFF !important; | |
| } | |
| /* Style Streamlit's header */ | |
| .stApp > header { | |
| background-color: #DDEAF1 !important; | |
| height: auto !important; | |
| padding: 1rem 2rem !important; | |
| margin: 0 !important; | |
| border-bottom: 2px solid #FCAF17 !important; | |
| } | |
| .stApp > header > div { | |
| padding: 0 !important; | |
| margin: 0 !important; | |
| color: #2B3990 !important; | |
| font-size: 1.2rem !important; | |
| font-weight: bold !important; | |
| } | |
| /* Main container styling */ | |
| .main { | |
| padding: 0 2rem 2rem 2rem !important; | |
| background-color: #FFFFFF !important; | |
| } | |
| /* Remove all spacing from first elements */ | |
| .main > div:first-child { | |
| padding: 0 !important; | |
| margin: 0 !important; | |
| } | |
| .main > div:first-child > div:first-child { | |
| padding: 0 !important; | |
| margin: 0 !important; | |
| } | |
| /* Sidebar styling - using more specific selectors */ | |
| section[data-testid="stSidebar"] { | |
| background-color: #DDEAF1 !important; | |
| } | |
| section[data-testid="stSidebar"] > div { | |
| background-color: #DDEAF1 !important; | |
| } | |
| .sidebar .sidebar-content { | |
| background-color: #DDEAF1 !important; | |
| } | |
| /* Button styling */ | |
| .stButton>button { | |
| width: 100%; | |
| margin: 5px 0; | |
| text-align: left; | |
| padding: 10px; | |
| border-radius: 5px; | |
| background-color: #FCAF17; | |
| color: #000000; | |
| border: 1px solid #E69C15; | |
| transition: all 0.3s ease; | |
| } | |
| .stButton>button:hover { | |
| background-color: #006838; | |
| color: #FFFFFF; | |
| border-color: #006838; | |
| } | |
| /* Headers styling */ | |
| h1 { | |
| color: #000000; | |
| border-bottom: 2px solid #FCAF17; | |
| padding-bottom: 0.5rem; | |
| margin-top: 0 !important; | |
| } | |
| h2 { | |
| color: #000000; | |
| margin-top: 2rem; | |
| } | |
| h3 { | |
| color: #000000; | |
| } | |
| /* Links styling */ | |
| a { | |
| color: #2B3990; | |
| text-decoration: none; | |
| } | |
| a:hover { | |
| color: #006838; | |
| text-decoration: underline; | |
| } | |
| /* Footer styling */ | |
| .footer { | |
| margin-top: 3rem; | |
| padding-top: 1rem; | |
| border-top: 1px solid #DDEAF1; | |
| color: #000000; | |
| } | |
| .footer-content { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| max-width: 1200px; | |
| margin: 0 auto; | |
| padding: 0 2rem; | |
| } | |
| /* Card styling */ | |
| .stMarkdown { | |
| background-color: #F5F9FA; | |
| padding: 1.5rem; | |
| border-radius: 8px; | |
| box-shadow: 0 2px 4px rgba(0,0,0,0.1); | |
| margin: 1rem 0; | |
| } | |
| /* Ensure all text within stMarkdown is black */ | |
| .stMarkdown p, | |
| .stMarkdown li, | |
| .stMarkdown ul, | |
| .stMarkdown ol, | |
| .stMarkdown div { | |
| color: #000000 !important; | |
| } | |
| /* Highlight important text */ | |
| .highlight { | |
| color: #000000; | |
| font-weight: bold; | |
| background-color: #F5F9FA; | |
| padding: 1rem; | |
| border-radius: 5px; | |
| border-left: 4px solid #FCAF17; | |
| } | |
| /* Section dividers */ | |
| hr { | |
| border: none; | |
| border-top: 2px solid #DDEAF1; | |
| margin: 2rem 0; | |
| } | |
| /* Text content styling */ | |
| p, li { | |
| color: #000000; | |
| line-height: 1.6; | |
| } | |
| /* List styling */ | |
| ul, ol { | |
| color: #000000; | |
| padding-left: 1.5rem; | |
| } | |
| /* Blockquote styling */ | |
| blockquote { | |
| background-color: #F5F9FA; | |
| border-left: 4px solid #FCAF17; | |
| padding: 1rem; | |
| margin: 1rem 0; | |
| border-radius: 0 5px 5px 0; | |
| color: #000000; | |
| } | |
| /* Code block styling */ | |
| pre { | |
| background-color: #F5F9FA; | |
| border-radius: 5px; | |
| padding: 1rem; | |
| color: #000000; | |
| } | |
| </style> | |
| """ |