Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"@hfelix/electron-localshortcut": "^4.0.1",
"@marktext/file-icons": "^1.0.6",
"@marktext/muyajs": "workspace:*",
"@muyajs/core": "workspace:*",
"@popperjs/core": "^2.11.8",
"@vscode/ripgrep": "^1.18.0",
"arg": "^5.0.2",
Expand Down
47 changes: 47 additions & 0 deletions packages/desktop/src/renderer/src/assets/themes/ayu-dark.theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,53 @@
--floatShadow: rgba(0, 0, 0, 0.2);
--maskColor: rgba(0, 0, 0, 0.7);
--editorAreaWidth: 750px;

/* @muyajs/core (kebab-case) editor variables
Additive prep for the muyajs -> @muyajs/core editor swap. These
mirror the camelCase vars above; the legacy editor ignores them.
Do NOT remove the camelCase vars — they still drive the current
editor until editor.vue switches engines. */
--theme-color: var(--themeColor);
--highlight-color: var(--highlightColor);
--selection-color: var(--selectionColor);
--editor-color: var(--editorColor);
--editor-color-80: var(--editorColor80);
--editor-color-50: var(--editorColor50);
--editor-color-30: var(--editorColor30);
--editor-color-10: var(--editorColor10);
--editor-color-04: var(--editorColor04);
--editor-bg-color: var(--editorBgColor);
--editor-area-width: var(--editorAreaWidth);
--delete-color: var(--deleteColor);
--icon-color: var(--iconColor);
--code-block-bg-color: var(--codeBlockBgColor);
--table-border-color: var(--tableBorderColor);
--input-bg-color: var(--inputBgColor);
--button-font-color: var(--buttonFontColor);
--button-bg-color: var(--buttonBgColor);
--button-border: var(--buttonBorder);
--button-bg-color-hover: var(--buttonBgColorHover);
--button-border-hover: var(--buttonBorderHover);
--button-bg-color-active: var(--buttonBgColorActive);
--button-border-active: var(--buttonBorderActive);
--button-border-focus: var(--button-border);
--float-bg-color: var(--floatBgColor);
--float-hover-color: var(--floatHoverColor);
--float-border-color: var(--floatBorderColor);
--float-shadow: rgb(15 15 15 / 3%) 0 0 0 1px, rgb(15 15 15 / 4%) 0 3px 6px, rgb(15 15 15 / 5%) 0 9px 24px;
--link-color: var(--linkColor);
--h1-color: var(--h1Color);
--h2-color: var(--h2Color);
--h3-color: var(--h3Color);
--h4-color: var(--h4Color);
--h5-color: var(--h5Color);
--h6-color: var(--h6Color);
--blockquote-text-color: var(--blockquoteTextColor);
--blockquote-border-color: var(--blockquoteBorderColor);
--strong-color: var(--strongColor);
--em-color: var(--emColor);
--list-marker-color: var(--listMarkerColor);
--hr-color: var(--hrColor);
}

::-webkit-scrollbar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,53 @@
--floatShadow: rgba(0, 0, 0, 0.1);
--maskColor: rgba(0, 0, 0, 0.3);
--editorAreaWidth: 750px;

/* @muyajs/core (kebab-case) editor variables
Additive prep for the muyajs -> @muyajs/core editor swap. These
mirror the camelCase vars above; the legacy editor ignores them.
Do NOT remove the camelCase vars — they still drive the current
editor until editor.vue switches engines. */
--theme-color: var(--themeColor);
--highlight-color: var(--highlightColor);
--selection-color: var(--selectionColor);
--editor-color: var(--editorColor);
--editor-color-80: var(--editorColor80);
--editor-color-50: var(--editorColor50);
--editor-color-30: var(--editorColor30);
--editor-color-10: var(--editorColor10);
--editor-color-04: var(--editorColor04);
--editor-bg-color: var(--editorBgColor);
--editor-area-width: var(--editorAreaWidth);
--delete-color: var(--deleteColor);
--icon-color: var(--iconColor);
--code-block-bg-color: var(--codeBlockBgColor);
--table-border-color: var(--tableBorderColor);
--input-bg-color: var(--inputBgColor);
--button-font-color: var(--buttonFontColor);
--button-bg-color: var(--buttonBgColor);
--button-border: var(--buttonBorder);
--button-bg-color-hover: var(--buttonBgColorHover);
--button-border-hover: var(--buttonBorderHover);
--button-bg-color-active: var(--buttonBgColorActive);
--button-border-active: var(--buttonBorderActive);
--button-border-focus: var(--button-border);
--float-bg-color: var(--floatBgColor);
--float-hover-color: var(--floatHoverColor);
--float-border-color: var(--floatBorderColor);
--float-shadow: rgb(15 15 15 / 3%) 0 0 0 1px, rgb(15 15 15 / 4%) 0 3px 6px, rgb(15 15 15 / 5%) 0 9px 24px;
--link-color: var(--linkColor);
--h1-color: var(--h1Color);
--h2-color: var(--h2Color);
--h3-color: var(--h3Color);
--h4-color: var(--h4Color);
--h5-color: var(--h5Color);
--h6-color: var(--h6Color);
--blockquote-text-color: var(--blockquoteTextColor);
--blockquote-border-color: var(--blockquoteBorderColor);
--strong-color: var(--strongColor);
--em-color: var(--emColor);
--list-marker-color: var(--listMarkerColor);
--hr-color: var(--hrColor);
}

