refactor: refine scheme color semantics
This commit is contained in:
@@ -68,7 +68,7 @@ export function syncColorSchemePicker() {
|
||||
|
||||
if (storedScheme && !hasStoredOption) {
|
||||
const storedMode = getStoredPreference(PREFERENCE_KEYS.themeMode)
|
||||
|| window.TerminalThemeConfig?.defaultMode
|
||||
|| window.TerminalThemeConfig?.defaultAppearance
|
||||
|| "system";
|
||||
|
||||
window.applyTheme?.(storedMode, {clearColorScheme: true});
|
||||
|
||||
@@ -7,7 +7,7 @@ const APPEARANCE_MODES = ["light", "dark", "system"];
|
||||
function getAppearanceMode() {
|
||||
const mode = document.documentElement.dataset.themeMode
|
||||
|| getStoredPreference(PREFERENCE_KEYS.themeMode)
|
||||
|| window.TerminalThemeConfig?.defaultMode;
|
||||
|| window.TerminalThemeConfig?.defaultAppearance;
|
||||
|
||||
return APPEARANCE_MODES.includes(mode) ? mode : "system";
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ a.button.wide {
|
||||
|
||||
a.button.inline {
|
||||
background: none;
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
padding: initial;
|
||||
margin: initial;
|
||||
border: initial;
|
||||
|
||||
+16
-15
@@ -3,16 +3,16 @@ comment-widget {
|
||||
--halo-cw-base-rounded: var(--radius-theme-border) !important;
|
||||
--halo-cw-base-font-size: var(--size-theme-font) !important;
|
||||
|
||||
--halo-cw-primary-1-color: var(--color-theme-action) !important;
|
||||
--halo-cw-primary-2-color: var(--color-theme-action-muted) !important;
|
||||
--halo-cw-primary-3-color: var(--color-theme-action-subtle) !important;
|
||||
--halo-cw-primary-1-color: var(--color-theme-accent) !important;
|
||||
--halo-cw-primary-2-color: var(--color-theme-accent) !important;
|
||||
--halo-cw-primary-3-color: var(--color-theme-accent) !important;
|
||||
|
||||
--halo-cw-text-1-color: var(--color-theme-text) !important;
|
||||
--halo-cw-text-2-color: var(--color-theme-text-secondary) !important;
|
||||
--halo-cw-text-3-color: var(--color-theme-text-secondary) !important;
|
||||
|
||||
--halo-cw-muted-1-color: var(--color-theme-text-muted) !important;
|
||||
--halo-cw-muted-2-color: var(--color-theme-action-subtle) !important;
|
||||
--halo-cw-muted-2-color: var(--color-theme-surface) !important;
|
||||
--halo-cw-muted-3-color: var(--color-theme-surface) !important;
|
||||
|
||||
--halo-cw-emoji-picker-rgb-color: var(--color-theme-background) !important;
|
||||
@@ -20,7 +20,7 @@ comment-widget {
|
||||
--halo-cw-emoji-picker-rgb-background: var(--color-theme-background) !important;
|
||||
--halo-cw-emoji-picker-rgb-input: var(--color-theme-text) !important;
|
||||
--halo-cw-emoji-picker-color-border: var(--color-theme-border-muted) !important;
|
||||
--halo-cw-emoji-picker-color-border-over: var(--color-theme-border-accent) !important;
|
||||
--halo-cw-emoji-picker-color-border-over: var(--color-theme-border-muted) !important;
|
||||
|
||||
// --halo-cw-avatar-rounded:
|
||||
// --halo-cw-avatar-size
|
||||
@@ -35,26 +35,27 @@ comment-widget {
|
||||
--halo-comment-widget-component-form-input-color: var(--color-theme-text) !important;
|
||||
--halo-comment-widget-component-form-input-border-color: var(--color-theme-border-muted) !important;
|
||||
--halo-comment-widget-component-form-input-border-color-focus: var(--color-theme-border-accent) !important;
|
||||
--halo-comment-widget-component-form-input-box-shadow-focus: var(--color-theme-action) !important;
|
||||
--halo-comment-widget-component-form-input-box-shadow-focus: var(--color-theme-accent) !important;
|
||||
--halo-comment-widget-component-form-button-login-bg-color: var(--color-theme-background) !important;
|
||||
--halo-comment-widget-component-form-button-login-bg-color-hover: var(--color-theme-surface-hover) !important;
|
||||
// Keep plugin hover tokens visually identical to their resting states.
|
||||
--halo-comment-widget-component-form-button-login-bg-color-hover: var(--color-theme-background) !important;
|
||||
--halo-comment-widget-component-form-button-login-border-color: var(--color-theme-border-muted) !important;
|
||||
--halo-comment-widget-component-form-button-submit-bg-color: var(--color-theme-action) !important;
|
||||
--halo-comment-widget-component-form-button-submit-bg-color: var(--color-theme-accent) !important;
|
||||
--halo-comment-widget-component-form-button-submit-color: var(--color-theme-text-inverse) !important;
|
||||
--halo-comment-widget-component-form-button-submit-border-color: var(--color-theme-border-accent) !important;
|
||||
--halo-comment-widget-component-form-button-submit-border-color-hover: var(--color-theme-action-muted) !important;
|
||||
--halo-comment-widget-component-form-button-emoji-color: var(--color-theme-action) !important;
|
||||
--halo-comment-widget-component-comment-item-action-bg-color-hover: var(--color-theme-surface-hover) !important;
|
||||
--halo-comment-widget-component-comment-item-action-color-hover: var(--color-theme-action) !important;
|
||||
--halo-comment-widget-component-pagination-button-bg-color-hover: var(--color-theme-surface-hover) !important;
|
||||
--halo-comment-widget-component-pagination-button-bg-color-active: var(--color-theme-surface-hover) !important;
|
||||
--halo-comment-widget-component-form-button-submit-border-color-hover: var(--color-theme-border-accent) !important;
|
||||
--halo-comment-widget-component-form-button-emoji-color: var(--color-theme-text-accent) !important;
|
||||
--halo-comment-widget-component-comment-item-action-bg-color-hover: transparent !important;
|
||||
--halo-comment-widget-component-comment-item-action-color-hover: currentColor !important;
|
||||
--halo-comment-widget-component-pagination-button-bg-color-hover: transparent !important;
|
||||
--halo-comment-widget-component-pagination-button-bg-color-active: var(--color-theme-surface-strong) !important;
|
||||
--halo-comment-widget-component-pagination-button-border-color-active: var(--color-theme-border-accent) !important;
|
||||
--halo-comment-widget-component-emoji-picker-rgb-color: var(--color-theme-background) !important;
|
||||
--halo-comment-widget-component-emoji-picker-rgb-accent: var(--color-theme-text) !important;
|
||||
--halo-comment-widget-component-emoji-picker-rgb-background: var(--color-theme-background) !important;
|
||||
--halo-comment-widget-component-emoji-picker-rgb-input: var(--color-theme-text) !important;
|
||||
--halo-comment-widget-component-emoji-picker-color-border: var(--color-theme-border-muted) !important;
|
||||
--halo-comment-widget-component-emoji-picker-color-border-over: var(--color-theme-border-accent) !important;
|
||||
--halo-comment-widget-component-emoji-picker-color-border-over: var(--color-theme-border-muted) !important;
|
||||
}
|
||||
|
||||
.comment {
|
||||
|
||||
@@ -4,7 +4,7 @@ halo-contact-form {
|
||||
--halo-contact-form-line-height: var(--height-theme-line) !important;
|
||||
--halo-contact-form-border-radius: var(--radius-theme-border) !important;
|
||||
--halo-contact-form-width-submit: auto !important;
|
||||
--halo-contact-form-color-primary: var(--color-theme-action) !important;
|
||||
--halo-contact-form-color-primary: var(--color-theme-accent) !important;
|
||||
--halo-contact-form-color-label: var(--color-theme-text) !important;
|
||||
--halo-contact-form-color-input: var(--color-theme-text) !important;
|
||||
--halo-contact-form-color-input-selection: var(--color-theme-selection) !important;
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
margin: 0;
|
||||
|
||||
> span {
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
padding: 0.1em 0.45em;
|
||||
border-top: var(--width-theme-border) var(--style-theme-border) var(--color-theme-border-accent);
|
||||
border-bottom: var(--width-theme-border) var(--style-theme-border) var(--color-theme-border-accent);
|
||||
@@ -133,7 +133,7 @@
|
||||
}
|
||||
|
||||
&-required {
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@@ -182,7 +182,7 @@
|
||||
border: calc(var(--width-theme-border) / 2) var(--style-theme-border) var(--color-theme-border-accent);
|
||||
|
||||
span {
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
font-size: calc(var(--size-theme-font) * 0.75);
|
||||
text-align: center;
|
||||
}
|
||||
@@ -192,7 +192,7 @@
|
||||
&-apply-message {
|
||||
margin-bottom: calc(var(--size-theme-font) * 1);
|
||||
padding: calc(var(--size-theme-font) * 0.5) 0;
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
border-bottom: calc(var(--width-theme-border) / 2) var(--style-theme-table-border) var(--color-theme-border-accent);
|
||||
}
|
||||
|
||||
|
||||
+14
-14
@@ -163,7 +163,7 @@ table {
|
||||
}
|
||||
|
||||
a {
|
||||
color: var(--color-theme-link);
|
||||
color: var(--color-theme-text-link);
|
||||
text-decoration: var(--text-decoration-theme-link);
|
||||
}
|
||||
|
||||
@@ -174,7 +174,7 @@ button {
|
||||
text-decoration: none;
|
||||
text-align: center;
|
||||
background: transparent;
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
padding: calc(var(--size-theme-font) * 0.2) calc(var(--size-theme-font) * .7);
|
||||
border: calc(var(--width-theme-border) * 1.25) var(--style-theme-border) var(--color-theme-border-accent);
|
||||
border-radius: var(--radius-theme-border);
|
||||
@@ -186,7 +186,7 @@ button {
|
||||
|
||||
button:focus-visible,
|
||||
a:focus-visible {
|
||||
outline: 1px solid var(--color-theme-action);
|
||||
outline: 1px solid var(--color-theme-accent);
|
||||
outline-offset: 2px;
|
||||
}
|
||||
|
||||
@@ -241,7 +241,7 @@ textarea:active,
|
||||
select:focus-visible,
|
||||
select:active {
|
||||
border-color: var(--color-theme-border-accent);
|
||||
outline: calc(var(--size-theme-font) * 0.0625) var(--style-theme-border) var(--color-theme-action);
|
||||
outline: calc(var(--size-theme-font) * 0.0625) var(--style-theme-border) var(--color-theme-accent);
|
||||
outline-offset: calc(var(--size-theme-font) * 0.125);
|
||||
}
|
||||
|
||||
@@ -274,7 +274,7 @@ input[type="checkbox"] {
|
||||
}
|
||||
|
||||
input[type="checkbox"]:checked {
|
||||
background: var(--color-theme-action);
|
||||
background: var(--color-theme-accent);
|
||||
}
|
||||
|
||||
img {
|
||||
@@ -322,7 +322,7 @@ figure video {
|
||||
}
|
||||
|
||||
figure figcaption {
|
||||
background: var(--color-theme-action);
|
||||
background: var(--color-theme-accent);
|
||||
color: var(--color-theme-text-inverse);
|
||||
text-align: center;
|
||||
font-size: var(--size-theme-font);
|
||||
@@ -355,7 +355,7 @@ ol li {
|
||||
}
|
||||
|
||||
li::marker {
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
}
|
||||
|
||||
code {
|
||||
@@ -374,8 +374,8 @@ kbd {
|
||||
}
|
||||
|
||||
kbd {
|
||||
background: var(--color-theme-surface-hover);
|
||||
border-top: calc(var(--width-theme-border) / 2) solid var(--color-theme-action-subtle);
|
||||
background: var(--color-theme-surface-strong);
|
||||
border-top: calc(var(--width-theme-border) / 2) solid var(--color-theme-accent-subtle);
|
||||
border-left: calc(var(--width-theme-border) / 2) solid var(--color-theme-border-accent);
|
||||
border-right: calc(var(--width-theme-border) / 2) solid var(--color-theme-border-accent);
|
||||
border-bottom: calc(var(--width-theme-border) * 2) solid var(--color-theme-border-accent);
|
||||
@@ -420,7 +420,7 @@ sup {
|
||||
abbr {
|
||||
position: relative;
|
||||
text-decoration-style: wavy;
|
||||
text-decoration-color: var(--color-theme-action);
|
||||
text-decoration-color: var(--color-theme-accent);
|
||||
cursor: help;
|
||||
}
|
||||
|
||||
@@ -466,7 +466,7 @@ td {
|
||||
|
||||
th {
|
||||
border-style: var(--style-theme-table-border);
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
white-space: nowrap;
|
||||
text-align: left;
|
||||
letter-spacing: calc(var(--size-theme-font) * 0.04);
|
||||
@@ -475,7 +475,7 @@ th {
|
||||
hr {
|
||||
width: 100%;
|
||||
border: none;
|
||||
background: var(--color-theme-action);
|
||||
background: var(--color-theme-accent);
|
||||
height: calc(var(--size-theme-font) * 0.125);
|
||||
}
|
||||
|
||||
@@ -510,7 +510,7 @@ blockquote.twitter-tweet {
|
||||
}
|
||||
|
||||
blockquote.twitter-tweet a {
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
text-decoration: var(--text-decoration-theme-post-link);
|
||||
}
|
||||
|
||||
@@ -519,7 +519,7 @@ blockquote.twitter-tweet::before {
|
||||
position: absolute;
|
||||
top: calc(var(--size-theme-font) * 1.25);
|
||||
left: calc(var(--size-theme-font) * 1.25);
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
|
||||
@@ -112,7 +112,7 @@
|
||||
flex-direction: column;
|
||||
position: absolute;
|
||||
background: var(--color-theme-background);
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
border: calc(var(--size-theme-font) * 0.125) solid var(--color-theme-navigation);
|
||||
margin: 0;
|
||||
padding: calc(var(--size-theme-font) * 0.3125);
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
}
|
||||
|
||||
&.active {
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
|
||||
hr {
|
||||
position: absolute;
|
||||
background-color: var(--color-theme-action-muted);
|
||||
background-color: var(--color-theme-accent-muted);
|
||||
left: 0;
|
||||
right: 0;
|
||||
width: 100%;
|
||||
|
||||
@@ -41,7 +41,7 @@
|
||||
}
|
||||
|
||||
.portfolio-card-label {
|
||||
color: var(--color-theme-label);
|
||||
color: var(--color-theme-text-label);
|
||||
font-size: calc(var(--size-theme-font) * 0.86);
|
||||
line-height: calc(var(--size-theme-font) * 1.4);
|
||||
}
|
||||
@@ -93,7 +93,7 @@
|
||||
}
|
||||
|
||||
.portfolio-meta .portfolio-term {
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
}
|
||||
|
||||
.portfolio-meta .portfolio-term:not(:last-child),
|
||||
@@ -104,7 +104,7 @@
|
||||
|
||||
.portfolio-item .portfolio-tags,
|
||||
.portfolio-item .portfolio-tags .portfolio-tag {
|
||||
color: var(--color-theme-label);
|
||||
color: var(--color-theme-text-label);
|
||||
}
|
||||
|
||||
.portfolio-detail-post .portfolio-meta-line,
|
||||
@@ -119,7 +119,7 @@
|
||||
|
||||
.portfolio-detail-post .portfolio-techs,
|
||||
.portfolio-detail-post .portfolio-techs .portfolio-term {
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
}
|
||||
|
||||
.portfolio-item .post-excerpt {
|
||||
@@ -143,18 +143,18 @@
|
||||
}
|
||||
|
||||
.portfolio-action {
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
font-size: calc(var(--size-theme-font) * 0.92);
|
||||
}
|
||||
|
||||
.portfolio-action::before {
|
||||
content: "[ ";
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
}
|
||||
|
||||
.portfolio-action::after {
|
||||
content: " ]";
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
}
|
||||
|
||||
.portfolio-empty {
|
||||
|
||||
@@ -42,7 +42,7 @@
|
||||
|
||||
.post-title {
|
||||
position: relative;
|
||||
color: var(--color-theme-heading);
|
||||
color: var(--color-theme-text-accent);
|
||||
margin-top: 0;
|
||||
margin-bottom: calc(var(--size-theme-font) * 0.9375);
|
||||
padding-bottom: calc(var(--size-theme-font) * 0.9375);
|
||||
@@ -73,7 +73,7 @@
|
||||
|
||||
.post-title a {
|
||||
text-decoration: none;
|
||||
color: var(--color-theme-heading);
|
||||
color: var(--color-theme-text-accent);
|
||||
}
|
||||
|
||||
.post-time {
|
||||
@@ -87,11 +87,11 @@
|
||||
.post-tags {
|
||||
margin-bottom: calc(var(--size-theme-font) * 0.3125);
|
||||
font-size: inherit;
|
||||
color: var(--color-theme-label);
|
||||
color: var(--color-theme-text-label);
|
||||
}
|
||||
|
||||
.post-tag {
|
||||
color: var(--color-theme-label);
|
||||
color: var(--color-theme-text-label);
|
||||
|
||||
a {
|
||||
color: inherit;
|
||||
@@ -125,7 +125,7 @@
|
||||
}
|
||||
|
||||
.post-body a {
|
||||
color: var(--color-theme-link);
|
||||
color: var(--color-theme-text-link);
|
||||
text-decoration: var(--text-decoration-theme-post-link);
|
||||
}
|
||||
|
||||
@@ -157,7 +157,7 @@
|
||||
|
||||
.hanchor {
|
||||
position: absolute;
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
text-decoration: none;
|
||||
margin-left: calc(var(--size-theme-font) * 0.625);
|
||||
visibility: hidden;
|
||||
|
||||
+35
-35
@@ -3,48 +3,48 @@
|
||||
:root {
|
||||
--color-theme-background: #f4f4f4;
|
||||
--color-theme-text: #3e3e3e;
|
||||
--color-theme-accent: #003e8a;
|
||||
--color-theme-text-secondary: color-mix(in srgb, var(--color-theme-text) 85%, var(--color-theme-background));
|
||||
--color-theme-text-muted: #2e6cba;
|
||||
--color-theme-text-inverse: var(--color-theme-background);
|
||||
--color-theme-heading: #003e8a;
|
||||
--color-theme-label: #07962a;
|
||||
--color-theme-link: #003e8a;
|
||||
--color-theme-action: #003e8a;
|
||||
--color-theme-action-muted: color-mix(in srgb, var(--color-theme-action) 60%, var(--color-theme-background));
|
||||
--color-theme-action-subtle: color-mix(in srgb, var(--color-theme-action) 30%, var(--color-theme-background));
|
||||
--color-theme-text-accent: var(--color-theme-accent);
|
||||
--color-theme-text-label: #07962a;
|
||||
--color-theme-text-link: var(--color-theme-accent);
|
||||
--color-theme-accent-muted: color-mix(in srgb, var(--color-theme-accent) 60%, var(--color-theme-background));
|
||||
--color-theme-accent-subtle: color-mix(in srgb, var(--color-theme-accent) 30%, var(--color-theme-background));
|
||||
--color-theme-navigation: #3e3e3e;
|
||||
--color-theme-control: #3e3e3e;
|
||||
--color-theme-surface: color-mix(in srgb, var(--color-theme-text) 5%, var(--color-theme-background));
|
||||
--color-theme-surface-hover: color-mix(in srgb, var(--color-theme-text) 10%, var(--color-theme-background));
|
||||
--color-theme-surface-strong: color-mix(in srgb, var(--color-theme-text) 10%, var(--color-theme-background));
|
||||
--color-theme-border: var(--color-theme-text);
|
||||
--color-theme-border-muted: color-mix(in srgb, var(--color-theme-text) 18%, var(--color-theme-background));
|
||||
--color-theme-border-accent: var(--color-theme-action);
|
||||
--color-theme-border-accent: var(--color-theme-accent);
|
||||
--color-theme-border-emphasis: #970b16;
|
||||
--color-theme-selection: color-mix(in srgb, var(--color-theme-action) 45%, var(--color-theme-background));
|
||||
--color-theme-selection: color-mix(in srgb, var(--color-theme-accent) 45%, var(--color-theme-background));
|
||||
--color-theme-overlay: rgb(0 0 0 / 80%);
|
||||
--color-theme-scrollbar: color-mix(in srgb, var(--color-theme-text) 45%, var(--color-theme-background)) transparent;
|
||||
--color-theme-code-text: var(--color-theme-text);
|
||||
--color-theme-code-background: var(--color-theme-surface-hover);
|
||||
--color-theme-code-background: var(--color-theme-surface-strong);
|
||||
--color-theme-caret: #970b16;
|
||||
}
|
||||
|
||||
html[data-theme-color-scheme] {
|
||||
--color-theme-text-muted: var(--color-theme-text);
|
||||
--color-theme-heading: var(--color-theme-action);
|
||||
--color-theme-label: var(--color-theme-action);
|
||||
--color-theme-link: var(--color-theme-action);
|
||||
--color-theme-navigation: var(--color-theme-action);
|
||||
--color-theme-control: var(--color-theme-action);
|
||||
--color-theme-border-emphasis: var(--color-theme-action);
|
||||
--color-theme-caret: var(--color-theme-action);
|
||||
--color-theme-text-accent: var(--color-theme-accent);
|
||||
--color-theme-text-label: var(--color-theme-accent);
|
||||
--color-theme-text-link: var(--color-theme-accent);
|
||||
--color-theme-navigation: var(--color-theme-accent);
|
||||
--color-theme-control: var(--color-theme-accent);
|
||||
--color-theme-border-emphasis: var(--color-theme-accent);
|
||||
--color-theme-caret: var(--color-theme-accent);
|
||||
}
|
||||
|
||||
$color-schemes: (
|
||||
"day": (
|
||||
"background": #f4f4f4,
|
||||
"text": #3e3e3e,
|
||||
"action": #003e8a,
|
||||
"label": #07962a,
|
||||
"accent": #003e8a,
|
||||
"text-label": #07962a,
|
||||
"text-muted": #2e6cba,
|
||||
"border-emphasis": #970b16,
|
||||
"caret": #970b16,
|
||||
@@ -54,8 +54,8 @@ $color-schemes: (
|
||||
"night": (
|
||||
"background": #101216,
|
||||
"text": #8b949e,
|
||||
"action": #6ca4f8,
|
||||
"label": #56d364,
|
||||
"accent": #6ca4f8,
|
||||
"text-label": #56d364,
|
||||
"text-muted": #6ca4f8,
|
||||
"border-emphasis": #f78166,
|
||||
"caret": #f78166,
|
||||
@@ -65,19 +65,19 @@ $color-schemes: (
|
||||
"niello": (
|
||||
"background": #1a170f,
|
||||
"text": #eceae5,
|
||||
"action": #eec35e
|
||||
"accent": #eec35e
|
||||
),
|
||||
"matrix": (
|
||||
"background": #000000,
|
||||
"text": #4eee85,
|
||||
"action": #4eee85
|
||||
"accent": #4eee85
|
||||
),
|
||||
"ink": (
|
||||
"background": #121212,
|
||||
"text": #C3C3C3,
|
||||
"text-secondary": #C1C1C1,
|
||||
"action": #FFFFFF,
|
||||
"link": #5AC8FA,
|
||||
"accent": #FFFFFF,
|
||||
"text-link": #5AC8FA,
|
||||
"text-muted": #C1C1C1,
|
||||
"code-text": #FFFFFF,
|
||||
"code-background": #1F1F1F
|
||||
@@ -86,8 +86,8 @@ $color-schemes: (
|
||||
"background": #FFFFFF,
|
||||
"text": #1B1B1B,
|
||||
"text-secondary": #595959,
|
||||
"action": #000000,
|
||||
"link": #406ED2,
|
||||
"accent": #000000,
|
||||
"text-link": #406ED2,
|
||||
"text-muted": #595959,
|
||||
"code-text": #1B1B1B,
|
||||
"code-background": #EBEBEB
|
||||
@@ -95,33 +95,33 @@ $color-schemes: (
|
||||
"hopbush": (
|
||||
"background": #fff6f6,
|
||||
"text": #462d2d,
|
||||
"action": #cc6099
|
||||
"accent": #cc6099
|
||||
),
|
||||
"pistachio": (
|
||||
"background": #1d2021,
|
||||
"text": #ebdbb2,
|
||||
"action": #8ec07c
|
||||
"accent": #8ec07c
|
||||
),
|
||||
"blue": (
|
||||
"background": #153489,
|
||||
"text": #eceae5,
|
||||
"action": #5ea5ee
|
||||
"accent": #5ea5ee
|
||||
),
|
||||
"vanilla": (
|
||||
"background": #fff4f2,
|
||||
"text": #424140,
|
||||
"action": #8f6a5e
|
||||
"accent": #8f6a5e
|
||||
),
|
||||
"studio": (
|
||||
"background": #f7f4ff,
|
||||
"text": #403352,
|
||||
"action": #6f49ab
|
||||
"accent": #6f49ab
|
||||
),
|
||||
"blood": (
|
||||
"background": #221f29,
|
||||
"text": #ffffff,
|
||||
"action": #ff6266,
|
||||
"text-muted": var(--color-theme-action),
|
||||
"accent": #ff6266,
|
||||
"text-muted": var(--color-theme-accent),
|
||||
"navigation": var(--color-theme-text)
|
||||
)
|
||||
);
|
||||
@@ -132,7 +132,7 @@ $color-schemes: (
|
||||
--color-theme-#{$role}: #{$color};
|
||||
}
|
||||
|
||||
@if map.get($scheme-colors, "text") == map.get($scheme-colors, "action") {
|
||||
@if map.get($scheme-colors, "text") == map.get($scheme-colors, "accent") {
|
||||
--text-decoration-theme-post-link: underline;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ search-modal {
|
||||
--halo-search-widget-base-font-size: var(--size-theme-font) !important;
|
||||
--halo-search-widget-base-font-family: var(--family-theme-font) !important;
|
||||
--halo-search-widget-base-bg-color: var(--color-theme-background) !important;
|
||||
--halo-search-widget-primary-color: var(--color-theme-action) !important;
|
||||
--halo-search-widget-primary-color: var(--color-theme-accent) !important;
|
||||
--halo-search-widget-muted-color: var(--color-theme-text-muted) !important;
|
||||
--halo-search-widget-content-color: var(--color-theme-text) !important;
|
||||
--halo-search-widget-hit-bg-color: var(--color-theme-background) !important;
|
||||
@@ -17,9 +17,9 @@ search-modal {
|
||||
--halo-search-widget-color-form-divider: var(--color-theme-border-muted) !important;
|
||||
--halo-search-widget-color-result-empty: var(--color-theme-text-muted) !important;
|
||||
--halo-search-widget-color-result-item-bg: var(--color-theme-background) !important;
|
||||
--halo-search-widget-color-result-item-hover-bg: var(--color-theme-surface-hover) !important;
|
||||
--halo-search-widget-color-result-item-title: var(--color-theme-action) !important;
|
||||
--halo-search-widget-color-result-item-hover-bg: var(--color-theme-background) !important;
|
||||
--halo-search-widget-color-result-item-title: var(--color-theme-text-accent) !important;
|
||||
--halo-search-widget-color-result-item-content: var(--color-theme-text-muted) !important;
|
||||
--halo-search-widget-color-command-kbd-item: var(--color-theme-action) !important;
|
||||
--halo-search-widget-color-command-kbd-item: var(--color-theme-text-accent) !important;
|
||||
--halo-search-widget-color-command-kbd-borde: var(--color-theme-border-accent) !important;
|
||||
}
|
||||
|
||||
+2
-2
@@ -76,13 +76,13 @@
|
||||
|
||||
&:hover {
|
||||
background: transparent;
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
}
|
||||
|
||||
&.is-active-link,
|
||||
.is-active-li > & {
|
||||
background: transparent;
|
||||
color: var(--color-theme-action);
|
||||
color: var(--color-theme-text-accent);
|
||||
font-weight: bold;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user