Skip to content

Commit f8b793d

Browse files
committed
feat: new theme colors: code and codeBg
1 parent 782ef77 commit f8b793d

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

src/common-elements/headers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ export const headerCommonMixin = level => css`
1818
export const H1 = styled.h1`
1919
${headerCommonMixin(1)};
2020
color: ${props => props.theme.colors.main};
21-
text-transform: capitalize;
2221
`;
2322

2423
export const H2 = styled.h2`

src/components/Markdown/styles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ export const markdownCss = css`
3030
}
3131
3232
code {
33-
color: #e53935;
34-
background-color: rgba(38, 50, 56, 0.04);
33+
color: ${({ theme }) => theme.colors.code};
34+
background-color: ${({ theme }) => theme.colors.codeBg};
3535
font-family: ${props => props.theme.code.fontFamily};
3636
border-radius: 2px;
3737
border: 1px solid rgba(38, 50, 56, 0.1);

src/theme.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ const defaultTheme: ThemeInterface = {
1414
error: '#e53935',
1515
info: '#87ceeb',
1616
text: '#263238',
17+
code: '#e53935',
18+
codeBg: 'rgba(38, 50, 56, 0.04)',
1719
warning: '#f1c400',
1820
http: {
1921
get: '#6bbd5b',
@@ -118,6 +120,8 @@ export interface ResolvedThemeInterface {
118120
error: string;
119121
info: string;
120122
text: string;
123+
code: string;
124+
codeBg: string;
121125
warning: string;
122126
http: {
123127
get: string;

0 commit comments

Comments
 (0)