summaryrefslogtreecommitdiff
path: root/sysret.org/themes/tabi-lean/sass/skins/evangelion.scss
blob: d0350a59bf709af5d9c4e432e55f36224fbb9f91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
@mixin theme-variables($theme) {
    @if $theme =='light' {
        // Evangelion Unit-02.
        --primary-color: #d12e36;  // Contrast ratio: 5.05:1
    }
    @else if $theme == 'dark' {
        // Evangelion Unit-01.
        --primary-color: #c09bd9;  // Contrast ratio: 7.01:1
    }
}

:root {
    @include theme-variables('light');
}

[data-theme='dark'] {
    @include theme-variables('dark');
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        @include theme-variables('dark');
    }
}