Skip to content

Instantly share code, notes, and snippets.

@dance2die
Created March 23, 2026 17:44
Show Gist options
  • Select an option

  • Save dance2die/03fc2e5b7707d2ac1f0df66309f52bdf to your computer and use it in GitHub Desktop.

Select an option

Save dance2die/03fc2e5b7707d2ac1f0df66309f52bdf to your computer and use it in GitHub Desktop.
Stylus CSS style based on Obsidinite
/* =========================================
1. VARIABLES (Light Material / Dark Obsidianite)
========================================= */
:root, html[data-theme="light"] {
--md-surface: #ffffff;
--md-surface-variant: #f1f3f4;
--md-primary: #1a73e8;
--md-border: #dadce0;
--md-shadow-1: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
--md-code-bg: #f8f9fa;
--md-code-text: #d93025;
}
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]), html[data-theme="dark"] {
--md-bg: #100e17 !important;
--md-surface: #100e17 !important;
--md-surface-variant: #191621 !important;
--md-primary: #0fb6d6 !important;
--md-border: rgba(14, 210, 247, 0.15) !important;
--md-shadow-1: none !important; /* Obsidianite is flat */
--md-code-bg: rgba(14, 210, 247, 0.05) !important;
--md-code-text: rgba(14, 210, 247, 0.9) !important;
}
}
/* =========================================
2. GLOBAL TYPOGRAPHY & SPACING
========================================= */
body { font-size: 18px !important; }
p, li, dd { line-height: 1.7 !important; }
p { margin-bottom: 1.2em !important; }
/* =========================================
3. API CARDS (Readability Fix)
========================================= */
dl.py, dl.class, dl.function, dl.method {
background: var(--md-surface) !important;
border: 1px solid var(--md-border) !important;
border-radius: 12px !important;
margin: 32px 0 !important;
box-shadow: var(--md-shadow-1) !important;
overflow: hidden;
}
dl.py > dt {
background: var(--md-surface-variant) !important;
padding: 16px 20px !important;
font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace !important;
font-size: 1.15em !important;
color: var(--md-primary) !important;
border-bottom: 1px solid var(--md-border) !important;
display: block !important;
font-weight: 600 !important;
font-variant-ligatures: contextual !important;
}
dl.py > dd { padding: 20px !important; margin-left: 0 !important; }
dl.py dd dl.py { box-shadow: none !important; margin: 24px 0 0 0 !important; }
/* =========================================
4. CODE BLOCKS & INLINE CODE
========================================= */
pre, code, .highlight, tt, span.pre {
font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace !important;
font-variant-ligatures: contextual !important;
font-size: 0.95em !important;
}
pre { font-size: 14px !important; }
code, .highlight, tt {
background: var(--md-code-bg) !important;
padding: 3px 6px !important;
border-radius: 6px !important;
color: var(--md-code-text) !important;
border: 1px solid var(--md-border) !important;
}
/* Prevent double boxes on nested spans */
code span.pre, a span.pre, tt span.pre, pre code {
padding: 0 !important; background: transparent !important; border: none !important; color: inherit !important;
}
/* =========================================
5. OBSIDIANITE STRICT OVERRIDES (Dark Only)
========================================= */
@media (prefers-color-scheme: dark) {
body, .body { background-color: var(--md-bg) !important; }
.sphinxsidebar { background-color: #0d0b12 !important; border-right: 1px solid var(--md-border) !important; }
/* Headings & Magenta Underlines */
h1, h2, h3, h4, h5, h6 { color: #cbdbe5 !important; }
h1 { color: var(--md-primary) !important; }
h1, h2, h3 {
border-bottom: 1px solid !important;
border-image-slice: 1 !important;
border-image-source: linear-gradient(to right, #f4569d, #100e17, #100e17, #100e17) !important;
padding-bottom: 10px !important;
}
/* Gradient Bold Text */
strong, b {
-webkit-background-clip: text !important;
-webkit-text-fill-color: transparent !important;
color: #7aa2f7 !important;
background-image: linear-gradient(62deg, #87c2fd 0%, #dcb9fc 100%) !important;
}
/* API Card Headers */
dl.py > dt { background: linear-gradient(135deg, rgba(32, 28, 41, 0.45), #100e17) !important; }
/* Code Block Dracula Theme overrides */
pre { background: #282936 !important; border: 1px solid #191621 !important; color: #ccc !important; }
code, .highlight, tt { border: none !important; } /* Flat inline code */
}
@dance2die
Copy link
Copy Markdown
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment