Skip to content

Commit

Permalink
H2: Set color form theme.colors.text.primary (#1491)
Browse files Browse the repository at this point in the history
* H2: Set color form theme.colors.primary.main

* feat: change heading color configuration from `primary.main` to `text.primary`

Co-authored-by: Oprysk <vyacheslav@redocly.com>
  • Loading branch information
ajeetshah and Oprysk committed Mar 23, 2022
1 parent 09786f2 commit 25be934
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/common-elements/headers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,22 @@ export const headerCommonMixin = level => css`

export const H1 = styled.h1`
${headerCommonMixin(1)};
color: ${({ theme }) => theme.colors.primary.main};
color: ${({ theme }) => theme.colors.text.primary};
${extensionsHook('H1')};
`;

export const H2 = styled.h2`
${headerCommonMixin(2)};
color: black;
color: ${({ theme }) => theme.colors.text.primary};
margin: 0 0 20px;
${extensionsHook('H2')};
`;

export const H3 = styled.h2`
${headerCommonMixin(3)};
color: black;
color: ${({ theme }) => theme.colors.text.primary};
${extensionsHook('H3')};
`;
Expand Down

0 comments on commit 25be934

Please sign in to comment.