pub struct Theme { /* private fields */ }Expand description
A syntax-highlighting theme.
Themes are exposed as associated constants on Theme (for example
Theme::TOKYO_NIGHT) and ship as scoped CSS so multiple themes can
coexist on the same page without leaking styles.
use dioxus_code::Theme;
let _theme = Theme::TOKYO_NIGHT;Implementations§
§impl Theme
impl Theme
pub const ALABASTER: Self
pub const ALABASTER: Self
The alabaster syntax theme.
use dioxus_code::Theme;
let _theme = Theme::ALABASTER;pub const AYU_DARK: Self
pub const AYU_DARK: Self
The ayu-dark syntax theme.
use dioxus_code::Theme;
let _theme = Theme::AYU_DARK;pub const AYU_LIGHT: Self
pub const AYU_LIGHT: Self
The ayu-light syntax theme.
use dioxus_code::Theme;
let _theme = Theme::AYU_LIGHT;pub const CATPPUCCIN_FRAPPE: Self
pub const CATPPUCCIN_FRAPPE: Self
The catppuccin-frappe syntax theme.
use dioxus_code::Theme;
let _theme = Theme::CATPPUCCIN_FRAPPE;pub const CATPPUCCIN_LATTE: Self
pub const CATPPUCCIN_LATTE: Self
The catppuccin-latte syntax theme.
use dioxus_code::Theme;
let _theme = Theme::CATPPUCCIN_LATTE;pub const CATPPUCCIN_MACCHIATO: Self
pub const CATPPUCCIN_MACCHIATO: Self
The catppuccin-macchiato syntax theme.
use dioxus_code::Theme;
let _theme = Theme::CATPPUCCIN_MACCHIATO;pub const CATPPUCCIN_MOCHA: Self
pub const CATPPUCCIN_MOCHA: Self
The catppuccin-mocha syntax theme.
use dioxus_code::Theme;
let _theme = Theme::CATPPUCCIN_MOCHA;pub const COBALT2: Self
pub const COBALT2: Self
The cobalt2 syntax theme.
use dioxus_code::Theme;
let _theme = Theme::COBALT2;pub const DAYFOX: Self
pub const DAYFOX: Self
The dayfox syntax theme.
use dioxus_code::Theme;
let _theme = Theme::DAYFOX;pub const DESERT256: Self
pub const DESERT256: Self
The desert256 syntax theme.
use dioxus_code::Theme;
let _theme = Theme::DESERT256;pub const DRACULA: Self
pub const DRACULA: Self
The dracula syntax theme.
use dioxus_code::Theme;
let _theme = Theme::DRACULA;pub const EF_MELISSA_DARK: Self
pub const EF_MELISSA_DARK: Self
The ef-melissa-dark syntax theme.
use dioxus_code::Theme;
let _theme = Theme::EF_MELISSA_DARK;pub const GITHUB_DARK: Self
pub const GITHUB_DARK: Self
The github-dark syntax theme.
use dioxus_code::Theme;
let _theme = Theme::GITHUB_DARK;pub const GITHUB_LIGHT: Self
pub const GITHUB_LIGHT: Self
The github-light syntax theme.
use dioxus_code::Theme;
let _theme = Theme::GITHUB_LIGHT;pub const GRUVBOX_DARK: Self
pub const GRUVBOX_DARK: Self
The gruvbox-dark syntax theme.
use dioxus_code::Theme;
let _theme = Theme::GRUVBOX_DARK;pub const GRUVBOX_LIGHT: Self
pub const GRUVBOX_LIGHT: Self
The gruvbox-light syntax theme.
use dioxus_code::Theme;
let _theme = Theme::GRUVBOX_LIGHT;pub const KANAGAWA_DRAGON: Self
pub const KANAGAWA_DRAGON: Self
The kanagawa-dragon syntax theme.
use dioxus_code::Theme;
let _theme = Theme::KANAGAWA_DRAGON;pub const LIGHT_OWL: Self
pub const LIGHT_OWL: Self
The light-owl syntax theme.
use dioxus_code::Theme;
let _theme = Theme::LIGHT_OWL;pub const LUCIUS_LIGHT: Self
pub const LUCIUS_LIGHT: Self
The lucius-light syntax theme.
use dioxus_code::Theme;
let _theme = Theme::LUCIUS_LIGHT;pub const MELANGE_DARK: Self
pub const MELANGE_DARK: Self
The melange-dark syntax theme.
use dioxus_code::Theme;
let _theme = Theme::MELANGE_DARK;pub const MELANGE_LIGHT: Self
pub const MELANGE_LIGHT: Self
The melange-light syntax theme.
use dioxus_code::Theme;
let _theme = Theme::MELANGE_LIGHT;pub const MONOKAI: Self
pub const MONOKAI: Self
The monokai syntax theme.
use dioxus_code::Theme;
let _theme = Theme::MONOKAI;pub const NORD: Self
pub const NORD: Self
The nord syntax theme.
use dioxus_code::Theme;
let _theme = Theme::NORD;pub const ONE_DARK: Self
pub const ONE_DARK: Self
The one-dark syntax theme.
use dioxus_code::Theme;
let _theme = Theme::ONE_DARK;pub const ROSE_PINE_MOON: Self
pub const ROSE_PINE_MOON: Self
The rose-pine-moon syntax theme.
use dioxus_code::Theme;
let _theme = Theme::ROSE_PINE_MOON;pub const RUSTDOC_AYU: Self
pub const RUSTDOC_AYU: Self
The rustdoc-ayu syntax theme.
use dioxus_code::Theme;
let _theme = Theme::RUSTDOC_AYU;pub const RUSTDOC_DARK: Self
pub const RUSTDOC_DARK: Self
The rustdoc-dark syntax theme.
use dioxus_code::Theme;
let _theme = Theme::RUSTDOC_DARK;pub const RUSTDOC_LIGHT: Self
pub const RUSTDOC_LIGHT: Self
The rustdoc-light syntax theme.
use dioxus_code::Theme;
let _theme = Theme::RUSTDOC_LIGHT;pub const SOLARIZED_DARK: Self
pub const SOLARIZED_DARK: Self
The solarized-dark syntax theme.
use dioxus_code::Theme;
let _theme = Theme::SOLARIZED_DARK;pub const SOLARIZED_LIGHT: Self
pub const SOLARIZED_LIGHT: Self
The solarized-light syntax theme.
use dioxus_code::Theme;
let _theme = Theme::SOLARIZED_LIGHT;pub const TOKYO_NIGHT: Self
pub const TOKYO_NIGHT: Self
The tokyo-night syntax theme.
use dioxus_code::Theme;
let _theme = Theme::TOKYO_NIGHT;pub const ZENBURN: Self
pub const ZENBURN: Self
The zenburn syntax theme.
use dioxus_code::Theme;
let _theme = Theme::ZENBURN;