::-webkit-scrollbar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,53 @@
--floatShadow: rgba(0, 0, 0, 0.2);
--maskColor: rgba(0, 0, 0, 0.7);
--editorAreaWidth: 750px;

/* @muyajs/core (kebab-case) editor variables
Additive prep for the muyajs -> @muyajs/core editor swap. These
mirror the camelCase vars above; the legacy editor ignores them.
Do NOT remove the camelCase vars — they still drive the current
editor until editor.vue switches engines. */
--theme-color: var(--themeColor);
--highlight-color: var(--highlightColor);
--selection-color: var(--selectionColor);
--editor-color: var(--editorColor);
--editor-color-80: var(--editorColor80);
--editor-color-50: var(--editorColor50);
--editor-color-30: var(--editorColor30);
--editor-color-10: var(--editorColor10);
--editor-color-04: var(--editorColor04);
--editor-bg-color: var(--editorBgColor);
--editor-area-width: var(--editorAreaWidth);
--delete-color: var(--deleteColor);
--icon-color: var(--iconColor);
--code-block-bg-color: var(--codeBlockBgColor);
--table-border-color: var(--tableBorderColor);
--input-bg-color: var(--inputBgColor);
--button-font-color: var(--buttonFontColor);
--button-bg-color: var(--buttonBgColor);
--button-border: var(--buttonBorder);
--button-bg-color-hover: var(--buttonBgColorHover);
--button-border-hover: var(--buttonBorderHover);
--button-bg-color-active: var(--buttonBgColorActive);
--button-border-active: var(--buttonBorderActive);
--button-border-focus: var(--button-border);
--float-bg-color: var(--floatBgColor);
--float-hover-color: var(--floatHoverColor);
--float-border-color: var(--floatBorderColor);
--float-shadow: rgb(15 15 15 / 3%) 0 0 0 1px, rgb(15 15 15 / 4%) 0 3px 6px, rgb(15 15 15 / 5%) 0 9px 24px;
--link-color: var(--linkColor);
--h1-color: var(--h1Color);
--h2-color: var(--h2Color);
--h3-color: var(--h3Color);
--h4-color: var(--h4Color);
--h5-color: var(--h5Color);
--h6-color: var(--h6Color);
--blockquote-text-color: var(--blockquoteTextColor);
--blockquote-border-color: var(--blockquoteBorderColor);
--strong-color: var(--strongColor);
--em-color: var(--emColor);
--list-marker-color: var(--listMarkerColor);
--hr-color: var(--hrColor);
}

::-webkit-scrollbar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,53 @@
--floatShadow: rgba(0, 0, 0, 0.1);
--maskColor: rgba(0, 0, 0, 0.3);
--editorAreaWidth: 750px;

