/*
 * Copyright (C) 2024 brittni and the polar bear LLC.
 *
 * This file is a part of brittni and the polar bear's Generative Art Library,
 * which is released under the GNU Affero General Public License, Version 3.0.
 * You may not use this file except in compliance with the license.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program. See LICENSE or go to
 * https://www.gnu.org/licenses/agpl-3.0.en.html for full license details.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Affero General Public License for more details.
 */

:root {
    --light-hl-0: #795E26;
    --dark-hl-0: #DCDCAA;
    --light-hl-1: #000000;
    --dark-hl-1: #D4D4D4;
    --light-hl-2: #A31515;
    --dark-hl-2: #CE9178;
    --light-code-background: #FFFFFF;
    --dark-code-background: #1E1E1E;
}

@media (prefers-color-scheme: light) {
    :root {
        --hl-0: var(--light-hl-0);
        --hl-1: var(--light-hl-1);
        --hl-2: var(--light-hl-2);
        --code-background: var(--light-code-background);
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --hl-0: var(--dark-hl-0);
        --hl-1: var(--dark-hl-1);
        --hl-2: var(--dark-hl-2);
        --code-background: var(--dark-code-background);
    }
}

:root[data-theme='light'] {
    --hl-0: var(--light-hl-0);
    --hl-1: var(--light-hl-1);
    --hl-2: var(--light-hl-2);
    --code-background: var(--light-code-background);
}

:root[data-theme='dark'] {
    --hl-0: var(--dark-hl-0);
    --hl-1: var(--dark-hl-1);
    --hl-2: var(--dark-hl-2);
    --code-background: var(--dark-code-background);
}

.hl-0 {
    color: var(--hl-0);
}

.hl-1 {
    color: var(--hl-1);
}

.hl-2 {
    color: var(--hl-2);
}

pre, code {
    background: var(--code-background);
}
