@lukso/web-components 1.0.1 → 1.0.4
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/README.md +62 -112
- package/dist/assets/fonts/Apax-Bold.woff2 +0 -0
- package/dist/assets/fonts/Apax-Light.woff2 +0 -0
- package/dist/assets/fonts/Apax-Medium.woff2 +0 -0
- package/dist/assets/fonts/Apax-Regular.woff2 +0 -0
- package/dist/assets/fonts/Inter-Bold.woff2 +0 -0
- package/dist/assets/fonts/Inter-ExtraBold.woff2 +0 -0
- package/dist/assets/fonts/Inter-Medium.woff2 +0 -0
- package/dist/assets/fonts/Inter-Regular.woff2 +0 -0
- package/dist/assets/fonts/Inter-SemiBold.woff2 +0 -0
- package/dist/assets/fonts/Inter-Thin.woff2 +0 -0
- package/dist/assets/fonts/PT-Mono-Bold.woff2 +0 -0
- package/dist/assets/fonts/PT-Mono-Regular.woff2 +0 -0
- package/dist/assets/fonts/index.cjs +1 -0
- package/dist/assets/fonts/index.js +4 -0
- package/dist/assets/fonts/index.ts +1 -0
- package/dist/directive-619b88dd.cjs +55 -0
- package/dist/directive-76d5504a.js +1128 -0
- package/dist/index.cjs +1 -0
- package/dist/index.js +6 -0
- package/dist/lukso-button-4b795065.js +57 -0
- package/dist/lukso-button-ab7e2769.cjs +17 -0
- package/dist/lukso-button.cjs +1 -0
- package/dist/lukso-button.js +2 -0
- package/dist/lukso-test.cjs +41 -0
- package/dist/lukso-test.js +710 -0
- package/dist/sass/color-palette.ts +69 -0
- package/dist/sass/component.scss +13 -0
- package/dist/sass/fonts.scss +97 -0
- package/dist/sass/index.cjs +1 -0
- package/dist/sass/index.js +4 -0
- package/dist/sass/index.ts +1 -0
- package/dist/sass/main.scss +12 -0
- package/dist/sass/typography.scss +122 -0
- package/dist/sass/variables.scss +5 -0
- package/dist/styles/index.cjs +1 -0
- package/dist/styles/index.js +4 -0
- package/dist/styles/main.css +181 -0
- package/dist/styles/main.css.map +1 -0
- package/package.json +78 -33
- package/src/components/lukso-button/index.ts +1 -0
- package/src/components/lukso-button/lukso-button.stories.ts +51 -0
- package/src/components/lukso-button/lukso-button.ts +55 -0
- package/src/components/lukso-test/index.ts +72 -0
- package/src/components/lukso-test/test.component.scss +7 -0
- package/src/components/lukso-test/test.stories.ts +31 -0
- package/src/docs/buttons.stories.mdx +35 -0
- package/src/docs/colors.stories.mdx +72 -0
- package/src/docs/typography.stories.mdx +360 -0
- package/src/globals.d.ts +1 -0
- package/src/index.ts +3 -0
- package/src/postcss.config.ts +8 -0
- package/src/shared/assets/fonts/Apax-Bold.woff2 +0 -0
- package/src/shared/assets/fonts/Apax-Light.woff2 +0 -0
- package/src/shared/assets/fonts/Apax-Medium.woff2 +0 -0
- package/src/shared/assets/fonts/Apax-Regular.woff2 +0 -0
- package/src/shared/assets/fonts/Inter-Bold.woff2 +0 -0
- package/src/shared/assets/fonts/Inter-ExtraBold.woff2 +0 -0
- package/src/shared/assets/fonts/Inter-Medium.woff2 +0 -0
- package/src/shared/assets/fonts/Inter-Regular.woff2 +0 -0
- package/src/shared/assets/fonts/Inter-SemiBold.woff2 +0 -0
- package/src/shared/assets/fonts/Inter-Thin.woff2 +0 -0
- package/src/shared/assets/fonts/PT-Mono-Bold.woff2 +0 -0
- package/src/shared/assets/fonts/PT-Mono-Regular.woff2 +0 -0
- package/src/shared/assets/fonts/index.ts +1 -0
- package/src/shared/directives/custom-class-map.ts +51 -0
- package/src/shared/globals.d.ts +5 -0
- package/src/shared/styles/color-palette.ts +69 -0
- package/src/shared/styles/component.scss +13 -0
- package/src/shared/styles/fonts.scss +97 -0
- package/src/shared/styles/index.ts +1 -0
- package/src/shared/styles/main.scss +12 -0
- package/src/shared/styles/typography.scss +122 -0
- package/src/shared/styles/variables.scss +5 -0
- package/src/shared/tailwind.element.ts +16 -0
- package/src/shared/utils/hslColorMap.ts +20 -0
- package/src/tailwind.config.ts +60 -0
- package/tools/color-palette.cjs +141 -0
- package/tools/color-palette.d.ts +50 -0
- package/tools/color-palette.d.ts.map +1 -0
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { hslColorMap } from '../utils/hslColorMap'
|
|
2
|
+
|
|
3
|
+
type ColorMap = {
|
|
4
|
+
[key: string]: string
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Color palette based on the structure thats compatible with Tailwind config
|
|
9
|
+
*/
|
|
10
|
+
export const colorPalette = {
|
|
11
|
+
neutral: hslColorMap(
|
|
12
|
+
206,
|
|
13
|
+
30,
|
|
14
|
+
[
|
|
15
|
+
10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95,
|
|
16
|
+
97, 98, 100,
|
|
17
|
+
]
|
|
18
|
+
),
|
|
19
|
+
honey: hslColorMap(42, 93, [72, 75, 82, 85, 92]),
|
|
20
|
+
coral: hslColorMap(14, 87, [65, 74, 75, 84, 85, 94]),
|
|
21
|
+
warm: hslColorMap(25, 100, [77, 87, 97]),
|
|
22
|
+
'sea-salt': hslColorMap(180, 17, [57, 67, 88]),
|
|
23
|
+
cloud: hslColorMap(200, 38, [43, 75, 88]),
|
|
24
|
+
ocean: hslColorMap(209, 38, [38, 75, 88]),
|
|
25
|
+
sky: hslColorMap(209, 64, [64, 75, 85]),
|
|
26
|
+
lukso: hslColorMap(335, 33, [70, 80, 90]),
|
|
27
|
+
yellow: hslColorMap(36, 100, [55, 65, 75, 85]),
|
|
28
|
+
green: hslColorMap(135, 57, [45, 54, 75, 85]),
|
|
29
|
+
blue: hslColorMap(216, 96, [50, 60, 75, 85]),
|
|
30
|
+
red: hslColorMap(0, 75, [55, 65, 75, 85]),
|
|
31
|
+
purple: hslColorMap(230, 24, [94, 82, 63, 58, 51, 41, 31, 15]),
|
|
32
|
+
'gradient-1': {
|
|
33
|
+
start: '#D39B9D',
|
|
34
|
+
end: '#9071D1',
|
|
35
|
+
},
|
|
36
|
+
'gradient-2': {
|
|
37
|
+
start: '#F8DAD3',
|
|
38
|
+
end: '#CC99AE',
|
|
39
|
+
},
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Splits a color map into smaller color maps
|
|
44
|
+
*
|
|
45
|
+
* @param colors - color map to split
|
|
46
|
+
* @param from - index to start from
|
|
47
|
+
* @param to - index to end at
|
|
48
|
+
* @returns a new color map
|
|
49
|
+
*/
|
|
50
|
+
const splitColor = (colors: ColorMap, from: number, to: number): ColorMap => {
|
|
51
|
+
return Object.keys(colors)
|
|
52
|
+
.slice(from, to)
|
|
53
|
+
.reduce((result, key) => {
|
|
54
|
+
result[key] = colors[key]
|
|
55
|
+
|
|
56
|
+
return result
|
|
57
|
+
}, {})
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Color map subsets that can be used in the Storybook preview
|
|
62
|
+
*/
|
|
63
|
+
export const neutral1 = splitColor(colorPalette.neutral, 0, 8)
|
|
64
|
+
export const neutral2 = splitColor(colorPalette.neutral, 8, 16)
|
|
65
|
+
export const neutral3 = splitColor(
|
|
66
|
+
colorPalette.neutral,
|
|
67
|
+
16,
|
|
68
|
+
Object.keys(colorPalette.neutral).length
|
|
69
|
+
)
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Component styles
|
|
3
|
+
*
|
|
4
|
+
* This file contain general styles that should be applied to any component.
|
|
5
|
+
* Since Web Components styles are encapsulated within the Shadow DOM, we need
|
|
6
|
+
* to pass all styles.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
@import './typography';
|
|
10
|
+
|
|
11
|
+
@tailwind base;
|
|
12
|
+
@tailwind components;
|
|
13
|
+
@tailwind utilities;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Fonts
|
|
3
|
+
*
|
|
4
|
+
* This file contains all fonts used in designs.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
$font-file-path: '/assets/fonts' !default;
|
|
8
|
+
|
|
9
|
+
@font-face {
|
|
10
|
+
font-family: Inter;
|
|
11
|
+
src: url('#{$font-file-path}/Inter-Regular.woff2') format('woff2');
|
|
12
|
+
font-weight: normal;
|
|
13
|
+
font-style: normal;
|
|
14
|
+
font-display: swap;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@font-face {
|
|
18
|
+
font-family: Inter;
|
|
19
|
+
src: url('#{$font-file-path}/Inter-Bold.woff2') format('woff2');
|
|
20
|
+
font-weight: bold;
|
|
21
|
+
font-style: normal;
|
|
22
|
+
font-display: swap;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@font-face {
|
|
26
|
+
font-family: Inter;
|
|
27
|
+
src: url('#{$font-file-path}/Inter-SemiBold.woff2') format('woff2');
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
font-display: swap;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@font-face {
|
|
34
|
+
font-family: Inter;
|
|
35
|
+
src: url('#{$font-file-path}/Inter-Medium.woff2') format('woff2');
|
|
36
|
+
font-weight: 500;
|
|
37
|
+
font-style: normal;
|
|
38
|
+
font-display: swap;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
@font-face {
|
|
42
|
+
font-family: Inter;
|
|
43
|
+
src: url('#{$font-file-path}/Inter-Thin.woff2') format('woff2');
|
|
44
|
+
font-weight: 100;
|
|
45
|
+
font-style: normal;
|
|
46
|
+
font-display: swap;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
@font-face {
|
|
50
|
+
font-family: Inter;
|
|
51
|
+
src: url('#{$font-file-path}/Inter-ExtraBold.woff2') format('woff2');
|
|
52
|
+
font-weight: bold;
|
|
53
|
+
font-style: normal;
|
|
54
|
+
font-display: swap;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@font-face {
|
|
58
|
+
font-family: 'PT Mono';
|
|
59
|
+
src: url('#{$font-file-path}/PT-Mono-Regular.woff2') format('woff2');
|
|
60
|
+
font-weight: normal;
|
|
61
|
+
font-style: normal;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@font-face {
|
|
65
|
+
font-family: 'PT Mono';
|
|
66
|
+
src: url('#{$font-file-path}/PT-Mono-Bold.woff2') format('woff2');
|
|
67
|
+
font-weight: bold;
|
|
68
|
+
font-style: normal;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@font-face {
|
|
72
|
+
font-family: Apax;
|
|
73
|
+
src: url('#{$font-file-path}/Apax-Light.woff2') format('woff2');
|
|
74
|
+
font-weight: 300;
|
|
75
|
+
font-style: normal;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
@font-face {
|
|
79
|
+
font-family: Apax;
|
|
80
|
+
src: url('#{$font-file-path}/Apax-Regular.woff2') format('woff2');
|
|
81
|
+
font-weight: 400;
|
|
82
|
+
font-style: normal;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@font-face {
|
|
86
|
+
font-family: Apax;
|
|
87
|
+
src: url('#{$font-file-path}/Apax-Medium.woff2') format('woff2');
|
|
88
|
+
font-weight: 500;
|
|
89
|
+
font-style: normal;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
@font-face {
|
|
93
|
+
font-family: Apax;
|
|
94
|
+
src: url('#{$font-file-path}/Apax-Bold.woff2') format('woff2');
|
|
95
|
+
font-weight: 700;
|
|
96
|
+
font-style: normal;
|
|
97
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=require("../styles/index.cjs");module.exports=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default __dirname
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Typography
|
|
3
|
+
*
|
|
4
|
+
* This file contains all typography classes used in designs.
|
|
5
|
+
* They should be used instead of individual font attributes.
|
|
6
|
+
*
|
|
7
|
+
* You can use them same as the normal Tailwind classes, e.g.: class="heading-1"
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
@layer base {
|
|
11
|
+
.heading-h1 {
|
|
12
|
+
@apply text-26 not-italic font-600 leading-31 font-inter;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.heading-h2 {
|
|
16
|
+
@apply text-21 not-italic font-600 leading-26 font-inter;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.heading-h3 {
|
|
20
|
+
@apply text-17 not-italic font-600 leading-22 font-inter;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.heading-h4 {
|
|
24
|
+
@apply text-12 not-italic font-700 leading-15 font-inter uppercase tracking-[.02em];
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.heading-h5 {
|
|
28
|
+
@apply text-14 not-italic font-700 leading-17 font-inter;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.heading-h1-apax {
|
|
32
|
+
@apply text-24 not-italic font-500 leading-28 font-apax;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.heading-h4-apax {
|
|
36
|
+
@apply text-14 not-italic font-500 leading-20 font-apax;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.heading-h5-apax {
|
|
40
|
+
@apply text-8 not-italic font-500 leading-28 font-apax;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
// Paragraph
|
|
44
|
+
|
|
45
|
+
.paragraph-16-regular {
|
|
46
|
+
@apply text-16 not-italic font-400 leading-24 font-inter;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.paragraph-16-semi-bold {
|
|
50
|
+
@apply text-16 not-italic font-600 leading-24 font-inter;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
.paragraph-14-regular {
|
|
54
|
+
@apply text-14 not-italic font-400 leading-22 font-inter;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.paragraph-14-medium {
|
|
58
|
+
@apply text-14 not-italic font-500 leading-22 font-inter;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.paragraph-14-semi-bold {
|
|
62
|
+
@apply text-14 not-italic font-600 leading-22 font-inter;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.paragraph-12-regular {
|
|
66
|
+
@apply text-12 not-italic font-400 leading-20 font-inter;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.paragraph-12-medium {
|
|
70
|
+
@apply text-12 not-italic font-500 leading-20 font-inter;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
.paragraph-12-semi-bold {
|
|
74
|
+
@apply text-12 not-italic font-600 leading-20 font-inter;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
// Currency
|
|
78
|
+
|
|
79
|
+
.currency-10-semi-bold {
|
|
80
|
+
@apply text-10 not-italic font-600 leading-12 font-inter;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.currency-10-bold-uppercase {
|
|
84
|
+
@apply text-10 not-italic font-700 leading-12 font-inter uppercase;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.currency-14-semi-bold {
|
|
88
|
+
@apply text-14 not-italic font-600 leading-17 font-inter;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
// utility
|
|
92
|
+
|
|
93
|
+
.link {
|
|
94
|
+
@apply text-17 not-italic font-600 leading-22 font-inter;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.button-text {
|
|
98
|
+
@apply text-17 not-italic font-600 leading-17 font-inter;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.caption {
|
|
102
|
+
@apply text-13 not-italic font-400 leading-20 font-inter;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
// Monospaced
|
|
106
|
+
|
|
107
|
+
.monospace-16-regular {
|
|
108
|
+
@apply text-16 not-italic font-400 leading-22 font-mono;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.monospace-16-bold {
|
|
112
|
+
@apply text-16 not-italic font-700 leading-22 font-mono;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.monospace-12-bold {
|
|
116
|
+
@apply text-12 not-italic font-700 leading-14 font-mono;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.monospace-10-bold {
|
|
120
|
+
@apply text-10 not-italic font-700 leading-14 font-mono;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const e=__dirname;module.exports=e;
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @file Main styles
|
|
3
|
+
*
|
|
4
|
+
* This file contain general styles that should be applied to host page.
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @file Fonts
|
|
8
|
+
*
|
|
9
|
+
* This file contains all fonts used in designs.
|
|
10
|
+
*/
|
|
11
|
+
@font-face {
|
|
12
|
+
font-family: Inter;
|
|
13
|
+
src: url("/assets/fonts/Inter-Regular.woff2") format("woff2");
|
|
14
|
+
font-weight: normal;
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-display: swap;
|
|
17
|
+
}
|
|
18
|
+
@font-face {
|
|
19
|
+
font-family: Inter;
|
|
20
|
+
src: url("/assets/fonts/Inter-Bold.woff2") format("woff2");
|
|
21
|
+
font-weight: bold;
|
|
22
|
+
font-style: normal;
|
|
23
|
+
font-display: swap;
|
|
24
|
+
}
|
|
25
|
+
@font-face {
|
|
26
|
+
font-family: Inter;
|
|
27
|
+
src: url("/assets/fonts/Inter-SemiBold.woff2") format("woff2");
|
|
28
|
+
font-weight: 600;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
font-display: swap;
|
|
31
|
+
}
|
|
32
|
+
@font-face {
|
|
33
|
+
font-family: Inter;
|
|
34
|
+
src: url("/assets/fonts/Inter-Medium.woff2") format("woff2");
|
|
35
|
+
font-weight: 500;
|
|
36
|
+
font-style: normal;
|
|
37
|
+
font-display: swap;
|
|
38
|
+
}
|
|
39
|
+
@font-face {
|
|
40
|
+
font-family: Inter;
|
|
41
|
+
src: url("/assets/fonts/Inter-Thin.woff2") format("woff2");
|
|
42
|
+
font-weight: 100;
|
|
43
|
+
font-style: normal;
|
|
44
|
+
font-display: swap;
|
|
45
|
+
}
|
|
46
|
+
@font-face {
|
|
47
|
+
font-family: Inter;
|
|
48
|
+
src: url("/assets/fonts/Inter-ExtraBold.woff2") format("woff2");
|
|
49
|
+
font-weight: bold;
|
|
50
|
+
font-style: normal;
|
|
51
|
+
font-display: swap;
|
|
52
|
+
}
|
|
53
|
+
@font-face {
|
|
54
|
+
font-family: "PT Mono";
|
|
55
|
+
src: url("/assets/fonts/PT-Mono-Regular.woff2") format("woff2");
|
|
56
|
+
font-weight: normal;
|
|
57
|
+
font-style: normal;
|
|
58
|
+
}
|
|
59
|
+
@font-face {
|
|
60
|
+
font-family: "PT Mono";
|
|
61
|
+
src: url("/assets/fonts/PT-Mono-Bold.woff2") format("woff2");
|
|
62
|
+
font-weight: bold;
|
|
63
|
+
font-style: normal;
|
|
64
|
+
}
|
|
65
|
+
@font-face {
|
|
66
|
+
font-family: Apax;
|
|
67
|
+
src: url("/assets/fonts/Apax-Light.woff2") format("woff2");
|
|
68
|
+
font-weight: 300;
|
|
69
|
+
font-style: normal;
|
|
70
|
+
}
|
|
71
|
+
@font-face {
|
|
72
|
+
font-family: Apax;
|
|
73
|
+
src: url("/assets/fonts/Apax-Regular.woff2") format("woff2");
|
|
74
|
+
font-weight: 400;
|
|
75
|
+
font-style: normal;
|
|
76
|
+
}
|
|
77
|
+
@font-face {
|
|
78
|
+
font-family: Apax;
|
|
79
|
+
src: url("/assets/fonts/Apax-Medium.woff2") format("woff2");
|
|
80
|
+
font-weight: 500;
|
|
81
|
+
font-style: normal;
|
|
82
|
+
}
|
|
83
|
+
@font-face {
|
|
84
|
+
font-family: Apax;
|
|
85
|
+
src: url("/assets/fonts/Apax-Bold.woff2") format("woff2");
|
|
86
|
+
font-weight: 700;
|
|
87
|
+
font-style: normal;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @file Typography
|
|
91
|
+
*
|
|
92
|
+
* This file contains all typography classes used in designs.
|
|
93
|
+
* They should be used instead of individual font attributes.
|
|
94
|
+
*
|
|
95
|
+
* You can use them same as the normal Tailwind classes, e.g.: class="heading-1"
|
|
96
|
+
*/
|
|
97
|
+
@layer base {
|
|
98
|
+
.heading-h1 {
|
|
99
|
+
@apply text-26 not-italic font-600 leading-31 font-inter;
|
|
100
|
+
}
|
|
101
|
+
.heading-h2 {
|
|
102
|
+
@apply text-21 not-italic font-600 leading-26 font-inter;
|
|
103
|
+
}
|
|
104
|
+
.heading-h3 {
|
|
105
|
+
@apply text-17 not-italic font-600 leading-22 font-inter;
|
|
106
|
+
}
|
|
107
|
+
.heading-h4 {
|
|
108
|
+
@apply text-12 not-italic font-700 leading-15 font-inter uppercase tracking-[.02em];
|
|
109
|
+
}
|
|
110
|
+
.heading-h5 {
|
|
111
|
+
@apply text-14 not-italic font-700 leading-17 font-inter;
|
|
112
|
+
}
|
|
113
|
+
.heading-h1-apax {
|
|
114
|
+
@apply text-24 not-italic font-500 leading-28 font-apax;
|
|
115
|
+
}
|
|
116
|
+
.heading-h4-apax {
|
|
117
|
+
@apply text-14 not-italic font-500 leading-20 font-apax;
|
|
118
|
+
}
|
|
119
|
+
.heading-h5-apax {
|
|
120
|
+
@apply text-8 not-italic font-500 leading-28 font-apax;
|
|
121
|
+
}
|
|
122
|
+
.paragraph-16-regular {
|
|
123
|
+
@apply text-16 not-italic font-400 leading-24 font-inter;
|
|
124
|
+
}
|
|
125
|
+
.paragraph-16-semi-bold {
|
|
126
|
+
@apply text-16 not-italic font-600 leading-24 font-inter;
|
|
127
|
+
}
|
|
128
|
+
.paragraph-14-regular {
|
|
129
|
+
@apply text-14 not-italic font-400 leading-22 font-inter;
|
|
130
|
+
}
|
|
131
|
+
.paragraph-14-medium {
|
|
132
|
+
@apply text-14 not-italic font-500 leading-22 font-inter;
|
|
133
|
+
}
|
|
134
|
+
.paragraph-14-semi-bold {
|
|
135
|
+
@apply text-14 not-italic font-600 leading-22 font-inter;
|
|
136
|
+
}
|
|
137
|
+
.paragraph-12-regular {
|
|
138
|
+
@apply text-12 not-italic font-400 leading-20 font-inter;
|
|
139
|
+
}
|
|
140
|
+
.paragraph-12-medium {
|
|
141
|
+
@apply text-12 not-italic font-500 leading-20 font-inter;
|
|
142
|
+
}
|
|
143
|
+
.paragraph-12-semi-bold {
|
|
144
|
+
@apply text-12 not-italic font-600 leading-20 font-inter;
|
|
145
|
+
}
|
|
146
|
+
.currency-10-semi-bold {
|
|
147
|
+
@apply text-10 not-italic font-600 leading-12 font-inter;
|
|
148
|
+
}
|
|
149
|
+
.currency-10-bold-uppercase {
|
|
150
|
+
@apply text-10 not-italic font-700 leading-12 font-inter uppercase;
|
|
151
|
+
}
|
|
152
|
+
.currency-14-semi-bold {
|
|
153
|
+
@apply text-14 not-italic font-600 leading-17 font-inter;
|
|
154
|
+
}
|
|
155
|
+
.link {
|
|
156
|
+
@apply text-17 not-italic font-600 leading-22 font-inter;
|
|
157
|
+
}
|
|
158
|
+
.button-text {
|
|
159
|
+
@apply text-17 not-italic font-600 leading-17 font-inter;
|
|
160
|
+
}
|
|
161
|
+
.caption {
|
|
162
|
+
@apply text-13 not-italic font-400 leading-20 font-inter;
|
|
163
|
+
}
|
|
164
|
+
.monospace-16-regular {
|
|
165
|
+
@apply text-16 not-italic font-400 leading-22 font-mono;
|
|
166
|
+
}
|
|
167
|
+
.monospace-16-bold {
|
|
168
|
+
@apply text-16 not-italic font-700 leading-22 font-mono;
|
|
169
|
+
}
|
|
170
|
+
.monospace-12-bold {
|
|
171
|
+
@apply text-12 not-italic font-700 leading-14 font-mono;
|
|
172
|
+
}
|
|
173
|
+
.monospace-10-bold {
|
|
174
|
+
@apply text-10 not-italic font-700 leading-14 font-mono;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
@tailwind base;
|
|
178
|
+
@tailwind components;
|
|
179
|
+
@tailwind utilities;
|
|
180
|
+
|
|
181
|
+
/*# sourceMappingURL=main.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sourceRoot":"","sources":["../../src/shared/styles/main.scss","../../src/shared/styles/fonts.scss","../../src/shared/styles/typography.scss"],"names":[],"mappings":"AAAA;AAAA;AAAA;AAAA;AAAA;ACAA;AAAA;AAAA;AAAA;AAAA;AAQA;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AAGF;EACE;EACA;EACA;EACA;;AC/FF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AASA;EACE;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAKF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;EAKF;IACE;;EAGF;IACE;;EAGF;IACE;;EAKF;IACE;;EAGF;IACE;;EAGF;IACE;;EAKF;IACE;;EAGF;IACE;;EAGF;IACE;;EAGF;IACE;;;AF9GJ;AACA;AACA","file":"main.css"}
|