With a background image, menus use the surface transparency of Appearance (82% by default) instead of at least 92%, and they keep the blur. Hovered rows and controls in the work area, hovered menu rows, and the workspace button use the new --rs-hover-bg token. With an image, it is a 6% veil of the strong text color. The image stays visible, and the hover shows over light and dark image areas. Without an image, nothing changes. Silver Serpent dim text is now #c2c6cc. It keeps 4.5:1 contrast on a hovered row over a white image. UI-061 replaces the image rule of UI-043. Card 05b9bfa1.
113 lines
4.6 KiB
CSS
113 lines
4.6 KiB
CSS
/* Defaults until ThemeSync applies the theme. src/lib/theme/roles.ts lists the color roles that each theme sets. */
|
|
:root {
|
|
--rs-selection-text: var(--rs-text);
|
|
--rs-tooltip-padding: 6px 10px;
|
|
--rs-tooltip-bg: var(--rs-bg-active);
|
|
--rs-tooltip-text: var(--rs-text-strong);
|
|
--rs-tooltip-shadow: 0 4px 16px #0005;
|
|
--rs-tooltip-font-size: 12px;
|
|
--rs-control-radius: 5px;
|
|
--rs-surface-opacity: 82%;
|
|
--rs-editor-surface-opacity: 90%;
|
|
--rs-hover-surface-opacity: 92%;
|
|
--rs-transparent-plugin-bg: transparent;
|
|
--rs-image-control-bg: color-mix(in srgb, var(--rs-bg) var(--rs-surface-opacity), transparent);
|
|
--rs-image-control-hover-bg: color-mix(in srgb, var(--rs-bg-active) var(--rs-hover-surface-opacity), transparent);
|
|
--rs-image-sidebar-bg: color-mix(in srgb, var(--rs-bg-elevated) var(--rs-surface-opacity), transparent);
|
|
--rs-image-editor-bg: color-mix(in srgb, var(--rs-bg) var(--rs-editor-surface-opacity), transparent);
|
|
--rs-code-block-bg: color-mix(in srgb, var(--rs-bg-elevated) var(--rs-surface-opacity), transparent);
|
|
--rs-workarea-sidebar-bg: var(--rs-bg-elevated);
|
|
--rs-workarea-editor-bg: var(--rs-bg);
|
|
--rs-workarea-surface-opacity: 100%;
|
|
--rs-workarea-plugin-bg: var(--rs-bg);
|
|
--rs-titlebar-height: 36px;
|
|
/* The space at the start of a title bar for the macOS traffic lights (src/routes/+layout.svelte). */
|
|
--rs-titlebar-inset-start: 0px;
|
|
--rs-settings-row-padding: 10px;
|
|
--rs-settings-control-height: 28px;
|
|
--rs-settings-heading-size: 18px;
|
|
--rs-settings-description-size: 12px;
|
|
--rs-settings-gap: 8px;
|
|
--rs-settings-section-gap: 16px;
|
|
--rs-menu-width: 248px;
|
|
--rs-menu-padding: 5px;
|
|
--rs-menu-row-height: 24px;
|
|
--rs-menu-row-padding: 2px 10px;
|
|
--rs-menu-icon-size: 14px;
|
|
--rs-menu-icon-gap: 8px;
|
|
--rs-menu-font-size: 13px;
|
|
--rs-menu-border: transparent;
|
|
/* Menus are opaque (UI-043). With a background image, they use the surface transparency and blur the image (UI-061). */
|
|
--rs-menu-bg: var(--rs-bg-elevated);
|
|
--rs-menu-active-bg: var(--rs-bg-active);
|
|
--rs-menu-backdrop: none;
|
|
--rs-image-menu-bg: color-mix(in srgb, var(--rs-bg-elevated) var(--rs-surface-opacity), transparent);
|
|
--rs-image-menu-active-bg: var(--rs-image-hover-bg);
|
|
--rs-image-menu-backdrop: blur(18px) saturate(1.2);
|
|
/* The fill of hovered rows and filled controls in the work area. With a background image, a thin veil of the text color
|
|
keeps the image visible and the hover visible over light and dark image areas (UI-061). */
|
|
--rs-hover-bg: var(--rs-bg-active);
|
|
--rs-image-hover-bg: color-mix(in srgb, var(--rs-text-strong) 6%, transparent);
|
|
--rs-menu-shadow: 0 8px 30px #0006;
|
|
--rs-item-selection-radius: var(--rs-control-radius);
|
|
--rs-item-selection-bg: color-mix(in srgb, var(--rs-accent) 12%, transparent);
|
|
--rs-item-selection-border: var(--rs-accent);
|
|
--rs-item-selection-width: 2px;
|
|
--rs-bg: #151617;
|
|
--rs-bg-elevated: #1b1c1d;
|
|
--rs-bg-active: #2b2d2e;
|
|
--rs-border: #343637;
|
|
--rs-text-dim: #ababab;
|
|
--rs-text: #e4e4e4;
|
|
--rs-text-strong: #f5f5f5;
|
|
--rs-accent-2: #92c1fd;
|
|
--rs-accent: #55dcf5;
|
|
--rs-accent-dim: #48b4c9;
|
|
--rs-accent-deep: #3b8d9c;
|
|
--rs-error: #ff525b;
|
|
--rs-warn-hot: #fe8c2c;
|
|
--rs-warn: #f6c919;
|
|
--rs-ok: #5cdc78;
|
|
--rs-special: #cb89fa;
|
|
--rs-link: var(--rs-accent);
|
|
--rs-focus: var(--rs-accent);
|
|
--rs-on-accent: #000000;
|
|
--rs-highlight: #edc65b;
|
|
--rs-scrim: #00000088;
|
|
|
|
--rs-font-ui: "Segoe UI Variable Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
|
|
--rs-font-prose: "Segoe UI Variable Display", "Segoe UI", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
|
|
--rs-font-heading: var(--rs-font-prose);
|
|
--rs-font-mono: "Cascadia Mono", "Cascadia Code", "JetBrains Mono", "Fira Code", Consolas, ui-monospace, monospace;
|
|
--rs-code-font-weight: 300;
|
|
--rs-code-font-size: 13px;
|
|
--rs-code-line-height: 21px;
|
|
--rs-font-weight: 400;
|
|
--rs-heading-weight: 500;
|
|
--rs-table-cell-padding: 4px 10px;
|
|
--rs-table-line-height: 1.5;
|
|
--rs-prose-size: 15px;
|
|
--rs-prose-line: 1.6;
|
|
--rs-code-size: 13px;
|
|
--rs-h1-size: 1.6em;
|
|
--rs-h2-size: 1.4em;
|
|
--rs-h3-size: 1.25em;
|
|
--rs-h4-size: 1.15em;
|
|
--rs-h5-size: 1.08em;
|
|
--rs-h6-size: 1em;
|
|
--rs-selection: #01596d;
|
|
--rs-line-highlight: #ffffff0d;
|
|
--rs-h1: var(--rs-text-strong);
|
|
--rs-h2: var(--rs-text-strong);
|
|
--rs-h3: var(--rs-text);
|
|
--rs-h4: var(--rs-text);
|
|
--rs-h5: var(--rs-text-dim);
|
|
--rs-h6: var(--rs-text-dim);
|
|
/* Fixed colors that do not change with the theme. */
|
|
--rs-caption-close-bg: #c42b1c;
|
|
--rs-image-viewer-bg: #090a0de8;
|
|
}
|
|
|
|
/* macOS draws its traffic lights over the start of each title bar. */
|
|
:root[data-title-bar="mac"] { --rs-titlebar-inset-start: 78px; }
|