@teamturing/token-studio 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +1 -0
- package/dist/foundation/breakpoint/device.d.ts +6 -0
- package/dist/foundation/breakpoint/index.d.ts +8 -0
- package/dist/foundation/gradient/colorStopList/index.d.ts +7 -0
- package/dist/foundation/gradient/direction/index.d.ts +7 -0
- package/dist/foundation/gradient/index.d.ts +14 -0
- package/dist/foundation/opacity/index.d.ts +4 -0
- package/dist/foundation/palette/index.d.ts +148 -0
- package/dist/foundation/rounding/index.d.ts +12 -0
- package/dist/foundation/shadow/index.d.ts +4 -0
- package/dist/foundation/spacing/index.d.ts +29 -0
- package/dist/foundation/typography/fontSize/index.d.ts +17 -0
- package/dist/foundation/typography/fontWeight/index.d.ts +12 -0
- package/dist/foundation/typography/index.d.ts +32 -0
- package/dist/foundation/typography/lineHeight/index.d.ts +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +651 -0
- package/dist/token/breakpoints/index.d.ts +4 -0
- package/dist/token/color/index.d.ts +253 -0
- package/dist/token/elevation/index.d.ts +18 -0
- package/dist/token/gradient/index.d.ts +44 -0
- package/dist/token/index.d.ts +15 -0
- package/dist/token/opacity/index.d.ts +11 -0
- package/dist/token/radii/index.d.ts +13 -0
- package/dist/token/space/index.d.ts +53 -0
- package/dist/token/typography/fontSizes.d.ts +15 -0
- package/dist/token/typography/fontWeights.d.ts +7 -0
- package/dist/token/typography/index.d.ts +134 -0
- package/dist/token/typography/lineHeights.d.ts +6 -0
- package/esm/foundation/breakpoint/device.js +7 -0
- package/esm/foundation/gradient/colorStopList/index.js +8 -0
- package/esm/foundation/gradient/direction/index.js +8 -0
- package/esm/foundation/opacity/index.js +5 -0
- package/esm/foundation/palette/index.js +90 -0
- package/esm/foundation/rounding/index.js +13 -0
- package/esm/foundation/shadow/index.js +5 -0
- package/esm/foundation/spacing/index.js +56 -0
- package/esm/foundation/typography/fontSize/index.js +18 -0
- package/esm/foundation/typography/fontWeight/index.js +13 -0
- package/esm/foundation/typography/lineHeight/index.js +6 -0
- package/esm/index.js +11 -0
- package/esm/token/breakpoints/index.js +6 -0
- package/esm/token/color/index.js +140 -0
- package/esm/token/elevation/index.js +16 -0
- package/esm/token/gradient/index.js +33 -0
- package/esm/token/opacity/index.js +10 -0
- package/esm/token/radii/index.js +15 -0
- package/esm/token/space/index.js +55 -0
- package/esm/token/typography/fontSizes.js +17 -0
- package/esm/token/typography/fontWeights.js +9 -0
- package/esm/token/typography/index.js +133 -0
- package/esm/token/typography/lineHeights.js +8 -0
- package/package.json +32 -0
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
const gray = {
|
|
2
|
+
gray50: '#F9FAFB',
|
|
3
|
+
gray100: '#F3F4F6',
|
|
4
|
+
gray200: '#E5E7EB',
|
|
5
|
+
gray300: '#D1D5DB',
|
|
6
|
+
gray400: '#8D94A0',
|
|
7
|
+
gray500: '#7A828D',
|
|
8
|
+
gray600: '#6F7680',
|
|
9
|
+
gray700: '#575C64',
|
|
10
|
+
gray800: '#43484E',
|
|
11
|
+
gray900: '#33373B'
|
|
12
|
+
};
|
|
13
|
+
const violet = {
|
|
14
|
+
violet50: '#F3EFFD',
|
|
15
|
+
violet100: '#E8E1FB',
|
|
16
|
+
violet200: '#D9CDF9',
|
|
17
|
+
violet300: '#C6B5F6',
|
|
18
|
+
violet400: '#9C7EEF',
|
|
19
|
+
violet500: '#835EEB',
|
|
20
|
+
violet600: '#7756D6',
|
|
21
|
+
violet700: '#5D43A7',
|
|
22
|
+
violet800: '#483481',
|
|
23
|
+
violet900: '#372763'
|
|
24
|
+
};
|
|
25
|
+
const green = {
|
|
26
|
+
green50: '#E9FAF6',
|
|
27
|
+
green100: '#BAEFE2',
|
|
28
|
+
green200: '#98E8D4',
|
|
29
|
+
green300: '#69DDC0',
|
|
30
|
+
green400: '#4CD6B4',
|
|
31
|
+
green500: '#1FCCA1',
|
|
32
|
+
green600: '#1CBA93',
|
|
33
|
+
green700: '#169172',
|
|
34
|
+
green800: '#117059',
|
|
35
|
+
green900: '#0D5644'
|
|
36
|
+
};
|
|
37
|
+
const yellow = {
|
|
38
|
+
yellow50: '#FFF9E6',
|
|
39
|
+
yellow100: '#FFECB2',
|
|
40
|
+
yellow200: '#FFE28D',
|
|
41
|
+
yellow300: '#FFD559',
|
|
42
|
+
yellow400: '#FFCD39',
|
|
43
|
+
yellow500: '#FFC107',
|
|
44
|
+
yellow600: '#E8B006',
|
|
45
|
+
yellow700: '#B58905',
|
|
46
|
+
yellow800: '#8C6A04',
|
|
47
|
+
yellow900: '#6B5103'
|
|
48
|
+
};
|
|
49
|
+
const red = {
|
|
50
|
+
red50: '#FEE9EB',
|
|
51
|
+
red100: '#FBBCC0',
|
|
52
|
+
red200: '#F99CA2',
|
|
53
|
+
red300: '#F66E78',
|
|
54
|
+
red400: '#F5525D',
|
|
55
|
+
red500: '#F22735',
|
|
56
|
+
red600: '#DC2330',
|
|
57
|
+
red700: '#AC1C26',
|
|
58
|
+
red800: '#85151D',
|
|
59
|
+
red900: '#661016'
|
|
60
|
+
};
|
|
61
|
+
const blue = {
|
|
62
|
+
blue50: '#edf2fd',
|
|
63
|
+
blue100: '#c6d8fa',
|
|
64
|
+
blue200: '#abc5f7',
|
|
65
|
+
blue300: '#84aaf4',
|
|
66
|
+
blue400: '#6d99f1',
|
|
67
|
+
blue500: '#4880ee',
|
|
68
|
+
blue600: '#4274d9',
|
|
69
|
+
blue700: '#335ba9',
|
|
70
|
+
blue800: '#284683',
|
|
71
|
+
blue900: '#1e3664'
|
|
72
|
+
};
|
|
73
|
+
const shade = {
|
|
74
|
+
transparent: '#FFFFFF00',
|
|
75
|
+
white: '#FFFFFF',
|
|
76
|
+
white10A: '#FFFFFF1A',
|
|
77
|
+
black: '#000000',
|
|
78
|
+
black60A: '#00000099'
|
|
79
|
+
};
|
|
80
|
+
const palette = {
|
|
81
|
+
...gray,
|
|
82
|
+
...violet,
|
|
83
|
+
...green,
|
|
84
|
+
...yellow,
|
|
85
|
+
...red,
|
|
86
|
+
...blue,
|
|
87
|
+
...shade
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export { blue, palette as default, gray, green, red, shade, violet, yellow };
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
const unit = 4;
|
|
2
|
+
const spacing = {
|
|
3
|
+
spacing0: 0 * unit,
|
|
4
|
+
// 0
|
|
5
|
+
spacing1: 1,
|
|
6
|
+
// 1
|
|
7
|
+
spacing2: 0.5 * unit,
|
|
8
|
+
// 2
|
|
9
|
+
spacing4: 1 * unit,
|
|
10
|
+
// 4
|
|
11
|
+
spacing6: 1.5 * unit,
|
|
12
|
+
// 6
|
|
13
|
+
spacing8: 2 * unit,
|
|
14
|
+
// 8
|
|
15
|
+
spacing12: 3 * unit,
|
|
16
|
+
// 12
|
|
17
|
+
spacing16: 4 * unit,
|
|
18
|
+
// 16
|
|
19
|
+
spacing20: 5 * unit,
|
|
20
|
+
// 20
|
|
21
|
+
spacing24: 6 * unit,
|
|
22
|
+
// 24
|
|
23
|
+
spacing28: 7 * unit,
|
|
24
|
+
// 28
|
|
25
|
+
spacing32: 8 * unit,
|
|
26
|
+
// 32
|
|
27
|
+
spacing40: 10 * unit,
|
|
28
|
+
// 40
|
|
29
|
+
spacing48: 12 * unit,
|
|
30
|
+
// 48
|
|
31
|
+
spacing56: 14 * unit,
|
|
32
|
+
// 56
|
|
33
|
+
spacing64: 16 * unit,
|
|
34
|
+
// 64
|
|
35
|
+
spacing72: 18 * unit,
|
|
36
|
+
// 72
|
|
37
|
+
spacing80: 20 * unit,
|
|
38
|
+
// 80
|
|
39
|
+
spacing96: 24 * unit,
|
|
40
|
+
// 96
|
|
41
|
+
spacing112: 28 * unit,
|
|
42
|
+
// 112
|
|
43
|
+
spacing120: 30 * unit,
|
|
44
|
+
// 120
|
|
45
|
+
spacing128: 32 * unit,
|
|
46
|
+
// 128
|
|
47
|
+
spacing160: 40 * unit,
|
|
48
|
+
// 160
|
|
49
|
+
spacing192: 48 * unit,
|
|
50
|
+
// 192
|
|
51
|
+
spacing200: 50 * unit,
|
|
52
|
+
// 200
|
|
53
|
+
spacing320: 80 * unit // 320
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
export { spacing as default };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
const fontSize = {
|
|
2
|
+
fontSize50: 10,
|
|
3
|
+
fontSize100: 12,
|
|
4
|
+
fontSize200: 14,
|
|
5
|
+
fontSize300: 16,
|
|
6
|
+
fontSize400: 18,
|
|
7
|
+
fontSize500: 20,
|
|
8
|
+
fontSize600: 22,
|
|
9
|
+
fontSize700: 24,
|
|
10
|
+
fontSize800: 28,
|
|
11
|
+
fontSize900: 32,
|
|
12
|
+
fontSize1000: 40,
|
|
13
|
+
fontSize1100: 48,
|
|
14
|
+
fontSize1200: 64,
|
|
15
|
+
fontSize1300: 100
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export { fontSize as default };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const fontWeight = {
|
|
2
|
+
fontWeight100: 100,
|
|
3
|
+
fontWeight200: 200,
|
|
4
|
+
fontWeight300: 300,
|
|
5
|
+
fontWeight400: 400,
|
|
6
|
+
fontWeight500: 500,
|
|
7
|
+
fontWeight600: 600,
|
|
8
|
+
fontWeight700: 700,
|
|
9
|
+
fontWeight800: 800,
|
|
10
|
+
fontWeight900: 900
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export { fontWeight as default };
|
package/esm/index.js
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { baseBreakpoints, default as breakpoints } from './token/breakpoints/index.js';
|
|
2
|
+
export { bgColor, borderColor, default as color, dimColor, iconColor, linkColor, scaleColor, textColor } from './token/color/index.js';
|
|
3
|
+
export { default as elevation, shadowElevation, surfaceElevation } from './token/elevation/index.js';
|
|
4
|
+
export { bgGradient, borderGradient, default as gradient, overlayGradient, textGradient } from './token/gradient/index.js';
|
|
5
|
+
export { accentOpacity, default as opacity } from './token/opacity/index.js';
|
|
6
|
+
export { default as radii } from './token/radii/index.js';
|
|
7
|
+
export { default as space } from './token/space/index.js';
|
|
8
|
+
export { default as typography } from './token/typography/index.js';
|
|
9
|
+
export { default as fontSizes } from './token/typography/fontSizes.js';
|
|
10
|
+
export { default as fontWeights } from './token/typography/fontWeights.js';
|
|
11
|
+
export { default as lineHeights } from './token/typography/lineHeights.js';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import device from '../../foundation/breakpoint/device.js';
|
|
2
|
+
|
|
3
|
+
const baseBreakpoints = [device.deviceMobile, device.deviceTablet, device.deviceDesktop];
|
|
4
|
+
const breakpoints = baseBreakpoints.map(value => `${value + 1}px`);
|
|
5
|
+
|
|
6
|
+
export { baseBreakpoints, breakpoints as default };
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import palette from '../../foundation/palette/index.js';
|
|
2
|
+
|
|
3
|
+
const textColor = {
|
|
4
|
+
'text/primary': palette.violet500,
|
|
5
|
+
'text/accent/blue': palette.blue500,
|
|
6
|
+
'text/accent/green': palette.green500,
|
|
7
|
+
'text/accent/yellow': palette.yellow500,
|
|
8
|
+
'text/accent/red': palette.red500,
|
|
9
|
+
'text/neutral/subtlest': palette.gray400,
|
|
10
|
+
'text/neutral/subtler': palette.gray500,
|
|
11
|
+
'text/neutral/subtle': palette.gray700,
|
|
12
|
+
'text/neutral': palette.gray900,
|
|
13
|
+
'text/inverse': palette.white,
|
|
14
|
+
'text/inverse/subtle': palette.gray200,
|
|
15
|
+
'text/inverse/subtler': palette.gray300,
|
|
16
|
+
'text/disabled': palette.gray400,
|
|
17
|
+
'text/success': palette.green500,
|
|
18
|
+
'text/warning': palette.yellow500,
|
|
19
|
+
'text/danger': palette.red500,
|
|
20
|
+
'text/selected/neutral': palette.gray900
|
|
21
|
+
};
|
|
22
|
+
const bgColor = {
|
|
23
|
+
'bg/secondary': palette.violet50,
|
|
24
|
+
'bg/secondary/hovered': palette.violet200,
|
|
25
|
+
'bg/secondary/pressed': palette.violet200,
|
|
26
|
+
'bg/primary': palette.violet500,
|
|
27
|
+
'bg/primary/hovered': palette.violet700,
|
|
28
|
+
'bg/primary/pressed': palette.violet700,
|
|
29
|
+
'bg/neutral/subtler': palette.transparent,
|
|
30
|
+
'bg/neutral/subtler/hovered': palette.gray100,
|
|
31
|
+
'bg/neutral/subtler/pressed': palette.gray100,
|
|
32
|
+
'bg/neutral/subtle': palette.gray50,
|
|
33
|
+
'bg/neutral/subtle/hovered': palette.gray200,
|
|
34
|
+
'bg/neutral/subtle/pressed': palette.gray200,
|
|
35
|
+
'bg/neutral': palette.gray100,
|
|
36
|
+
'bg/neutral/hovered': palette.gray300,
|
|
37
|
+
'bg/neutral/pressed': palette.gray300,
|
|
38
|
+
'bg/neutral/bold': palette.gray700,
|
|
39
|
+
'bg/neutral/bold/hovered': palette.gray900,
|
|
40
|
+
'bg/neutral/bold/pressed': palette.gray900,
|
|
41
|
+
'bg/neutral/bolder': palette.gray900,
|
|
42
|
+
'bg/neutral/bolder/hovered': palette.black,
|
|
43
|
+
'bg/neutral/bolder/pressed': palette.black,
|
|
44
|
+
'bg/disabled': palette.gray100,
|
|
45
|
+
'bg/disabled/subtlest': palette.transparent,
|
|
46
|
+
'bg/input': palette.white,
|
|
47
|
+
'bg/accent/green/subtlest': palette.green50,
|
|
48
|
+
'bg/accent/yellow/subtlest': palette.yellow50,
|
|
49
|
+
'bg/accent/red/subtlest': palette.red50,
|
|
50
|
+
'bg/accent/red/subtle': palette.red400,
|
|
51
|
+
'bg/accent/red': palette.red500,
|
|
52
|
+
'bg/accent/gray/subtlest': palette.gray200,
|
|
53
|
+
'bg/accent/blue/subtlest': palette.blue50,
|
|
54
|
+
'bg/selected/violet': palette.violet500,
|
|
55
|
+
'bg/selected/neutral': palette.gray900,
|
|
56
|
+
'bg/selected/neutral/subtle': palette.gray100,
|
|
57
|
+
'bg/inverse': palette.black,
|
|
58
|
+
'bg/inverse/subtlest': palette.white10A,
|
|
59
|
+
'bg/success': palette.green50,
|
|
60
|
+
'bg/success/bold': palette.green500,
|
|
61
|
+
'bg/warning': palette.yellow50,
|
|
62
|
+
'bg/warning/bold': palette.yellow500,
|
|
63
|
+
'bg/danger': palette.red50,
|
|
64
|
+
'bg/danger/bold': palette.red400,
|
|
65
|
+
'bg/danger/bold/hovered': palette.red600,
|
|
66
|
+
'bg/danger/bold/pressed': palette.red600
|
|
67
|
+
};
|
|
68
|
+
const borderColor = {
|
|
69
|
+
'border/neutral/subtle': palette.gray100,
|
|
70
|
+
'border/neutral': palette.gray200,
|
|
71
|
+
'border/neutral/bolder': palette.gray300,
|
|
72
|
+
'border/input': palette.gray200,
|
|
73
|
+
'border/inverse': palette.white10A,
|
|
74
|
+
'border/disabled': palette.gray100,
|
|
75
|
+
'border/primary': palette.violet500,
|
|
76
|
+
'border/hovered': palette.blue300,
|
|
77
|
+
'border/focused': palette.blue500,
|
|
78
|
+
'border/danger': palette.red500,
|
|
79
|
+
'border/success': palette.green500
|
|
80
|
+
};
|
|
81
|
+
const iconColor = {
|
|
82
|
+
'icon/neutral': palette.gray300,
|
|
83
|
+
'icon/neutral/bold': palette.gray400,
|
|
84
|
+
'icon/neutral/bolder': palette.gray700,
|
|
85
|
+
'icon/accent/gray': palette.gray900,
|
|
86
|
+
'icon/accent/blue': palette.blue500,
|
|
87
|
+
'icon/accent/blue/bold': palette.blue700,
|
|
88
|
+
'icon/accent/green': palette.green500,
|
|
89
|
+
'icon/accent/yellow': palette.yellow500,
|
|
90
|
+
'icon/accent/red': palette.red500,
|
|
91
|
+
'icon/inverse': palette.white,
|
|
92
|
+
'icon/disabled': palette.gray300,
|
|
93
|
+
'icon/disabled/subtler': palette.gray200,
|
|
94
|
+
'icon/selected/primary': palette.violet500,
|
|
95
|
+
'icon/selected/neutral': palette.gray900,
|
|
96
|
+
'icon/primary': palette.violet500,
|
|
97
|
+
'icon/primary/subtle': palette.violet300,
|
|
98
|
+
'icon/primary/bold': palette.violet700,
|
|
99
|
+
'icon/success': palette.green500,
|
|
100
|
+
'icon/warning': palette.yellow500,
|
|
101
|
+
'icon/danger': palette.red500
|
|
102
|
+
};
|
|
103
|
+
const linkColor = {
|
|
104
|
+
'link': palette.blue500,
|
|
105
|
+
'link/hovered': palette.blue700,
|
|
106
|
+
'link/pressed': palette.blue700,
|
|
107
|
+
'link/neutral': palette.gray500,
|
|
108
|
+
'link/neutral/hovered': palette.gray700,
|
|
109
|
+
'link/neutral/pressed': palette.gray700,
|
|
110
|
+
'link/neutral/bold': palette.gray700,
|
|
111
|
+
'link/neutral/bold/hovered': palette.gray900,
|
|
112
|
+
'link/neutral/bold/pressed': palette.gray900,
|
|
113
|
+
'link/disabled': palette.gray700
|
|
114
|
+
};
|
|
115
|
+
const dimColor = {
|
|
116
|
+
dim: palette.black60A
|
|
117
|
+
};
|
|
118
|
+
const scaleColor = {
|
|
119
|
+
'scale/violet/0': palette.violet50,
|
|
120
|
+
'scale/violet/1': palette.violet100,
|
|
121
|
+
'scale/violet/2': palette.violet200,
|
|
122
|
+
'scale/violet/3': palette.violet300,
|
|
123
|
+
'scale/violet/4': palette.violet400,
|
|
124
|
+
'scale/violet/5': palette.violet500,
|
|
125
|
+
'scale/violet/6': palette.violet600,
|
|
126
|
+
'scale/violet/7': palette.violet700,
|
|
127
|
+
'scale/violet/8': palette.violet800,
|
|
128
|
+
'scale/violet/9': palette.violet900
|
|
129
|
+
};
|
|
130
|
+
const color = {
|
|
131
|
+
...textColor,
|
|
132
|
+
...bgColor,
|
|
133
|
+
...borderColor,
|
|
134
|
+
...iconColor,
|
|
135
|
+
...linkColor,
|
|
136
|
+
...dimColor,
|
|
137
|
+
...scaleColor
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
export { bgColor, borderColor, color as default, dimColor, iconColor, linkColor, scaleColor, textColor };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import palette from '../../foundation/palette/index.js';
|
|
2
|
+
import shadow from '../../foundation/shadow/index.js';
|
|
3
|
+
|
|
4
|
+
const surfaceElevation = {
|
|
5
|
+
'surface': palette.white,
|
|
6
|
+
'surface/overlay': palette.white
|
|
7
|
+
};
|
|
8
|
+
const shadowElevation = {
|
|
9
|
+
'shadow/overlay': shadow.shadowMedium
|
|
10
|
+
};
|
|
11
|
+
const elevation = {
|
|
12
|
+
...surfaceElevation,
|
|
13
|
+
...shadowElevation
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export { elevation as default, shadowElevation, surfaceElevation };
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import colorStopList from '../../foundation/gradient/colorStopList/index.js';
|
|
2
|
+
import direction from '../../foundation/gradient/direction/index.js';
|
|
3
|
+
|
|
4
|
+
const generateGradientTokenValue = (direction$1, colorStopList$1) => `${direction[direction$1]}, ${colorStopList[colorStopList$1]}`;
|
|
5
|
+
const textGradient = {
|
|
6
|
+
'text/accent': generateGradientTokenValue('directionToRightBottom', 'colorStopListVioletPink')
|
|
7
|
+
};
|
|
8
|
+
const bgGradient = {
|
|
9
|
+
'bg/accent/violet': generateGradientTokenValue('directionToRightBottom', 'colorStopListVioletPink'),
|
|
10
|
+
'bg/accent/neutral': generateGradientTokenValue('directionToRightBottom', 'colorStopListBlackGray')
|
|
11
|
+
};
|
|
12
|
+
const borderGradient = {
|
|
13
|
+
'border/accent/violet': generateGradientTokenValue('directionToRightBottom', 'colorStopListVioletPink')
|
|
14
|
+
};
|
|
15
|
+
const overlayGradient = {
|
|
16
|
+
'overlay/subtlest/toright': generateGradientTokenValue('directionToRight', 'colorStopListWhite'),
|
|
17
|
+
'overlay/subtlest/toleft': generateGradientTokenValue('directionToLeft', 'colorStopListWhite'),
|
|
18
|
+
'overlay/subtlest/totop': generateGradientTokenValue('directionToTop', 'colorStopListWhite'),
|
|
19
|
+
'overlay/floating/toright': generateGradientTokenValue('directionToRight', 'colorStopListWhite'),
|
|
20
|
+
'overlay/floating/toleft': generateGradientTokenValue('directionToLeft', 'colorStopListWhite'),
|
|
21
|
+
'overlay/floating/totop': generateGradientTokenValue('directionToTop', 'colorStopListWhite'),
|
|
22
|
+
'overlay/bold/toright': generateGradientTokenValue('directionToRight', 'colorStopListBlack'),
|
|
23
|
+
'overlay/bold/toleft': generateGradientTokenValue('directionToLeft', 'colorStopListBlack'),
|
|
24
|
+
'overlay/bold/totop': generateGradientTokenValue('directionToTop', 'colorStopListBlack')
|
|
25
|
+
};
|
|
26
|
+
const gradient = {
|
|
27
|
+
...textGradient,
|
|
28
|
+
...bgGradient,
|
|
29
|
+
...borderGradient,
|
|
30
|
+
...overlayGradient
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
export { bgGradient, borderGradient, gradient as default, overlayGradient, textGradient };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import rounding from '../../foundation/rounding/index.js';
|
|
2
|
+
|
|
3
|
+
const radii = {
|
|
4
|
+
none: rounding.rounding0,
|
|
5
|
+
xxs: rounding.rounding4,
|
|
6
|
+
xs: rounding.rounding8,
|
|
7
|
+
s: rounding.rounding12,
|
|
8
|
+
m: rounding.rounding16,
|
|
9
|
+
l: rounding.rounding20,
|
|
10
|
+
xl: rounding.rounding24,
|
|
11
|
+
xxl: rounding.rounding32,
|
|
12
|
+
full: rounding.rounding9999
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
export { radii as default };
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import spacing from '../../foundation/spacing/index.js';
|
|
2
|
+
|
|
3
|
+
const space = {
|
|
4
|
+
'-80': -spacing.spacing320,
|
|
5
|
+
'-50': -spacing.spacing200,
|
|
6
|
+
'-48': -spacing.spacing192,
|
|
7
|
+
'-40': -spacing.spacing160,
|
|
8
|
+
'-32': -spacing.spacing128,
|
|
9
|
+
'-30': -spacing.spacing120,
|
|
10
|
+
'-28': -spacing.spacing112,
|
|
11
|
+
'-24': -spacing.spacing96,
|
|
12
|
+
'-20': -spacing.spacing80,
|
|
13
|
+
'-18': -spacing.spacing72,
|
|
14
|
+
'-16': -spacing.spacing64,
|
|
15
|
+
'-14': -spacing.spacing56,
|
|
16
|
+
'-12': -spacing.spacing48,
|
|
17
|
+
'-10': -spacing.spacing40,
|
|
18
|
+
'-8': -spacing.spacing32,
|
|
19
|
+
'-7': -spacing.spacing28,
|
|
20
|
+
'-6': -spacing.spacing24,
|
|
21
|
+
'-5': -spacing.spacing20,
|
|
22
|
+
'-4': -spacing.spacing16,
|
|
23
|
+
'-3': -spacing.spacing12,
|
|
24
|
+
'-2': -spacing.spacing8,
|
|
25
|
+
'-1': -spacing.spacing4,
|
|
26
|
+
'-0.5': -spacing.spacing2,
|
|
27
|
+
'-0.25': -spacing.spacing1,
|
|
28
|
+
0: spacing.spacing0,
|
|
29
|
+
0.25: spacing.spacing1,
|
|
30
|
+
0.5: spacing.spacing2,
|
|
31
|
+
1: spacing.spacing4,
|
|
32
|
+
2: spacing.spacing8,
|
|
33
|
+
3: spacing.spacing12,
|
|
34
|
+
4: spacing.spacing16,
|
|
35
|
+
5: spacing.spacing20,
|
|
36
|
+
6: spacing.spacing24,
|
|
37
|
+
7: spacing.spacing28,
|
|
38
|
+
8: spacing.spacing32,
|
|
39
|
+
10: spacing.spacing40,
|
|
40
|
+
12: spacing.spacing48,
|
|
41
|
+
14: spacing.spacing56,
|
|
42
|
+
16: spacing.spacing64,
|
|
43
|
+
18: spacing.spacing72,
|
|
44
|
+
20: spacing.spacing80,
|
|
45
|
+
24: spacing.spacing96,
|
|
46
|
+
28: spacing.spacing112,
|
|
47
|
+
30: spacing.spacing120,
|
|
48
|
+
32: spacing.spacing128,
|
|
49
|
+
40: spacing.spacing160,
|
|
50
|
+
48: spacing.spacing192,
|
|
51
|
+
50: spacing.spacing200,
|
|
52
|
+
80: spacing.spacing320
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
export { space as default };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import fontSize from '../../foundation/typography/fontSize/index.js';
|
|
2
|
+
|
|
3
|
+
const fontSizes = {
|
|
4
|
+
xxs: fontSize.fontSize100,
|
|
5
|
+
xs: fontSize.fontSize200,
|
|
6
|
+
s: fontSize.fontSize300,
|
|
7
|
+
m: fontSize.fontSize500,
|
|
8
|
+
l: fontSize.fontSize700,
|
|
9
|
+
xl: fontSize.fontSize800,
|
|
10
|
+
xxl: fontSize.fontSize900,
|
|
11
|
+
display4: fontSize.fontSize1000,
|
|
12
|
+
display3: fontSize.fontSize1100,
|
|
13
|
+
display2: fontSize.fontSize1200,
|
|
14
|
+
display1: fontSize.fontSize1300
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export { fontSizes as default };
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import fontSizes from './fontSizes.js';
|
|
2
|
+
import fontWeights from './fontWeights.js';
|
|
3
|
+
import lineHeights from './lineHeights.js';
|
|
4
|
+
|
|
5
|
+
const typography = {
|
|
6
|
+
'display1': {
|
|
7
|
+
fontSize: fontSizes.display1,
|
|
8
|
+
fontWeight: fontWeights.bold,
|
|
9
|
+
lineHeight: lineHeights[1]
|
|
10
|
+
},
|
|
11
|
+
'display2': {
|
|
12
|
+
fontSize: fontSizes.display2,
|
|
13
|
+
fontWeight: fontWeights.bold,
|
|
14
|
+
lineHeight: lineHeights[1]
|
|
15
|
+
},
|
|
16
|
+
'display3': {
|
|
17
|
+
fontSize: fontSizes.display3,
|
|
18
|
+
fontWeight: fontWeights.bold,
|
|
19
|
+
lineHeight: lineHeights[1]
|
|
20
|
+
},
|
|
21
|
+
'display4': {
|
|
22
|
+
fontSize: fontSizes.display4,
|
|
23
|
+
fontWeight: fontWeights.bold,
|
|
24
|
+
lineHeight: lineHeights[2]
|
|
25
|
+
},
|
|
26
|
+
'xxl/regular': {
|
|
27
|
+
fontSize: fontSizes.xxl,
|
|
28
|
+
fontWeight: fontWeights.regular,
|
|
29
|
+
lineHeight: lineHeights[2]
|
|
30
|
+
},
|
|
31
|
+
'xxl': {
|
|
32
|
+
fontSize: fontSizes.xxl,
|
|
33
|
+
fontWeight: fontWeights.medium,
|
|
34
|
+
lineHeight: lineHeights[2]
|
|
35
|
+
},
|
|
36
|
+
'xxl/bold': {
|
|
37
|
+
fontSize: fontSizes.xxl,
|
|
38
|
+
fontWeight: fontWeights.bold,
|
|
39
|
+
lineHeight: lineHeights[2]
|
|
40
|
+
},
|
|
41
|
+
'xl/regular': {
|
|
42
|
+
fontSize: fontSizes.xl,
|
|
43
|
+
fontWeight: fontWeights.regular,
|
|
44
|
+
lineHeight: lineHeights[2]
|
|
45
|
+
},
|
|
46
|
+
'xl': {
|
|
47
|
+
fontSize: fontSizes.xl,
|
|
48
|
+
fontWeight: fontWeights.medium,
|
|
49
|
+
lineHeight: lineHeights[2]
|
|
50
|
+
},
|
|
51
|
+
'xl/bold': {
|
|
52
|
+
fontSize: fontSizes.xl,
|
|
53
|
+
fontWeight: fontWeights.bold,
|
|
54
|
+
lineHeight: lineHeights[2]
|
|
55
|
+
},
|
|
56
|
+
'l/regular': {
|
|
57
|
+
fontSize: fontSizes.l,
|
|
58
|
+
fontWeight: fontWeights.regular,
|
|
59
|
+
lineHeight: lineHeights[2]
|
|
60
|
+
},
|
|
61
|
+
'l': {
|
|
62
|
+
fontSize: fontSizes.l,
|
|
63
|
+
fontWeight: fontWeights.medium,
|
|
64
|
+
lineHeight: lineHeights[2]
|
|
65
|
+
},
|
|
66
|
+
'l/bold': {
|
|
67
|
+
fontSize: fontSizes.l,
|
|
68
|
+
fontWeight: fontWeights.bold,
|
|
69
|
+
lineHeight: lineHeights[2]
|
|
70
|
+
},
|
|
71
|
+
'm/regular': {
|
|
72
|
+
fontSize: fontSizes.m,
|
|
73
|
+
fontWeight: fontWeights.regular,
|
|
74
|
+
lineHeight: lineHeights[2]
|
|
75
|
+
},
|
|
76
|
+
'm': {
|
|
77
|
+
fontSize: fontSizes.m,
|
|
78
|
+
fontWeight: fontWeights.medium,
|
|
79
|
+
lineHeight: lineHeights[2]
|
|
80
|
+
},
|
|
81
|
+
'm/bold': {
|
|
82
|
+
fontSize: fontSizes.m,
|
|
83
|
+
fontWeight: fontWeights.bold,
|
|
84
|
+
lineHeight: lineHeights[2]
|
|
85
|
+
},
|
|
86
|
+
's/regular': {
|
|
87
|
+
fontSize: fontSizes.s,
|
|
88
|
+
fontWeight: fontWeights.regular,
|
|
89
|
+
lineHeight: lineHeights[2]
|
|
90
|
+
},
|
|
91
|
+
's': {
|
|
92
|
+
fontSize: fontSizes.s,
|
|
93
|
+
fontWeight: fontWeights.medium,
|
|
94
|
+
lineHeight: lineHeights[2]
|
|
95
|
+
},
|
|
96
|
+
's/bold': {
|
|
97
|
+
fontSize: fontSizes.s,
|
|
98
|
+
fontWeight: fontWeights.bold,
|
|
99
|
+
lineHeight: lineHeights[2]
|
|
100
|
+
},
|
|
101
|
+
'xs/regular': {
|
|
102
|
+
fontSize: fontSizes.xs,
|
|
103
|
+
fontWeight: fontWeights.regular,
|
|
104
|
+
lineHeight: lineHeights[2]
|
|
105
|
+
},
|
|
106
|
+
'xs': {
|
|
107
|
+
fontSize: fontSizes.xs,
|
|
108
|
+
fontWeight: fontWeights.medium,
|
|
109
|
+
lineHeight: lineHeights[2]
|
|
110
|
+
},
|
|
111
|
+
'xs/bold': {
|
|
112
|
+
fontSize: fontSizes.xs,
|
|
113
|
+
fontWeight: fontWeights.bold,
|
|
114
|
+
lineHeight: lineHeights[2]
|
|
115
|
+
},
|
|
116
|
+
'xxs/regular': {
|
|
117
|
+
fontSize: fontSizes.xxs,
|
|
118
|
+
fontWeight: fontWeights.regular,
|
|
119
|
+
lineHeight: lineHeights[2]
|
|
120
|
+
},
|
|
121
|
+
'xxs': {
|
|
122
|
+
fontSize: fontSizes.xxs,
|
|
123
|
+
fontWeight: fontWeights.medium,
|
|
124
|
+
lineHeight: lineHeights[2]
|
|
125
|
+
},
|
|
126
|
+
'xxs/bold': {
|
|
127
|
+
fontSize: fontSizes.xxs,
|
|
128
|
+
fontWeight: fontWeights.bold,
|
|
129
|
+
lineHeight: lineHeights[2]
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
export { typography as default, fontSizes, fontWeights, lineHeights };
|