Monorepo for Aesthetic.Computer aesthetic.computer
at main 263 lines 6.9 kB view raw
1/* 2 * Aesthetic Computer — Markdown Preview Theme 3 * 4 * Uses VS Code CSS variables so it auto-adapts to whichever 5 * Aesthetic Computer color theme is active (dark, light, rainbow). 6 */ 7 8/* ── Fonts ────────────────────────────────────────────── */ 9 10@font-face { 11 font-family: "YWFT Processing"; 12 src: url("fonts/ywft-processing-regular.woff2") format("woff2"); 13 font-weight: 400; 14 font-style: normal; 15} 16 17@font-face { 18 font-family: "YWFT Processing"; 19 src: url("fonts/ywft-processing-bold.woff2") format("woff2"); 20 font-weight: 700; 21 font-style: normal; 22} 23 24/* ── Base ─────────────────────────────────────────────── */ 25 26body { 27 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, 28 sans-serif; 29 font-size: 15px; 30 line-height: 1.7; 31 color: var(--vscode-editor-foreground); 32 background: var(--vscode-editor-background); 33 max-width: 820px; 34 margin: 0 auto; 35 padding: 2rem 2.5rem; 36} 37 38/* ── Headings ─────────────────────────────────────────── */ 39 40h1, 41h2, 42h3, 43h4, 44h5, 45h6 { 46 font-family: "YWFT Processing", -apple-system, BlinkMacSystemFont, "Segoe UI", 47 Helvetica, Arial, sans-serif; 48 color: var(--vscode-editor-foreground); 49 font-weight: 700; 50 line-height: 1.3; 51 margin-top: 1.8em; 52 margin-bottom: 0.6em; 53} 54 55h1 { 56 font-size: 2em; 57 border-bottom: 2px solid var(--vscode-editorCursor-foreground, #a87090); 58 padding-bottom: 0.3em; 59} 60 61h2 { 62 font-size: 1.5em; 63 border-bottom: 1px solid var(--vscode-editorIndentGuide-background1, #404060); 64 padding-bottom: 0.25em; 65} 66 67h3 { 68 font-size: 1.25em; 69 color: var(--vscode-editorCursor-foreground, #a87090); 70} 71 72h4, 73h5, 74h6 { 75 font-size: 1em; 76 color: var(--vscode-editorCursor-foreground, #a87090); 77 opacity: 0.85; 78} 79 80/* ── Paragraphs & Text ────────────────────────────────── */ 81 82p { 83 margin: 0.8em 0; 84} 85 86strong { 87 color: var(--vscode-editor-foreground); 88 font-weight: 700; 89} 90 91em { 92 font-style: italic; 93 opacity: 0.9; 94} 95 96/* ── Links ────────────────────────────────────────────── */ 97 98a { 99 color: var(--vscode-textLink-foreground, #8be9fd); 100 text-decoration: none; 101} 102 103a:hover { 104 text-decoration: underline; 105 opacity: 0.85; 106} 107 108/* ── Code ─────────────────────────────────────────────── */ 109 110code { 111 font-family: "Berkeley Mono Variable", "SF Mono", Monaco, Menlo, Consolas, 112 "Courier New", monospace; 113 font-size: 0.88em; 114 background: var(--vscode-textCodeBlock-background, rgba(255, 255, 255, 0.06)); 115 color: var(--vscode-editorCursor-foreground, #a87090); 116 padding: 0.15em 0.4em; 117 border-radius: 4px; 118} 119 120pre { 121 background: var(--vscode-textCodeBlock-background, rgba(255, 255, 255, 0.06)); 122 border: 1px solid var(--vscode-editorIndentGuide-background1, #404060); 123 border-radius: 6px; 124 padding: 1em 1.2em; 125 overflow-x: auto; 126 margin: 1.2em 0; 127 line-height: 1.5; 128} 129 130pre code { 131 background: none; 132 padding: 0; 133 color: var(--vscode-editor-foreground); 134 font-size: 0.88em; 135} 136 137/* ── Blockquotes ──────────────────────────────────────── */ 138 139blockquote { 140 margin: 1em 0; 141 padding: 0.5em 1.2em; 142 border-left: 4px solid var(--vscode-editorCursor-foreground, #a87090); 143 background: var( 144 --vscode-editor-lineHighlightBackground, 145 rgba(168, 112, 144, 0.08) 146 ); 147 border-radius: 0 6px 6px 0; 148} 149 150blockquote p { 151 margin: 0.4em 0; 152 opacity: 0.9; 153} 154 155/* ── Lists ────────────────────────────────────────────── */ 156 157ul, 158ol { 159 padding-left: 1.8em; 160 margin: 0.8em 0; 161} 162 163li { 164 margin: 0.3em 0; 165} 166 167li > p { 168 margin: 0.3em 0; 169} 170 171/* Task lists */ 172li input[type="checkbox"] { 173 accent-color: var(--vscode-editorCursor-foreground, #a87090); 174 margin-right: 0.4em; 175} 176 177/* ── Tables ───────────────────────────────────────────── */ 178 179table { 180 border-collapse: collapse; 181 width: 100%; 182 margin: 1.2em 0; 183} 184 185th, 186td { 187 border: 1px solid var(--vscode-editorIndentGuide-background1, #404060); 188 padding: 0.5em 0.8em; 189 text-align: left; 190} 191 192th { 193 background: var( 194 --vscode-editor-lineHighlightBackground, 195 rgba(168, 112, 144, 0.08) 196 ); 197 font-weight: 600; 198 color: var(--vscode-editorCursor-foreground, #a87090); 199} 200 201tr:nth-child(even) { 202 background: rgba(128, 128, 128, 0.04); 203} 204 205/* ── Horizontal Rule ──────────────────────────────────── */ 206 207hr { 208 border: none; 209 height: 2px; 210 background: var(--vscode-editorIndentGuide-background1, #404060); 211 margin: 2em 0; 212} 213 214/* ── Images ───────────────────────────────────────────── */ 215 216img { 217 max-width: 100%; 218 border-radius: 6px; 219 margin: 0.8em 0; 220} 221 222/* ── Misc ─────────────────────────────────────────────── */ 223 224::selection { 225 background: var(--vscode-editor-selectionBackground, rgba(168, 112, 144, 0.25)); 226} 227 228kbd { 229 font-family: "Berkeley Mono Variable", "SF Mono", Monaco, Menlo, Consolas, 230 monospace; 231 font-size: 0.85em; 232 padding: 0.1em 0.5em; 233 border: 1px solid var(--vscode-editorIndentGuide-background1, #404060); 234 border-radius: 4px; 235 background: var(--vscode-textCodeBlock-background, rgba(255, 255, 255, 0.06)); 236 box-shadow: 0 1px 0 var(--vscode-editorIndentGuide-background1, #404060); 237} 238 239mark { 240 background: rgba(240, 198, 116, 0.3); 241 color: inherit; 242 padding: 0.1em 0.3em; 243 border-radius: 3px; 244} 245 246/* ── Scrollbar (WebKit) ───────────────────────────────── */ 247 248::-webkit-scrollbar { 249 width: 8px; 250 height: 8px; 251} 252 253::-webkit-scrollbar-thumb { 254 background: var(--vscode-scrollbarSlider-background, rgba(168, 112, 144, 0.3)); 255 border-radius: 4px; 256} 257 258::-webkit-scrollbar-thumb:hover { 259 background: var( 260 --vscode-scrollbarSlider-hoverBackground, 261 rgba(168, 112, 144, 0.5) 262 ); 263}