Function two_face::theme::extra

source ·
pub fn extra() -> EmbeddedLazyThemeSet
Expand description

Returns an EmbeddedLazyThemeSet with more popular theme definitions

These themes cover a variety of use-cases, so it’s very likely that you’ll only want to expose a subset or tweak the values for specific themes depending on your usage. E.g. EmbeddedThemeName::{Ansi, Base16, Base16_256} are all terminal related themes, EmbeddedThemeName::InspiredGithub uses a full-white background which wouldn’t be a good fit for a static site generator, etc.

§Example

use two_face::theme::{extra, EmbeddedThemeName};

let theme_set = extra();
let nord = theme_set.get(EmbeddedThemeName::Nord);