Skip to content

Commit

Permalink
feat: new theme colors: code and codeBg
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed May 28, 2018
1 parent 782ef77 commit f8b793d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/common-elements/headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ export const headerCommonMixin = level => css`
export const H1 = styled.h1`
${headerCommonMixin(1)};
color: ${props => props.theme.colors.main};
text-transform: capitalize;
`;

export const H2 = styled.h2`
Expand Down
4 changes: 2 additions & 2 deletions src/components/Markdown/styles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ export const markdownCss = css`
}
code {
color: #e53935;
background-color: rgba(38, 50, 56, 0.04);
color: ${({ theme }) => theme.colors.code};
background-color: ${({ theme }) => theme.colors.codeBg};
font-family: ${props => props.theme.code.fontFamily};
border-radius: 2px;
border: 1px solid rgba(38, 50, 56, 0.1);
Expand Down
4 changes: 4 additions & 0 deletions src/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ const defaultTheme: ThemeInterface = {
error: '#e53935',
info: '#87ceeb',
text: '#263238',
code: '#e53935',
codeBg: 'rgba(38, 50, 56, 0.04)',
warning: '#f1c400',
http: {
get: '#6bbd5b',
Expand Down Expand Up @@ -118,6 +120,8 @@ export interface ResolvedThemeInterface {
error: string;
info: string;
text: string;
code: string;
codeBg: string;
warning: string;
http: {
get: string;
Expand Down

0 comments on commit f8b793d

Please sign in to comment.