@@ -61,9 +61,15 @@ fn parse<'a>(
6161 })
6262 }
6363
64− let text_style = Style::default().fg(Color::Rgb(164, 160, 232)); // lavender
65− let code_style = Style::default().fg(Color::Rgb(255, 255, 255)); // white
66− let heading_style = Style::default().fg(Color::Rgb(219, 191, 239)); // lilac
64+ let text_style = theme.map(|theme| theme.get("ui.text")).unwrap_or_default();
65+
66+ // TODO: use better scopes for these, `markup.raw.block`, `markup.heading`
67+ let code_style = theme
68+ .map(|theme| theme.get("ui.text.focus"))
69+ .unwrap_or_default(); // white
70+ let heading_style = theme
71+ .map(|theme| theme.get("ui.linenr.selected"))
72+ .unwrap_or_default(); // lilac
6773
6874 for event in parser {
6975 match event {