Skip to content

Commit 5f340aa

Browse files
committed
feat: updated the code highlight style
1 parent 60bab71 commit 5f340aa

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

assets/css/extended/monokai-theme.css

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -132,14 +132,15 @@
132132
color: #a6e22e !important;
133133
}
134134

135-
/* Inline code styling with authentic Monokai */
135+
/* Inline code styling - subtle and clean */
136136
:not(pre) > code {
137-
background-color: #3e3d32 !important;
138-
color: #f8f8f2 !important;
137+
background-color: rgba(175, 184, 193, 0.2) !important;
138+
color: #e83e8c !important;
139139
padding: 0.2rem 0.4rem;
140140
border-radius: 4px;
141141
font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
142142
font-size: 0.85rem;
143+
border: 1px solid rgba(175, 184, 193, 0.3);
143144
}
144145

145146
/* Line numbers styling for Monokai */
@@ -255,8 +256,9 @@
255256
}
256257

257258
[data-theme="dark"] :not(pre) > code {
258-
background-color: #3e3d32 !important;
259-
color: #f8f8f2 !important;
259+
background-color: rgba(110, 118, 129, 0.3) !important;
260+
color: #ff79c6 !important;
261+
border: 1px solid rgba(110, 118, 129, 0.4);
260262
}
261263

262264
/* Light mode adjustments for better contrast */
@@ -269,6 +271,7 @@
269271
}
270272

271273
[data-theme="light"] :not(pre) > code {
272-
background-color: #3e3d32 !important;
273-
color: #f8f8f2 !important;
274+
background-color: rgba(175, 184, 193, 0.2) !important;
275+
color: #d63384 !important;
276+
border: 1px solid rgba(175, 184, 193, 0.3);
274277
}

0 commit comments

Comments
 (0)