Skip to content

Commit 9a69926

Browse files
committed
Handle dark theme exceptions
1 parent 61763ff commit 9a69926

File tree

11 files changed

+21
-8
lines changed

11 files changed

+21
-8
lines changed

src/components/auth/AuthEmailForm.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ const AuthEmailFormBlock = styled.form`
1717
border: 1px solid ${themedPalette.border3};
1818
color: ${themedPalette.text1};
1919
border-right: none;
20+
outline: none;
21+
&:focus {
22+
border: 1px solid ${themedPalette.primary1};
23+
}
2024
&::placeholder {
2125
color: ${themedPalette.text3};
2226
}
@@ -26,7 +30,7 @@ const AuthEmailFormBlock = styled.form`
2630
}
2731
button {
2832
background: ${themedPalette.primary1};
29-
color: white;
33+
color: ${themedPalette.button_text};
3034
font-size: 1rem;
3135
font-weight: bold;
3236
outline: none;

src/components/auth/AuthEmailSuccess.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const AuthEmailSuccessBlock = styled.div`
1212
padding-left: 0.75rem;
1313
padding-right: 0.75rem;
1414
height: 3rem;
15-
color: ${themedPalette.primary1};
15+
color: ${palette.teal9};
1616
.icon {
1717
font-size: 1.5rem;
1818
}

src/components/common/LabelInput.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const LabelInputBlock = styled.div<{ focus: boolean }>`
2424
}
2525
2626
input {
27+
background: transparent;
2728
font-size: 1.5rem;
2829
border: none;
2930
outline: none;

src/components/common/MarkdownEditor.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import './atom-one-light.css';
55
import './atom-one-dark.css';
66
import 'codemirror/lib/codemirror.css';
77
import { themedPalette } from '../../lib/styles/themes';
8-
import palette from '../../lib/styles/palette';
8+
99
import 'codemirror/mode/markdown/markdown';
1010
import 'codemirror/addon/display/placeholder';
1111

@@ -74,7 +74,7 @@ const MarkdownEditor = ({
7474
if (!textArea.current) return;
7575
const cm = CodeMirror.fromTextArea(textArea.current, {
7676
mode: 'markdown',
77-
theme: 'one-light',
77+
theme: 'one-dark',
7878
placeholder: '당신은 어떤 사람인가요? 당신에 대해서 알려주세요.',
7979
lineWrapping: true,
8080
});

src/components/common/atom-one-dark.css

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
font-weight: 350;
1111
font-size: 18px;
1212
color: #abb2bf;
13-
background-color: #121212;
13+
background-color: #121212!important;
1414
}
15-
.cm-s-one-dark .CodeMirror-selected {background-color: #3e4451;}
15+
.cm-s-one-dark .CodeMirror-selected {background-color: rgba(255,255,255,0.15)!important;}
1616
.cm-s-one-dark .CodeMirror-gutter,
1717
.cm-s-one-dark .CodeMirror-gutters {
1818
border: none;

src/components/post/PostCommentsWrite.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ const StyledTextarea = styled(TextareaAutosize)`
3333
${media.small} {
3434
margin-bottom: 1rem;
3535
}
36+
background: ${themedPalette.bg_element1};
3637
`;
3738

3839
export interface PostCommentsWriteProps {

src/components/write/TagInput.tsx

+1
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ const StyledInput = styled.input`
186186
margin-bottom: 0.75rem;
187187
min-width: 8rem;
188188
border: none;
189+
color: ${themedPalette.text1};
189190
`;
190191

191192
const Tag = styled.div`

src/components/write/WriteFooter.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const WriteFooterBlock = styled.div`
1111
height: 4rem;
1212
width: 100%;
1313
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
14-
background: ${themedPalette.bg_element9};
14+
background: ${themedPalette.editor_footer};
1515
display: flex;
1616
justify-content: space-between;
1717
align-items: center;

src/lib/styles/palette.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ export const buttonColorMap: {
6060
},
6161
darkGray: {
6262
background: themedPalette.bg_element5,
63-
color: 'white',
63+
color: themedPalette.button_text,
6464
hoverBackground: themedPalette.bg_element6,
6565
},
6666
transparent: {

src/lib/styles/themes.ts

+3
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ type ThemeVariables = {
2727

2828
slight_layer: string;
2929
opaque_layer: string;
30+
editor_footer: string;
3031
};
3132

3233
type Theme = 'light' | 'dark';
@@ -63,6 +64,7 @@ const themeVariableSets: Record<Theme, ThemeVariables> = {
6364

6465
slight_layer: 'rgba(0,0,0,0.05)',
6566
opaque_layer: 'rgba(249,249,249,0.85)',
67+
editor_footer: '#FFFFFF',
6668
},
6769
dark: {
6870
bg_page1: '#121212',
@@ -93,6 +95,7 @@ const themeVariableSets: Record<Theme, ThemeVariables> = {
9395

9496
slight_layer: 'rgba(255,255,255,0.1)',
9597
opaque_layer: 'rgba(0, 0, 0, 0.85)',
98+
editor_footer: '#2E2E2E',
9699
},
97100
};
98101

src/static/svg/index.ts

+3
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@ export { ReactComponent as SearchIcon } from './icon-search.svg'; // iconmonstr-
2020
export { ReactComponent as SearchIcon2 } from './icon-search-2.svg';
2121
export { ReactComponent as VelogIcon } from './velog-icon.svg';
2222
export { ReactComponent as CheckIcon } from './icon-check.svg';
23+
24+
export { ReactComponent as MoonIcon } from './icon-moon.svg';
25+
export { ReactComponent as SunIcon } from './icon-sun.svg';

0 commit comments

Comments
 (0)