File tree 20 files changed +88
-54
lines changed
src/components/typography 20 files changed +88
-54
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @giveth/ui-design-system" ,
3
- "version" : " 1.8.23 " ,
3
+ "version" : " 1.8.25 " ,
4
4
"files" : [
5
5
" /lib"
6
6
],
Original file line number Diff line number Diff line change @@ -5,20 +5,20 @@ export interface IButtonTextProps {
5
5
}
6
6
7
7
export const ButtonText = styled . a < IButtonTextProps > `
8
- font-family: Red Hat Text;
8
+ font-family: Red Hat Text, sans-serif ;
9
9
font-style: normal;
10
10
text-transform: uppercase;
11
11
font-weight: 700;
12
12
${ props => {
13
13
switch ( props . size ) {
14
14
case 'small' :
15
- return 'font-size: 12px ;line-height: 16px ;' ;
15
+ return 'font-size: 0.75rem ;line-height: 133% ;' ;
16
16
case 'medium' :
17
- return 'font-size: 14px ;line-height: 18px ;' ;
17
+ return 'font-size: 0.875rem ;line-height: 129% ;' ;
18
18
case 'large' :
19
- return 'font-size: 16px ;line-height: 18px ;' ;
19
+ return 'font-size: 1rem ;line-height: 113% ;' ;
20
20
default :
21
- return 'font-size: 14px ;line-height: 18px ;' ;
21
+ return 'font-size: 0.875rem ;line-height: 129% ;' ;
22
22
}
23
23
} }
24
24
` ;
Original file line number Diff line number Diff line change @@ -6,21 +6,21 @@ export interface IGLinkProps {
6
6
7
7
export const GLink = styled . a < IGLinkProps > `
8
8
/* Link/Tiny */
9
- font-family: Red Hat Text;
9
+ font-family: Red Hat Text, sans-serif ;
10
10
font-style: normal;
11
11
font-weight: normal;
12
12
${ props => {
13
13
switch ( props . size ) {
14
14
case 'Tiny' :
15
- return 'font-size: 10px ;line-height: normal ;' ;
15
+ return 'font-size: 0.625rem ;line-height: 132% ;' ;
16
16
case 'Small' :
17
- return 'font-size: 12px ;line-height: normal ;' ;
17
+ return 'font-size: 0.75rem ;line-height: 132% ;' ;
18
18
case 'Medium' :
19
- return 'font-size: 14px ;line-height: 160 %;' ;
19
+ return 'font-size: 0.875rem ;line-height: 157 %;' ;
20
20
case 'Big' :
21
- return 'font-size: 16px ;line-height: normal ;' ;
21
+ return 'font-size: 1rem ;line-height: 132% ;' ;
22
22
default :
23
- return 'font-size: 14px ;line-height: 160 %;' ;
23
+ return 'font-size: 0.875rem ;line-height: 157 %;' ;
24
24
}
25
25
} }
26
26
` ;
Original file line number Diff line number Diff line change @@ -6,17 +6,18 @@ export interface IOverlineProps {
6
6
7
7
export const Overline = styled . a < IOverlineProps > `
8
8
/* Overline */
9
- font-family: Red Hat Text;
9
+ font-family: Red Hat Text, sans-serif;
10
+ line-height: 132%;
10
11
${ props => {
11
12
switch ( props . styleType ) {
12
13
case 'Small' :
13
- return 'font-size: 10px;line-height: normal ;font-style: normal;font-weight: 500;' ;
14
+ return 'font-size: 0.625rem ;font-style: normal;font-weight: 500;' ;
14
15
case 'Regular' :
15
- return 'font-size: 14px;line-height: normal ;font-style: normal;font-weight: 500;' ;
16
+ return 'font-size: 0.875rem ;font-style: normal;font-weight: 500;' ;
16
17
case 'Italic' :
17
- return 'font-size: 14px;line-height: normal ;font-style: italic;font-weight: normal;' ;
18
+ return 'font-size: 0.875rem ;font-style: italic;font-weight: normal;' ;
18
19
default :
19
- return 'font-size: 14px;line-height: normal ;font-style: normal;font-weight: 500;' ;
20
+ return 'font-size: 0.875rem ;font-style: normal;font-weight: 500;' ;
20
21
}
21
22
} }
22
23
` ;
Original file line number Diff line number Diff line change @@ -6,19 +6,20 @@ export interface IQuoteTextProps {
6
6
7
7
export const QuoteText = styled . div < IQuoteTextProps > `
8
8
/* QuoteText */
9
- font-family: Red Hat Text;
9
+ font-family: Red Hat Text, sans-serif ;
10
10
font-weight: normal;
11
11
font-style: normal;
12
+ line-height: 134%;
12
13
${ props => {
13
14
switch ( props . size ) {
14
15
case 'small' :
15
- return 'font-size: 24px;line-height: normal ;' ;
16
+ return 'font-size: 1.5rem ;' ;
16
17
case 'medium' :
17
- return 'font-size: 28px;line-height: 134% ;' ;
18
+ return 'font-size: 1.75rem ;' ;
18
19
case 'large' :
19
- return 'font-size: 32px;line-height: 134% ;' ;
20
+ return 'font-size: 2rem ;' ;
20
21
default :
21
- return 'font-size: 28px;line-height: 134% ;' ;
22
+ return 'font-size: 1.75rem ;' ;
22
23
}
23
24
} }
24
25
` ;
Original file line number Diff line number Diff line change @@ -6,9 +6,9 @@ export interface ICaptionProps {
6
6
7
7
export const Caption = styled . div < ICaptionProps > `
8
8
/* Body/Caption */
9
- font-family: Red Hat Text;
9
+ font-family: Red Hat Text, sans-serif ;
10
10
font-style: normal;
11
11
font-weight: ${ props => ( props . medium ? 500 : 400 ) } ;
12
- font-size: 14px ;
12
+ font-size: 0.875rem ;
13
13
line-height: 150%;
14
14
` ;
Original file line number Diff line number Diff line change @@ -5,13 +5,13 @@ export interface ILeadProps {
5
5
}
6
6
7
7
const fontSize = {
8
- medium : '20px ' ,
9
- large : '24px ' ,
8
+ medium : '1.25rem ' ,
9
+ large : '1.5rem ' ,
10
10
} ;
11
11
12
12
export const Lead = styled . div < ILeadProps > `
13
13
/* Body/Lead */
14
- font-family: Red Hat Text;
14
+ font-family: Red Hat Text, sans-serif ;
15
15
font-style: normal;
16
16
font-weight: normal;
17
17
line-height: 150%;
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import styled from 'styled-components';
2
2
3
3
export const P = styled . div `
4
4
/* Body/P */
5
- font-family: Red Hat Text;
5
+ font-family: Red Hat Text, sans-serif ;
6
6
font-style: normal;
7
7
font-weight: normal;
8
- font-size: 16px ;
8
+ font-size: 1rem ;
9
9
line-height: 150%;
10
10
` ;
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ import styled from 'styled-components';
2
2
3
3
export const SemiTitle = styled . div `
4
4
/* Body/SEMI-TITLE */
5
- font-family: Red Hat Text;
5
+ font-family: Red Hat Text, sans-serif ;
6
6
font-style: normal;
7
7
font-weight: normal;
8
- font-size: 16px ;
8
+ font-size: 1rem ;
9
9
line-height: 150%;
10
10
text-transform: uppercase;
11
11
` ;
Original file line number Diff line number Diff line change @@ -2,9 +2,9 @@ import styled from 'styled-components';
2
2
3
3
export const Subline = styled . div `
4
4
/* Body/Subline */
5
- font-family: Red Hat Text;
5
+ font-family: Red Hat Text, sans-serif ;
6
6
font-style: normal;
7
7
font-weight: normal;
8
- font-size: 12px ;
8
+ font-size: 0.75rem ;
9
9
line-height: 150%;
10
10
` ;
Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ import styled from 'styled-components';
2
2
3
3
export const Title = styled . div `
4
4
/* Body/Title */
5
- font-family: 'Red Hat Display';
5
+ font-family: 'Red Hat Display', sans-serif ;
6
6
font-style: normal;
7
7
font-weight: 700;
8
- font-size: 32px ;
9
- line-height: normal ;
8
+ font-size: 2rem ;
9
+ line-height: 132% ;
10
10
letter-spacing: -0.01em;
11
11
` ;
Original file line number Diff line number Diff line change 1
1
import styled from 'styled-components' ;
2
+ import { mediaQueries } from '../../../common/deviceSize' ;
2
3
3
4
export const D1 = styled . div `
4
5
/* Display/D1 */
5
- font-family: TeX Gyre Adventor;
6
+ font-family: TeX Gyre Adventor, sans-serif ;
6
7
font-style: normal;
7
8
font-weight: 700;
8
- font-size: 6.69rem ;
9
+ font-size: 5rem ;
9
10
line-height: 130%;
10
11
letter-spacing: -0.04em;
12
+ ${ mediaQueries . tablet } {
13
+ font-size: 6.69rem;
14
+ }
11
15
` ;
Original file line number Diff line number Diff line change 1
1
import styled from 'styled-components' ;
2
+ import { mediaQueries } from '../../../common/deviceSize' ;
2
3
3
4
export const D2 = styled . div `
4
5
/* Display/D2 */
5
- font-family: TeX Gyre Adventor;
6
+ font-family: TeX Gyre Adventor, sans-serif ;
6
7
font-style: normal;
7
8
font-weight: 700;
8
- font-size: 6.06rem ;
9
+ font-size: 4.625rem ;
9
10
line-height: 130%;
10
11
letter-spacing: -0.04em;
12
+ ${ mediaQueries . tablet } {
13
+ font-size: 6.06rem;
14
+ }
11
15
` ;
Original file line number Diff line number Diff line change 1
1
import styled from 'styled-components' ;
2
+ import { mediaQueries } from '../../../common/deviceSize' ;
2
3
3
4
export const D3 = styled . div `
4
5
/* Display/D3 */
5
- font-family: TeX Gyre Adventor;
6
+ font-family: TeX Gyre Adventor, sans-serif ;
6
7
font-style: normal;
7
8
font-weight: 700;
8
- font-size: 5.5rem ;
9
+ font-size: 4.25rem ;
9
10
line-height: 120%;
10
11
letter-spacing: -0.04em;
12
+ ${ mediaQueries . tablet } {
13
+ font-size: 5.5rem;
14
+ }
11
15
` ;
Original file line number Diff line number Diff line change 1
1
import styled from 'styled-components' ;
2
2
import { IHeadingProps } from './common' ;
3
+ import { mediaQueries } from '../../../common/deviceSize' ;
3
4
4
5
export const H1 = styled . h1 < IHeadingProps > `
5
6
/* Heading/H1 | 500 */
6
- font-family: TeX Gyre Adventor;
7
+ font-family: TeX Gyre Adventor, sans-serif ;
7
8
font-style: normal;
8
9
font-weight: ${ props => props . weight || 500 } ;
9
- font-size: 4.13rem ;
10
+ font-size: 2.5rem ;
10
11
line-height: 130%;
11
12
letter-spacing: -0.03em;
12
13
margin-top: 0;
13
14
margin-bottom: 0;
15
+ ${ mediaQueries . tablet } {
16
+ font-size: 4.125rem;
17
+ }
14
18
` ;
Original file line number Diff line number Diff line change 1
1
import styled from 'styled-components' ;
2
2
import { IHeadingProps } from './common' ;
3
+ import { mediaQueries } from '../../../common/deviceSize' ;
3
4
4
5
export const H2 = styled . h2 < IHeadingProps > `
5
6
/* Heading/H2 | 500 */
6
- font-family: TeX Gyre Adventor;
7
+ font-family: TeX Gyre Adventor, sans-serif ;
7
8
font-style: normal;
8
9
font-weight: ${ props => props . weight || 500 } ;
9
- font-size: 3 .25rem;
10
+ font-size: 2 .25rem;
10
11
line-height: 130%;
11
12
letter-spacing: -0.02em;
12
13
margin-top: 0;
13
14
margin-bottom: 0;
15
+ ${ mediaQueries . tablet } {
16
+ font-size: 3.25rem;
17
+ }
14
18
` ;
Original file line number Diff line number Diff line change 1
1
import styled from 'styled-components' ;
2
2
import { IHeadingProps } from './common' ;
3
+ import { mediaQueries } from '../../../common/deviceSize' ;
3
4
4
5
export const H3 = styled . h3 < IHeadingProps > `
5
6
/* Heading/H3 | 500 */
6
- font-family: TeX Gyre Adventor;
7
+ font-family: TeX Gyre Adventor, sans-serif ;
7
8
font-style: normal;
8
9
font-weight: ${ props => props . weight || 500 } ;
9
- font-size: 2.56rem ;
10
+ font-size: 2rem ;
10
11
line-height: 130%;
11
12
margin-top: 0;
12
13
margin-bottom: 0;
14
+ ${ mediaQueries . tablet } {
15
+ font-size: 2.56rem;
16
+ }
13
17
` ;
Original file line number Diff line number Diff line change 1
1
import styled from 'styled-components' ;
2
2
import { IHeadingProps } from './common' ;
3
+ import { mediaQueries } from '../../../common/deviceSize' ;
3
4
4
5
export const H4 = styled . h4 < IHeadingProps > `
5
6
/* Heading/H4 | 500 */
6
- font-family: TeX Gyre Adventor;
7
+ font-family: TeX Gyre Adventor, sans-serif ;
7
8
font-style: normal;
8
9
font-weight: ${ props => props . weight || 500 } ;
9
- font-size: 2rem ;
10
+ font-size: 1.75rem ;
10
11
line-height: normal;
11
12
letter-spacing: -0.01em;
12
13
margin-top: 0;
13
14
margin-bottom: 0;
15
+ ${ mediaQueries . tablet } {
16
+ font-size: 2rem;
17
+ }
14
18
` ;
Original file line number Diff line number Diff line change 1
1
import styled from 'styled-components' ;
2
2
import { IHeadingProps } from './common' ;
3
+ import { mediaQueries } from '../../../common/deviceSize' ;
3
4
4
5
export const H5 = styled . h5 < IHeadingProps > `
5
6
/* Heading/H5 | 500 */
6
- font-family: TeX Gyre Adventor;
7
+ font-family: TeX Gyre Adventor, sans-serif ;
7
8
font-style: normal;
8
9
font-weight: ${ props => props . weight || 500 } ;
9
- font-size: 1.56rem ;
10
+ font-size: 1.44rem ;
10
11
line-height: normal;
11
12
letter-spacing: -0.005em;
12
13
margin-top: 0;
13
14
margin-bottom: 0;
15
+ ${ mediaQueries . tablet } {
16
+ font-size: 1.56rem;
17
+ }
14
18
` ;
Original file line number Diff line number Diff line change @@ -3,10 +3,10 @@ import { IHeadingProps } from './common';
3
3
4
4
export const H6 = styled . h6 < IHeadingProps > `
5
5
/* Heading/H6 | 500 */
6
- font-family: TeX Gyre Adventor;
6
+ font-family: TeX Gyre Adventor, sans-serif ;
7
7
font-style: normal;
8
8
font-weight: ${ props => props . weight || 500 } ;
9
- font-size: 1.13rem ;
9
+ font-size: 1.125rem ;
10
10
line-height: normal;
11
11
letter-spacing: -0.005em;
12
12
margin-top: 0;
You can’t perform that action at this time.
0 commit comments