Skip to content

Commit

Permalink
#33 refactor: language text 컬러 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
msung99 committed Jun 21, 2024
1 parent 811c542 commit be3a801
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions src/components/post/post-content/post-style/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -179,8 +179,15 @@ export const HtmlWrapper = styled.div`
margin-bottom: 10px;
}
code.language-text {
background-color: ${props => props.theme.post.content.highlight.text};
color: ${props => props.theme.main.text};
font-size: 14.5px;
}
.gatsby-highlight > pre > .language-text {
background-color: ${props => props.theme.post.content.highlight.bg};
color: blue;
padding: -10px;
font-size: 13.5px;
color: ${props => props.theme.post.content.language.text};
Expand Down
7 changes: 4 additions & 3 deletions src/constants/themeConstants.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ export const LIGHT_THEME_COLORS = {
},
content: {
highlight: {
bg: '#F7F9FA'
bg: '#F7F9FA',
text: '#f7f6f2',
},
text: 'black',
blockquote: {
Expand Down Expand Up @@ -90,7 +91,6 @@ export const LIGHT_THEME_COLORS = {
};

export const DARK_THEME_COLORS = {

main: {
background: '#1a1a1a',
text: 'white',
Expand Down Expand Up @@ -138,7 +138,8 @@ export const DARK_THEME_COLORS = {
},
content: {
highlight: {
bg: '#202020'
bg: '#202020',
text: '#2d2d2d',
},
text: '#e8e8e8',
blockquote: {
Expand Down

0 comments on commit be3a801

Please sign in to comment.