gitdxd-theme/themes/theme-forgejo-auto.css

31 lines
1.1 KiB
CSS

/*
* theme-forgejo-auto.css (custom override)
* ─────────────────────────────────────────────────────────────────────────
* The built-in Forgejo auto palette (snapshot: _base-forgejo-auto.css) plus
* the shared neumorphic/soft-UI layer, with light/dark shadow primitives that
* follow the OS colour-scheme preference.
*
* Overrides the built-in theme so the soft look applies to anyone who picked
* "forgejo-auto". Palette frozen from Forgejo 15.0.0.
*/
@import url("./_base-forgejo-auto.css");
@import url("./theme-neumorphism.css");
/* Light (default) primitives */
:root {
--nm-shadow-dark: rgba(0, 0, 0, 0.16);
--nm-shadow-light: rgba(255, 255, 255, 0.95);
--nm-divider-color: rgba(0, 0, 0, 0.08);
--nm-radius: 14px;
--nm-radius-sm: 10px;
}
/* Dark primitives when the OS asks for dark */
@media (prefers-color-scheme: dark) {
:root {
--nm-shadow-dark: rgba(0, 0, 0, 0.62);
--nm-shadow-light: rgba(255, 255, 255, 0.05);
--nm-divider-color: rgba(255, 255, 255, 0.07);
}
}