Skip to content

Commit 644ce54

Browse files
committed
#648 다크모드 색상 개선 및 코드 에디터 테마 통일
- 다크모드 배경색을 프로그래머스와 유사한 톤(#263238)으로 변경 - 문제 본문 텍스트 색상이 하드코딩(#111111)되어 다크모드에서도 검게 보이던 문제를 CSS 변수(--ps-content-text-color)로 수정 - 코드 에디터(ayu-mirage 테마) 배경색을 좌측 패널과 통일하여 전체적으로 일관된 다크모드 UI 제공
1 parent 35b27d5 commit 644ce54

3 files changed

Lines changed: 19 additions & 9 deletions

File tree

frontend/src/pages/oj/App.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,15 @@ h1.main-title {
167167
168168
:root.dark.problem {
169169
/* Problem Solving Page */
170-
--ps-background-color: #181c25;
170+
--ps-background-color: #263238;
171171
/* Problem Solving Page - Inner Content */
172-
--ps-content-color: #1f2430;
173-
--ps-content-text-color: #b2c0cc;
172+
--ps-content-color: #2e3c43;
173+
--ps-content-text-color: #ececec;
174174
--ps-content-title-color: #ffffff;
175-
--ps-content-pre-background-color: #1a1f29;
176-
--ps-content-pre-border-color: rgba(140, 140, 140, 0.29);
177-
--ps-content-code-background-color: #1b212c;
178-
--ps-content-code-text-color: #ffffff;
175+
--ps-content-pre-background-color: #233038;
176+
--ps-content-pre-border-color: rgba(160, 160, 160, 0.2);
177+
--ps-content-code-background-color: #1e2a30;
178+
--ps-content-code-text-color: #ececec;
179179
/* Code Submission */
180180
--submit-btn-color: #343f5a;
181181
--submit-btn-hover-color: #364361;
@@ -213,7 +213,7 @@ h1.main-title {
213213
--ai-assistant-close-hover-text-color: #ffffff;
214214
--ai-assistant-error-text-color: #ff9e9e;
215215
216-
--bg-color: #1f2430;
216+
--bg-color: #263238;
217217
--text-color: #ffffff;
218218
--difficulty-color: #5a6885;
219219
--custom-btn-hover-color: #465477;

frontend/src/pages/oj/views/problem/problemSolving/problemSolvingComponent/CodeEditor.vue

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,16 @@ export default {
210210
border: 1px solid var(--border-color);
211211
}
212212
213+
.cm-s-ayu-mirage.CodeMirror,
214+
.cm-s-ayu-mirage .CodeMirror-scroll {
215+
background-color: #2e3c43 !important;
216+
}
217+
218+
.cm-s-ayu-mirage .CodeMirror-gutters {
219+
background-color: #263238 !important;
220+
border-right: 1px solid rgba(160, 160, 160, 0.15) !important;
221+
}
222+
213223
.cm-s-ayu-mirage .CodeMirror-matchingbracket {
214224
text-decoration: none !important;
215225
color: white !important;

frontend/src/pages/oj/views/problem/problemSolving/problemSolvingComponent/ProblemDetailFlexibleContainer.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ export default defineComponent({
421421
font-weight: 400;
422422
line-height: 1.6;
423423
letter-spacing: 0.01em;
424-
color: #111111 !important;
424+
color: var(--ps-content-text-color) !important;
425425
}
426426
427427
.sample {

0 commit comments

Comments
 (0)