refactor: normalize scheme color variables

This commit is contained in:
Erzbir
2026-08-21 22:45:26 +08:00
parent c537f88f2e
commit 673ba99ab6
19 changed files with 305 additions and 268 deletions
+41 -25
View File
@@ -291,54 +291,70 @@ spec:
label: 背景色 label: 背景色
validation: "required" validation: "required"
- $formkit: color - $formkit: color
name: foreground name: text
label: 前景色 label: 主文本色
validation: "required" validation: "required"
- $formkit: color - $formkit: color
name: accent name: action
label: 强调色 label: 交互强调色
validation: "required" validation: "required"
- $formkit: checkbox - $formkit: checkbox
name: advanced name: advanced
label: 高级颜色设置 label: 高级颜色设置
value: false value: false
help: 开启后可以单独设置标签, 标题, 元信息, 链接和代码等颜色 help: 开启后可以单独设置辅助文本, 标题, 标签, 导航, 控件, 边框和代码等语义颜色
- $formkit: color - $formkit: color
if: "$value.advanced === true" if: "$value.advanced === true"
name: foreground_muted name: text_secondary
label: 次要前景色 label: 辅助文本色
- $formkit: color - $formkit: color
if: "$value.advanced === true" if: "$value.advanced === true"
name: muted name: text_muted
label: 弱化文字颜色 label: 弱化文字颜色
- $formkit: color - $formkit: color
if: "$value.advanced === true" if: "$value.advanced === true"
name: tag name: text_inverse
label: 标签颜色 label: 反色文字颜色
- $formkit: color - $formkit: color
if: "$value.advanced === true" if: "$value.advanced === true"
name: title name: heading
label: 标题颜色 label: 标题颜色
- $formkit: color - $formkit: color
if: "$value.advanced === true" if: "$value.advanced === true"
name: meta name: label
label: 元信息颜色 label: 标签颜色
- $formkit: color
if: "$value.advanced === true"
name: framed
label: 强调框颜色
- $formkit: color
if: "$value.advanced === true"
name: menu
label: 菜单颜色
- $formkit: color
if: "$value.advanced === true"
name: header
label: 页头颜色
- $formkit: color - $formkit: color
if: "$value.advanced === true" if: "$value.advanced === true"
name: link name: link
label: 链接颜色 label: 链接颜色
- $formkit: color
if: "$value.advanced === true"
name: navigation
label: 导航颜色
- $formkit: color
if: "$value.advanced === true"
name: control
label: 控件颜色
- $formkit: color
if: "$value.advanced === true"
name: border
label: 默认边框颜色
- $formkit: color
if: "$value.advanced === true"
name: border_accent
label: 交互边框颜色
- $formkit: color
if: "$value.advanced === true"
name: border_emphasis
label: 强调边框颜色
- $formkit: color
if: "$value.advanced === true"
name: selection
label: 选中文本背景色
- $formkit: color
if: "$value.advanced === true"
name: caret
label: 动态光标颜色
- $formkit: color - $formkit: color
if: "$value.advanced === true" if: "$value.advanced === true"
name: code_text name: code_text
+1 -1
View File
@@ -58,7 +58,7 @@ a.button.wide {
a.button.inline { a.button.inline {
background: none; background: none;
color: var(--color-theme-accent); color: var(--color-theme-action);
padding: initial; padding: initial;
margin: initial; margin: initial;
border: initial; border: initial;
+26 -26
View File
@@ -3,24 +3,24 @@ comment-widget {
--halo-cw-base-rounded: var(--radius-theme-border) !important; --halo-cw-base-rounded: var(--radius-theme-border) !important;
--halo-cw-base-font-size: var(--size-theme-font) !important; --halo-cw-base-font-size: var(--size-theme-font) !important;
--halo-cw-primary-1-color: var(--color-theme-accent) !important; --halo-cw-primary-1-color: var(--color-theme-action) !important;
--halo-cw-primary-2-color: var(--color-theme-accent-muted) !important; --halo-cw-primary-2-color: var(--color-theme-action-muted) !important;
--halo-cw-primary-3-color: var(--color-theme-accent-subtle) !important; --halo-cw-primary-3-color: var(--color-theme-action-subtle) !important;
--halo-cw-text-1-color: var(--color-theme-foreground) !important; --halo-cw-text-1-color: var(--color-theme-text) !important;
--halo-cw-text-2-color: var(--color-theme-foreground-muted) !important; --halo-cw-text-2-color: var(--color-theme-text-secondary) !important;
--halo-cw-text-3-color: var(--color-theme-foreground-muted) !important; --halo-cw-text-3-color: var(--color-theme-text-secondary) !important;
--halo-cw-muted-1-color: var(--color-theme-muted) !important; --halo-cw-muted-1-color: var(--color-theme-text-muted) !important;
--halo-cw-muted-2-color: var(--color-theme-accent-subtle) !important; --halo-cw-muted-2-color: var(--color-theme-action-subtle) !important;
--halo-cw-muted-3-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; --halo-cw-emoji-picker-rgb-color: var(--color-theme-background) !important;
--halo-cw-emoji-picker-rgb-accent: var(--color-theme-foreground) !important; --halo-cw-emoji-picker-rgb-accent: var(--color-theme-text) !important;
--halo-cw-emoji-picker-rgb-background: var(--color-theme-background) !important; --halo-cw-emoji-picker-rgb-background: var(--color-theme-background) !important;
--halo-cw-emoji-picker-rgb-input: var(--color-theme-foreground) !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: var(--color-theme-border-muted) !important;
--halo-cw-emoji-picker-color-border-over: var(--color-theme-accent) !important; --halo-cw-emoji-picker-color-border-over: var(--color-theme-border-accent) !important;
// --halo-cw-avatar-rounded: // --halo-cw-avatar-rounded:
// --halo-cw-avatar-size // --halo-cw-avatar-size
@@ -29,32 +29,32 @@ comment-widget {
--halo-comment-widget-base-border-radius: var(--radius-theme-border) !important; --halo-comment-widget-base-border-radius: var(--radius-theme-border) !important;
--halo-comment-widget-base-font-size: var(--size-theme-font) !important; --halo-comment-widget-base-font-size: var(--size-theme-font) !important;
--halo-comment-widget-base-line-height: var(--height-theme-line) !important; --halo-comment-widget-base-line-height: var(--height-theme-line) !important;
--halo-comment-widget-base-color: var(--color-theme-foreground) !important; --halo-comment-widget-base-color: var(--color-theme-text) !important;
--halo-comment-widget-base-info-color: var(--color-theme-muted) !important; --halo-comment-widget-base-info-color: var(--color-theme-text-muted) !important;
--halo-comment-widget-component-form-input-bg-color: var(--color-theme-surface) !important; --halo-comment-widget-component-form-input-bg-color: var(--color-theme-surface) !important;
--halo-comment-widget-component-form-input-color: var(--color-theme-foreground) !important; --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: var(--color-theme-border-muted) !important;
--halo-comment-widget-component-form-input-border-color-focus: var(--color-theme-accent) !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-accent) !important; --halo-comment-widget-component-form-input-box-shadow-focus: var(--color-theme-action) !important;
--halo-comment-widget-component-form-button-login-bg-color: var(--color-theme-background) !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; --halo-comment-widget-component-form-button-login-bg-color-hover: var(--color-theme-surface-hover) !important;
--halo-comment-widget-component-form-button-login-border-color: var(--color-theme-border-muted) !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-accent) !important; --halo-comment-widget-component-form-button-submit-bg-color: var(--color-theme-action) !important;
--halo-comment-widget-component-form-button-submit-color: var(--color-theme-background) !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-accent) !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-accent-muted) !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-accent) !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-bg-color-hover: var(--color-theme-surface-hover) !important;
--halo-comment-widget-component-comment-item-action-color-hover: var(--color-theme-accent) !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-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-pagination-button-bg-color-active: var(--color-theme-surface-hover) !important;
--halo-comment-widget-component-pagination-button-border-color-active: var(--color-theme-accent) !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-color: var(--color-theme-background) !important;
--halo-comment-widget-component-emoji-picker-rgb-accent: var(--color-theme-foreground) !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-background: var(--color-theme-background) !important;
--halo-comment-widget-component-emoji-picker-rgb-input: var(--color-theme-foreground) !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: var(--color-theme-border-muted) !important;
--halo-comment-widget-component-emoji-picker-color-border-over: var(--color-theme-accent) !important; --halo-comment-widget-component-emoji-picker-color-border-over: var(--color-theme-border-accent) !important;
} }
.comment { .comment {
+9 -9
View File
@@ -4,19 +4,19 @@ halo-contact-form {
--halo-contact-form-line-height: var(--height-theme-line) !important; --halo-contact-form-line-height: var(--height-theme-line) !important;
--halo-contact-form-border-radius: var(--radius-theme-border) !important; --halo-contact-form-border-radius: var(--radius-theme-border) !important;
--halo-contact-form-width-submit: auto !important; --halo-contact-form-width-submit: auto !important;
--halo-contact-form-color-primary: var(--color-theme-accent) !important; --halo-contact-form-color-primary: var(--color-theme-action) !important;
--halo-contact-form-color-label: var(--color-theme-foreground) !important; --halo-contact-form-color-label: var(--color-theme-text) !important;
--halo-contact-form-color-input: var(--color-theme-foreground) !important; --halo-contact-form-color-input: var(--color-theme-text) !important;
--halo-contact-form-color-input-selection: var(--color-theme-highlight) !important; --halo-contact-form-color-input-selection: var(--color-theme-selection) !important;
--halo-contact-form-color-border: var(--color-theme-foreground) !important; --halo-contact-form-color-border: var(--color-theme-border) !important;
// --halo-contact-form-color-danger: ; // --halo-contact-form-color-danger: ;
--halo-contact-form-color-help: var(--color-theme-foreground-muted) !important; --halo-contact-form-color-help: var(--color-theme-text-secondary) !important;
--halo-contact-form-color-button: var(--color-theme-background) !important; --halo-contact-form-color-button: var(--color-theme-text-inverse) !important;
--halo-contact-form-color-button-hover: var(--halo-contact-form-color-button) !important; --halo-contact-form-color-button-hover: var(--halo-contact-form-color-button) !important;
--halo-contact-form-focus-ring-color: var(--color-theme-foreground); --halo-contact-form-focus-ring-color: var(--color-theme-action);
// --halo-contact-form-error-ring-color: ; // --halo-contact-form-error-ring-color: ;
// --halo-contact-form-error-ring-focus-color: ; // --halo-contact-form-error-ring-focus-color: ;
--halo-contact-form-bg-input: var(--color-theme-background) !important; --halo-contact-form-bg-input: var(--color-theme-background) !important;
--halo-contact-form-bg-decorator: var(--color-theme-background) !important; --halo-contact-form-bg-decorator: var(--color-theme-background) !important;
--halo-contact-form-auto-color-modal-bg: var(--color-theme-foreground) !important; --halo-contact-form-auto-color-modal-bg: var(--color-theme-text) !important;
} }
+2 -2
View File
@@ -17,14 +17,14 @@
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
gap: calc(var(--size-theme-font) * 0.35); gap: calc(var(--size-theme-font) * 0.35);
color: var(--color-theme-meta); color: var(--color-theme-text-muted);
text-decoration: none; text-decoration: none;
} }
&-post-desc { &-post-desc {
margin: 0; margin: 0;
padding: 0; padding: 0;
color: var(--color-theme-foreground); color: var(--color-theme-text);
font-size: calc(var(--size-theme-font) * 0.875); font-size: calc(var(--size-theme-font) * 0.875);
} }
} }
+10 -10
View File
@@ -35,7 +35,7 @@
margin: 0; margin: 0;
padding: 0; padding: 0;
background: var(--color-theme-background); background: var(--color-theme-background);
border: var(--width-theme-border) var(--style-theme-border) var(--color-theme-header); border: var(--width-theme-border) var(--style-theme-border) var(--color-theme-border);
&[hidden] { &[hidden] {
display: none; display: none;
@@ -47,10 +47,10 @@
width: 100%; width: 100%;
margin: 0; margin: 0;
padding: calc(var(--size-theme-font) * 0.35) calc(var(--size-theme-font) * 0.4); padding: calc(var(--size-theme-font) * 0.35) calc(var(--size-theme-font) * 0.4);
color: var(--color-theme-header); color: var(--color-theme-control);
background: var(--color-theme-background); background: var(--color-theme-background);
border: 0; border: 0;
border-bottom: calc(var(--width-theme-border) / 2) var(--style-theme-border) var(--color-theme-header); border-bottom: calc(var(--width-theme-border) / 2) var(--style-theme-border) var(--color-theme-border);
border-radius: 0; border-radius: 0;
font-size: calc(var(--size-theme-font) * 0.8); font-size: calc(var(--size-theme-font) * 0.8);
font-weight: 500; font-weight: 500;
@@ -65,8 +65,8 @@
&:focus-visible, &:focus-visible,
&[aria-selected="true"] { &[aria-selected="true"] {
color: var(--color-theme-background); color: var(--color-theme-text-inverse);
background: var(--color-theme-header); background: var(--color-theme-control);
outline: none; outline: none;
} }
} }
@@ -76,8 +76,8 @@
#search-button, #search-button,
#pixel-toggle { #pixel-toggle {
background-color: transparent; background-color: transparent;
color: var(--color-theme-header); color: var(--color-theme-control);
border: var(--width-theme-border) var(--style-theme-border) var(--color-theme-header); border: var(--width-theme-border) var(--style-theme-border) var(--color-theme-border);
margin: 0; margin: 0;
padding: 0; padding: 0;
} }
@@ -96,7 +96,7 @@
&::after { &::after {
content: ""; content: "";
background: repeating-linear-gradient(90deg, var(--color-theme-header), var(--color-theme-header) var(--width-theme-border), transparent 0, transparent calc(var(--size-theme-font) * 0.625)); background: repeating-linear-gradient(90deg, var(--color-theme-control), var(--color-theme-control) var(--width-theme-border), transparent 0, transparent calc(var(--size-theme-font) * 0.625));
display: block; display: block;
width: 100%; width: 100%;
right: calc(var(--size-theme-font) * 0.625); right: calc(var(--size-theme-font) * 0.625);
@@ -114,8 +114,8 @@
display: flex; display: flex;
align-items: center; align-items: center;
text-decoration: none; text-decoration: none;
background: var(--color-theme-header); background: var(--color-theme-control);
color: var(--color-theme-background); color: var(--color-theme-text-inverse);
font-weight: 500; font-weight: 500;
padding: calc(var(--size-theme-font) * 0.3125) calc(var(--size-theme-font) * 0.625); padding: calc(var(--size-theme-font) * 0.3125) calc(var(--size-theme-font) * 0.625);
} }
+14 -14
View File
@@ -18,10 +18,10 @@
margin: 0; margin: 0;
> span { > span {
color: var(--color-theme-accent); color: var(--color-theme-action);
padding: 0.1em 0.45em; padding: 0.1em 0.45em;
border-top: var(--width-theme-border) var(--style-theme-border) var(--color-theme-accent); 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-accent); border-bottom: var(--width-theme-border) var(--style-theme-border) var(--color-theme-border-accent);
} }
} }
} }
@@ -77,11 +77,11 @@
} }
&-name { &-name {
color: var(--color-theme-foreground); color: var(--color-theme-text);
} }
&-url { &-url {
color: var(--color-theme-meta); color: var(--color-theme-text-muted);
font-size: calc(var(--size-theme-font) * 0.8); font-size: calc(var(--size-theme-font) * 0.8);
opacity: 0.7; opacity: 0.7;
white-space: nowrap; white-space: nowrap;
@@ -90,7 +90,7 @@
} }
&-description { &-description {
color: var(--color-theme-foreground); color: var(--color-theme-text);
font-size: calc(var(--size-theme-font) * 0.82); font-size: calc(var(--size-theme-font) * 0.82);
line-height: var(--height-theme-line); line-height: var(--height-theme-line);
white-space: nowrap; white-space: nowrap;
@@ -117,7 +117,7 @@
align-items: baseline; align-items: baseline;
gap: calc(var(--size-theme-font) * 0.25); gap: calc(var(--size-theme-font) * 0.25);
margin: 0; margin: 0;
color: var(--color-theme-foreground); color: var(--color-theme-text);
font-size: calc(var(--size-theme-font) * 0.85); font-size: calc(var(--size-theme-font) * 0.85);
} }
@@ -133,7 +133,7 @@
} }
&-required { &-required {
color: var(--color-theme-accent); color: var(--color-theme-action);
font-style: normal; font-style: normal;
} }
@@ -164,10 +164,10 @@
object-fit: contain; object-fit: contain;
background: #fff; background: #fff;
cursor: pointer; cursor: pointer;
border: calc(var(--width-theme-border) / 2) var(--style-theme-border) var(--color-theme-foreground); border: calc(var(--width-theme-border) / 2) var(--style-theme-border) var(--color-theme-border);
&:hover { &:hover {
border-color: var(--color-theme-accent); border-color: var(--color-theme-border-accent);
} }
} }
@@ -179,10 +179,10 @@
justify-content: center; justify-content: center;
cursor: pointer; cursor: pointer;
background: var(--color-theme-background); background: var(--color-theme-background);
border: calc(var(--width-theme-border) / 2) var(--style-theme-border) var(--color-theme-accent); border: calc(var(--width-theme-border) / 2) var(--style-theme-border) var(--color-theme-border-accent);
span { span {
color: var(--color-theme-accent); color: var(--color-theme-action);
font-size: calc(var(--size-theme-font) * 0.75); font-size: calc(var(--size-theme-font) * 0.75);
text-align: center; text-align: center;
} }
@@ -192,8 +192,8 @@
&-apply-message { &-apply-message {
margin-bottom: calc(var(--size-theme-font) * 1); margin-bottom: calc(var(--size-theme-font) * 1);
padding: calc(var(--size-theme-font) * 0.5) 0; padding: calc(var(--size-theme-font) * 0.5) 0;
color: var(--color-theme-accent); color: var(--color-theme-action);
border-bottom: calc(var(--width-theme-border) / 2) var(--style-theme-table-border) var(--color-theme-accent); border-bottom: calc(var(--width-theme-border) / 2) var(--style-theme-table-border) var(--color-theme-border-accent);
} }
&-apply-submit-btn { &-apply-submit-btn {
+32 -32
View File
@@ -55,7 +55,7 @@ body {
font-size: var(--size-theme-font); font-size: var(--size-theme-font);
line-height: var(--height-theme-line); line-height: var(--height-theme-line);
background-color: var(--color-theme-background); background-color: var(--color-theme-background);
color: var(--color-theme-foreground); color: var(--color-theme-text);
text-rendering: optimizelegibility; text-rendering: optimizelegibility;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-webkit-overflow-scrolling: touch; -webkit-overflow-scrolling: touch;
@@ -174,9 +174,9 @@ button {
text-decoration: none; text-decoration: none;
text-align: center; text-align: center;
background: transparent; background: transparent;
color: var(--color-theme-accent); color: var(--color-theme-action);
padding: calc(var(--size-theme-font) * 0.2) calc(var(--size-theme-font) * .7); 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-accent); border: calc(var(--width-theme-border) * 1.25) var(--style-theme-border) var(--color-theme-border-accent);
border-radius: var(--radius-theme-border); border-radius: var(--radius-theme-border);
transition: background 0.15s linear; transition: background 0.15s linear;
appearance: none; appearance: none;
@@ -186,13 +186,13 @@ button {
button:focus-visible, button:focus-visible,
a:focus-visible { a:focus-visible {
outline: 1px solid var(--color-theme-accent); outline: 1px solid var(--color-theme-action);
outline-offset: 2px; outline-offset: 2px;
} }
fieldset { fieldset {
display: inline-block; display: inline-block;
border: var(--width-theme-border) var(--style-theme-border) var(--color-theme-foreground); border: var(--width-theme-border) var(--style-theme-border) var(--color-theme-border);
border-radius: var(--radius-theme-border); border-radius: var(--radius-theme-border);
padding: calc(var(--size-theme-font) * 0.625); padding: calc(var(--size-theme-font) * 0.625);
} }
@@ -222,8 +222,8 @@ input,
textarea, textarea,
select { select {
background: transparent; background: transparent;
color: var(--color-theme-foreground); color: var(--color-theme-text);
border: calc(var(--width-theme-border) / 2) var(--style-theme-border) var(--color-theme-foreground); border: calc(var(--width-theme-border) / 2) var(--style-theme-border) var(--color-theme-border);
border-radius: var(--radius-theme-border); border-radius: var(--radius-theme-border);
padding: calc(var(--size-theme-font) * 0.625); padding: calc(var(--size-theme-font) * 0.625);
font: inherit; font: inherit;
@@ -240,8 +240,8 @@ textarea:focus-visible,
textarea:active, textarea:active,
select:focus-visible, select:focus-visible,
select:active { select:active {
border-color: var(--color-theme-accent); border-color: var(--color-theme-border-accent);
outline: calc(var(--size-theme-font) * 0.0625) var(--style-theme-border) var(--color-theme-accent); outline: calc(var(--size-theme-font) * 0.0625) var(--style-theme-border) var(--color-theme-action);
outline-offset: calc(var(--size-theme-font) * 0.125); outline-offset: calc(var(--size-theme-font) * 0.125);
} }
@@ -255,9 +255,9 @@ select {
background-image: linear-gradient( background-image: linear-gradient(
45deg, 45deg,
transparent 50%, transparent 50%,
var(--color-theme-foreground) 50% var(--color-theme-text) 50%
), ),
linear-gradient(135deg, var(--color-theme-foreground) 50%, transparent 50%); linear-gradient(135deg, var(--color-theme-text) 50%, transparent 50%);
background-position: calc(100% - 1.25em), calc(100% - 1em); background-position: calc(100% - 1.25em), calc(100% - 1em);
background-size: calc(var(--size-theme-font) * 0.3125) calc(var(--size-theme-font) * 0.3125), calc(var(--size-theme-font) * 0.3125) calc(var(--size-theme-font) * 0.3125); background-size: calc(var(--size-theme-font) * 0.3125) calc(var(--size-theme-font) * 0.3125), calc(var(--size-theme-font) * 0.3125) calc(var(--size-theme-font) * 0.3125);
background-repeat: no-repeat; background-repeat: no-repeat;
@@ -274,13 +274,13 @@ input[type="checkbox"] {
} }
input[type="checkbox"]:checked { input[type="checkbox"]:checked {
background: var(--color-theme-accent); background: var(--color-theme-action);
} }
img { img {
display: block; display: block;
max-width: 100%; max-width: 100%;
border: var(--width-theme-border) var(--style-theme-border) var(--color-theme-accent); border: var(--width-theme-border) var(--style-theme-border) var(--color-theme-border-accent);
border-radius: var(--radius-theme-border); border-radius: var(--radius-theme-border);
padding: calc(var(--size-theme-font) * 0.125); padding: calc(var(--size-theme-font) * 0.125);
overflow: hidden; overflow: hidden;
@@ -322,8 +322,8 @@ figure video {
} }
figure figcaption { figure figcaption {
background: var(--color-theme-accent); background: var(--color-theme-action);
color: var(--color-theme-background); color: var(--color-theme-text-inverse);
text-align: center; text-align: center;
font-size: var(--size-theme-font); font-size: var(--size-theme-font);
font-weight: normal; font-weight: normal;
@@ -355,7 +355,7 @@ ol li {
} }
li::marker { li::marker {
color: var(--color-theme-accent); color: var(--color-theme-action);
} }
code { code {
@@ -375,10 +375,10 @@ kbd {
kbd { kbd {
background: var(--color-theme-surface-hover); background: var(--color-theme-surface-hover);
border-top: calc(var(--width-theme-border) / 2) solid var(--color-theme-accent-subtle); border-top: calc(var(--width-theme-border) / 2) solid var(--color-theme-action-subtle);
border-left: calc(var(--width-theme-border) / 2) solid var(--color-theme-accent); 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-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-accent); border-bottom: calc(var(--width-theme-border) * 2) solid var(--color-theme-border-accent);
border-radius: calc(var(--size-theme-font) * 0.25); border-radius: calc(var(--size-theme-font) * 0.25);
} }
@@ -392,7 +392,7 @@ pre {
font-family: inherit !important; font-family: inherit !important;
tab-size: 4; tab-size: 4;
background: var(--color-theme-surface) !important; background: var(--color-theme-surface) !important;
color: var(--color-theme-foreground); color: var(--color-theme-text);
padding: calc(var(--size-theme-font) * 0.625) calc(var(--size-theme-font) * 0.625); padding: calc(var(--size-theme-font) * 0.625) calc(var(--size-theme-font) * 0.625);
font-size: calc(var(--size-theme-font) * 0.95) !important; font-size: calc(var(--size-theme-font) * 0.95) !important;
overflow: auto; overflow: auto;
@@ -420,7 +420,7 @@ sup {
abbr { abbr {
position: relative; position: relative;
text-decoration-style: wavy; text-decoration-style: wavy;
text-decoration-color: var(--color-theme-accent); text-decoration-color: var(--color-theme-action);
cursor: help; cursor: help;
} }
@@ -433,13 +433,13 @@ sup {
} }
mark { mark {
background: var(--color-theme-highlight); background: var(--color-theme-selection);
color: var(--color-theme-foreground); color: var(--color-theme-text);
} }
blockquote { blockquote {
position: relative; position: relative;
border-left: var(--width-theme-border) var(--style-theme-border) var(--color-theme-accent); border-left: var(--width-theme-border) var(--style-theme-border) var(--color-theme-border-accent);
margin: calc(var(--size-theme-font) * 0.625) 0 calc(var(--size-theme-font) * 0.625) 0; margin: calc(var(--size-theme-font) * 0.625) 0 calc(var(--size-theme-font) * 0.625) 0;
padding: calc(var(--size-theme-font) * 0.625) calc(var(--size-theme-font) * 1.25); padding: calc(var(--size-theme-font) * 0.625) calc(var(--size-theme-font) * 1.25);
} }
@@ -460,13 +460,13 @@ table {
table, table,
th, th,
td { td {
border: var(--width-theme-table-border) var(--style-theme-table-border) var(--color-theme-accent); border: var(--width-theme-table-border) var(--style-theme-table-border) var(--color-theme-border-accent);
padding: calc(var(--size-theme-font) * 0.625); padding: calc(var(--size-theme-font) * 0.625);
} }
th { th {
border-style: var(--style-theme-table-border); border-style: var(--style-theme-table-border);
color: var(--color-theme-accent); color: var(--color-theme-action);
white-space: nowrap; white-space: nowrap;
text-align: left; text-align: left;
letter-spacing: calc(var(--size-theme-font) * 0.04); letter-spacing: calc(var(--size-theme-font) * 0.04);
@@ -475,7 +475,7 @@ th {
hr { hr {
width: 100%; width: 100%;
border: none; border: none;
background: var(--color-theme-accent); background: var(--color-theme-action);
height: calc(var(--size-theme-font) * 0.125); height: calc(var(--size-theme-font) * 0.125);
} }
@@ -505,12 +505,12 @@ blockquote.twitter-tweet {
background: var(--color-theme-background); background: var(--color-theme-background);
font: inherit; font: inherit;
color: inherit; color: inherit;
border: calc(var(--width-theme-border) / 2) var(--style-theme-border) var(--color-theme-accent); border: calc(var(--width-theme-border) / 2) var(--style-theme-border) var(--color-theme-border-accent);
padding-top: calc(var(--size-theme-font) * 3.75); padding-top: calc(var(--size-theme-font) * 3.75);
} }
blockquote.twitter-tweet a { blockquote.twitter-tweet a {
color: var(--color-theme-accent); color: var(--color-theme-action);
text-decoration: var(--text-decoration-theme-post-link); text-decoration: var(--text-decoration-theme-post-link);
} }
@@ -519,7 +519,7 @@ blockquote.twitter-tweet::before {
position: absolute; position: absolute;
top: calc(var(--size-theme-font) * 1.25); top: calc(var(--size-theme-font) * 1.25);
left: calc(var(--size-theme-font) * 1.25); left: calc(var(--size-theme-font) * 1.25);
color: var(--color-theme-accent); color: var(--color-theme-action);
font-weight: bold; font-weight: bold;
} }
@@ -556,6 +556,6 @@ blockquote.twitter-tweet::before {
} }
iframe[src*="youtube.com"] { iframe[src*="youtube.com"] {
border: calc(var(--width-theme-border) * 2) var(--style-theme-border) var(--color-theme-accent) !important; border: calc(var(--width-theme-border) * 2) var(--style-theme-border) var(--color-theme-border-accent) !important;
padding: calc(var(--size-theme-font) * 0.5) !important; padding: calc(var(--size-theme-font) * 0.5) !important;
} }
+4 -4
View File
@@ -8,7 +8,7 @@
a { a {
text-decoration: none; text-decoration: none;
color: var(--color-theme-menu); color: var(--color-theme-navigation);
} }
@media (max-width: $phone-max-width) { @media (max-width: $phone-max-width) {
@@ -93,7 +93,7 @@
margin-right: 0; margin-right: 0;
padding-left: calc(var(--size-theme-font) * 0.3125); padding-left: calc(var(--size-theme-font) * 0.3125);
padding-right: calc(var(--size-theme-font) * 0.3125); padding-right: calc(var(--size-theme-font) * 0.3125);
color: var(--color-theme-menu); color: var(--color-theme-navigation);
user-select: none; user-select: none;
border: none; border: none;
display: inline-flex; display: inline-flex;
@@ -112,8 +112,8 @@
flex-direction: column; flex-direction: column;
position: absolute; position: absolute;
background: var(--color-theme-background); background: var(--color-theme-background);
color: var(--color-theme-accent); color: var(--color-theme-action);
border: calc(var(--size-theme-font) * 0.125) solid var(--color-theme-menu); border: calc(var(--size-theme-font) * 0.125) solid var(--color-theme-border);
margin: 0; margin: 0;
padding: calc(var(--size-theme-font) * 0.3125); padding: calc(var(--size-theme-font) * 0.3125);
top: calc(var(--size-theme-font) * 1.5625); top: calc(var(--size-theme-font) * 1.5625);
+2 -2
View File
@@ -27,14 +27,14 @@
gap: 0.35em; gap: 0.35em;
border: none; border: none;
font-size: calc(var(--size-theme-font) * 0.85); font-size: calc(var(--size-theme-font) * 0.85);
color: var(--color-theme-foreground); color: var(--color-theme-text);
&:hover { &:hover {
background: none; background: none;
} }
&.active { &.active {
color: var(--color-theme-accent); color: var(--color-theme-action);
} }
} }
+3 -3
View File
@@ -11,7 +11,7 @@
hr { hr {
position: absolute; position: absolute;
background-color: var(--color-theme-accent-muted); background-color: var(--color-theme-action-muted);
left: 0; left: 0;
right: 0; right: 0;
width: 100%; width: 100%;
@@ -24,7 +24,7 @@
margin: 0 auto; margin: 0 auto;
padding: calc(var(--size-theme-font) * 0.3125) calc(var(--size-theme-font) * 0.625); padding: calc(var(--size-theme-font) * 0.3125) calc(var(--size-theme-font) * 0.625);
background: var(--color-theme-background); background: var(--color-theme-background);
color: var(--color-theme-muted); color: var(--color-theme-text-muted);
font-size: calc(var(--size-theme-font) * 0.8); font-size: calc(var(--size-theme-font) * 0.8);
text-decoration: none; text-decoration: none;
letter-spacing: 0.1em; letter-spacing: 0.1em;
@@ -72,7 +72,7 @@
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-decoration: none; text-decoration: none;
color: var(--color-theme-foreground); color: var(--color-theme-text);
@media (max-width: $phone-max-width) { @media (max-width: $phone-max-width) {
width: 100%; width: 100%;
+13 -13
View File
@@ -18,7 +18,7 @@
flex-direction: column; flex-direction: column;
min-width: 0; min-width: 0;
padding: calc(var(--size-theme-font) * 0.875); padding: calc(var(--size-theme-font) * 0.875);
border: calc(var(--size-theme-font) * 0.0625) var(--style-theme-border) var(--color-theme-framed); border: calc(var(--size-theme-font) * 0.0625) var(--style-theme-border) var(--color-theme-border-emphasis);
} }
.portfolio-card-cover { .portfolio-card-cover {
@@ -41,7 +41,7 @@
} }
.portfolio-card-label { .portfolio-card-label {
color: var(--color-theme-tag); color: var(--color-theme-label);
font-size: calc(var(--size-theme-font) * 0.86); font-size: calc(var(--size-theme-font) * 0.86);
line-height: calc(var(--size-theme-font) * 1.4); line-height: calc(var(--size-theme-font) * 1.4);
} }
@@ -93,7 +93,7 @@
} }
.portfolio-meta .portfolio-term { .portfolio-meta .portfolio-term {
color: var(--color-theme-accent); color: var(--color-theme-action);
} }
.portfolio-meta .portfolio-term:not(:last-child), .portfolio-meta .portfolio-term:not(:last-child),
@@ -104,13 +104,13 @@
.portfolio-item .portfolio-tags, .portfolio-item .portfolio-tags,
.portfolio-item .portfolio-tags .portfolio-tag { .portfolio-item .portfolio-tags .portfolio-tag {
color: var(--color-theme-tag); color: var(--color-theme-label);
} }
.portfolio-detail-post .portfolio-meta-line, .portfolio-detail-post .portfolio-meta-line,
.portfolio-detail-post .portfolio-meta-line .portfolio-card-label, .portfolio-detail-post .portfolio-meta-line .portfolio-card-label,
.portfolio-detail-post .portfolio-meta-line .portfolio-tag { .portfolio-detail-post .portfolio-meta-line .portfolio-tag {
color: var(--color-theme-meta); color: var(--color-theme-text-muted);
} }
.portfolio-detail-post .portfolio-meta-line.post-meta { .portfolio-detail-post .portfolio-meta-line.post-meta {
@@ -119,11 +119,11 @@
.portfolio-detail-post .portfolio-techs, .portfolio-detail-post .portfolio-techs,
.portfolio-detail-post .portfolio-techs .portfolio-term { .portfolio-detail-post .portfolio-techs .portfolio-term {
color: var(--color-theme-accent); color: var(--color-theme-action);
} }
.portfolio-item .post-excerpt { .portfolio-item .post-excerpt {
color: var(--color-theme-foreground); color: var(--color-theme-text);
font-size: calc(var(--size-theme-font) * 0.86); font-size: calc(var(--size-theme-font) * 0.86);
line-height: calc(var(--size-theme-font) * 1.55); line-height: calc(var(--size-theme-font) * 1.55);
margin-top: calc(var(--size-theme-font) * 0.625); margin-top: calc(var(--size-theme-font) * 0.625);
@@ -143,22 +143,22 @@
} }
.portfolio-action { .portfolio-action {
color: var(--color-theme-accent); color: var(--color-theme-action);
font-size: calc(var(--size-theme-font) * 0.92); font-size: calc(var(--size-theme-font) * 0.92);
} }
.portfolio-action::before { .portfolio-action::before {
content: "[ "; content: "[ ";
color: var(--color-theme-accent); color: var(--color-theme-action);
} }
.portfolio-action::after { .portfolio-action::after {
content: " ]"; content: " ]";
color: var(--color-theme-accent); color: var(--color-theme-action);
} }
.portfolio-empty { .portfolio-empty {
color: var(--color-theme-muted); color: var(--color-theme-text-muted);
} }
.portfolio-detail-nav { .portfolio-detail-nav {
@@ -173,7 +173,7 @@
} }
.portfolio-detail-summary { .portfolio-detail-summary {
color: var(--color-theme-foreground); color: var(--color-theme-text);
} }
.portfolio-detail-section { .portfolio-detail-section {
@@ -196,7 +196,7 @@
} }
.portfolio-link-url { .portfolio-link-url {
color: var(--color-theme-muted); color: var(--color-theme-text-muted);
font-size: calc(var(--size-theme-font) * 0.9); font-size: calc(var(--size-theme-font) * 0.9);
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
+12 -12
View File
@@ -5,7 +5,7 @@
} }
.framed { .framed {
border: calc(var(--size-theme-font) * 0.0625) var(--style-theme-border) var(--color-theme-framed); border: calc(var(--size-theme-font) * 0.0625) var(--style-theme-border) var(--color-theme-border-emphasis);
padding: calc(var(--size-theme-font) * 1.25); padding: calc(var(--size-theme-font) * 1.25);
} }
@@ -30,19 +30,19 @@
.post-meta { .post-meta {
font-size: calc(var(--size-theme-font) * 0.96); font-size: calc(var(--size-theme-font) * 0.96);
margin-bottom: calc(var(--size-theme-font) * 0.3125); margin-bottom: calc(var(--size-theme-font) * 0.3125);
color: var(--color-theme-meta); color: var(--color-theme-text-muted);
} }
.post-meta > *:not(:first-child):not(:empty)::before { .post-meta > *:not(:first-child):not(:empty)::before {
content: var(--content-theme-post-meta-divider); content: var(--content-theme-post-meta-divider);
color: var(--color-theme-meta); color: var(--color-theme-text-muted);
display: inline-block; display: inline-block;
margin-right: 1ch; margin-right: 1ch;
} }
.post-title { .post-title {
position: relative; position: relative;
color: var(--color-theme-title); color: var(--color-theme-heading);
margin-top: 0; margin-top: 0;
margin-bottom: calc(var(--size-theme-font) * 0.9375); margin-bottom: calc(var(--size-theme-font) * 0.9375);
padding-bottom: calc(var(--size-theme-font) * 0.9375); padding-bottom: calc(var(--size-theme-font) * 0.9375);
@@ -68,16 +68,16 @@
bottom: calc(var(--size-theme-font) * 0.01); bottom: calc(var(--size-theme-font) * 0.01);
display: block; display: block;
width: 100%; width: 100%;
border-bottom: calc(var(--size-theme-font) * 0.125) var(--style-theme-title-divider) var(--color-theme-accent); border-bottom: calc(var(--size-theme-font) * 0.125) var(--style-theme-title-divider) var(--color-theme-border-accent);
} }
.post-title a { .post-title a {
text-decoration: none; text-decoration: none;
color: var(--color-theme-title); color: var(--color-theme-heading);
} }
.post-time { .post-time {
color: var(--color-theme-foreground); color: var(--color-theme-text);
} }
.post-meta > .post-time { .post-meta > .post-time {
@@ -87,11 +87,11 @@
.post-tags { .post-tags {
margin-bottom: calc(var(--size-theme-font) * 0.3125); margin-bottom: calc(var(--size-theme-font) * 0.3125);
font-size: inherit; font-size: inherit;
color: var(--color-theme-tag); color: var(--color-theme-label);
} }
.post-tag { .post-tag {
color: var(--color-theme-tag); color: var(--color-theme-label);
a { a {
color: inherit; color: inherit;
@@ -125,7 +125,7 @@
} }
.post-body a { .post-body a {
color: var(--color-theme-post-link); color: var(--color-theme-link);
text-decoration: var(--text-decoration-theme-post-link); text-decoration: var(--text-decoration-theme-post-link);
} }
@@ -157,7 +157,7 @@
.hanchor { .hanchor {
position: absolute; position: absolute;
color: var(--color-theme-accent); color: var(--color-theme-action);
text-decoration: none; text-decoration: none;
margin-left: calc(var(--size-theme-font) * 0.625); margin-left: calc(var(--size-theme-font) * 0.625);
visibility: hidden; visibility: hidden;
@@ -173,7 +173,7 @@ h6:hover .hanchor {
} }
.footnotes { .footnotes {
color: var(--color-theme-muted); color: var(--color-theme-text-muted);
} }
.footnotes hr { .footnotes hr {
+74 -69
View File
@@ -2,122 +2,127 @@
:root { :root {
--color-theme-background: #f4f4f4; --color-theme-background: #f4f4f4;
--color-theme-foreground: #3e3e3e; --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-tag: #07962a; --color-theme-text-muted: #2e6cba;
--color-theme-title: #003e8a; --color-theme-text-inverse: var(--color-theme-background);
--color-theme-meta: #2e6cba; --color-theme-heading: #003e8a;
--color-theme-framed: #970b16; --color-theme-label: #07962a;
--color-theme-menu: #3e3e3e; --color-theme-link: #003e8a;
--color-theme-header: #3e3e3e; --color-theme-action: #003e8a;
--color-theme-action-muted: color-mix(in srgb, var(--color-theme-action) 60%, var(--color-theme-background));
--color-theme-code-text: var(--color-theme-foreground); --color-theme-action-subtle: color-mix(in srgb, var(--color-theme-action) 30%, var(--color-theme-background));
--color-theme-code-background: var(--color-theme-surface-hover); --color-theme-navigation: #3e3e3e;
--color-theme-link: var(--color-theme-accent); --color-theme-control: #3e3e3e;
--color-theme-post-link: var(--color-theme-link); --color-theme-surface: color-mix(in srgb, var(--color-theme-text) 5%, var(--color-theme-background));
--color-theme-muted: var(--color-theme-meta); --color-theme-surface-hover: color-mix(in srgb, var(--color-theme-text) 10%, var(--color-theme-background));
--color-theme-foreground-muted: color-mix(in srgb, var(--color-theme-foreground) 85%, var(--color-theme-background)); --color-theme-border: var(--color-theme-text);
--color-theme-accent-muted: color-mix(in srgb, var(--color-theme-accent) 60%, var(--color-theme-background)); --color-theme-border-muted: color-mix(in srgb, var(--color-theme-text) 18%, var(--color-theme-background));
--color-theme-accent-subtle: color-mix(in srgb, var(--color-theme-accent) 30%, var(--color-theme-background)); --color-theme-border-accent: var(--color-theme-action);
--color-theme-surface: color-mix(in srgb, var(--color-theme-foreground) 5%, var(--color-theme-background)); --color-theme-border-emphasis: #970b16;
--color-theme-surface-hover: color-mix(in srgb, var(--color-theme-foreground) 10%, var(--color-theme-background)); --color-theme-selection: color-mix(in srgb, var(--color-theme-action) 45%, var(--color-theme-background));
--color-theme-border-muted: color-mix(in srgb, var(--color-theme-foreground) 18%, var(--color-theme-background));
--color-theme-highlight: color-mix(in srgb, var(--color-theme-accent) 45%, var(--color-theme-background));
--color-theme-overlay: rgb(0 0 0 / 80%); --color-theme-overlay: rgb(0 0 0 / 80%);
--color-theme-scrollbar: color-mix(in srgb, var(--color-theme-foreground) 45%, var(--color-theme-background)) transparent; --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-caret: #970b16;
} }
html[data-theme-color-scheme] { html[data-theme-color-scheme] {
--color-theme-tag: var(--color-theme-accent); --color-theme-text-muted: var(--color-theme-text);
--color-theme-title: var(--color-theme-accent); --color-theme-heading: var(--color-theme-action);
--color-theme-meta: var(--color-theme-foreground); --color-theme-label: var(--color-theme-action);
--color-theme-framed: var(--color-theme-accent); --color-theme-link: var(--color-theme-action);
--color-theme-menu: var(--color-theme-accent); --color-theme-navigation: var(--color-theme-action);
--color-theme-header: var(--color-theme-accent); --color-theme-control: var(--color-theme-action);
--color-theme-border-emphasis: var(--color-theme-action);
--color-theme-caret: var(--color-theme-action);
} }
$color-schemes: ( $color-schemes: (
"day": ( "day": (
"background": #f4f4f4, "background": #f4f4f4,
"foreground": #3e3e3e, "text": #3e3e3e,
"accent": #003e8a, "action": #003e8a,
"tag": #07962a, "label": #07962a,
"meta": #2e6cba, "text-muted": #2e6cba,
"framed": #970b16, "border-emphasis": #970b16,
"menu": var(--color-theme-foreground), "caret": #970b16,
"header": var(--color-theme-foreground) "navigation": var(--color-theme-text),
"control": var(--color-theme-text)
), ),
"night": ( "night": (
"background": #101216, "background": #101216,
"foreground": #8b949e, "text": #8b949e,
"accent": #6ca4f8, "action": #6ca4f8,
"tag": #56d364, "label": #56d364,
"meta": #6ca4f8, "text-muted": #6ca4f8,
"framed": #f78166, "border-emphasis": #f78166,
"menu": var(--color-theme-foreground), "caret": #f78166,
"header": var(--color-theme-foreground) "navigation": var(--color-theme-text),
"control": var(--color-theme-text)
), ),
"niello": ( "niello": (
"background": #1a170f, "background": #1a170f,
"foreground": #eceae5, "text": #eceae5,
"accent": #eec35e "action": #eec35e
), ),
"matrix": ( "matrix": (
"background": #000000, "background": #000000,
"foreground": #4eee85, "text": #4eee85,
"accent": #4eee85 "action": #4eee85
), ),
"ink": ( "ink": (
"background": #121212, "background": #121212,
"foreground": #C3C3C3, "text": #C3C3C3,
"foreground-muted": #C1C1C1, "text-secondary": #C1C1C1,
"accent": #FFFFFF, "action": #FFFFFF,
"link": #5AC8FA, "link": #5AC8FA,
"muted": #C1C1C1, "text-muted": #C1C1C1,
"code-text": #FFFFFF, "code-text": #FFFFFF,
"code-background": #1F1F1F "code-background": #1F1F1F
), ),
"paper": ( "paper": (
"background": #FFFFFF, "background": #FFFFFF,
"foreground": #1B1B1B, "text": #1B1B1B,
"foreground-muted": #595959, "text-secondary": #595959,
"accent": #000000, "action": #000000,
"link": #406ED2, "link": #406ED2,
"muted": #595959, "text-muted": #595959,
"code-text": #1B1B1B, "code-text": #1B1B1B,
"code-background": #EBEBEB "code-background": #EBEBEB
), ),
"hopbush": ( "hopbush": (
"background": #fff6f6, "background": #fff6f6,
"foreground": #462d2d, "text": #462d2d,
"accent": #cc6099 "action": #cc6099
), ),
"pistachio": ( "pistachio": (
"background": #1d2021, "background": #1d2021,
"foreground": #ebdbb2, "text": #ebdbb2,
"accent": #8ec07c "action": #8ec07c
), ),
"blue": ( "blue": (
"background": #153489, "background": #153489,
"foreground": #eceae5, "text": #eceae5,
"accent": #5ea5ee "action": #5ea5ee
), ),
"vanilla": ( "vanilla": (
"background": #fff4f2, "background": #fff4f2,
"foreground": #424140, "text": #424140,
"accent": #8f6a5e "action": #8f6a5e
), ),
"studio": ( "studio": (
"background": #f7f4ff, "background": #f7f4ff,
"foreground": #403352, "text": #403352,
"accent": #6f49ab "action": #6f49ab
), ),
"blood": ( "blood": (
"background": #221f29, "background": #221f29,
"foreground": #ffffff, "text": #ffffff,
"accent": #ff6266, "action": #ff6266,
"meta": var(--color-theme-accent), "text-muted": var(--color-theme-action),
"menu": var(--color-theme-foreground) "navigation": var(--color-theme-text)
) )
); );
@@ -127,7 +132,7 @@ $color-schemes: (
--color-theme-#{$role}: #{$color}; --color-theme-#{$role}: #{$color};
} }
@if map.get($scheme-colors, "foreground") == map.get($scheme-colors, "accent") { @if map.get($scheme-colors, "text") == map.get($scheme-colors, "action") {
--text-decoration-theme-post-link: underline; --text-decoration-theme-post-link: underline;
} }
} }
+11 -11
View File
@@ -2,24 +2,24 @@ search-modal {
--halo-search-widget-base-font-size: var(--size-theme-font) !important; --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-font-family: var(--family-theme-font) !important;
--halo-search-widget-base-bg-color: var(--color-theme-background) !important; --halo-search-widget-base-bg-color: var(--color-theme-background) !important;
--halo-search-widget-primary-color: var(--color-theme-accent) !important; --halo-search-widget-primary-color: var(--color-theme-action) !important;
--halo-search-widget-muted-color: var(--color-theme-muted) !important; --halo-search-widget-muted-color: var(--color-theme-text-muted) !important;
--halo-search-widget-content-color: var(--color-theme-foreground) !important; --halo-search-widget-content-color: var(--color-theme-text) !important;
--halo-search-widget-hit-bg-color: var(--color-theme-background) !important; --halo-search-widget-hit-bg-color: var(--color-theme-background) !important;
--halo-search-widget-modal-bg-color: var(--color-theme-background) !important; --halo-search-widget-modal-bg-color: var(--color-theme-background) !important;
--halo-search-widget-modal-layer-color: var(--color-theme-overlay) !important; --halo-search-widget-modal-layer-color: var(--color-theme-overlay) !important;
--halo-search-widget-divider-color: var(--color-theme-border-muted) !important; --halo-search-widget-divider-color: var(--color-theme-border-muted) !important;
--halo-search-widget-kbd-border-color: var(--color-theme-accent) !important; --halo-search-widget-kbd-border-color: var(--color-theme-border-accent) !important;
--halo-search-widget-kbd-shadow: none !important; --halo-search-widget-kbd-shadow: none !important;
--halo-search-widget-color-form-input-bg: var(--color-theme-background) !important; --halo-search-widget-color-form-input-bg: var(--color-theme-background) !important;
--halo-search-widget-color-form-input: var(--color-theme-foreground); --halo-search-widget-color-form-input: var(--color-theme-text);
--halo-search-widget-color-form-input-placeholder: var(--color-theme-muted) !important; --halo-search-widget-color-form-input-placeholder: var(--color-theme-text-muted) !important;
--halo-search-widget-color-form-divider: var(--color-theme-border-muted) !important; --halo-search-widget-color-form-divider: var(--color-theme-border-muted) !important;
--halo-search-widget-color-result-empty: var(--color-theme-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-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-hover-bg: var(--color-theme-surface-hover) !important;
--halo-search-widget-color-result-item-title: var(--color-theme-accent) !important; --halo-search-widget-color-result-item-title: var(--color-theme-action) !important;
--halo-search-widget-color-result-item-content: var(--color-theme-muted) !important; --halo-search-widget-color-result-item-content: var(--color-theme-text-muted) !important;
--halo-search-widget-color-command-kbd-item: var(--color-theme-accent) !important; --halo-search-widget-color-command-kbd-item: var(--color-theme-action) !important;
--halo-search-widget-color-command-kbd-borde: var(--color-theme-accent) !important; --halo-search-widget-color-command-kbd-borde: var(--color-theme-border-accent) !important;
} }
+2 -2
View File
@@ -11,7 +11,7 @@
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: var(--color-theme-foreground); color: var(--color-theme-text);
text-decoration: none; text-decoration: none;
svg { svg {
@@ -25,7 +25,7 @@
} }
.divider { .divider {
color: var(--color-theme-foreground); color: var(--color-theme-text);
font-weight: 300; font-weight: 300;
user-select: none; user-select: none;
} }
+8 -8
View File
@@ -39,7 +39,7 @@
} }
&::-webkit-scrollbar-thumb { &::-webkit-scrollbar-thumb {
background: var(--color-theme-foreground); background: var(--color-theme-text);
&:hover { &:hover {
background: transparent; background: transparent;
@@ -62,7 +62,7 @@
.toc-list { .toc-list {
margin-left: var(--size-theme-font); margin-left: var(--size-theme-font);
border-left: calc(var(--size-theme-font) * 0.0625) solid var(--color-theme-foreground); border-left: calc(var(--size-theme-font) * 0.0625) solid var(--color-theme-border);
padding-left: calc(var(--size-theme-font) * 0.5); padding-left: calc(var(--size-theme-font) * 0.5);
} }
} }
@@ -71,18 +71,18 @@
display: block; display: block;
padding: calc(var(--size-theme-font) * 0.25) calc(var(--size-theme-font) * 0.5); padding: calc(var(--size-theme-font) * 0.25) calc(var(--size-theme-font) * 0.5);
text-decoration: none; text-decoration: none;
color: var(--color-theme-foreground); color: var(--color-theme-text);
font-size: calc(var(--size-theme-font) * 0.875); font-size: calc(var(--size-theme-font) * 0.875);
&:hover { &:hover {
background: transparent; background: transparent;
color: var(--color-theme-accent); color: var(--color-theme-action);
} }
&.is-active-link, &.is-active-link,
.is-active-li > & { .is-active-li > & {
background: transparent; background: transparent;
color: var(--color-theme-accent); color: var(--color-theme-action);
font-weight: bold; font-weight: bold;
} }
} }
@@ -101,7 +101,7 @@
outline: none; outline: none;
background: transparent; background: transparent;
border: none; border: none;
color: var(--color-theme-foreground); color: var(--color-theme-text);
cursor: pointer; cursor: pointer;
font-size: var(--size-theme-font); font-size: var(--size-theme-font);
z-index: 1002; z-index: 1002;
@@ -115,13 +115,13 @@
body[data-layout-mode='fullscreen'] { body[data-layout-mode='fullscreen'] {
.toc.toc-visible { .toc.toc-visible {
border: calc(var(--size-theme-font) * 0.0625) solid var(--color-theme-foreground); border: calc(var(--size-theme-font) * 0.0625) solid var(--color-theme-border);
} }
} }
@media (max-width: 1400px) { @media (max-width: 1400px) {
.toc.toc-visible { .toc.toc-visible {
border: calc(var(--size-theme-font) * 0.0625) solid var(--color-theme-foreground); border: calc(var(--size-theme-font) * 0.0625) solid var(--color-theme-border);
} }
} }
+1 -1
View File
@@ -1,5 +1,5 @@
.typed-text { .typed-text {
color: var(--color-theme-framed); color: var(--color-theme-caret);
} }
.typed-text::after { .typed-text::after {
+38 -22
View File
@@ -85,43 +85,59 @@
[# th:each="scheme : ${theme.config.style.custom_color_schemes}"] [# th:each="scheme : ${theme.config.style.custom_color_schemes}"]
html[data-theme-color-scheme="[(${scheme.id})]"] { html[data-theme-color-scheme="[(${scheme.id})]"] {
--color-theme-background: [(${scheme.background})]; --color-theme-background: [(${scheme.background})];
--color-theme-foreground: [(${scheme.foreground})]; --color-theme-text: [(${#strings.isEmpty(scheme.text) ? scheme.foreground : scheme.text})];
--color-theme-accent: [(${scheme.accent})]; --color-theme-action: [(${#strings.isEmpty(scheme.action) ? scheme.accent : scheme.action})];
[# th:if="${not #strings.isEmpty(scheme.tag)}"] [# th:if="${not #strings.isEmpty(scheme.text_secondary) or not #strings.isEmpty(scheme.foreground_muted)}"]
--color-theme-tag: [(${scheme.tag})]; --color-theme-text-secondary: [(${#strings.isEmpty(scheme.text_secondary) ? scheme.foreground_muted : scheme.text_secondary})];
[/] [/]
[# th:if="${not #strings.isEmpty(scheme.title)}"] [# th:if="${not #strings.isEmpty(scheme.text_muted) or not #strings.isEmpty(scheme.muted) or not #strings.isEmpty(scheme.meta)}"]
--color-theme-title: [(${scheme.title})]; --color-theme-text-muted: [(${not #strings.isEmpty(scheme.text_muted) ? scheme.text_muted : (not #strings.isEmpty(scheme.muted) ? scheme.muted : scheme.meta)})];
[/] [/]
[# th:if="${not #strings.isEmpty(scheme.meta)}"] [# th:if="${not #strings.isEmpty(scheme.text_inverse)}"]
--color-theme-meta: [(${scheme.meta})]; --color-theme-text-inverse: [(${scheme.text_inverse})];
[/] [/]
[# th:if="${not #strings.isEmpty(scheme.framed)}"] [# th:if="${not #strings.isEmpty(scheme.heading) or not #strings.isEmpty(scheme.title)}"]
--color-theme-framed: [(${scheme.framed})]; --color-theme-heading: [(${#strings.isEmpty(scheme.heading) ? scheme.title : scheme.heading})];
[/] [/]
[# th:if="${not #strings.isEmpty(scheme.menu)}"] [# th:if="${not #strings.isEmpty(scheme.label) or not #strings.isEmpty(scheme.tag)}"]
--color-theme-menu: [(${scheme.menu})]; --color-theme-label: [(${#strings.isEmpty(scheme.label) ? scheme.tag : scheme.label})];
[/]
[# th:if="${not #strings.isEmpty(scheme.header)}"]
--color-theme-header: [(${scheme.header})];
[/]
[# th:if="${not #strings.isEmpty(scheme.foreground_muted)}"]
--color-theme-foreground-muted: [(${scheme.foreground_muted})];
[/] [/]
[# th:if="${not #strings.isEmpty(scheme.link)}"] [# th:if="${not #strings.isEmpty(scheme.link)}"]
--color-theme-link: [(${scheme.link})]; --color-theme-link: [(${scheme.link})];
[/] [/]
[# th:if="${not #strings.isEmpty(scheme.muted)}"] [# th:if="${not #strings.isEmpty(scheme.navigation) or not #strings.isEmpty(scheme.menu)}"]
--color-theme-muted: [(${scheme.muted})]; --color-theme-navigation: [(${#strings.isEmpty(scheme.navigation) ? scheme.menu : scheme.navigation})];
[/]
[# th:if="${not #strings.isEmpty(scheme.control) or not #strings.isEmpty(scheme.header)}"]
--color-theme-control: [(${#strings.isEmpty(scheme.control) ? scheme.header : scheme.control})];
[/]
[# th:if="${not #strings.isEmpty(scheme.border)}"]
--color-theme-border: [(${scheme.border})];
[/]
[# th:if="${not #strings.isEmpty(scheme.border_accent)}"]
--color-theme-border-accent: [(${scheme.border_accent})];
[/]
[# th:if="${not #strings.isEmpty(scheme.border_emphasis) or not #strings.isEmpty(scheme.framed)}"]
--color-theme-border-emphasis: [(${#strings.isEmpty(scheme.border_emphasis) ? scheme.framed : scheme.border_emphasis})];
[/]
[# th:if="${not #strings.isEmpty(scheme.selection)}"]
--color-theme-selection: [(${scheme.selection})];
[/]
[# th:if="${not #strings.isEmpty(scheme.caret) or not #strings.isEmpty(scheme.framed)}"]
--color-theme-caret: [(${#strings.isEmpty(scheme.caret) ? scheme.framed : scheme.caret})];
[/] [/]
[# th:if="${not #strings.isEmpty(scheme.code_text)}"] [# th:if="${not #strings.isEmpty(scheme.code_text)}"]