Skip to content

Commit ea3e1ac

Browse files
committed
Fix dark mode contrast for AI result text and code blocks
1 parent 3b37f55 commit ea3e1ac

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

app/views/layouts/mysql_genius/application.html.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,13 @@
220220

221221
/* Inline code */
222222
[data-theme="dark"] code { background: #21262d; color: #c9d1d9; }
223+
[data-theme="dark"] pre { background: #161b22; color: #c9d1d9; border-color: #30363d; }
223224
[data-theme="dark"] pre.mg-pre { background: #161b22; color: #c9d1d9; }
225+
[data-theme="dark"] .mg-card-body { color: #c9d1d9; }
226+
[data-theme="dark"] .mg-card-body h1, [data-theme="dark"] .mg-card-body h2, [data-theme="dark"] .mg-card-body h3, [data-theme="dark"] .mg-card-body h4 { color: #c9d1d9; }
227+
[data-theme="dark"] .mg-card-body p, [data-theme="dark"] .mg-card-body li, [data-theme="dark"] .mg-card-body td { color: #c9d1d9; }
228+
[data-theme="dark"] .mg-card-body strong { color: #e6edf3; }
229+
[data-theme="dark"] .mg-card-body a { color: #58a6ff; }
224230

225231
/* Links */
226232
[data-theme="dark"] .mg-link { color: #58a6ff; }

gems/mysql_genius-desktop/lib/mysql_genius/desktop/layout.html.erb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,13 @@
199199
[data-theme="dark"] .mg-dur-moderate { color: #d29922; }
200200
[data-theme="dark"] .mg-dur-slow { color: #f85149; }
201201
[data-theme="dark"] code { background: #21262d; color: #c9d1d9; }
202+
[data-theme="dark"] pre { background: #161b22; color: #c9d1d9; border-color: #30363d; }
202203
[data-theme="dark"] pre.mg-pre { background: #161b22; color: #c9d1d9; }
204+
[data-theme="dark"] .mg-card-body { color: #c9d1d9; }
205+
[data-theme="dark"] .mg-card-body h1, [data-theme="dark"] .mg-card-body h2, [data-theme="dark"] .mg-card-body h3, [data-theme="dark"] .mg-card-body h4 { color: #c9d1d9; }
206+
[data-theme="dark"] .mg-card-body p, [data-theme="dark"] .mg-card-body li, [data-theme="dark"] .mg-card-body td { color: #c9d1d9; }
207+
[data-theme="dark"] .mg-card-body strong { color: #e6edf3; }
208+
[data-theme="dark"] .mg-card-body a { color: #58a6ff; }
203209
[data-theme="dark"] .mg-link { color: #58a6ff; }
204210
[data-theme="dark"] .mg-spinner { border-color: #30363d; border-top-color: #58a6ff; }
205211
[data-theme="dark"] .mg-text-muted { color: #8b949e; }

0 commit comments

Comments
 (0)