Last active
April 25, 2026 02:31
-
-
Save Borluse/a68bc3f356bb4a4a1b728f33bc936f15 to your computer and use it in GitHub Desktop.
A modified markdown theme based on nxxxsooo's opencode theme
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * OpenCode Theme for VSCode Markdown Preview | |
| * Synced with OpenCode TUI default palette (v1.2.27) | |
| * Dark theme | |
| * Based on nxxxsooo https://github.com/nxxxsooo/opencode-themes | |
| */ | |
| :root { | |
| /* OpenCode TUI dark palette */ | |
| /* --oc-primary: #fab283; warm orange */ | |
| /* --oc-accent: #9d7cd8; purple */ | |
| --oc-accent: #fab283; /* warm orange */ | |
| --oc-primary: #9d7cd8; /* purple */ | |
| --oc-secondary: #5c9cf5; /* blue */ | |
| --oc-red: #e06c75; | |
| --oc-orange: #f5a742; | |
| --oc-green: #7ad659; | |
| --oc-cyan: #56b6c2; | |
| --oc-yellow: #e5c07b; | |
| --oc-text: #eeeeee; /* darkStep12 */ | |
| --oc-text-muted: #808080; /* darkStep11 */ | |
| --oc-bg1: #0a0a0a; /* darkStep1 */ | |
| --oc-bg2: #141414; /* darkStep2 */ | |
| --oc-bg3: #1e1e1e; /* darkStep3 */ | |
| --oc-bg4: #282828; /* darkStep4 */ | |
| --oc-border: #484848; /* darkStep7 */ | |
| --oc-border-active: #606060; /* darkStep8 */ | |
| } | |
| body { | |
| font-size: 15px; | |
| color: var(--oc-text); | |
| line-height: 1.8; | |
| background: var(--oc-bg4); | |
| -webkit-font-smoothing: antialiased; | |
| padding-left: 2em; | |
| } | |
| /* Typography | |
| -------------------------------------------------------- */ | |
| h1, h2, h3, h4, h5, h6 { | |
| color: var(--oc-accent); | |
| font-weight: 600; | |
| letter-spacing: -0.01em; | |
| margin-left: -22px; | |
| } | |
| h1::before, h2::before, h3::before, h4::before, h5::before, h6::before { | |
| font-size: 10px; | |
| font-weight: 700; | |
| color: var(--oc-text-muted); | |
| margin-right: 0.6em; | |
| vertical-align: baseline; | |
| letter-spacing: 0.02em; | |
| } | |
| h1::before { content: "H1"; } | |
| h2::before { content: "H2"; } | |
| h3::before { content: "H3"; } | |
| h4::before { content: "H4"; } | |
| h5::before { content: "H5"; } | |
| h6::before { content: "H6"; } | |
| h1 { | |
| margin-top: 1.6em; | |
| font-size: 2em; | |
| border-bottom: 1px solid var(--oc-border); | |
| padding-bottom: 8px; | |
| } | |
| h2 { | |
| margin-top: 1.8em; | |
| font-size: 1.5em; | |
| } | |
| h3 { | |
| margin-top: 1.5em; | |
| font-size: 1.25em; | |
| } | |
| h4 { | |
| font-size: 1.1em; | |
| } | |
| strong, b { | |
| color: var(--oc-orange); | |
| font-weight: 600; | |
| } | |
| em { | |
| color: var(--oc-yellow); | |
| } | |
| del { | |
| color: var(--oc-text-muted); | |
| } | |
| /* Links */ | |
| a { | |
| color: var(--oc-primary); | |
| text-decoration: none; | |
| } | |
| a:hover { | |
| color: #ffc09f; | |
| text-decoration: underline; | |
| } | |
| /* Lists */ | |
| ul { | |
| list-style: disc; | |
| padding-left: 1.5em; | |
| } | |
| ol { | |
| padding-left: 1.5em; | |
| } | |
| li::marker { | |
| color: var(--oc-secondary); | |
| } | |
| /* Blockquote */ | |
| blockquote { | |
| margin-left: 0; | |
| padding: 12px 16px; | |
| border-left: 4px solid var(--oc-accent); | |
| background-color: var(--oc-bg2); | |
| border-radius: 0 8px 8px 0; | |
| color: var(--oc-text); | |
| } | |
| /* Code */ | |
| code, pre { | |
| font-size: 0.9em; | |
| } | |
| code { | |
| background: var(--oc-bg3); | |
| color: var(--oc-text); | |
| padding: 2px 6px; | |
| border-radius: 4px; | |
| } | |
| pre { | |
| background: var(--oc-bg2); | |
| border: 1px solid var(--oc-border); | |
| border-radius: 8px; | |
| padding: 16px; | |
| margin-bottom: 1.5em; | |
| } | |
| pre code { | |
| background: transparent; | |
| padding: 0; | |
| border-radius: 0; | |
| } | |
| /* Tables */ | |
| table { | |
| margin-bottom: 1.5rem; | |
| border-collapse: collapse; | |
| width: 100%; | |
| } | |
| table th, | |
| table td { | |
| padding: 10px 16px; | |
| line-height: 1.5; | |
| vertical-align: top; | |
| border: 1px solid var(--oc-border); | |
| } | |
| table th { | |
| font-weight: 700; | |
| color: var(--oc-accent); | |
| background-color: var(--oc-bg3); | |
| background-image: | |
| repeating-linear-gradient(45deg, transparent, transparent 4px, rgba(157,124,216,0.08) 4px, rgba(157,124,216,0.08) 5px); | |
| } | |
| table td { | |
| background-color: var(--oc-bg1); | |
| } | |
| table td:first-child { | |
| color: var(--oc-primary); | |
| font-weight: normal; | |
| } | |
| table tbody tr:nth-child(even) td { | |
| background-color: var(--oc-bg1); | |
| } | |
| table tbody tr:nth-child(odd) td { | |
| background-color: var(--oc-bg2); | |
| } | |
| table tbody tr:hover td { | |
| background-color: var(--oc-bg3); | |
| } | |
| /* Horizontal rule */ | |
| hr { | |
| border: none; | |
| border-top: 1px solid var(--oc-border); | |
| margin: 24px 0; | |
| } | |
| /* Selection */ | |
| ::selection { | |
| background-color: rgba(92, 156, 245, 0.3); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment