pebble-engine 0.16.0

A modular, ECS-style graphics/app framework for Rust.
Documentation
/* Catppuccin re-skin of two of mdBook's five built-in theme slots:
 * ".light" -> Catppuccin Latte, ".navy" -> Catppuccin Mocha. Chosen (rather
 * than shipping a fully custom theme with its own index.hbs) so the
 * built-in theme picker / prefers-color-scheme wiring keeps working
 * unmodified — book.toml sets default-theme = "light" and
 * preferred-dark-theme = "navy" to make these the ones actually used.
 * "Rust"/"Coal"/"Ayu" are untouched and still selectable from the picker.
 *
 * Color values are the standard Catppuccin Latte/Mocha palettes
 * (https://catppuccin.com/palette) — not derived from mdBook's originals.
 */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,100..800;1,100..800&display=swap');

:root {
    /* JetBrains Mono stands in for ProFont IIx — a real webfont with a
     * similar coding-monospace feel, since ProFont has no CDN/webfont
     * distribution to embed. Falls back to mdBook's original stack. */
    --mono-font: "JetBrains Mono", "Source Code Pro", Consolas, "Ubuntu Mono", Menlo, "DejaVu Sans Mono", monospace, monospace;
}

/* Catppuccin Mocha */
.navy {
    --bg: #1e1e2e;
    --fg: #cdd6f4;

    --sidebar-bg: #181825;
    --sidebar-fg: #bac2de;
    --sidebar-non-existant: #6c7086;
    --sidebar-active: #cba6f7;
    --sidebar-spacer: #313244;

    --scrollbar: #7f849c;

    --icons: #7f849c;
    --icons-hover: #cdd6f4;

    --links: #89b4fa;

    --inline-code-color: #fab387;

    --theme-popup-bg: #181825;
    --theme-popup-border: #45475a;
    --theme-hover: #313244;

    --quote-bg: #313244;
    --quote-border: #45475a;

    --warning-border: #fab387;

    --table-border-color: #313244;
    --table-header-bg: #45475a;
    --table-alternate-bg: #181825;

    --searchbar-border-color: #585b70;
    --searchbar-bg: #313244;
    --searchbar-fg: #cdd6f4;
    --searchbar-shadow-color: #6c7086;
    --searchresults-header-fg: #a6adc8;
    --searchresults-border-color: #45475a;
    --searchresults-li-bg: #313244;
    --search-mark-bg: #f9e2af;

    --color-scheme: dark;

    --footnote-highlight: #b4befe;

    --overlay-bg: rgba(17, 17, 27, 0.5);

    --blockquote-note-color: #89b4fa;
    --blockquote-tip-color: #a6e3a1;
    --blockquote-important-color: #cba6f7;
    --blockquote-warning-color: #f9e2af;
    --blockquote-caution-color: #f38ba8;

    --sidebar-header-border-color: #cba6f7;
}

/* Catppuccin Latte */
.light {
    --bg: #eff1f5;
    --fg: #4c4f69;

    --sidebar-bg: #e6e9ef;
    --sidebar-fg: #5c5f77;
    --sidebar-non-existant: #9ca0b0;
    --sidebar-active: #8839ef;
    --sidebar-spacer: #ccd0da;

    --scrollbar: #8c8fa1;

    --icons: #8c8fa1;
    --icons-hover: #4c4f69;

    --links: #1e66f5;

    --inline-code-color: #fe640b;

    --theme-popup-bg: #e6e9ef;
    --theme-popup-border: #bcc0cc;
    --theme-hover: #ccd0da;

    --quote-bg: #ccd0da;
    --quote-border: #bcc0cc;

    --warning-border: #fe640b;

    --table-border-color: #ccd0da;
    --table-header-bg: #bcc0cc;
    --table-alternate-bg: #e6e9ef;

    --searchbar-border-color: #acb0be;
    --searchbar-bg: #ccd0da;
    --searchbar-fg: #4c4f69;
    --searchbar-shadow-color: #9ca0b0;
    --searchresults-header-fg: #6c6f85;
    --searchresults-border-color: #bcc0cc;
    --searchresults-li-bg: #ccd0da;
    --search-mark-bg: #df8e1d;

    --color-scheme: light;

    --footnote-highlight: #7287fd;

    --overlay-bg: rgba(220, 224, 232, 0.5);

    --blockquote-note-color: #1e66f5;
    --blockquote-tip-color: #40a02b;
    --blockquote-important-color: #8839ef;
    --blockquote-warning-color: #df8e1d;
    --blockquote-caution-color: #d20f39;

    --sidebar-header-border-color: #8839ef;
}