@@ -2,14 +2,15 @@ import styled, { createGlobalStyle, css, keyframes } from 'styled-components';
22
33export { createGlobalStyle , css , keyframes , styled } ;
44
5- export const screens = {
6- content : '662px' ,
7- sm : '640px' ,
8- md : '768px' ,
9- lg : '1024px' ,
10- xl : '1280px' ,
11- '2xl' : '1440px' ,
12- } ;
5+ export {
6+ screens ,
7+ textColors ,
8+ fontWeight ,
9+ fontSizes ,
10+ lineHeight ,
11+ letterSpacing ,
12+ } from './tokens' ;
13+ export type { TextColor , FontWeight , FontSize } from './tokens' ;
1314
1415export const textGradientMixin = css `
1516 background: var(--text-gradient);
@@ -23,73 +24,6 @@ export const textOrangeGradientMixin = css`
2324 -webkit-text-fill-color: transparent;
2425` ;
2526
26- export const textColors = {
27- lightGrey : 'var(--text-light-grey)' ,
28- darkGrey : 'var(--text-dark-grey)' ,
29- cinnabarRed : 'var(--text-cinnabar-red)' ,
30- white : 'var(--text-white)' ,
31- alwaysWhite : 'var(--text-always-white)' ,
32- alwaysLightGrey : 'var(--text-always-light-grey)' ,
33- electricLightBlue : 'var(--text-electric-light-blue)' ,
34- } as const ;
35-
36- export const fontWeight = {
37- light : '300' ,
38- normal : '400' ,
39- medium : '500' ,
40- semibold : '600' ,
41- bold : '700' ,
42- } as const ;
43-
44- export const fontSizes = {
45- heading : {
46- mobile : {
47- xl : '3rem' , // 48px / 16px = 3rem
48- l : '2.5rem' , // 40px / 16px = 2.5rem
49- m : '2rem' , // 32px / 16px = 2rem
50- s : '1.5rem' , // 24px / 16px = 1.5rem
51- xs : '1.25rem' , // 20px / 16px = 1.25rem
52- } ,
53- desktop : {
54- xl : '5rem' , // 80px / 16px = 5rem
55- l : '3.5rem' , // 56px / 16px = 3.5rem
56- m : '2rem' , // 32px / 16px = 2rem
57- s : '1.5rem' , // 24px / 16px = 1.5rem
58- xs : '1.25rem' , // 20px / 16px = 1.25rem
59- } ,
60- } ,
61- text : {
62- xll : '1.5rem' , // 24px / 16px = 1.5rem
63- xl : '1.25rem' , // 20px / 16px = 1.25rem
64- l : '1.125rem' , // 18px / 16px = 1.125.5rem
65- m : '1rem' , // 16px / 16px = 1rem
66- s : '0.875rem' , // 14px / 16px = 0.875
67- xs : '0.75rem' , // 12px / 16px = 0.875
68- } ,
69- button : {
70- large : '1.5rem' ,
71- default : '1.125rem' , // 18px / 16px = 1.125.5rem
72- small : '1rem' , // 16px / 16px = 1rem
73- } ,
74- label : {
75- xl : '1.5rem' , // 24px / 16px = 1.5rem
76- l : '1rem' , // 16px / 16px = 1rem
77- m : '0.875rem' , // 14px / 16px = 0.875
78- } ,
79- } as const ;
80-
81- export const lineHeight = {
82- label : '1.1' ,
83- } as const ;
84-
85- export const letterSpacing = {
86- label : '0.06em' ,
87- } as const ;
88-
89- export type TextColor = keyof typeof textColors | 'textGradient' | 'textOrangeGradient' ;
90- export type FontWeight = keyof typeof fontWeight ;
91- export type FontSize = keyof ( typeof fontSizes ) [ 'text' ] ;
92-
9327export const Keyframes = {
9428 rotate : keyframes `
9529 from {
0 commit comments