All Collections
Troubleshooting
Dark Code Block Formatting
Dark Code Block Formatting

With some themes and templates, the default code block formatting can look odd. A small additional CSS can fix this formatting issue:

Charlene Abranilla avatar
Written by Charlene Abranilla
Updated over a week ago

With some themes and templates, the default code block formatting can look odd. A small additional CSS can fix this formatting issue:

.notion-code code, .notion-code pre {
text-shadow: rgba(255,255,255,.1) 1px 1px !important;
background-color: #ddd !important;
}
Did this answer your question?