/* @muyajs/core (kebab-case) editor variables
Additive prep for the muyajs -> @muyajs/core editor swap. These
mirror the camelCase vars above; the legacy editor ignores them.
Do NOT remove the camelCase vars — they still drive the current
editor until editor.vue switches engines. */
--theme-color: var(--themeColor);
--highlight-color: var(--highlightColor);
--selection-color: var(--selectionColor);
--editor-color: var(--editorColor);
--editor-color-80: var(--editorColor80);
--editor-color-50: var(--editorColor50);
--editor-color-30: var(--editorColor30);
--editor-color-10: var(--editorColor10);
--editor-color-04: var(--editorColor04);
--editor-bg-color: var(--editorBgColor);
--editor-area-width: var(--editorAreaWidth);
--delete-color: var(--deleteColor);
--icon-color: var(--iconColor);
--code-block-bg-color: var(--codeBlockBgColor);
--table-border-color: var(--tableBorderColor);
--input-bg-color: var(--inputBgColor);
--button-font-color: var(--buttonFontColor);
--button-bg-color: var(--buttonBgColor);
--button-border: var(--buttonBorder);
--button-bg-color-hover: var(--buttonBgColorHover);
--button-border-hover: var(--buttonBorderHover);
--button-bg-color-active: var(--buttonBgColorActive);
--button-border-active: var(--buttonBorderActive);
--button-border-focus: var(--button-border);
--float-bg-color: var(--floatBgColor);
--float-hover-color: var(--floatHoverColor);
--float-border-color: var(--floatBorderColor);
--float-shadow: rgb(15 15 15 / 3%) 0 0 0 1px, rgb(15 15 15 / 4%) 0 3px 6px, rgb(15 15 15 / 5%) 0 9px 24px;
--link-color: var(--linkColor);
--h1-color: var(--h1Color);
--h2-color: var(--h2Color);
--h3-color: var(--h3Color);
--h4-color: var(--h4Color);
--h5-color: var(--h5Color);
--h6-color: var(--h6Color);
--blockquote-text-color: var(--blockquoteTextColor);
--blockquote-border-color: var(--blockquoteBorderColor);
--strong-color: var(--strongColor);
--em-color: var(--emColor);
--list-marker-color: var(--listMarkerColor);
--hr-color: var(--hrColor);
}

::-webkit-scrollbar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,53 @@
--floatShadow: rgba(0, 0, 0, 0.2);
--maskColor: rgba(0, 0, 0, 0.7);
--editorAreaWidth: 750px;

/* @muyajs/core (kebab-case) editor variables
Additive prep for the muyajs -> @muyajs/core editor swap. These
mirror the camelCase vars above; the legacy editor ignores them.
Do NOT remove the camelCase vars — they still drive the current
editor until editor.vue switches engines. */
--theme-color: var(--themeColor);
--highlight-color: var(--highlightColor);
--selection-color: var(--selectionColor);
--editor-color: var(--editorColor);
--editor-color-80: var(--editorColor80);
--editor-color-50: var(--editorColor50);
--editor-color-30: var(--editorColor30);
--editor-color-10: var(--editorColor10);
--editor-color-04: var(--editorColor04);
--editor-bg-color: var(--editorBgColor);
--editor-area-width: var(--editorAreaWidth);
--delete-color: var(--deleteColor);
--icon-color: var(--iconColor);
--code-block-bg-color: var(--codeBlockBgColor);
--table-border-color: var(--tableBorderColor);
--input-bg-color: var(--inputBgColor);
--button-font-color: var(--buttonFontColor);
--button-bg-color: var(--buttonBgColor);
--button-border: var(--buttonBorder);
--button-bg-color-hover: var(--buttonBgColorHover);
--button-border-hover: var(--buttonBorderHover);
--button-bg-color-active: var(--buttonBgColorActive);
--button-border-active: var(--buttonBorderActive);
--button-border-focus: var(--button-border);
--float-bg-color: var(--floatBgColor);
--float-hover-color: var(--floatHoverColor);
--float-border-color: var(--floatBorderColor);
--float-shadow: rgb(15 15 15 / 3%) 0 0 0 1px, rgb(15 15 15 / 4%) 0 3px 6px, rgb(15 15 15 / 5%) 0 9px 24px;
--link-color: var(--linkColor);
--h1-color: var(--h1Color);
--h2-color: var(--h2Color);
--h3-color: var(--h3Color);
--h4-color: var(--h4Color);
--h5-color: var(--h5Color);
--h6-color: var(--h6Color);
--blockquote-text-color: var(--blockquoteTextColor);
--blockquote-border-color: var(--blockquoteBorderColor);
--strong-color: var(--strongColor);
--em-color: var(--emColor);
--list-marker-color: var(--listMarkerColor);
--hr-color: var(--hrColor);
}

