@ably/ui 8.7.0-dev.e7c81e7 → 8.7.0-dev.ef0470f
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/core/Code/component.css +2 -0
- package/core/Code/component.js +1 -1
- package/core/Code.jsx +108 -88
- package/core/CompanyAutocomplete/component.js +1 -1
- package/core/ConnectStateWrapper/component.js +1 -1
- package/core/ConnectStateWrapper.jsx +7 -7
- package/core/ContactFooter/component.js +1 -1
- package/core/ContactFooter.jsx +12 -12
- package/core/CookieMessage/component.js +1 -1
- package/core/CookieMessage.jsx +10 -10
- package/core/CustomerLogos/component.js +1 -1
- package/core/CustomerLogos.jsx +7 -7
- package/core/DropdownMenu/component.js +1 -1
- package/core/DropdownMenu.jsx +11 -11
- package/core/FeatureFooter/component.js +1 -1
- package/core/FeaturedLink/component.js +1 -1
- package/core/FeaturedLink.jsx +10 -10
- package/core/Flash/component.js +1 -1
- package/core/Flash.jsx +19 -19
- package/core/Footer/component.js +1 -1
- package/core/Footer.jsx +19 -19
- package/core/Icon/component.js +1 -1
- package/core/Icon.jsx +7 -7
- package/core/Loader/component.js +1 -1
- package/core/Loader.jsx +7 -7
- package/core/Logo/component.js +1 -1
- package/core/Logo.jsx +7 -7
- package/core/Meganav/component.css +1 -3
- package/core/Meganav/component.js +1 -1
- package/core/Meganav.jsx +167 -142
- package/core/MeganavBlogPostsList/component.js +1 -1
- package/core/MeganavBlogPostsList.jsx +13 -13
- package/core/MeganavContentCompany/component.js +1 -1
- package/core/MeganavContentCompany.jsx +39 -27
- package/core/MeganavContentDevelopers/component.js +1 -1
- package/core/MeganavContentDevelopers.jsx +30 -17
- package/core/MeganavContentPlatform/component.js +1 -1
- package/core/MeganavContentPlatform.jsx +15 -15
- package/core/MeganavContentUseCases/component.js +1 -1
- package/core/MeganavContentUseCases.jsx +16 -16
- package/core/MeganavControl/component.js +1 -1
- package/core/MeganavControl.jsx +10 -10
- package/core/MeganavControlMobileDropdown/component.js +1 -1
- package/core/MeganavControlMobileDropdown.jsx +11 -11
- package/core/MeganavControlMobilePanelClose/component.js +1 -1
- package/core/MeganavControlMobilePanelClose.jsx +10 -10
- package/core/MeganavControlMobilePanelOpen/component.js +1 -1
- package/core/MeganavControlMobilePanelOpen.jsx +10 -10
- package/core/MeganavItemsDesktop/component.js +1 -1
- package/core/MeganavItemsDesktop.jsx +16 -16
- package/core/MeganavItemsMobile/component.js +1 -1
- package/core/MeganavItemsMobile.jsx +39 -39
- package/core/MeganavItemsSignedIn/component.js +1 -1
- package/core/MeganavItemsSignedIn.jsx +33 -33
- package/core/MeganavSearch/component.js +1 -1
- package/core/MeganavSearch.jsx +23 -23
- package/core/MeganavSearchAutocomplete/component.js +1 -1
- package/core/MeganavSearchAutocomplete.jsx +4 -4
- package/core/MeganavSearchPanel/component.js +1 -1
- package/core/MeganavSearchPanel.jsx +19 -19
- package/core/MeganavSearchSuggestions/component.js +1 -1
- package/core/MeganavSearchSuggestions.jsx +13 -13
- package/core/Notice/component.js +1 -1
- package/core/Notice.jsx +30 -30
- package/core/Showcase/component.js +1 -1
- package/core/Showcase.jsx +1 -1
- package/core/SignOutLink/component.js +1 -1
- package/core/SignOutLink.jsx +7 -7
- package/core/Slider/component.js +1 -1
- package/core/Slider.jsx +14 -14
- package/core/Uptime/component.js +1 -1
- package/core/Uptime.jsx +15 -15
- package/core/fonts/jetBrains-mono.css +3 -0
- package/core/fonts/manrope.css +3 -0
- package/core/scripts.js +1 -1
- package/core/sprites.svg +12 -0
- package/core/styles.css +122 -94
- package/package.json +1 -1
- package/reset/scripts.js +1 -1
- package/reset/styles.css +1 -11
- package/src/core/Meganav/component.css +1 -1
- package/src/core/MeganavContentCompany/component.html.erb +9 -0
- package/src/core/MeganavContentCompany/component.jsx +9 -0
- package/src/core/MeganavContentDevelopers/component.html.erb +9 -2
- package/src/core/MeganavContentDevelopers/component.jsx +11 -1
- package/src/core/MeganavContentUseCases/component.html.erb +1 -1
- package/src/core/MeganavContentUseCases/component.jsx +1 -1
- package/src/core/fonts/jetBrains-mono.css +3 -0
- package/src/core/fonts/manrope.css +3 -0
- package/src/core/icons/icon-display-events-col.svg +13 -0
- package/src/core/styles/buttons.css +5 -5
- package/src/core/styles/forms.css +5 -5
- package/src/core/styles/properties.css +47 -31
- package/src/core/styles/text.css +65 -47
- package/src/core/utils/syntax-highlighter-registry.js +2 -0
- package/src/core/utils/syntax-highlighter.css +2 -0
- package/src/core/utils/syntax-highlighter.js +5 -0
- package/tailwind.config.js +42 -26
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.ui-checkbox-p1 {
|
|
3
|
-
@apply flex items-start mb-16 font-
|
|
3
|
+
@apply flex items-start mb-16 font-manrope font-medium;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.ui-checkbox-p2 {
|
|
7
|
-
@apply flex items-start mb-12 font-
|
|
7
|
+
@apply flex items-start mb-12 font-manrope font-medium;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.ui-checkbox-input {
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
|
|
24
24
|
.ui-checkbox-label-p1 {
|
|
25
25
|
@apply select-none;
|
|
26
|
-
@apply text-p1 font-
|
|
26
|
+
@apply text-p1 font-medium text-cool-black;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
.ui-checkbox-label-p2 {
|
|
30
30
|
@apply select-none;
|
|
31
|
-
@apply text-p2 font-
|
|
31
|
+
@apply text-p2 font-medium text-cool-black;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.ui-checkbox-input:disabled + .ui-checkbox-styled {
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
}
|
|
50
50
|
|
|
51
51
|
.ui-textarea {
|
|
52
|
-
@apply font-
|
|
52
|
+
@apply font-manrope font-medium text-cool-black text-p1;
|
|
53
53
|
@apply p-input mb-16;
|
|
54
54
|
@apply bg-light-grey border-mid-grey transition-input border rounded block w-full;
|
|
55
55
|
@apply hover:bg-white hover:shadow-input hover:border-transparent;
|
|
@@ -4,20 +4,24 @@
|
|
|
4
4
|
--color-active-orange: #ff5416;
|
|
5
5
|
--color-red-orange: #e40000;
|
|
6
6
|
--color-white: #ffffff;
|
|
7
|
-
--color-electric-cyan: #
|
|
7
|
+
--color-electric-cyan: #4ad4ff;
|
|
8
8
|
--color-zingy-green: #08ff13;
|
|
9
|
-
--color-bright-red: #
|
|
9
|
+
--color-bright-red: #fe372b;
|
|
10
|
+
--color-orange-700: #ff2739;
|
|
10
11
|
--color-jazzy-pink: #ff17d2;
|
|
11
|
-
--color-extra-light-grey: #
|
|
12
|
-
--color-light-grey: #
|
|
13
|
-
--color-mid-grey: #
|
|
14
|
-
--color-dark-grey: #
|
|
15
|
-
--color-charcoal-grey: #
|
|
16
|
-
--color-gui-default: #
|
|
17
|
-
--color-gui-hover: #
|
|
18
|
-
--color-gui-focus: #0073e6;
|
|
19
|
-
--color-gui-focus-outline: #80b9f2;
|
|
12
|
+
--color-extra-light-grey: #f8fafc;
|
|
13
|
+
--color-light-grey: #f4f8fb;
|
|
14
|
+
--color-mid-grey: #c6ced9;
|
|
15
|
+
--color-dark-grey: #667085;
|
|
16
|
+
--color-charcoal-grey: #2b303b;
|
|
17
|
+
--color-gui-default: #006edc;
|
|
18
|
+
--color-gui-hover: #0862b9;
|
|
20
19
|
--color-gui-active: #074095;
|
|
20
|
+
--color-gui-default-dark: #4da6ff;
|
|
21
|
+
--color-gui-hover-dark: #2894ff;
|
|
22
|
+
--color-gui-active-dark: #0080ff;
|
|
23
|
+
--color-gui-focus: #80b9f2;
|
|
24
|
+
--color-gui-focus-outline: #80b9f2;
|
|
21
25
|
--color-gui-visited: #4887c2;
|
|
22
26
|
--color-gui-unavailable: #a8a8a8;
|
|
23
27
|
--color-gui-error: #fb0c0c;
|
|
@@ -36,6 +40,10 @@
|
|
|
36
40
|
--syntax-red: #d54e53;
|
|
37
41
|
--syntax-lilac: #bb87d3;
|
|
38
42
|
|
|
43
|
+
/* New Neutral colors */
|
|
44
|
+
--color-neutral-900: #39414e;
|
|
45
|
+
--color-neutral-500: #c6ced9;
|
|
46
|
+
|
|
39
47
|
/* uptime status colors */
|
|
40
48
|
--uptime-color-up: #39b54a;
|
|
41
49
|
--uptime-color-trouble: #e87623;
|
|
@@ -70,38 +78,43 @@
|
|
|
70
78
|
|
|
71
79
|
--gradient-hot-pink: linear-gradient(
|
|
72
80
|
80.2deg,
|
|
73
|
-
var(--color-
|
|
81
|
+
var(--color-orange-700) 0%,
|
|
74
82
|
var(--color-jazzy-pink) 100%
|
|
75
83
|
);
|
|
76
84
|
|
|
77
|
-
--fs-title-xl:
|
|
78
|
-
--fs-title:
|
|
79
|
-
--fs-title-xs:
|
|
80
|
-
--fs-h1-xl:
|
|
81
|
-
--fs-h1:
|
|
82
|
-
--fs-h1-xs:
|
|
83
|
-
|
|
85
|
+
--fs-title-xl: 3rem;
|
|
86
|
+
--fs-title: 2.75rem;
|
|
87
|
+
--fs-title-xs: 2.5rem;
|
|
88
|
+
--fs-h1-xl: 2.5rem;
|
|
89
|
+
--fs-h1: 2.25rem;
|
|
90
|
+
--fs-h1-xs: 2rem;
|
|
91
|
+
|
|
92
|
+
--fs-h2-xl: 2.125rem;
|
|
84
93
|
--fs-h2: 2rem;
|
|
85
|
-
--fs-h2-xs: 1.
|
|
94
|
+
--fs-h2-xs: 1.75rem;
|
|
95
|
+
|
|
86
96
|
--fs-h3: 1.5rem;
|
|
87
|
-
--fs-h4: 1.
|
|
88
|
-
--fs-
|
|
89
|
-
|
|
97
|
+
--fs-h4: 1.25rem;
|
|
98
|
+
--fs-h5: 1rem;
|
|
99
|
+
|
|
100
|
+
--fs-p1: 1rem;
|
|
101
|
+
--fs-p2: 0.938rem;
|
|
90
102
|
--fs-p3: 0.875rem;
|
|
91
103
|
--fs-standfirst-xl: 2.25rem;
|
|
92
104
|
--fs-standfirst: 1.5rem;
|
|
93
|
-
--fs-sub-header: 1.
|
|
94
|
-
--fs-sub-header-xs: 1.
|
|
105
|
+
--fs-sub-header: 1.125rem;
|
|
106
|
+
--fs-sub-header-xs: 1.063rem;
|
|
95
107
|
--fs-overline1: 1rem;
|
|
96
108
|
--fs-overline2: 0.875rem;
|
|
97
|
-
--fs-btn1:
|
|
98
|
-
--fs-btn2:
|
|
109
|
+
--fs-btn1: 1rem;
|
|
110
|
+
--fs-btn2: 0.938rem;
|
|
99
111
|
--fs-btn3: 0.875rem;
|
|
100
|
-
--fs-menu1:
|
|
101
|
-
--fs-menu2:
|
|
112
|
+
--fs-menu1: 1rem;
|
|
113
|
+
--fs-menu2: 0.938rem;
|
|
102
114
|
--fs-menu3: 0.875rem;
|
|
103
|
-
--fs-quote: 1.
|
|
104
|
-
--fs-code: 0.
|
|
115
|
+
--fs-quote: 1.25rem;
|
|
116
|
+
--fs-code: 0.938rem;
|
|
117
|
+
--fs-code2: 0.813rem;
|
|
105
118
|
|
|
106
119
|
--lh-dense: 1;
|
|
107
120
|
--lh-tight: 1.125;
|
|
@@ -115,7 +128,9 @@
|
|
|
115
128
|
--ls-tighten-0_01: -0.01em;
|
|
116
129
|
--ls-tighten-0_005: -0.005em;
|
|
117
130
|
--ls-tighten-0_0025: -0.0025em;
|
|
131
|
+
--ls-tighten-0_0015: -0.0015em;
|
|
118
132
|
--ls-widen-0_1: 0.1em;
|
|
133
|
+
--ls-widen-0_16: 0.16em;
|
|
119
134
|
--ls-widen-0_15: 0.15em;
|
|
120
135
|
|
|
121
136
|
--spacing-0: 0px;
|
|
@@ -130,6 +145,7 @@
|
|
|
130
145
|
--spacing-20: 1.25rem;
|
|
131
146
|
--spacing-24: 1.5rem;
|
|
132
147
|
--spacing-32: 2rem;
|
|
148
|
+
--spacing-36: 2.25rem;
|
|
133
149
|
--spacing-40: 2.5rem;
|
|
134
150
|
--spacing-48: 3rem;
|
|
135
151
|
--spacing-64: 4rem;
|
package/src/core/styles/text.css
CHANGED
|
@@ -1,47 +1,53 @@
|
|
|
1
1
|
@layer components {
|
|
2
2
|
.ui-text-title {
|
|
3
|
-
@apply font-
|
|
4
|
-
@apply text-title-xs xs:text-title xl:text-title-xl;
|
|
5
|
-
@apply tracking-tighten-0.
|
|
3
|
+
@apply font-manrope font-extrabold text-cool-black;
|
|
4
|
+
@apply text-title-xs xs:text-title xl:text-title-xl leading-tight;
|
|
5
|
+
@apply tracking-tighten-0.015 xs:tracking-tighten-0.02 xl:tracking-tighten-0.02;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.ui-text-h1 {
|
|
9
|
-
@apply font-
|
|
10
|
-
@apply text-h1-xs xs:text-h1 xl:text-h1-xl;
|
|
11
|
-
@apply tracking-tighten-0.
|
|
9
|
+
@apply font-manrope font-extrabold text-cool-black;
|
|
10
|
+
@apply text-h1-xs xs:text-h1 xl:text-h1-xl leading-tight;
|
|
11
|
+
@apply tracking-tighten-0.0125 xs:tracking-tighten-0.015;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.ui-text-h2 {
|
|
15
|
-
@apply font-
|
|
16
|
-
@apply text-h2-xs xs:text-h2 xl:text-h2-xl;
|
|
17
|
-
@apply tracking-tighten-0.
|
|
15
|
+
@apply font-manrope font-extrabold text-cool-black;
|
|
16
|
+
@apply text-h2-xs xs:text-h2 xl:text-h2-xl leading-tight;
|
|
17
|
+
@apply tracking-tighten-0.015 xs:tracking-tighten-0.01;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.ui-text-h3 {
|
|
21
|
-
@apply font-
|
|
22
|
-
@apply text-h3;
|
|
23
|
-
@apply tracking-tighten-0.
|
|
21
|
+
@apply font-manrope font-extrabold text-cool-black;
|
|
22
|
+
@apply text-h3 leading-tight;
|
|
23
|
+
@apply tracking-tighten-0.005;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
.ui-text-h4 {
|
|
27
|
-
@apply font-
|
|
28
|
-
@apply text-h4
|
|
29
|
-
@apply tracking-
|
|
27
|
+
@apply font-manrope font-extrabold text-cool-black;
|
|
28
|
+
@apply text-h4 leading-tight;
|
|
29
|
+
@apply tracking-tighten-0.0015;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.ui-text-h5 {
|
|
33
|
+
@apply font-manrope font-extrabold text-cool-black;
|
|
34
|
+
@apply text-h5 leading-tight;
|
|
35
|
+
@apply tracking-tighten-0.0025;
|
|
30
36
|
}
|
|
31
37
|
|
|
32
38
|
.ui-text-p1 {
|
|
33
|
-
@apply font-
|
|
34
|
-
@apply text-p1;
|
|
39
|
+
@apply font-manrope font-medium text-charcoal-grey;
|
|
40
|
+
@apply text-p1 leading-relaxed;
|
|
35
41
|
}
|
|
36
42
|
|
|
37
43
|
.ui-text-p2 {
|
|
38
|
-
@apply font-
|
|
39
|
-
@apply text-p2;
|
|
44
|
+
@apply font-manrope font-medium text-charcoal-grey;
|
|
45
|
+
@apply text-p2 leading-relaxed;
|
|
40
46
|
}
|
|
41
47
|
|
|
42
48
|
.ui-text-p3 {
|
|
43
|
-
@apply font-
|
|
44
|
-
@apply text-p3;
|
|
49
|
+
@apply font-manrope font-medium text-charcoal-grey;
|
|
50
|
+
@apply text-p3 leading-relaxed;
|
|
45
51
|
}
|
|
46
52
|
|
|
47
53
|
.ui-text-standfirst {
|
|
@@ -51,60 +57,63 @@
|
|
|
51
57
|
}
|
|
52
58
|
|
|
53
59
|
.ui-text-quote {
|
|
54
|
-
@apply font-
|
|
55
|
-
@apply text-quote;
|
|
56
|
-
@apply tracking-tighten-0.
|
|
60
|
+
@apply font-manrope font-normal text-cool-black;
|
|
61
|
+
@apply text-quote leading-normal;
|
|
62
|
+
@apply tracking-tighten-0.0015;
|
|
57
63
|
}
|
|
58
64
|
|
|
59
65
|
.ui-text-sub-header {
|
|
60
|
-
@apply font-
|
|
61
|
-
@apply text-sub-header-xs xs:text-sub-header;
|
|
62
|
-
@apply tracking-tighten-0.025;
|
|
66
|
+
@apply font-manrope font-semibold text-neutral-900;
|
|
67
|
+
@apply text-sub-header-xs xs:text-sub-header leading-normal;
|
|
63
68
|
}
|
|
64
69
|
|
|
65
70
|
.ui-text-overline1 {
|
|
66
|
-
@apply font-
|
|
67
|
-
@apply text-overline1;
|
|
68
|
-
@apply tracking-widen-0.
|
|
71
|
+
@apply font-jetbrains_mono font-medium text-active-orange uppercase;
|
|
72
|
+
@apply text-overline1 leading-normal;
|
|
73
|
+
@apply tracking-widen-0.16;
|
|
69
74
|
}
|
|
70
75
|
|
|
71
76
|
.ui-text-overline2 {
|
|
72
|
-
@apply font-
|
|
73
|
-
@apply text-overline2;
|
|
74
|
-
@apply tracking-widen-0.
|
|
77
|
+
@apply font-jetbrains_mono font-medium text-active-orange uppercase;
|
|
78
|
+
@apply text-overline2 leading-normal;
|
|
79
|
+
@apply tracking-widen-0.16;
|
|
75
80
|
}
|
|
76
81
|
|
|
77
82
|
.ui-text-menu1 {
|
|
78
|
-
@apply font-
|
|
79
|
-
@apply text-menu1;
|
|
83
|
+
@apply font-manrope font-medium text-cool-black;
|
|
84
|
+
@apply text-menu1 leading-snug;
|
|
80
85
|
}
|
|
81
86
|
|
|
82
87
|
.ui-text-menu2 {
|
|
83
|
-
@apply font-
|
|
84
|
-
@apply text-menu2;
|
|
88
|
+
@apply font-manrope font-medium text-cool-black;
|
|
89
|
+
@apply text-menu2 leading-snug;
|
|
85
90
|
}
|
|
86
91
|
|
|
87
92
|
.ui-text-menu3 {
|
|
88
|
-
@apply font-
|
|
89
|
-
@apply text-menu3;
|
|
93
|
+
@apply font-manrope font-medium text-cool-black;
|
|
94
|
+
@apply text-menu3 leading-snug;
|
|
90
95
|
}
|
|
91
96
|
|
|
92
97
|
.ui-text-code {
|
|
93
|
-
@apply font-
|
|
98
|
+
@apply font-jetbrains_mono font-medium text-code;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.ui-text-code2 {
|
|
102
|
+
@apply font-jetbrains_mono font-medium text-code2;
|
|
94
103
|
}
|
|
95
104
|
|
|
96
105
|
.ui-text-code-inline {
|
|
97
|
-
@apply font-
|
|
106
|
+
@apply font-jetbrains_mono font-medium text-code text-charcoal-grey bg-light-grey p-inline-code rounded-sm mx-1;
|
|
98
107
|
}
|
|
99
108
|
|
|
100
109
|
.ui-unordered-list {
|
|
101
|
-
@apply text-p1 font-
|
|
102
|
-
@apply list-disc ml-32
|
|
110
|
+
@apply text-p1 font-medium text-cool-black;
|
|
111
|
+
@apply list-disc ml-32 my-16;
|
|
103
112
|
}
|
|
104
113
|
|
|
105
114
|
.ui-ordered-list {
|
|
106
|
-
@apply text-p1 font-
|
|
107
|
-
@apply ml-32
|
|
115
|
+
@apply text-p1 font-medium text-charcoal-grey;
|
|
116
|
+
@apply ml-32 my-16 list-decimal;
|
|
108
117
|
}
|
|
109
118
|
|
|
110
119
|
.ui-unordered-list li > *:last-of-type:not(ul):not(ol),
|
|
@@ -121,11 +130,20 @@
|
|
|
121
130
|
}
|
|
122
131
|
|
|
123
132
|
.ui-unordered-list ul ul {
|
|
124
|
-
@apply list-square;
|
|
133
|
+
@apply list-square my-8;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.ui-unordered-list ul ul {
|
|
137
|
+
@apply my-8;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.ui-ordered-list li,
|
|
141
|
+
.ui-unordered-list li {
|
|
142
|
+
@apply font-medium font-manrope tracking-widen-0 leading-relaxed;
|
|
125
143
|
}
|
|
126
144
|
|
|
127
145
|
.ui-unordered-list-with-emphasis {
|
|
128
|
-
@apply text-p1 font-
|
|
146
|
+
@apply text-p1 font-medium text-cool-black;
|
|
129
147
|
@apply list-disc ml-32 mt-32 -mb-12;
|
|
130
148
|
}
|
|
131
149
|
|
|
@@ -22,6 +22,7 @@ import php from "highlight.js/lib/languages/php";
|
|
|
22
22
|
import python from "highlight.js/lib/languages/python";
|
|
23
23
|
import ruby from "highlight.js/lib/languages/ruby";
|
|
24
24
|
import swift from "highlight.js/lib/languages/swift";
|
|
25
|
+
import kotlin from "highlight.js/lib/languages/kotlin";
|
|
25
26
|
import sql from "highlight.js/lib/languages/sql";
|
|
26
27
|
import xml from "highlight.js/lib/languages/xml";
|
|
27
28
|
import yaml from "highlight.js/lib/languages/yaml";
|
|
@@ -44,6 +45,7 @@ const registry = [
|
|
|
44
45
|
{ label: "C++", key: "cpp", module: cpp },
|
|
45
46
|
{ label: "Dart", key: "dart", module: dart },
|
|
46
47
|
{ label: "Swift", key: "swift", module: swift },
|
|
48
|
+
{ label: "Kotlin", key: "kotlin", module: kotlin },
|
|
47
49
|
{ label: "Objective C", key: "objectivec", module: objectivec },
|
|
48
50
|
{ label: "Node.js", key: "javascript", module: javascript },
|
|
49
51
|
{ label: "JSON", key: "json", module: json },
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
@layer base {
|
|
2
2
|
@import url("https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,600;0,700;1,600;1,700&display=swap");
|
|
3
|
+
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;200;300;400;500;600;700;800&display=swap");
|
|
4
|
+
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200;300;400;500;600;700;800&display=swap");
|
|
3
5
|
}
|
|
4
6
|
|
|
5
7
|
@layer components {
|
package/tailwind.config.js
CHANGED
|
@@ -24,35 +24,37 @@ module.exports = {
|
|
|
24
24
|
xl: "1440px",
|
|
25
25
|
},
|
|
26
26
|
fontSize: {
|
|
27
|
-
title: ["var(--fs-title)"
|
|
28
|
-
"title-xl": ["var(--fs-title-xl)"
|
|
29
|
-
"title-xs": ["var(--fs-title-xs)"
|
|
30
|
-
h1: ["var(--fs-h1)"
|
|
31
|
-
"h1-xl": ["var(--fs-h1-xl)"
|
|
32
|
-
"h1-xs": ["var(--fs-h1-xs)"
|
|
33
|
-
h2: ["var(--fs-h2)"
|
|
34
|
-
"h2-xl": ["var(--fs-h2-xl)"
|
|
35
|
-
"h2-xs": ["var(--fs-h2-xs)"
|
|
36
|
-
h3: ["var(--fs-h3)"
|
|
37
|
-
h4: ["var(--fs-h4)"
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
"sub-header
|
|
45
|
-
|
|
46
|
-
|
|
27
|
+
title: ["var(--fs-title)"],
|
|
28
|
+
"title-xl": ["var(--fs-title-xl)"],
|
|
29
|
+
"title-xs": ["var(--fs-title-xs)"],
|
|
30
|
+
h1: ["var(--fs-h1)"],
|
|
31
|
+
"h1-xl": ["var(--fs-h1-xl)"],
|
|
32
|
+
"h1-xs": ["var(--fs-h1-xs)"],
|
|
33
|
+
h2: ["var(--fs-h2)"],
|
|
34
|
+
"h2-xl": ["var(--fs-h2-xl)"],
|
|
35
|
+
"h2-xs": ["var(--fs-h2-xs)"],
|
|
36
|
+
h3: ["var(--fs-h3)"],
|
|
37
|
+
h4: ["var(--fs-h4)"],
|
|
38
|
+
h5: ["var(--fs-h5)"],
|
|
39
|
+
p1: ["var(--fs-p1)"],
|
|
40
|
+
p2: ["var(--fs-p2)"],
|
|
41
|
+
p3: ["var(--fs-p3)"],
|
|
42
|
+
standfirst: ["var(--fs-standfirst)"],
|
|
43
|
+
"standfirst-xl": ["var(--fs-standfirst-xl)"],
|
|
44
|
+
"sub-header": ["var(--fs-sub-header)"],
|
|
45
|
+
"sub-header-xs": ["var(--fs-sub-header-xs)"],
|
|
46
|
+
overline1: ["var(--fs-overline1)"],
|
|
47
|
+
overline2: ["var(--fs-overline2)"],
|
|
47
48
|
btn1: ["var(--fs-btn1)", "var(--lh-normal)"],
|
|
48
49
|
btn2: ["var(--fs-btn2)", "var(--lh-tight)"],
|
|
49
50
|
btn3: ["var(--fs-btn2)", "var(--lh-tight)"],
|
|
50
51
|
btn4: ["var(--fs-btn3)", "var(--lh-dense)"],
|
|
51
|
-
menu1: ["var(--fs-menu1)"
|
|
52
|
-
menu2: ["var(--fs-menu2)"
|
|
53
|
-
menu3: ["var(--fs-menu3)"
|
|
54
|
-
quote: ["var(--fs-quote)"
|
|
52
|
+
menu1: ["var(--fs-menu1)"],
|
|
53
|
+
menu2: ["var(--fs-menu2)"],
|
|
54
|
+
menu3: ["var(--fs-menu3)"],
|
|
55
|
+
quote: ["var(--fs-quote)"],
|
|
55
56
|
code: ["var(--fs-code)", "var(--lh-dense)"],
|
|
57
|
+
code2: ["var(--fs-code2)", "var(--lh-dense)"],
|
|
56
58
|
},
|
|
57
59
|
colors: {
|
|
58
60
|
transparent: "transparent",
|
|
@@ -70,10 +72,15 @@ module.exports = {
|
|
|
70
72
|
"dark-grey": "var(--color-dark-grey)",
|
|
71
73
|
"charcoal-grey": "var(--color-charcoal-grey)",
|
|
72
74
|
"gui-default": "var(--color-gui-default)",
|
|
73
|
-
"gui-alt": "var(--color-cool-black)",
|
|
74
75
|
"gui-hover": "var(--color-gui-hover)",
|
|
75
|
-
"gui-focus": "var(--color-gui-focus)",
|
|
76
76
|
"gui-active": "var(--color-gui-active)",
|
|
77
|
+
"gui-default-dark": "var(--color-gui-default-dark)",
|
|
78
|
+
"gui-hover-dark": "var(--color-gui-hover-dark)",
|
|
79
|
+
"gui-active-dark": "var(--color-gui-active-dark)",
|
|
80
|
+
"gui-alt": "var(--color-cool-black)",
|
|
81
|
+
"gui-focus": "var(--color-gui-focus)",
|
|
82
|
+
"gui-focus-outline": "var(--color-gui-focus-outline)",
|
|
83
|
+
|
|
77
84
|
"gui-visited": "var(--color-gui-visited)",
|
|
78
85
|
"gui-unavailable": "var(--color-gui-unavailable)",
|
|
79
86
|
"gui-error": "var(--color-gui-error)",
|
|
@@ -83,10 +90,14 @@ module.exports = {
|
|
|
83
90
|
"icon-glassdoor": "var(--icon-color-glassdoor)",
|
|
84
91
|
"icon-github": "var(--icon-color-github)",
|
|
85
92
|
"icon-discord": "var(--icon-color-discord)",
|
|
93
|
+
"neutral-900": "var(--color-neutral-900)",
|
|
94
|
+
"neutral-500": "var(--color-neutral-500)",
|
|
86
95
|
},
|
|
87
96
|
fontFamily: {
|
|
88
97
|
sans: ["NEXT Book", "Arial", "Helvetica", "sans-serif"],
|
|
89
98
|
mono: ["Source Code Pro", "Courier", "monospace"],
|
|
99
|
+
manrope: ["Manrope", "sans-serif"],
|
|
100
|
+
jetbrains_mono: ["JetBrains Mono", "monospace"],
|
|
90
101
|
},
|
|
91
102
|
margin: (theme, { negative }) => ({
|
|
92
103
|
auto: "auto",
|
|
@@ -124,6 +135,7 @@ module.exports = {
|
|
|
124
135
|
20: "var(--spacing-20)",
|
|
125
136
|
24: "var(--spacing-24)",
|
|
126
137
|
32: "var(--spacing-32)",
|
|
138
|
+
36: "var(--spacing-36)",
|
|
127
139
|
40: "var(--spacing-40)",
|
|
128
140
|
48: "var(--spacing-48)",
|
|
129
141
|
64: "var(--spacing-64)",
|
|
@@ -155,11 +167,15 @@ module.exports = {
|
|
|
155
167
|
"tighten-0.025": "var(--ls-tighten-0_025)",
|
|
156
168
|
"tighten-0.02": "var(--ls-tighten-0_02)",
|
|
157
169
|
"tighten-0.015": "var(--ls-tighten-0_015)",
|
|
170
|
+
"tighten-0.0125": "var(--ls-tighten-0_0125)",
|
|
158
171
|
"tighten-0.01": "var(--ls-tighten-0_01)",
|
|
159
172
|
"tighten-0.005": "var(--ls-tighten-0_005)",
|
|
160
173
|
"tighten-0.0025": "var(--ls-tighten-0_0025)",
|
|
174
|
+
"tighten-0.0015": "var(--ls-tighten-0_0015)",
|
|
175
|
+
"widen-0": 0,
|
|
161
176
|
"widen-0.1": "var(--ls-widen-0_1)",
|
|
162
177
|
"widen-0.15": "var(--ls-widen-0_15)",
|
|
178
|
+
"widen-0.16": "var(--ls-widen-0_16)",
|
|
163
179
|
},
|
|
164
180
|
borderRadius: {
|
|
165
181
|
none: "0",
|