pub struct ThemeOverride {
pub tokens: BTreeMap<String, String>,
pub css: Option<String>,
}Expand description
Colours laid over the theme the page ships with. The empty value is the built-in theme.
The values are CSS, and the city does not parse them: the page owns
both the theme and the stylesheet that reads it, and checks the keys
against the @theme block and the legibility of the result.
Fields§
§tokens: BTreeMap<String, String>A CSS variable of the @theme block in client/src/theme.css,
mapped to the CSS colour that replaces it.
css: Option<String>A whole stylesheet the person wrote, laid after the tokens.
Trait Implementations§
Source§impl Clone for ThemeOverride
impl Clone for ThemeOverride
Source§impl Debug for ThemeOverride
impl Debug for ThemeOverride
Source§impl Default for ThemeOverride
impl Default for ThemeOverride
Source§impl<'de> Deserialize<'de> for ThemeOverridewhere
ThemeOverride: Default,
impl<'de> Deserialize<'de> for ThemeOverridewhere
ThemeOverride: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ThemeOverride
Source§impl PartialEq for ThemeOverride
impl PartialEq for ThemeOverride
Source§impl Serialize for ThemeOverride
impl Serialize for ThemeOverride
impl StructuralPartialEq for ThemeOverride
Auto Trait Implementations§
impl Freeze for ThemeOverride
impl RefUnwindSafe for ThemeOverride
impl Send for ThemeOverride
impl Sync for ThemeOverride
impl Unpin for ThemeOverride
impl UnsafeUnpin for ThemeOverride
impl UnwindSafe for ThemeOverride
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more