mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2026-11-20 02:03:35 +08:00
69 lines
2.0 KiB
CSS
69 lines
2.0 KiB
CSS
:root {
|
|
color-scheme: light dark;
|
|
}
|
|
|
|
:root,
|
|
.r-theme-scope {
|
|
--r-theme-primary-color: var(--r-token-primary, Highlight);
|
|
--r-theme-primary-fade-color: var(--r-token-primary-hover, Highlight);
|
|
--r-bezier: cubic-bezier(0.4, 0, 0.2, 1);
|
|
--r-primary-text: var(--r-theme-primary-color);
|
|
--r-selected-text: var(--r-theme-primary-color);
|
|
--r-canvas: var(--r-token-canvas, Canvas);
|
|
--r-surface: var(--r-token-surface, Canvas);
|
|
--r-surface-muted: var(--r-token-surface-muted, Canvas);
|
|
--r-surface-hover: var(--r-token-surface-hover, Canvas);
|
|
--r-line: var(--r-token-divider, ButtonBorder);
|
|
--r-control-border: var(--r-token-border, ButtonBorder);
|
|
--r-text: var(--r-token-text, CanvasText);
|
|
--r-text-secondary: var(--r-token-text-secondary, CanvasText);
|
|
--r-text-muted: var(--r-token-text-muted, CanvasText);
|
|
--r-shadow-soft: var(--r-token-shadow, none);
|
|
--r-control-radius: var(--r-token-control-radius, 4px);
|
|
--r-radius: var(--r-token-radius, 4px);
|
|
--r-font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
|
|
}
|
|
|
|
.r-template--light {
|
|
color-scheme: light;
|
|
}
|
|
|
|
.r-template--dark {
|
|
--r-primary-text: var(--r-text-secondary);
|
|
--r-selected-text: var(--r-text);
|
|
color-scheme: dark;
|
|
}
|
|
|
|
@media (forced-colors: active) {
|
|
:root,
|
|
.r-theme-scope,
|
|
.r-template--dark {
|
|
--r-theme-primary-color: Highlight;
|
|
--r-primary-text: CanvasText;
|
|
--r-selected-text: CanvasText;
|
|
--r-canvas: Canvas;
|
|
--r-surface: Canvas;
|
|
--r-surface-muted: Canvas;
|
|
--r-surface-hover: Canvas;
|
|
--r-line: CanvasText;
|
|
--r-control-border: ButtonText;
|
|
--r-text: CanvasText;
|
|
--r-text-secondary: CanvasText;
|
|
--r-text-muted: CanvasText;
|
|
--r-shadow-soft: none;
|
|
}
|
|
}
|
|
|
|
:where(button, a, summary, [tabindex]):focus-visible {
|
|
outline: 2px solid var(--r-theme-primary-color);
|
|
outline-offset: 3px;
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.r-layout-full *,
|
|
.r-layout-full *::before,
|
|
.r-layout-full *::after {
|
|
scroll-behavior: auto !important;
|
|
}
|
|
}
|