@node-core/ui-components 0.0.1 → 1.0.1-df203d0fe21ee5d80d258c60dc821e8ac0601ce4
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/Common/AlertBox/index.module.css +76 -0
- package/Common/AlertBox/index.stories.tsx +73 -0
- package/Common/AlertBox/index.tsx +24 -0
- package/Common/AvatarGroup/Avatar/index.module.css +40 -0
- package/Common/AvatarGroup/Avatar/index.stories.tsx +22 -0
- package/Common/AvatarGroup/Avatar/index.tsx +67 -0
- package/Common/AvatarGroup/Overlay/index.module.css +31 -0
- package/Common/AvatarGroup/Overlay/index.stories.tsx +33 -0
- package/Common/AvatarGroup/Overlay/index.tsx +37 -0
- package/Common/AvatarGroup/__tests__/index.test.jsx +55 -0
- package/Common/AvatarGroup/index.module.css +25 -0
- package/Common/AvatarGroup/index.stories.tsx +56 -0
- package/Common/AvatarGroup/index.tsx +87 -0
- package/Common/Badge/index.module.css +38 -0
- package/Common/Badge/index.stories.tsx +38 -0
- package/Common/Badge/index.tsx +35 -0
- package/Common/BadgeGroup/index.module.css +77 -0
- package/Common/BadgeGroup/index.stories.tsx +35 -0
- package/Common/BadgeGroup/index.tsx +35 -0
- package/Common/Banner/index.module.css +42 -0
- package/Common/Banner/index.stories.tsx +29 -0
- package/Common/Banner/index.tsx +18 -0
- package/Common/BaseActiveLink/__tests__/index.test.jsx +52 -0
- package/Common/BaseActiveLink/index.tsx +34 -0
- package/Common/BaseButton/index.module.css +142 -0
- package/Common/BaseButton/index.stories.tsx +67 -0
- package/Common/BaseButton/index.tsx +59 -0
- package/Common/BaseCodeBox/index.module.css +84 -0
- package/Common/BaseCodeBox/index.stories.tsx +39 -0
- package/Common/BaseCodeBox/index.tsx +133 -0
- package/Common/BaseCrossLink/index.module.css +51 -0
- package/Common/BaseCrossLink/index.stories.tsx +38 -0
- package/Common/BaseCrossLink/index.tsx +46 -0
- package/Common/BaseLinkTabs/index.module.css +43 -0
- package/Common/BaseLinkTabs/index.stories.tsx +34 -0
- package/Common/BaseLinkTabs/index.tsx +53 -0
- package/Common/BasePagination/Ellipsis/index.module.css +10 -0
- package/Common/BasePagination/Ellipsis/index.stories.tsx +10 -0
- package/Common/BasePagination/Ellipsis/index.tsx +11 -0
- package/Common/BasePagination/PaginationListItem/__tests__/index.test.jsx +58 -0
- package/Common/BasePagination/PaginationListItem/index.module.css +27 -0
- package/Common/BasePagination/PaginationListItem/index.stories.tsx +40 -0
- package/Common/BasePagination/PaginationListItem/index.tsx +39 -0
- package/Common/BasePagination/PrevNextArrow.tsx +15 -0
- package/Common/BasePagination/__tests__/index.test.jsx +180 -0
- package/Common/BasePagination/index.module.css +39 -0
- package/Common/BasePagination/index.stories.tsx +67 -0
- package/Common/BasePagination/index.tsx +77 -0
- package/Common/BasePagination/useGetPageElements.tsx +132 -0
- package/Common/Blockquote/index.module.css +29 -0
- package/Common/Blockquote/index.stories.tsx +45 -0
- package/Common/Blockquote/index.tsx +11 -0
- package/Common/Breadcrumbs/BreadcrumbHomeLink/index.module.css +5 -0
- package/Common/Breadcrumbs/BreadcrumbHomeLink/index.tsx +30 -0
- package/Common/Breadcrumbs/BreadcrumbItem/index.module.css +41 -0
- package/Common/Breadcrumbs/BreadcrumbItem/index.tsx +42 -0
- package/Common/Breadcrumbs/BreadcrumbLink/index.module.css +22 -0
- package/Common/Breadcrumbs/BreadcrumbLink/index.tsx +37 -0
- package/Common/Breadcrumbs/BreadcrumbRoot/index.module.css +9 -0
- package/Common/Breadcrumbs/BreadcrumbRoot/index.tsx +20 -0
- package/Common/Breadcrumbs/BreadcrumbTruncatedItem/index.tsx +9 -0
- package/Common/Breadcrumbs/index.stories.tsx +94 -0
- package/Common/Breadcrumbs/index.tsx +81 -0
- package/Common/CodeTabs/index.module.css +56 -0
- package/Common/CodeTabs/index.stories.tsx +74 -0
- package/Common/CodeTabs/index.tsx +16 -0
- package/Common/GlowingBackdrop/index.module.css +32 -0
- package/Common/GlowingBackdrop/index.stories.tsx +10 -0
- package/Common/GlowingBackdrop/index.tsx +13 -0
- package/Common/LanguageDropDown/index.module.css +53 -0
- package/Common/LanguageDropDown/index.stories.tsx +19 -0
- package/Common/LanguageDropDown/index.tsx +56 -0
- package/Common/Modal/index.module.css +79 -0
- package/Common/Modal/index.stories.tsx +32 -0
- package/Common/Modal/index.tsx +48 -0
- package/Common/NodejsLogo/index.module.css +6 -0
- package/Common/NodejsLogo/index.stories.tsx +14 -0
- package/Common/NodejsLogo/index.tsx +26 -0
- package/Common/Notification/index.module.css +20 -0
- package/Common/Notification/index.stories.tsx +36 -0
- package/Common/Notification/index.tsx +34 -0
- package/Common/Preview/index.module.css +79 -0
- package/Common/Preview/index.stories.tsx +44 -0
- package/Common/Preview/index.tsx +25 -0
- package/Common/ProgressionSidebar/ProgressionSidebarGroup/index.module.css +47 -0
- package/Common/ProgressionSidebar/ProgressionSidebarGroup/index.tsx +35 -0
- package/Common/ProgressionSidebar/ProgressionSidebarIcon/index.tsx +16 -0
- package/Common/ProgressionSidebar/ProgressionSidebarItem/index.module.css +39 -0
- package/Common/ProgressionSidebar/ProgressionSidebarItem/index.tsx +32 -0
- package/Common/ProgressionSidebar/index.module.css +30 -0
- package/Common/ProgressionSidebar/index.stories.tsx +79 -0
- package/Common/ProgressionSidebar/index.tsx +59 -0
- package/Common/Select/__tests__/index.test.jsx +67 -0
- package/Common/Select/index.module.css +161 -0
- package/Common/Select/index.stories.tsx +111 -0
- package/Common/Select/index.tsx +187 -0
- package/Common/Separator/index.module.css +16 -0
- package/Common/Separator/index.stories.tsx +32 -0
- package/Common/Separator/index.tsx +27 -0
- package/Common/Skeleton/index.module.css +30 -0
- package/Common/Skeleton/index.tsx +39 -0
- package/Common/Tabs/__tests__/index.test.jsx +52 -0
- package/Common/Tabs/index.module.css +54 -0
- package/Common/Tabs/index.stories.tsx +50 -0
- package/Common/Tabs/index.tsx +54 -0
- package/Common/ThemeToggle/__tests__/index.test.jsx +35 -0
- package/Common/ThemeToggle/index.module.css +15 -0
- package/Common/ThemeToggle/index.stories.tsx +10 -0
- package/Common/ThemeToggle/index.tsx +15 -0
- package/Common/Tooltip/index.module.css +43 -0
- package/Common/Tooltip/index.stories.tsx +73 -0
- package/Common/Tooltip/index.tsx +48 -0
- package/Containers/Article/index.module.css +70 -0
- package/Containers/Article/index.stories.tsx +39 -0
- package/Containers/Article/index.tsx +9 -0
- package/Containers/Footer/index.module.css +46 -0
- package/Containers/Footer/index.stories.tsx +27 -0
- package/Containers/Footer/index.tsx +95 -0
- package/Containers/MetaBar/__tests__/index.test.jsx +63 -0
- package/Containers/MetaBar/index.module.css +91 -0
- package/Containers/MetaBar/index.stories.tsx +80 -0
- package/Containers/MetaBar/index.tsx +72 -0
- package/Containers/NavBar/NavItem/index.module.css +60 -0
- package/Containers/NavBar/NavItem/index.stories.tsx +38 -0
- package/Containers/NavBar/NavItem/index.tsx +44 -0
- package/Containers/NavBar/index.module.css +125 -0
- package/Containers/NavBar/index.stories.tsx +45 -0
- package/Containers/NavBar/index.tsx +94 -0
- package/Containers/Sidebar/SidebarGroup/index.module.css +26 -0
- package/Containers/Sidebar/SidebarGroup/index.stories.tsx +36 -0
- package/Containers/Sidebar/SidebarGroup/index.tsx +30 -0
- package/Containers/Sidebar/SidebarItem/index.module.css +35 -0
- package/Containers/Sidebar/SidebarItem/index.stories.tsx +15 -0
- package/Containers/Sidebar/SidebarItem/index.tsx +26 -0
- package/Containers/Sidebar/index.module.css +31 -0
- package/Containers/Sidebar/index.stories.tsx +84 -0
- package/Containers/Sidebar/index.tsx +58 -0
- package/Icons/HexagonGrid.stories.tsx +10 -0
- package/Icons/HexagonGrid.tsx +1434 -0
- package/Icons/InstallationMethod/Choco.tsx +78 -0
- package/Icons/InstallationMethod/Devbox.tsx +21 -0
- package/Icons/InstallationMethod/Docker.tsx +20 -0
- package/Icons/InstallationMethod/FNM.tsx +132 -0
- package/Icons/InstallationMethod/Homebrew.tsx +69 -0
- package/Icons/InstallationMethod/N.tsx +32 -0
- package/Icons/InstallationMethod/NVM.tsx +63 -0
- package/Icons/InstallationMethod/Volta.tsx +34 -0
- package/Icons/InstallationMethod/index.ts +10 -0
- package/Icons/Logos/JsGreen.tsx +24 -0
- package/Icons/Logos/JsWhite.tsx +37 -0
- package/Icons/Logos/Nodejs.tsx +188 -0
- package/Icons/Logos/NodejsStackedBlack.tsx +98 -0
- package/Icons/Logos/NodejsStackedDark.tsx +124 -0
- package/Icons/Logos/NodejsStackedLight.tsx +123 -0
- package/Icons/Logos/NodejsStackedWhite.tsx +98 -0
- package/Icons/Logos/index.ts +17 -0
- package/Icons/OperatingSystem/AIX.tsx +46 -0
- package/Icons/OperatingSystem/Apple.tsx +23 -0
- package/Icons/OperatingSystem/Linux.tsx +969 -0
- package/Icons/OperatingSystem/Microsoft.tsx +19 -0
- package/Icons/OperatingSystem/index.ts +6 -0
- package/Icons/PackageManager/Npm.tsx +21 -0
- package/Icons/PackageManager/Pnpm.tsx +22 -0
- package/Icons/PackageManager/Yarn.tsx +22 -0
- package/Icons/PackageManager/index.ts +5 -0
- package/Icons/Social/Bluesky.tsx +19 -0
- package/Icons/Social/Discord.tsx +20 -0
- package/Icons/Social/GitHub.tsx +16 -0
- package/Icons/Social/LinkedIn.tsx +16 -0
- package/Icons/Social/Mastodon.tsx +36 -0
- package/Icons/Social/Slack.tsx +31 -0
- package/Icons/Social/X.tsx +16 -0
- package/Icons/Social/index.ts +9 -0
- package/LICENSE +21 -0
- package/package.json +89 -5
- package/stylelint/__tests__/index.test.mjs +80 -0
- package/stylelint/one-utility-class-per-line.mjs +64 -0
- package/stylelint/utils.mjs +53 -0
- package/styles/animations.css +47 -0
- package/styles/base.css +17 -0
- package/styles/effects.css +12 -0
- package/styles/index.css +38 -0
- package/styles/markdown.css +173 -0
- package/styles/theme.css +175 -0
- package/types.ts +25 -0
- package/README.md +0 -1
package/styles/base.css
ADDED
package/styles/index.css
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
@charset "utf-8";
|
|
2
|
+
|
|
3
|
+
/* IDE Support
|
|
4
|
+
* We recommend Stylelint and Tailwind Extensions for better IDE support.
|
|
5
|
+
* @see https://marketplace.visualstudio.com/items?itemName=bradlc.vscode-tailwindcss
|
|
6
|
+
* @see https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
@import 'tailwindcss';
|
|
10
|
+
@import './theme.css';
|
|
11
|
+
@import './animations.css';
|
|
12
|
+
@import './effects.css';
|
|
13
|
+
@import './base.css' layer(utilities);
|
|
14
|
+
@import './markdown.css' layer(utilities);
|
|
15
|
+
|
|
16
|
+
/*
|
|
17
|
+
The default border color has changed to `currentColor` in Tailwind CSS v4,
|
|
18
|
+
so we've added these compatibility styles to make sure everything still
|
|
19
|
+
looks the same as it did with Tailwind CSS v3.
|
|
20
|
+
|
|
21
|
+
If we ever want to remove these styles, we need to add an explicit border
|
|
22
|
+
color utility to any element that depends on these defaults.
|
|
23
|
+
*/
|
|
24
|
+
@layer base {
|
|
25
|
+
:root {
|
|
26
|
+
--header-height: calc(var(--spacing, 0.25rem) * 16);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
*,
|
|
30
|
+
::after,
|
|
31
|
+
::before,
|
|
32
|
+
::backdrop,
|
|
33
|
+
::file-selector-button {
|
|
34
|
+
border-color: var(--color-gray-200, currentColor);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@custom-variant aria-current (&[aria-current="page"]);
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
main {
|
|
2
|
+
@apply flex
|
|
3
|
+
w-full
|
|
4
|
+
flex-col
|
|
5
|
+
gap-6;
|
|
6
|
+
|
|
7
|
+
hr {
|
|
8
|
+
@apply w-full
|
|
9
|
+
border-t
|
|
10
|
+
border-t-neutral-200
|
|
11
|
+
bg-white
|
|
12
|
+
dark:border-t-neutral-900
|
|
13
|
+
dark:bg-neutral-950;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
h1 {
|
|
17
|
+
@apply text-3xl;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
h2 {
|
|
21
|
+
@apply text-2xl;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
h3 {
|
|
25
|
+
@apply text-xl;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
h4 {
|
|
29
|
+
@apply text-lg;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
h5,
|
|
33
|
+
h6 {
|
|
34
|
+
@apply text-base;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
h1,
|
|
38
|
+
h2,
|
|
39
|
+
h3,
|
|
40
|
+
h4,
|
|
41
|
+
h5,
|
|
42
|
+
h6 {
|
|
43
|
+
@apply font-semibold
|
|
44
|
+
text-neutral-900
|
|
45
|
+
dark:text-white;
|
|
46
|
+
|
|
47
|
+
&[id] a {
|
|
48
|
+
@apply text-neutral-900
|
|
49
|
+
dark:text-white;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
strong {
|
|
54
|
+
@apply font-semibold;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
code {
|
|
58
|
+
@apply font-ibm-plex-mono
|
|
59
|
+
rounded-xs
|
|
60
|
+
bg-neutral-100
|
|
61
|
+
px-1
|
|
62
|
+
text-base
|
|
63
|
+
font-semibold
|
|
64
|
+
text-neutral-900
|
|
65
|
+
dark:bg-neutral-900
|
|
66
|
+
dark:text-white;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
p {
|
|
70
|
+
@apply text-neutral-900
|
|
71
|
+
dark:text-white;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* link that isn't inside a heading */
|
|
75
|
+
a:not(h1 > a):not(h2 > a):not(h3 > a):not(h4 > a):not(h5 > a):not(h6 > a),
|
|
76
|
+
.anchor {
|
|
77
|
+
@apply max-xs:font-semibold
|
|
78
|
+
text-green-600
|
|
79
|
+
dark:text-green-400;
|
|
80
|
+
|
|
81
|
+
&:hover {
|
|
82
|
+
@apply text-green-900
|
|
83
|
+
dark:text-green-300;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
&[role='button'] {
|
|
87
|
+
@apply max-xs:font-regular;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&:has(code) {
|
|
91
|
+
@apply max-xs:decoration-neutral-800
|
|
92
|
+
dark:max-xs:decoration-neutral-200;
|
|
93
|
+
|
|
94
|
+
code {
|
|
95
|
+
@apply text-inherit;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
ul {
|
|
101
|
+
@apply list-disc
|
|
102
|
+
pl-9
|
|
103
|
+
pr-5
|
|
104
|
+
leading-6
|
|
105
|
+
text-neutral-900
|
|
106
|
+
dark:text-white;
|
|
107
|
+
|
|
108
|
+
li div:has(> pre) {
|
|
109
|
+
@apply my-1!;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
ol {
|
|
114
|
+
@apply list-decimal
|
|
115
|
+
px-5
|
|
116
|
+
leading-6
|
|
117
|
+
text-neutral-900
|
|
118
|
+
dark:text-white;
|
|
119
|
+
|
|
120
|
+
li div:has(> pre) {
|
|
121
|
+
@apply my-1!;
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
table {
|
|
126
|
+
@apply rounded-xs
|
|
127
|
+
mb-1
|
|
128
|
+
w-full
|
|
129
|
+
border-separate
|
|
130
|
+
border-spacing-0
|
|
131
|
+
border
|
|
132
|
+
border-neutral-200
|
|
133
|
+
text-left
|
|
134
|
+
text-sm
|
|
135
|
+
dark:border-neutral-800;
|
|
136
|
+
|
|
137
|
+
th,
|
|
138
|
+
td {
|
|
139
|
+
@apply max-xs:block
|
|
140
|
+
max-xs:border-l-0
|
|
141
|
+
border
|
|
142
|
+
border-r-0
|
|
143
|
+
border-t-0
|
|
144
|
+
border-neutral-200
|
|
145
|
+
px-4
|
|
146
|
+
py-2
|
|
147
|
+
text-neutral-900
|
|
148
|
+
dark:border-neutral-800
|
|
149
|
+
dark:text-white;
|
|
150
|
+
|
|
151
|
+
> a {
|
|
152
|
+
@apply pr-2;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
th {
|
|
157
|
+
@apply font-semibold;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
tr:last-child td {
|
|
161
|
+
@apply sm:border-b-0;
|
|
162
|
+
|
|
163
|
+
&:last-child {
|
|
164
|
+
@apply max-xs:border-b-0;
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
td:first-child,
|
|
169
|
+
th:first-child {
|
|
170
|
+
@apply sm:border-l-0;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
}
|
package/styles/theme.css
ADDED
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
@custom-variant dark (&:where([data-theme=dark], [data-theme=dark] *));
|
|
2
|
+
|
|
3
|
+
@source '../Common';
|
|
4
|
+
@source '../Containers';
|
|
5
|
+
@source '../Icons';
|
|
6
|
+
|
|
7
|
+
@theme {
|
|
8
|
+
--color-green-100: #edf2eb;
|
|
9
|
+
--color-green-200: #c5e5b4;
|
|
10
|
+
--color-green-300: #99cc7d;
|
|
11
|
+
--color-green-400: #84ba64;
|
|
12
|
+
--color-green-500: #5fa04e;
|
|
13
|
+
--color-green-600: #417e38;
|
|
14
|
+
--color-green-700: #2c682c;
|
|
15
|
+
--color-green-800: #2c682c;
|
|
16
|
+
--color-green-900: #1a3f1d;
|
|
17
|
+
--color-neutral-100: #f6f7f9;
|
|
18
|
+
--color-neutral-200: #e9edf0;
|
|
19
|
+
--color-neutral-300: #d9e1e4;
|
|
20
|
+
--color-neutral-400: #cbd4d9;
|
|
21
|
+
--color-neutral-500: #b1bcc2;
|
|
22
|
+
--color-neutral-600: #929fa5;
|
|
23
|
+
--color-neutral-700: #6e7b83;
|
|
24
|
+
--color-neutral-800: #556066;
|
|
25
|
+
--color-neutral-900: #2c3437;
|
|
26
|
+
--color-neutral-950: #0d121c;
|
|
27
|
+
--color-danger-100: #fbf1f0;
|
|
28
|
+
--color-danger-200: #fad3d4;
|
|
29
|
+
--color-danger-300: #fab6b7;
|
|
30
|
+
--color-danger-400: #fa8e8e;
|
|
31
|
+
--color-danger-500: #f65354;
|
|
32
|
+
--color-danger-600: #de1a1b;
|
|
33
|
+
--color-danger-700: #b80c0c;
|
|
34
|
+
--color-danger-800: #900e0e;
|
|
35
|
+
--color-danger-900: #661514;
|
|
36
|
+
--color-warning-100: #fdf3e7;
|
|
37
|
+
--color-warning-200: #fad9b0;
|
|
38
|
+
--color-warning-300: #f5bc75;
|
|
39
|
+
--color-warning-400: #e99c40;
|
|
40
|
+
--color-warning-500: #d07912;
|
|
41
|
+
--color-warning-600: #ae5f00;
|
|
42
|
+
--color-warning-700: #8b4d04;
|
|
43
|
+
--color-warning-800: #683d08;
|
|
44
|
+
--color-warning-900: #4d2f0b;
|
|
45
|
+
--color-info-100: #e9f4fa;
|
|
46
|
+
--color-info-200: #bce6fc;
|
|
47
|
+
--color-info-300: #8ed4f8;
|
|
48
|
+
--color-info-400: #52baed;
|
|
49
|
+
--color-info-500: #229ad6;
|
|
50
|
+
--color-info-600: #0c7bb3;
|
|
51
|
+
--color-info-700: #066291;
|
|
52
|
+
--color-info-800: #074d71;
|
|
53
|
+
--color-info-900: #0a3953;
|
|
54
|
+
--color-accent1-100: #f7f1fb;
|
|
55
|
+
--color-accent1-200: #ead9fb;
|
|
56
|
+
--color-accent1-300: #dbbdf9;
|
|
57
|
+
--color-accent1-400: #c79bf2;
|
|
58
|
+
--color-accent1-500: #af74e8;
|
|
59
|
+
--color-accent1-600: #9756d6;
|
|
60
|
+
--color-accent1-700: #7d3cbe;
|
|
61
|
+
--color-accent1-800: #642b9e;
|
|
62
|
+
--color-accent1-900: #361b52;
|
|
63
|
+
--color-accent2-100: #fbf0f4;
|
|
64
|
+
--color-accent2-200: #fbd4e6;
|
|
65
|
+
--color-accent2-300: #fbb4d2;
|
|
66
|
+
--color-accent2-400: #f68bb7;
|
|
67
|
+
--color-accent2-500: #ed5393;
|
|
68
|
+
--color-accent2-600: #d6246e;
|
|
69
|
+
--color-accent2-700: #b01356;
|
|
70
|
+
--color-accent2-800: #8b1245;
|
|
71
|
+
--color-accent2-900: #411526;
|
|
72
|
+
--color-pulse-100: #0000330f;
|
|
73
|
+
--color-pulse-200: #00002d17;
|
|
74
|
+
--color-pulse-300: #ddeaf814;
|
|
75
|
+
--color-pulse-400: #d3edf81d;
|
|
76
|
+
--color-white: #fff;
|
|
77
|
+
--color-transparent: 'transparent';
|
|
78
|
+
--color-shadow: #101828;
|
|
79
|
+
--shadow-xs: 0px 1px 2px 0px --alpha(var(--color-shadow, #101828) / 5%);
|
|
80
|
+
--shadow-lg:
|
|
81
|
+
0px 4px 6px -2px --alpha(var(--color-shadow, #101828) / 3%),
|
|
82
|
+
0px 12px 16px -4px --alpha(var(--color-shadow, #101828) / 8%);
|
|
83
|
+
|
|
84
|
+
/* TODO(@avivkeller): The --font-xyz-xyz variable is assigned by Next.js in apps/site.
|
|
85
|
+
Ideally, this package shouldn't depend on the consuming application's
|
|
86
|
+
variables, it should remain self-contained. */
|
|
87
|
+
--font-open-sans: var(--font-open-sans);
|
|
88
|
+
--font-ibm-plex-mono: var(--font-ibm-plex-mono);
|
|
89
|
+
--font-weight-regular: 400;
|
|
90
|
+
--font-weight-medium: 500;
|
|
91
|
+
--font-weight-semibold: 600;
|
|
92
|
+
--font-weight-bold: 700;
|
|
93
|
+
--font-xs: 0.75rem;
|
|
94
|
+
--font-xs-line-height: 1rem;
|
|
95
|
+
--font-sm: 0.87rem;
|
|
96
|
+
--font-sm-line-height: 1.25rem;
|
|
97
|
+
--font-base: 1rem;
|
|
98
|
+
--font-base-line-height: 1.5rem;
|
|
99
|
+
--font-lg: 1.125rem;
|
|
100
|
+
--font-lg-line-height: 1.75rem;
|
|
101
|
+
--font-xl: 1.25rem;
|
|
102
|
+
--font-xl-line-height: 1.875rem;
|
|
103
|
+
--font-2xl: 1.5rem;
|
|
104
|
+
--font-2xl-line-height: 2rem;
|
|
105
|
+
--font-3xl: 1.875rem;
|
|
106
|
+
--font-3xl-line-height: 2.25rem;
|
|
107
|
+
--font-4xl: 2.25rem;
|
|
108
|
+
--font-4xl-line-height: 2.5rem;
|
|
109
|
+
--font-5xl: 3rem;
|
|
110
|
+
--font-5xl-line-height: 3rem;
|
|
111
|
+
--font-6xl: 3.75rem;
|
|
112
|
+
--font-6xl-line-height: 3.75rem;
|
|
113
|
+
--font-7xl: 4.5rem;
|
|
114
|
+
--font-7xl-line-height: 4.5rem;
|
|
115
|
+
--breakpoint-xs: 670px;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@utility scrollbar-thin {
|
|
119
|
+
scrollbar-width: thin;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
@utility max-w-8xl {
|
|
123
|
+
max-width: 95rem;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
@utility bg-gradient-subtle-dark {
|
|
127
|
+
background-image: linear-gradient(
|
|
128
|
+
180deg,
|
|
129
|
+
--alpha(var(--color-neutral-900) / 50%) 0%,
|
|
130
|
+
--alpha(var(--color-neutral-900) / 0%) 48.32%
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@utility bg-gradient-subtle {
|
|
135
|
+
background-image: linear-gradient(
|
|
136
|
+
180deg,
|
|
137
|
+
--alpha(var(--color-neutral-100) / 50%) 0%,
|
|
138
|
+
--alpha(var(--color-neutral-100) / 0%) 48.32%
|
|
139
|
+
);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
@utility bg-gradient-subtle-gray {
|
|
143
|
+
background-image: linear-gradient(
|
|
144
|
+
180deg,
|
|
145
|
+
var(--color-neutral-900) 0%,
|
|
146
|
+
--alpha(var(--color-neutral-900) / 80%) 100%
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
@utility bg-gradient-subtle-white {
|
|
151
|
+
background-image: linear-gradient(
|
|
152
|
+
180deg,
|
|
153
|
+
var(--color-white) 0%,
|
|
154
|
+
--alpha(var(--color-white) / 80%) 100%
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
@utility bg-gradient-glow-backdrop {
|
|
159
|
+
background-image: radial-gradient(
|
|
160
|
+
8em circle at calc(50%) 10px,
|
|
161
|
+
var(--color-green-400),
|
|
162
|
+
transparent 30%
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@utility bg-gradient-radial {
|
|
167
|
+
background-image: radial-gradient(
|
|
168
|
+
var(--tw-gradient-from),
|
|
169
|
+
var(--tw-gradient-to)
|
|
170
|
+
);
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
@utility text-inherit {
|
|
174
|
+
color: inherit;
|
|
175
|
+
}
|
package/types.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
SVGProps,
|
|
3
|
+
AnchorHTMLAttributes,
|
|
4
|
+
ReactElement,
|
|
5
|
+
JSXElementConstructor,
|
|
6
|
+
ReactNode,
|
|
7
|
+
} from 'react';
|
|
8
|
+
|
|
9
|
+
export type LogoVariant = 'default' | 'pride';
|
|
10
|
+
export type TailwindSVG = SVGProps<SVGSVGElement> & { tw?: string };
|
|
11
|
+
export type BlogPreviewType = 'announcements' | 'release' | 'vulnerability';
|
|
12
|
+
export type LinkLike =
|
|
13
|
+
| JSXElementConstructor<AnchorHTMLAttributes<HTMLAnchorElement>>
|
|
14
|
+
| 'a';
|
|
15
|
+
|
|
16
|
+
export type FormattedMessage =
|
|
17
|
+
| string
|
|
18
|
+
| ReactElement<HTMLElement, string | JSXElementConstructor<HTMLElement>>
|
|
19
|
+
| ReadonlyArray<ReactNode>;
|
|
20
|
+
|
|
21
|
+
export type SimpleLocaleConfig = {
|
|
22
|
+
code: string;
|
|
23
|
+
localName: string;
|
|
24
|
+
name: string;
|
|
25
|
+
};
|
package/README.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
nodejs.org
|