64 lines
1.9 KiB
Python
64 lines
1.9 KiB
Python
"""Styles for the app."""
|
|
|
|
import reflex as rx
|
|
from blurme.state import State
|
|
|
|
border_radius = "0.375rem"
|
|
box_shadow = "0px 0px 0px 1px rgba(84, 82, 95, 0.14)"
|
|
border = "1px solid #F4F3F6"
|
|
text_color = "black"
|
|
#dark_mode_state = State.toggle_dark_mode()
|
|
#text_color = "white" if dark_mode_state == True else "purple"
|
|
text_color_light = "black"
|
|
text_color_dark = "white"
|
|
accent_text_color = "black"
|
|
accent_color = "linear-gradient(linear-gradient(43deg, rgba(201,238,248,1) 18%, rgba(253,210,227,0.7792366946778712) 86%)"
|
|
hover_accent_color = {"_hover": {"color": accent_color}}
|
|
hover_accent_bg = {"_hover": {"bg": accent_color}}
|
|
content_width_vw = "90vw"
|
|
sidebar_width = "20em"
|
|
|
|
template_page_style = {"padding_top": "5em", "padding_x": ["auto", "2em"], "flex": "1"}
|
|
|
|
template_content_style = {
|
|
"align_items": "flex-start",
|
|
"box_shadow": box_shadow,
|
|
"border_radius": border_radius,
|
|
"padding": "1em",
|
|
"margin_bottom": "2em",
|
|
}
|
|
|
|
link_style = {
|
|
"color": text_color,
|
|
"text_decoration": "none",
|
|
**hover_accent_color,
|
|
}
|
|
|
|
overlapping_button_style = {
|
|
"background_color": "white",
|
|
"border": border,
|
|
"border_radius": border_radius,
|
|
}
|
|
|
|
markdown_style = {
|
|
"code": lambda text: rx.code(text, color="#1F1944", bg="#EAE4FD", margin="10px 0"),
|
|
"a": lambda text, **props: rx.link(
|
|
text,
|
|
**props,
|
|
font_weight="bold",
|
|
color="#03030B",
|
|
text_decoration="underline",
|
|
text_decoration_color="#AD9BF8",
|
|
_hover={
|
|
"color": "#AD9BF8",
|
|
"text_decoration": "underline",
|
|
"text_decoration_color": "#03030B",
|
|
},
|
|
margin="10px 0",
|
|
),
|
|
"ul": lambda items: rx.unordered_list(items, margin="10px 0", padding_left="20px"),
|
|
"ol": lambda items: rx.ordered_list(items, margin="10px 0", padding_left="20px"),
|
|
"p": lambda text: rx.text(text, margin="10px 0"),
|
|
}
|
|
|