::-webkit-scrollbar {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,53 @@
--floatShadow: rgba(0, 0, 0, 0.2);
--maskColor: rgba(0, 0, 0, 0.7);
--editorAreaWidth: 750px;

/* @muyajs/core (kebab-case) editor variables
Additive prep for the muyajs -> @muyajs/core editor swap. These
mirror the camelCase vars above; the legacy editor ignores them.
Do NOT remove the camelCase vars — they still drive the current
editor until editor.vue switches engines. */
--theme-color: var(--themeColor);
--highlight-color: var(--highlightColor);
--selection-color: var(--selectionColor);
--editor-color: var(--editorColor);
--editor-color-80: var(--editorColor80);
--editor-color-50: var(--editorColor50);
--editor-color-30: var(--editorColor30);
--editor-color-10: var(--editorColor10);
--editor-color-04: var(--editorColor04);
--editor-bg-color: var(--editorBgColor);
--editor-area-width: var(--editorAreaWidth);
--delete-color: var(--deleteColor);
--icon-color: var(--iconColor);
--code-block-bg-color: var(--codeBlockBgColor);
--table-border-color: var(--tableBorderColor);
--input-bg-color: var(--inputBgColor);
--button-font-color: var(--buttonFontColor);
--button-bg-color: var(--buttonBgColor);
--button-border: var(--buttonBorder);
--button-bg-color-hover: var(--buttonBgColorHover);
--button-border-hover: var(--buttonBorderHover);
--button-bg-color-active: var(--buttonBgColorActive);
--button-border-active: var(--buttonBorderActive);
--button-border-focus: var(--button-border);
--float-bg-color: var(--floatBgColor);
--float-hover-color: var(--floatHoverColor);
--float-border-color: var(--floatBorderColor);
--float-shadow: rgb(15 15 15 / 3%) 0 0 0 1px, rgb(15 15 15 / 4%) 0 3px 6px, rgb(15 15 15 / 5%) 0 9px 24px;
--link-color: var(--linkColor);
--h1-color: var(--h1Color);
--h2-color: var(--h2Color);
--h3-color: var(--h3Color);
--h4-color: var(--h4Color);
--h5-color: var(--h5Color);
--h6-color: var(--h6Color);
--blockquote-text-color: var(--blockquoteTextColor);
--blockquote-border-color: var(--blockquoteBorderColor);
--strong-color: var(--strongColor);
--em-color: var(--emColor);
--list-marker-color: var(--listMarkerColor);
--hr-color: var(--hrColor);
}

::-webkit-scrollbar {
Expand Down
47 changes: 47 additions & 0 deletions packages/desktop/src/renderer/src/assets/themes/dark.theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,53 @@
--floatShadow: rgba(0, 0, 0, 0.2);
--maskColor: rgba(0, 0, 0, 0.7);
--editorAreaWidth: 750px;

/* @muyajs/core (kebab-case) editor variables
Additive prep for the muyajs -> @muyajs/core editor swap. These
mirror the camelCase vars above; the legacy editor ignores them.
Do NOT remove the camelCase vars — they still drive the current
editor until editor.vue switches engines. */
--theme-color: var(--themeColor);
--highlight-color: var(--highlightColor);
--selection-color: var(--selectionColor);
--editor-color: var(--editorColor);
--editor-color-80: var(--editorColor80);
--editor-color-50: var(--editorColor50);
--editor-color-30: var(--editorColor30);
--editor-color-10: var(--editorColor10);
--editor-color-04: var(--editorColor04);
--editor-bg-color: var(--editorBgColor);
--editor-area-width: var(--editorAreaWidth);
--delete-color: var(--deleteColor);
--icon-color: var(--iconColor);
--code-block-bg-color: var(--codeBlockBgColor);
--table-border-color: var(--tableBorderColor);
--input-bg-color: var(--inputBgColor);
--button-font-color: var(--buttonFontColor);
--button-bg-color: var(--buttonBgColor);
--button-border: var(--buttonBorder);
--button-bg-color-hover: var(--buttonBgColorHover);
--button-border-hover: var(--buttonBorderHover);
--button-bg-color-active: var(--buttonBgColorActive);
--button-border-active: var(--buttonBorderActive);
--button-border-focus: var(--button-border);
--float-bg-color: var(--floatBgColor);
--float-hover-color: var(--floatHoverColor);
--float-border-color: var(--floatBorderColor);
--float-shadow: rgb(15 15 15 / 3%) 0 0 0 1px, rgb(15 15 15 / 4%) 0 3px 6px, rgb(15 15 15 / 5%) 0 9px 24px;
--link-color: var(--linkColor);
--h1-color: var(--h1Color);
--h2-color: var(--h2Color);
--h3-color: var(--h3Color);
--h4-color: var(--h4Color);
--h5-color: var(--h5Color);
--h6-color: var(--h6Color);
--blockquote-text-color: var(--blockquoteTextColor);
--blockquote-border-color: var(--blockquoteBorderColor);
--strong-color: var(--strongColor);
--em-color: var(--emColor);
--list-marker-color: var(--listMarkerColor);
--hr-color: var(--hrColor);
}

::-webkit-scrollbar {
Expand Down
Loading
Loading