Skip to content

Commit 6057aa1

Browse files
authored
Override the tailwind typography inline code styles (#11)
1 parent 7e9650c commit 6057aa1

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

src/styles/global.css

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@
55
.kdl-section {
66
@apply py-10 px-4 prose prose-xl mx-auto;
77
}
8+
9+
code {
10+
background-color: #efefef;
11+
padding: 0.1em 0.5em;
12+
border-radius: 4px;
13+
}

tailwind.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ module.exports = {
99
typography: {
1010
DEFAULT: {
1111
css: {
12+
"code::before": {
13+
content: "none",
14+
},
15+
"code::after": {
16+
content: "none",
17+
},
1218
"pre code::after": {
1319
content: "none",
1420
},

0 commit comments

Comments
 (0)