Skip to content

Commit

Permalink
Merge branch 'hotfix/remove-color-from-typograhies' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
MohammadPCh committed Oct 11, 2021
2 parents a3608aa + 477e869 commit cb58fc9
Show file tree
Hide file tree
Showing 20 changed files with 2 additions and 37 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@giveth/ui-design-system",
"version": "0.1.1",
"version": "1.0.1",
"files": [
"dist"
],
Expand Down
1 change: 0 additions & 1 deletion src/components/typography/ButtonText.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../common/colors";

export interface IButtonTextProps {
size?: 'small' | 'medium' | 'large';
Expand Down
3 changes: 0 additions & 3 deletions src/components/typography/GLink.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../common/colors";

export interface IGLinkProps {
size?: 'Tiny' | 'Small' | 'Medium' | 'Big';
Expand All @@ -24,6 +23,4 @@ export const GLink = styled.a<IGLinkProps>`
break;
}
}}
color: ${brandColors.deep[900]};
`;
2 changes: 0 additions & 2 deletions src/components/typography/Overline.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../common/colors";

export interface IOverlineProps {
styleType?: 'Small' | 'Regular' | 'Italic';
Expand All @@ -20,5 +19,4 @@ export const Overline = styled.a<IOverlineProps>`
break;
}
}}
color: ${brandColors.deep[900]};
`;
2 changes: 0 additions & 2 deletions src/components/typography/body/Caption.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../../common/colors";

export interface ICaptionProps {
medium?: boolean;
Expand All @@ -12,5 +11,4 @@ export const Caption = styled.div<ICaptionProps>`
font-weight: ${props => props.medium ? 500 : 400};
font-size: 14px;
line-height: 150%;
color: ${brandColors.deep[900]};
`;
2 changes: 0 additions & 2 deletions src/components/typography/body/Lead.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../../common/colors";

export const Lead = styled.div`
/* Body/Lead */
Expand All @@ -8,5 +7,4 @@ export const Lead = styled.div`
font-weight: normal;
font-size: 20px;
line-height: 150%;
color: ${brandColors.deep[900]};
`;
2 changes: 0 additions & 2 deletions src/components/typography/body/P.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../../common/colors";

export const P = styled.div`
/* Body/P */
Expand All @@ -8,5 +7,4 @@ export const P = styled.div`
font-weight: normal;
font-size: 16px;
line-height: 150%;
color: ${brandColors.deep[900]};
`;
2 changes: 0 additions & 2 deletions src/components/typography/body/SemiTitle.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../../common/colors";

export const SemiTitle = styled.div`
/* Body/SEMI-TITLE */
Expand All @@ -9,5 +8,4 @@ export const SemiTitle = styled.div`
font-size: 16px;
line-height: 150%;
text-transform: uppercase;
color: ${brandColors.deep[900]};
`;
2 changes: 0 additions & 2 deletions src/components/typography/body/Subline.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../../common/colors";

export const Subline = styled.div`
/* Body/Subline */
Expand All @@ -8,5 +7,4 @@ export const Subline = styled.div`
font-weight: normal;
font-size: 12px;
line-height: 150%;
color: ${brandColors.deep[900]};
`;
2 changes: 0 additions & 2 deletions src/components/typography/body/Title.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../../common/colors";

export const Title = styled.div`
/* Body/Title */
Expand All @@ -9,5 +8,4 @@ export const Title = styled.div`
font-size: 32px;
line-height: 42px;
letter-spacing: -0.01em;
color: ${brandColors.deep[900]};
`;
2 changes: 0 additions & 2 deletions src/components/typography/displays/D1.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../../common/colors";

export const D1 = styled.div`
/* Display/D1 */
Expand All @@ -9,5 +8,4 @@ export const D1 = styled.div`
font-size: 107px;
line-height: 130%;
letter-spacing: -0.04em;
color: ${brandColors.deep[900]};
`;
2 changes: 0 additions & 2 deletions src/components/typography/displays/D2.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../../common/colors";

export const D2 = styled.div`
/* Display/D2 */
Expand All @@ -9,5 +8,4 @@ export const D2 = styled.div`
font-size: 97px;
line-height: 130%;
letter-spacing: -0.04em;
color: ${brandColors.deep[900]};
`;
2 changes: 0 additions & 2 deletions src/components/typography/displays/D3.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../../common/colors";

export const D3 = styled.div`
/* Display/D3 */
Expand All @@ -9,5 +8,4 @@ export const D3 = styled.div`
font-size: 88px;
line-height: 120%;
letter-spacing: -0.04em;
color: ${brandColors.deep[900]};
`;
2 changes: 0 additions & 2 deletions src/components/typography/headlines/H1.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../../common/colors";
import { IHeadingProps } from "./common";

export const H1 = styled.h1<IHeadingProps>`
Expand All @@ -10,5 +9,4 @@ export const H1 = styled.h1<IHeadingProps>`
font-size: 66px;
line-height: 130%;
letter-spacing: -0.03em;
color: ${brandColors.deep[900]};
`;
2 changes: 0 additions & 2 deletions src/components/typography/headlines/H2.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../../common/colors";
import { IHeadingProps } from "./common";

export const H2 = styled.h2<IHeadingProps>`
Expand All @@ -10,5 +9,4 @@ export const H2 = styled.h2<IHeadingProps>`
font-size: 52px;
line-height: 76px;
letter-spacing: -0.02em;
color: ${brandColors.deep[900]};
`;
2 changes: 0 additions & 2 deletions src/components/typography/headlines/H3.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../../common/colors";
import { IHeadingProps } from "./common";

export const H3 = styled.h3<IHeadingProps>`
Expand All @@ -9,5 +8,4 @@ export const H3 = styled.h3<IHeadingProps>`
font-weight: ${props => props.weight || 500};
font-size: 41px;
line-height: 60px;
color: ${brandColors.deep[900]};
`;
2 changes: 0 additions & 2 deletions src/components/typography/headlines/H4.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../../common/colors";
import { IHeadingProps } from "./common";

export const H4 = styled.h4<IHeadingProps>`
Expand All @@ -10,5 +9,4 @@ export const H4 = styled.h4<IHeadingProps>`
font-size: 32px;
line-height: 47px;
letter-spacing: -0.01em;
color: ${brandColors.deep[900]};
`;
2 changes: 0 additions & 2 deletions src/components/typography/headlines/H5.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../../common/colors";
import { IHeadingProps } from "./common";

export const H5 = styled.h5<IHeadingProps>`
Expand All @@ -10,5 +9,4 @@ export const H5 = styled.h5<IHeadingProps>`
font-size: 25px;
line-height: 36px;
letter-spacing: -0.005em;
color: ${brandColors.deep[900]};
`;
2 changes: 0 additions & 2 deletions src/components/typography/headlines/H6.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import styled from "styled-components";
import { brandColors } from "../../../common/colors";
import { IHeadingProps } from "./common";

export const H6 = styled.h6<IHeadingProps>`
Expand All @@ -10,5 +9,4 @@ export const H6 = styled.h6<IHeadingProps>`
font-size: 18px;
line-height: 26px;
letter-spacing: -0.005em;
color: ${brandColors.deep[900]};
`;
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from "./components";
export * from "./common/colors";

0 comments on commit cb58fc9

Please sign in to comment.