/* js/core/theme.css -- the canonical Emacs <-> web theme contract.
   (docs/plans/11-terminal-delight.org)

   Pages (or embedding hosts) declare these variables;
   js/core/theme.js mirrors them into the xterm.js theme; xterm.js
   core answers Emacs's OSC 10/11/12 color queries from that theme.
   Nothing else on the web side defines a color.  */

:root {
    /* default face */
    --emacs-background: #1e1e1e;
    --emacs-foreground: #d4d4d4;
    /* cursor + selection */
    --emacs-cursor: #aeafad;
    --emacs-cursor-accent: #1e1e1e;
    --emacs-selection-background: #3a3d41;
    /* --emacs-selection-foreground: intentionally unset by default */
    /* the 16 ANSI colors (indexed content, terminal palettes) */
    --emacs-ansi-black: #000000;
    --emacs-ansi-red: #cd3131;
    --emacs-ansi-green: #0dbc79;
    --emacs-ansi-yellow: #e5e510;
    --emacs-ansi-blue: #2472c8;
    --emacs-ansi-magenta: #bc3fbc;
    --emacs-ansi-cyan: #11a8cd;
    --emacs-ansi-white: #e5e5e5;
    --emacs-ansi-bright-black: #666666;
    --emacs-ansi-bright-red: #f14c4c;
    --emacs-ansi-bright-green: #23d18b;
    --emacs-ansi-bright-yellow: #f5f543;
    --emacs-ansi-bright-blue: #3b8eea;
    --emacs-ansi-bright-magenta: #d670d6;
    --emacs-ansi-bright-cyan: #29b8db;
    --emacs-ansi-bright-white: #ffffff;
    /* typography */
    --emacs-font-family: "Cascadia Code", "Fira Code", "Source Code Pro", monospace;
    --emacs-font-size: 14px;
    --emacs-line-height: 1.0;
    /* page chrome around the terminal */
    --emacs-page-background: var(--emacs-background);
    --emacs-accent: #4ec9b0;
    --emacs-muted: #888888;
    --emacs-faint: #555555;
}

@media (prefers-color-scheme: light) {
    :root {
        --emacs-background: #ffffff;
        --emacs-foreground: #1f1f1f;
        --emacs-cursor: #333333;
        --emacs-cursor-accent: #ffffff;
        --emacs-selection-background: #add6ff;
        --emacs-ansi-black: #000000;
        --emacs-ansi-red: #cd3131;
        --emacs-ansi-green: #107c10;
        --emacs-ansi-yellow: #949800;
        --emacs-ansi-blue: #0451a5;
        --emacs-ansi-magenta: #bc05bc;
        --emacs-ansi-cyan: #0598bc;
        --emacs-ansi-white: #555555;
        --emacs-ansi-bright-black: #666666;
        --emacs-ansi-bright-red: #cd3131;
        --emacs-ansi-bright-green: #14ce14;
        --emacs-ansi-bright-yellow: #b5ba00;
        --emacs-ansi-bright-blue: #0451a5;
        --emacs-ansi-bright-magenta: #bc05bc;
        --emacs-ansi-bright-cyan: #0598bc;
        --emacs-ansi-bright-white: #a5a5a5;
        --emacs-accent: #007463;
        --emacs-muted: #777777;
        --emacs-faint: #999999;
    }
}
