begin overhaul

This commit is contained in:
Merith-TK 2025-02-06 19:07:13 +00:00
parent 45d8d4f92f
commit b41ccdef1b
4 changed files with 250 additions and 1286 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,13 +1,133 @@
/* From https://github.com/sindresorhus/github-markdown-css */ .markdown-body {
/* dark */ --base-size-4: 0.25rem;
--base-size-8: 0.5rem;
--base-size-16: 1rem;
--base-size-24: 1.5rem;
--base-size-40: 2.5rem;
--base-text-weight-normal: 400;
--base-text-weight-medium: 500;
--base-text-weight-semibold: 600;
--fontStack-monospace: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace;
--fgColor-accent: Highlight;
}
@media (prefers-color-scheme: dark) {
.markdown-body, [data-theme="dark"] {
/* dark - Monokai Dimmed Colors */
color-scheme: dark;
--focus-outlineColor: #1f6feb;
--fgColor-default: #f0f6fc;
--fgColor-muted: #9198a1;
--fgColor-accent: #4493f8;
--fgColor-success: #3fb950;
--fgColor-attention: #d29922;
--fgColor-danger: #f85149;
--fgColor-done: #ab7df8;
--bgColor-neutral-muted: #656c7633;
--bgColor-attention-muted: #bb800926;
--borderColor-default: #3d444d;
--borderColor-muted: #3d444db3;
--borderColor-neutral-muted: #3d444db3;
--borderColor-accent-emphasis: #1f6feb;
--borderColor-success-emphasis: #238636;
--borderColor-attention-emphasis: #9e6a03;
--borderColor-danger-emphasis: #da3633;
--borderColor-done-emphasis: #8957e5;
--color-prettylights-syntax-comment: #9198a1;
--color-prettylights-syntax-constant: #79c0ff;
--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;
--color-prettylights-syntax-entity: #d2a8ff;
--color-prettylights-syntax-storage-modifier-import: #f0f6fc;
--color-prettylights-syntax-entity-tag: #7ee787;
--color-prettylights-syntax-keyword: #ff7b72;
--color-prettylights-syntax-string: #a5d6ff;
--color-prettylights-syntax-variable: #ffa657;
--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;
--color-prettylights-syntax-brackethighlighter-angle: #9198a1;
--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;
--color-prettylights-syntax-invalid-illegal-bg: #8e1519;
--color-prettylights-syntax-carriage-return-text: #f0f6fc;
--color-prettylights-syntax-carriage-return-bg: #b62324;
--color-prettylights-syntax-string-regexp: #7ee787;
--color-prettylights-syntax-markup-list: #f2cc60;
--color-prettylights-syntax-markup-heading: #1f6feb;
--color-prettylights-syntax-markup-italic: #f0f6fc;
--color-prettylights-syntax-markup-bold: #f0f6fc;
--color-prettylights-syntax-markup-deleted-text: #ffdcd7;
--color-prettylights-syntax-markup-deleted-bg: #67060c;
--color-prettylights-syntax-markup-inserted-text: #aff5b4;
--color-prettylights-syntax-markup-inserted-bg: #033a16;
--color-prettylights-syntax-markup-changed-text: #ffdfb6;
--color-prettylights-syntax-markup-changed-bg: #5a1e02;
--color-prettylights-syntax-markup-ignored-text: #f0f6fc;
--color-prettylights-syntax-markup-ignored-bg: #1158c7;
--color-prettylights-syntax-meta-diff-range: #d2a8ff;
--color-prettylights-syntax-sublimelinter-gutter-mark: #3d444d;
}
}
@media (prefers-color-scheme: light) {
.markdown-body, [data-theme="light"] {
/* light - Coffee Theme */
color-scheme: light;
--focus-outlineColor: #0969da;
--fgColor-default: #4e3629; /* Coffee brown default */
--fgColor-muted: #9e7d5e; /* Muted coffee tones */
--fgColor-accent: #0969da;
--fgColor-success: #8f5222; /* Coffee inspired greenish brown */
--fgColor-attention: #b97a2d; /* Coffee caramel accent */
--fgColor-danger: #d1242f;
--fgColor-done: #8250df;
--bgColor-default: #fff5e1; /* Coffee beige */
--bgColor-muted: #e3d4b3; /* Light coffee */
--bgColor-neutral-muted: #a38f5c; /* Soft coffee brown */
--bgColor-attention-muted: #f9e6be; /* Caramel tones */
--borderColor-default: #d1d9e0;
--borderColor-muted: #d1d9e0b3;
--borderColor-neutral-muted: #d1d9e0b3;
--borderColor-accent-emphasis: #0969da;
--borderColor-success-emphasis: #8f5222;
--borderColor-attention-emphasis: #b97a2d;
--borderColor-danger-emphasis: #cf222e;
--borderColor-done-emphasis: #8250df;
--color-prettylights-syntax-comment: #9e7d5e;
--color-prettylights-syntax-constant: #6e4c3b; /* Coffee brown constants */
--color-prettylights-syntax-constant-other-reference-link: #8a6f5f;
--color-prettylights-syntax-entity: #6639ba;
--color-prettylights-syntax-storage-modifier-import: #4e3629;
--color-prettylights-syntax-entity-tag: #6e4c3b;
--color-prettylights-syntax-keyword: #cf222e;
--color-prettylights-syntax-string: #8a6f5f; /* Warm tones for strings */
--color-prettylights-syntax-variable: #953800;
--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;
--color-prettylights-syntax-brackethighlighter-angle: #9e7d5e;
--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;
--color-prettylights-syntax-invalid-illegal-bg: #82071e;
--color-prettylights-syntax-carriage-return-text: #f6f8fa;
--color-prettylights-syntax-carriage-return-bg: #cf222e;
--color-prettylights-syntax-string-regexp: #116329;
--color-prettylights-syntax-markup-list: #3b2300;
--color-prettylights-syntax-markup-heading: #6e4c3b;
--color-prettylights-syntax-markup-italic: #4e3629;
--color-prettylights-syntax-markup-bold: #4e3629;
--color-prettylights-syntax-markup-deleted-text: #82071e;
--color-prettylights-syntax-markup-deleted-bg: #ffebe9;
--color-prettylights-syntax-markup-inserted-text: #116329;
--color-prettylights-syntax-markup-inserted-bg: #dafbe1;
--color-prettylights-syntax-markup-changed-text: #953800;
--color-prettylights-syntax-markup-changed-bg: #ffd8b5;
--color-prettylights-syntax-markup-ignored-text: #d1d9e0;
--color-prettylights-syntax-markup-ignored-bg: #6e4c3b;
--color-prettylights-syntax-meta-diff-range: #8250df;
--color-prettylights-syntax-sublimelinter-gutter-mark: #818b98;
}
}
.markdown-body { .markdown-body {
color-scheme: dark;
-ms-text-size-adjust: 100%; -ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
margin: 0; margin: 0;
color: #f0f6fc; color: var(--fgColor-default);
background-color: #0d1117; background-color: var(--bgColor-default);
font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"; font-family: -apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans",Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";
font-size: 16px; font-size: 16px;
line-height: 1.5; line-height: 1.5;
@ -51,7 +171,7 @@
.markdown-body a { .markdown-body a {
background-color: transparent; background-color: transparent;
color: #4493f8; color: var(--fgColor-accent);
text-decoration: none; text-decoration: none;
} }
@ -63,7 +183,7 @@
.markdown-body b, .markdown-body b,
.markdown-body strong { .markdown-body strong {
font-weight: 600; font-weight: var(--base-text-weight-semibold, 600);
} }
.markdown-body dfn { .markdown-body dfn {
@ -72,15 +192,15 @@
.markdown-body h1 { .markdown-body h1 {
margin: .67em 0; margin: .67em 0;
font-weight: 600; font-weight: var(--base-text-weight-semibold, 600);
padding-bottom: .3em; padding-bottom: .3em;
font-size: 2em; font-size: 2em;
border-bottom: 1px solid #3d444db3; border-bottom: 1px solid var(--borderColor-muted);
} }
.markdown-body mark { .markdown-body mark {
background-color: #bb800926; background-color: var(--bgColor-attention-muted);
color: #f0f6fc; color: var(--fgColor-default);
} }
.markdown-body small { .markdown-body small {
@ -118,18 +238,18 @@
} }
.markdown-body figure { .markdown-body figure {
margin: 1em 2.5rem; margin: 1em var(--base-size-40);
} }
.markdown-body hr { .markdown-body hr {
box-sizing: content-box; box-sizing: content-box;
overflow: hidden; overflow: hidden;
background: transparent; background: transparent;
border-bottom: 1px solid #3d444db3; border-bottom: 1px solid var(--borderColor-muted);
height: .25em; height: .25em;
padding: 0; padding: 0;
margin: 1.5rem 0; margin: var(--base-size-24) 0;
background-color: #3d444d; background-color: var(--borderColor-default);
border: 0; border: 0;
} }
@ -182,7 +302,7 @@
} }
.markdown-body ::placeholder { .markdown-body ::placeholder {
color: #9198a1; color: var(--fgColor-muted);
opacity: 1; opacity: 1;
} }
@ -220,7 +340,7 @@
.markdown-body [role=button]:focus, .markdown-body [role=button]:focus,
.markdown-body input[type=radio]:focus, .markdown-body input[type=radio]:focus,
.markdown-body input[type=checkbox]:focus { .markdown-body input[type=checkbox]:focus {
outline: 2px solid #1f6feb; outline: 2px solid var(--focus-outlineColor);
outline-offset: -2px; outline-offset: -2px;
box-shadow: none; box-shadow: none;
} }
@ -236,7 +356,7 @@
.markdown-body [role=button]:focus-visible, .markdown-body [role=button]:focus-visible,
.markdown-body input[type=radio]:focus-visible, .markdown-body input[type=radio]:focus-visible,
.markdown-body input[type=checkbox]:focus-visible { .markdown-body input[type=checkbox]:focus-visible {
outline: 2px solid #1f6feb; outline: 2px solid var(--focus-outlineColor);
outline-offset: -2px; outline-offset: -2px;
box-shadow: none; box-shadow: none;
} }
@ -252,16 +372,16 @@
.markdown-body kbd { .markdown-body kbd {
display: inline-block; display: inline-block;
padding: 0.25rem; padding: var(--base-size-4);
font: 11px ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font: 11px var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);
line-height: 10px; line-height: 10px;
color: #f0f6fc; color: var(--fgColor-default);
vertical-align: middle; vertical-align: middle;
background-color: #151b23; background-color: var(--bgColor-muted);
border: solid 1px #3d444db3; border: solid 1px var(--borderColor-neutral-muted);
border-bottom-color: #3d444db3; border-bottom-color: var(--borderColor-neutral-muted);
border-radius: 6px; border-radius: 6px;
box-shadow: inset 0 -1px 0 #3d444db3; box-shadow: inset 0 -1px 0 var(--borderColor-neutral-muted);
} }
.markdown-body h1, .markdown-body h1,
@ -270,38 +390,38 @@
.markdown-body h4, .markdown-body h4,
.markdown-body h5, .markdown-body h5,
.markdown-body h6 { .markdown-body h6 {
margin-top: 1.5rem; margin-top: var(--base-size-24);
margin-bottom: 1rem; margin-bottom: var(--base-size-16);
font-weight: 600; font-weight: var(--base-text-weight-semibold, 600);
line-height: 1.25; line-height: 1.25;
} }
.markdown-body h2 { .markdown-body h2 {
font-weight: 600; font-weight: var(--base-text-weight-semibold, 600);
padding-bottom: .3em; padding-bottom: .3em;
font-size: 1.5em; font-size: 1.5em;
border-bottom: 1px solid #3d444db3; border-bottom: 1px solid var(--borderColor-muted);
} }
.markdown-body h3 { .markdown-body h3 {
font-weight: 600; font-weight: var(--base-text-weight-semibold, 600);
font-size: 1.25em; font-size: 1.25em;
} }
.markdown-body h4 { .markdown-body h4 {
font-weight: 600; font-weight: var(--base-text-weight-semibold, 600);
font-size: 1em; font-size: 1em;
} }
.markdown-body h5 { .markdown-body h5 {
font-weight: 600; font-weight: var(--base-text-weight-semibold, 600);
font-size: .875em; font-size: .875em;
} }
.markdown-body h6 { .markdown-body h6 {
font-weight: 600; font-weight: var(--base-text-weight-semibold, 600);
font-size: .85em; font-size: .85em;
color: #9198a1; color: var(--fgColor-muted);
} }
.markdown-body p { .markdown-body p {
@ -312,8 +432,8 @@
.markdown-body blockquote { .markdown-body blockquote {
margin: 0; margin: 0;
padding: 0 1em; padding: 0 1em;
color: #9198a1; color: var(--fgColor-muted);
border-left: .25em solid #3d444d; border-left: .25em solid var(--borderColor-default);
} }
.markdown-body ul, .markdown-body ul,
@ -342,14 +462,14 @@
.markdown-body tt, .markdown-body tt,
.markdown-body code, .markdown-body code,
.markdown-body samp { .markdown-body samp {
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-family: var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);
font-size: 12px; font-size: 12px;
} }
.markdown-body pre { .markdown-body pre {
margin-top: 0; margin-top: 0;
margin-bottom: 0; margin-bottom: 0;
font-family: ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace; font-family: var(--fontStack-monospace, ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace);
font-size: 12px; font-size: 12px;
word-wrap: normal; word-wrap: normal;
} }
@ -368,7 +488,7 @@
} }
.markdown-body .mr-2 { .markdown-body .mr-2 {
margin-right: 0.5rem !important; margin-right: var(--base-size-8, 8px) !important;
} }
.markdown-body::before { .markdown-body::before {
@ -396,12 +516,12 @@
} }
.markdown-body .absent { .markdown-body .absent {
color: #f85149; color: var(--fgColor-danger);
} }
.markdown-body .anchor { .markdown-body .anchor {
float: left; float: left;
padding-right: 0.25rem; padding-right: var(--base-size-4);
margin-left: -20px; margin-left: -20px;
line-height: 1; line-height: 1;
} }
@ -419,7 +539,7 @@
.markdown-body pre, .markdown-body pre,
.markdown-body details { .markdown-body details {
margin-top: 0; margin-top: 0;
margin-bottom: 1rem; margin-bottom: var(--base-size-16);
} }
.markdown-body blockquote>:first-child { .markdown-body blockquote>:first-child {
@ -436,7 +556,7 @@
.markdown-body h4 .octicon-link, .markdown-body h4 .octicon-link,
.markdown-body h5 .octicon-link, .markdown-body h5 .octicon-link,
.markdown-body h6 .octicon-link { .markdown-body h6 .octicon-link {
color: #f0f6fc; color: var(--fgColor-default);
vertical-align: middle; vertical-align: middle;
visibility: hidden; visibility: hidden;
} }
@ -538,7 +658,7 @@
} }
.markdown-body li>p { .markdown-body li>p {
margin-top: 1rem; margin-top: var(--base-size-16);
} }
.markdown-body li+li { .markdown-body li+li {
@ -551,25 +671,25 @@
.markdown-body dl dt { .markdown-body dl dt {
padding: 0; padding: 0;
margin-top: 1rem; margin-top: var(--base-size-16);
font-size: 1em; font-size: 1em;
font-style: italic; font-style: italic;
font-weight: 600; font-weight: var(--base-text-weight-semibold, 600);
} }
.markdown-body dl dd { .markdown-body dl dd {
padding: 0 1rem; padding: 0 var(--base-size-16);
margin-bottom: 1rem; margin-bottom: var(--base-size-16);
} }
.markdown-body table th { .markdown-body table th {
font-weight: 600; font-weight: var(--base-text-weight-semibold, 600);
} }
.markdown-body table th, .markdown-body table th,
.markdown-body table td { .markdown-body table td {
padding: 6px 13px; padding: 6px 13px;
border: 1px solid #3d444d; border: 1px solid var(--borderColor-default);
} }
.markdown-body table td>:last-child { .markdown-body table td>:last-child {
@ -577,12 +697,12 @@
} }
.markdown-body table tr { .markdown-body table tr {
background-color: #0d1117; background-color: var(--bgColor-default);
border-top: 1px solid #3d444db3; border-top: 1px solid var(--borderColor-muted);
} }
.markdown-body table tr:nth-child(2n) { .markdown-body table tr:nth-child(2n) {
background-color: #151b23; background-color: var(--bgColor-muted);
} }
.markdown-body table img { .markdown-body table img {
@ -615,7 +735,7 @@
padding: 7px; padding: 7px;
margin: 13px 0 0; margin: 13px 0 0;
overflow: hidden; overflow: hidden;
border: 1px solid #3d444d; border: 1px solid var(--borderColor-default);
} }
.markdown-body span.frame span img { .markdown-body span.frame span img {
@ -627,7 +747,7 @@
display: block; display: block;
padding: 5px 0 0; padding: 5px 0 0;
clear: both; clear: both;
color: #f0f6fc; color: var(--fgColor-default);
} }
.markdown-body span.align-center { .markdown-body span.align-center {
@ -697,7 +817,7 @@
margin: 0; margin: 0;
font-size: 85%; font-size: 85%;
white-space: break-spaces; white-space: break-spaces;
background-color: #656c7633; background-color: var(--bgColor-neutral-muted);
border-radius: 6px; border-radius: 6px;
} }
@ -728,7 +848,7 @@
} }
.markdown-body .highlight { .markdown-body .highlight {
margin-bottom: 1rem; margin-bottom: var(--base-size-16);
} }
.markdown-body .highlight pre { .markdown-body .highlight pre {
@ -738,12 +858,12 @@
.markdown-body .highlight pre, .markdown-body .highlight pre,
.markdown-body pre { .markdown-body pre {
padding: 1rem; padding: var(--base-size-16);
overflow: auto; overflow: auto;
font-size: 85%; font-size: 85%;
line-height: 1.45; line-height: 1.45;
color: #f0f6fc; color: var(--fgColor-default);
background-color: #151b23; background-color: var(--bgColor-muted);
border-radius: 6px; border-radius: 6px;
} }
@ -771,9 +891,9 @@
} }
.markdown-body .csv-data .blob-num { .markdown-body .csv-data .blob-num {
padding: 10px 0.5rem 9px; padding: 10px var(--base-size-8) 9px;
text-align: right; text-align: right;
background: #0d1117; background: var(--bgColor-default);
border: 0; border: 0;
} }
@ -782,8 +902,8 @@
} }
.markdown-body .csv-data th { .markdown-body .csv-data th {
font-weight: 600; font-weight: var(--base-text-weight-semibold, 600);
background: #151b23; background: var(--bgColor-muted);
border-top: 0; border-top: 0;
} }
@ -797,18 +917,18 @@
.markdown-body .footnotes { .markdown-body .footnotes {
font-size: 12px; font-size: 12px;
color: #9198a1; color: var(--fgColor-muted);
border-top: 1px solid #3d444d; border-top: 1px solid var(--borderColor-default);
} }
.markdown-body .footnotes ol { .markdown-body .footnotes ol {
padding-left: 1rem; padding-left: var(--base-size-16);
} }
.markdown-body .footnotes ol ul { .markdown-body .footnotes ol ul {
display: inline-block; display: inline-block;
padding-left: 1rem; padding-left: var(--base-size-16);
margin-top: 1rem; margin-top: var(--base-size-16);
} }
.markdown-body .footnotes li { .markdown-body .footnotes li {
@ -817,18 +937,18 @@
.markdown-body .footnotes li:target::before { .markdown-body .footnotes li:target::before {
position: absolute; position: absolute;
top: calc(0.5rem*-1); top: calc(var(--base-size-8)*-1);
right: calc(0.5rem*-1); right: calc(var(--base-size-8)*-1);
bottom: calc(0.5rem*-1); bottom: calc(var(--base-size-8)*-1);
left: calc(1.5rem*-1); left: calc(var(--base-size-24)*-1);
pointer-events: none; pointer-events: none;
content: ""; content: "";
border: 2px solid #1f6feb; border: 2px solid var(--borderColor-accent-emphasis);
border-radius: 6px; border-radius: 6px;
} }
.markdown-body .footnotes li:target { .markdown-body .footnotes li:target {
color: #f0f6fc; color: var(--fgColor-default);
} }
.markdown-body .footnotes .data-footnote-backref g-emoji { .markdown-body .footnotes .data-footnote-backref g-emoji {
@ -840,30 +960,30 @@
} }
.markdown-body .pl-c { .markdown-body .pl-c {
color: #9198a1; color: var(--color-prettylights-syntax-comment);
} }
.markdown-body .pl-c1, .markdown-body .pl-c1,
.markdown-body .pl-s .pl-v { .markdown-body .pl-s .pl-v {
color: #79c0ff; color: var(--color-prettylights-syntax-constant);
} }
.markdown-body .pl-e, .markdown-body .pl-e,
.markdown-body .pl-en { .markdown-body .pl-en {
color: #d2a8ff; color: var(--color-prettylights-syntax-entity);
} }
.markdown-body .pl-smi, .markdown-body .pl-smi,
.markdown-body .pl-s .pl-s1 { .markdown-body .pl-s .pl-s1 {
color: #f0f6fc; color: var(--color-prettylights-syntax-storage-modifier-import);
} }
.markdown-body .pl-ent { .markdown-body .pl-ent {
color: #7ee787; color: var(--color-prettylights-syntax-entity-tag);
} }
.markdown-body .pl-k { .markdown-body .pl-k {
color: #ff7b72; color: var(--color-prettylights-syntax-keyword);
} }
.markdown-body .pl-s, .markdown-body .pl-s,
@ -873,90 +993,90 @@
.markdown-body .pl-sr .pl-cce, .markdown-body .pl-sr .pl-cce,
.markdown-body .pl-sr .pl-sre, .markdown-body .pl-sr .pl-sre,
.markdown-body .pl-sr .pl-sra { .markdown-body .pl-sr .pl-sra {
color: #a5d6ff; color: var(--color-prettylights-syntax-string);
} }
.markdown-body .pl-v, .markdown-body .pl-v,
.markdown-body .pl-smw { .markdown-body .pl-smw {
color: #ffa657; color: var(--color-prettylights-syntax-variable);
} }
.markdown-body .pl-bu { .markdown-body .pl-bu {
color: #f85149; color: var(--color-prettylights-syntax-brackethighlighter-unmatched);
} }
.markdown-body .pl-ii { .markdown-body .pl-ii {
color: #f0f6fc; color: var(--color-prettylights-syntax-invalid-illegal-text);
background-color: #8e1519; background-color: var(--color-prettylights-syntax-invalid-illegal-bg);
} }
.markdown-body .pl-c2 { .markdown-body .pl-c2 {
color: #f0f6fc; color: var(--color-prettylights-syntax-carriage-return-text);
background-color: #b62324; background-color: var(--color-prettylights-syntax-carriage-return-bg);
} }
.markdown-body .pl-sr .pl-cce { .markdown-body .pl-sr .pl-cce {
font-weight: bold; font-weight: bold;
color: #7ee787; color: var(--color-prettylights-syntax-string-regexp);
} }
.markdown-body .pl-ml { .markdown-body .pl-ml {
color: #f2cc60; color: var(--color-prettylights-syntax-markup-list);
} }
.markdown-body .pl-mh, .markdown-body .pl-mh,
.markdown-body .pl-mh .pl-en, .markdown-body .pl-mh .pl-en,
.markdown-body .pl-ms { .markdown-body .pl-ms {
font-weight: bold; font-weight: bold;
color: #1f6feb; color: var(--color-prettylights-syntax-markup-heading);
} }
.markdown-body .pl-mi { .markdown-body .pl-mi {
font-style: italic; font-style: italic;
color: #f0f6fc; color: var(--color-prettylights-syntax-markup-italic);
} }
.markdown-body .pl-mb { .markdown-body .pl-mb {
font-weight: bold; font-weight: bold;
color: #f0f6fc; color: var(--color-prettylights-syntax-markup-bold);
} }
.markdown-body .pl-md { .markdown-body .pl-md {
color: #ffdcd7; color: var(--color-prettylights-syntax-markup-deleted-text);
background-color: #67060c; background-color: var(--color-prettylights-syntax-markup-deleted-bg);
} }
.markdown-body .pl-mi1 { .markdown-body .pl-mi1 {
color: #aff5b4; color: var(--color-prettylights-syntax-markup-inserted-text);
background-color: #033a16; background-color: var(--color-prettylights-syntax-markup-inserted-bg);
} }
.markdown-body .pl-mc { .markdown-body .pl-mc {
color: #ffdfb6; color: var(--color-prettylights-syntax-markup-changed-text);
background-color: #5a1e02; background-color: var(--color-prettylights-syntax-markup-changed-bg);
} }
.markdown-body .pl-mi2 { .markdown-body .pl-mi2 {
color: #f0f6fc; color: var(--color-prettylights-syntax-markup-ignored-text);
background-color: #1158c7; background-color: var(--color-prettylights-syntax-markup-ignored-bg);
} }
.markdown-body .pl-mdr { .markdown-body .pl-mdr {
font-weight: bold; font-weight: bold;
color: #d2a8ff; color: var(--color-prettylights-syntax-meta-diff-range);
} }
.markdown-body .pl-ba { .markdown-body .pl-ba {
color: #9198a1; color: var(--color-prettylights-syntax-brackethighlighter-angle);
} }
.markdown-body .pl-sg { .markdown-body .pl-sg {
color: #3d444d; color: var(--color-prettylights-syntax-sublimelinter-gutter-mark);
} }
.markdown-body .pl-corl { .markdown-body .pl-corl {
text-decoration: underline; text-decoration: underline;
color: #a5d6ff; color: var(--color-prettylights-syntax-constant-other-reference-link);
} }
.markdown-body [role=button]:focus:not(:focus-visible), .markdown-body [role=button]:focus:not(:focus-visible),
@ -979,7 +1099,7 @@
font-family: "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol"; font-family: "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
font-size: 1em; font-size: 1em;
font-style: normal !important; font-style: normal !important;
font-weight: 400; font-weight: var(--base-text-weight-normal, 400);
line-height: 1; line-height: 1;
vertical-align: -0.075em; vertical-align: -0.075em;
} }
@ -994,7 +1114,7 @@
} }
.markdown-body .task-list-item label { .markdown-body .task-list-item label {
font-weight: 400; font-weight: var(--base-text-weight-normal, 400);
} }
.markdown-body .task-list-item.enabled label { .markdown-body .task-list-item.enabled label {
@ -1002,7 +1122,7 @@
} }
.markdown-body .task-list-item+.task-list-item { .markdown-body .task-list-item+.task-list-item {
margin-top: 0.25rem; margin-top: var(--base-size-4);
} }
.markdown-body .task-list-item .handle { .markdown-body .task-list-item .handle {
@ -1036,10 +1156,10 @@
} }
.markdown-body .markdown-alert { .markdown-body .markdown-alert {
padding: 0.5rem 1rem; padding: var(--base-size-8) var(--base-size-16);
margin-bottom: 1rem; margin-bottom: var(--base-size-16);
color: inherit; color: inherit;
border-left: .25em solid #3d444d; border-left: .25em solid var(--borderColor-default);
} }
.markdown-body .markdown-alert>:first-child { .markdown-body .markdown-alert>:first-child {
@ -1052,49 +1172,49 @@
.markdown-body .markdown-alert .markdown-alert-title { .markdown-body .markdown-alert .markdown-alert-title {
display: flex; display: flex;
font-weight: 500; font-weight: var(--base-text-weight-medium, 500);
align-items: center; align-items: center;
line-height: 1; line-height: 1;
} }
.markdown-body .markdown-alert.markdown-alert-note { .markdown-body .markdown-alert.markdown-alert-note {
border-left-color: #1f6feb; border-left-color: var(--borderColor-accent-emphasis);
} }
.markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title { .markdown-body .markdown-alert.markdown-alert-note .markdown-alert-title {
color: #4493f8; color: var(--fgColor-accent);
} }
.markdown-body .markdown-alert.markdown-alert-important { .markdown-body .markdown-alert.markdown-alert-important {
border-left-color: #8957e5; border-left-color: var(--borderColor-done-emphasis);
} }
.markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title { .markdown-body .markdown-alert.markdown-alert-important .markdown-alert-title {
color: #ab7df8; color: var(--fgColor-done);
} }
.markdown-body .markdown-alert.markdown-alert-warning { .markdown-body .markdown-alert.markdown-alert-warning {
border-left-color: #9e6a03; border-left-color: var(--borderColor-attention-emphasis);
} }
.markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title { .markdown-body .markdown-alert.markdown-alert-warning .markdown-alert-title {
color: #d29922; color: var(--fgColor-attention);
} }
.markdown-body .markdown-alert.markdown-alert-tip { .markdown-body .markdown-alert.markdown-alert-tip {
border-left-color: #238636; border-left-color: var(--borderColor-success-emphasis);
} }
.markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title { .markdown-body .markdown-alert.markdown-alert-tip .markdown-alert-title {
color: #3fb950; color: var(--fgColor-success);
} }
.markdown-body .markdown-alert.markdown-alert-caution { .markdown-body .markdown-alert.markdown-alert-caution {
border-left-color: #da3633; border-left-color: var(--borderColor-danger-emphasis);
} }
.markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title { .markdown-body .markdown-alert.markdown-alert-caution .markdown-alert-title {
color: #f85149; color: var(--fgColor-danger);
} }
.markdown-body>*:first-child>.heading-element:first-child { .markdown-body>*:first-child>.heading-element:first-child {
@ -1104,3 +1224,4 @@
.markdown-body .highlight pre:has(+.zeroclipboard-container) { .markdown-body .highlight pre:has(+.zeroclipboard-container) {
min-height: 52px; min-height: 52px;
} }

View file

@ -1,4 +1,3 @@
/* Light Mode: Coffee Theme */
.light-mode { .light-mode {
--background-color: #e7ddca; --background-color: #e7ddca;
--text-color: #5b4636; --text-color: #5b4636;
@ -7,7 +6,6 @@
--link-hover-color: #d2a679; --link-hover-color: #d2a679;
} }
/* Dark Mode: Monokai Dimmed Theme */
@media (prefers-color-scheme: dark) { @media (prefers-color-scheme: dark) {
:root { :root {
--background-color: #1e1e1e; --background-color: #1e1e1e;
@ -70,55 +68,3 @@ pre {
font-size: 14px; font-size: 14px;
line-height: 1.5; line-height: 1.5;
} }
code {
font-family: "Fira Code", monospace;
background: var(--code-bg);
color: var(--code-text);
padding: 2px 5px;
border-radius: 4px;
}
/* Syntax Colors */
pre .c,
code .c {
color: #6272a4;
font-style: italic;
}
pre .k,
code .k {
color: #ff79c6;
}
pre .s,
code .s {
color: #f1fa8c;
}
pre .nf,
code .nf {
color: #8be9fd;
}
pre .o,
code .o {
color: #ffb86c;
}
pre .mi,
pre .mf,
code .mi,
code .mf {
color: #bd93f9;
}
pre .n,
code .n {
color: #f8f8f2;
}
pre .nc,
code .nc {
color: #50fa7b;
}

View file

@ -6,8 +6,9 @@
<head> <head>
<title>Markdown</title> <title>Markdown</title>
<link rel="stylesheet" href="/assets/main.css"> <link rel="stylesheet" href="/assets/main.css">
<link rel="stylesheet" href="/assets/github-markdown-dark.css"> <!-- <link rel="stylesheet" href="/assets/github-markdown-dark.css"> -->
<!-- <link rel="stylesheet" href="/assets/github-markdown-light.css"> --> <!-- <link rel="stylesheet" href="/assets/github-markdown-light.css"> -->
<link rel="stylesheet" href="/assets/github-markdown.css">
<script> <script>
function themeToggle() { function themeToggle() {
var element = document.body; var element = document.body;
@ -18,9 +19,11 @@
<body> <body>
<div> <div>
<button onclick="themeToggle()">Switch Theme</button> <div class="markdown-body">
<!-- <button onclick="themeToggle()">Switch Theme</button> -->
{{markdown $markdownContent}} {{markdown $markdownContent}}
</div> </div>
</div>
</body> </body>
</html> </html>