Skip to main content
All CollectionsTroubleshooting
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 2 years 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?