spoko-design-system 0.0.1 → 0.0.2
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/.astro/icon.d.ts +2199 -2192
- package/.github/workflows/deploy.yml +39 -39
- package/.stackblitzrc +5 -5
- package/.vscode/extensions.json +4 -4
- package/.vscode/launch.json +11 -11
- package/LICENSE +21 -21
- package/Layout/Header.astro +111 -89
- package/README.md +69 -69
- package/astro-i18next.config.mjs +17 -17
- package/astro-i18next.config.ts +10 -10
- package/astro.config.mjs +45 -42
- package/index.ts +6 -6
- package/package.json +75 -71
- package/public/astro-design-system-logo.svg +10 -10
- package/public/fonts/lg.svg +53 -53
- package/public/fonts/vwhead-bold-demo.html +549 -549
- package/public/fonts/vwhead-regular-demo.html +549 -549
- package/public/fonts/vwtext-bold-demo.html +549 -549
- package/public/fonts/vwtext-regular-demo.html +549 -549
- package/public/github.svg +3 -3
- package/public/grid_dot.svg +4 -4
- package/public/linkedin.svg +44 -44
- package/public/locales/en/translation.json +5 -5
- package/public/locales/pl/translation.json +5 -5
- package/public/make-scrollable-code-focusable.js +3 -3
- package/public/polo.blue.svg +29 -0
- package/public/spoko.space.svg +71 -0
- package/public/twitter.svg +46 -46
- package/sandbox.config.json +11 -11
- package/src/MyComponent.astro +8 -8
- package/src/components/Badge.vue +19 -19
- package/src/components/Badges.vue +24 -23
- package/src/components/Breadcrumbs.vue +108 -111
- package/src/components/Button.vue +28 -0
- package/src/components/CategoryLink.astro +18 -0
- package/src/components/Copyright.astro +11 -11
- package/src/components/Date.astro +7 -0
- package/src/components/FuckRussia.vue +65 -65
- package/src/components/HandDrive.astro +30 -30
- package/src/components/HeadCommon.astro +40 -40
- package/src/components/HeadSEO.astro +41 -41
- package/src/components/Header/AstroLogo.astro +7 -27
- package/src/components/Header/Header.astro +44 -48
- package/src/components/Header/SkipToContent.astro +1 -1
- package/src/components/Headline.vue +28 -0
- package/src/components/Jumbatron.vue +31 -31
- package/src/components/LeftSidebar.astro +44 -44
- package/src/components/MainColors.vue +29 -29
- package/src/components/MainInput.vue +18 -18
- package/src/components/MainTable.vue +40 -45
- package/src/components/Modal.astro +30 -0
- package/src/components/PageContent.astro +14 -14
- package/src/components/PostHeader.astro +104 -0
- package/src/components/RightSidebar.astro +15 -11
- package/src/components/SlimBanner.vue +59 -59
- package/src/components/TableOfContents.astro +11 -11
- package/src/components/Translations.vue +27 -0
- package/src/components/flags/FlagPL.vue +2 -2
- package/src/components/flags/FlagUA.vue +2 -2
- package/src/components/layout/Header.astro +50 -69
- package/src/config.ts +47 -42
- package/src/design.config.ts +73 -92
- package/src/env.d.ts +1 -1
- package/src/flag-poland.svg +1 -0
- package/src/flag-uk.svg +1 -0
- package/src/layouts/Layout.astro +51 -0
- package/src/layouts/MainLayout.astro +68 -50
- package/src/pages/components/badges.mdx +37 -35
- package/src/pages/components/breadcrumbs.mdx +100 -103
- package/src/pages/components/buttons.mdx +62 -60
- package/src/pages/components/copyright.mdx +41 -24
- package/src/pages/components/flags.mdx +40 -26
- package/src/pages/components/fuck-russia.mdx +39 -16
- package/src/pages/components/hand-drive.mdx +33 -27
- package/src/pages/components/headline.mdx +129 -0
- package/src/pages/components/icons.astro +52 -45
- package/src/pages/components/input.mdx +45 -14
- package/src/pages/components/jumbatron.mdx +48 -48
- package/src/pages/components/modal.mdx +58 -0
- package/src/pages/components/post-header.mdx +36 -0
- package/src/pages/components/slimbanner.mdx +29 -27
- package/src/pages/components/table.mdx +20 -20
- package/src/pages/core/colors.mdx +8 -8
- package/src/pages/core/introduction.mdx +74 -68
- package/src/pages/core/shadows.astro +20 -20
- package/src/pages/core/typography.astro +46 -46
- package/src/pages/index.astro +67 -52
- package/src/pages/patterns/introduction.mdx +60 -61
- package/src/styles/_variables.scss +75 -75
- package/src/styles/base/_base.scss +158 -158
- package/src/styles/base/_typography.scss +147 -147
- package/src/styles/content.scss +51 -72
- package/src/styles/main.scss +22 -22
- package/tailwind.config.cjs +8 -8
- package/tsconfig.json +11 -11
- package/uno.config.ts +227 -227
- package/src/components/MainButton.vue +0 -26
- package/src/components/MainStatusPill.vue +0 -32
- package/src/pages/components/status-pill.mdx +0 -22
package/src/styles/content.scss
CHANGED
|
@@ -1,72 +1,51 @@
|
|
|
1
|
-
.content {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
border-radius: 0.33rem;
|
|
53
|
-
border: 1px solid theme("colors.slate.200");
|
|
54
|
-
margin: 0.5rem;
|
|
55
|
-
resize: both;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.astro-code {
|
|
59
|
-
padding: 1rem;
|
|
60
|
-
border-radius: 0.44rem;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
.bg-vw {
|
|
66
|
-
background: radial-gradient(
|
|
67
|
-
circle at 50% 85%,
|
|
68
|
-
#00437A 0%,
|
|
69
|
-
#001E50 100%
|
|
70
|
-
);
|
|
71
|
-
color: #fff;
|
|
72
|
-
}
|
|
1
|
+
.content {
|
|
2
|
+
.main-section {
|
|
3
|
+
&>h1,
|
|
4
|
+
&>h2,
|
|
5
|
+
&>h3,
|
|
6
|
+
&>h4,
|
|
7
|
+
&>h5,
|
|
8
|
+
&>h6 {
|
|
9
|
+
margin-top: 1.77rem;
|
|
10
|
+
}
|
|
11
|
+
&>h1 {
|
|
12
|
+
font-size: 22pt;
|
|
13
|
+
font-weight: 400;
|
|
14
|
+
}
|
|
15
|
+
&>h2 {
|
|
16
|
+
font-size: 17pt;
|
|
17
|
+
font-weight: 500;
|
|
18
|
+
}
|
|
19
|
+
&>h3 {
|
|
20
|
+
font-size: 15pt;
|
|
21
|
+
font-weight: 600;
|
|
22
|
+
}
|
|
23
|
+
&>h4 {
|
|
24
|
+
font-size: 13pt;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
p {
|
|
29
|
+
// margin-top: 0.77rem;
|
|
30
|
+
// color: theme("colors.slate.600");
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
code {
|
|
34
|
+
font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
|
|
35
|
+
Consolas, "Liberation Mono", "Courier New", monospace;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.component-preview {
|
|
39
|
+
@apply bg-blue-600 bg-opacity-5 px-0 mx-0 sm:(p-8) flex items-center;
|
|
40
|
+
gap: 1rem;
|
|
41
|
+
border-radius: 0.33rem;
|
|
42
|
+
border: 1px solid theme("colors.slate.200");
|
|
43
|
+
resize: both;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.astro-code {
|
|
47
|
+
@apply mx-0 p-4;
|
|
48
|
+
border-radius: 0.44rem;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
package/src/styles/main.scss
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
@import "variables";
|
|
3
|
-
@import "base/typography";
|
|
4
|
-
@import "base/base";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@import "content.scss";
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
// body {
|
|
16
|
-
// font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
17
|
-
// Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
|
18
|
-
// }
|
|
19
|
-
|
|
20
|
-
// @tailwind base;
|
|
21
|
-
// @tailwind components;
|
|
22
|
-
// @tailwind utilities;
|
|
1
|
+
|
|
2
|
+
@import "variables";
|
|
3
|
+
@import "base/typography";
|
|
4
|
+
@import "base/base";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
@import "content.scss";
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
// body {
|
|
16
|
+
// font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
|
|
17
|
+
// Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
|
18
|
+
// }
|
|
19
|
+
|
|
20
|
+
// @tailwind base;
|
|
21
|
+
// @tailwind components;
|
|
22
|
+
// @tailwind utilities;
|
package/tailwind.config.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
// darkMode: "class",
|
|
3
|
-
content: ["./src/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}"],
|
|
4
|
-
theme: {
|
|
5
|
-
extend: {},
|
|
6
|
-
},
|
|
7
|
-
plugins: [],
|
|
8
|
-
};
|
|
1
|
+
module.exports = {
|
|
2
|
+
// darkMode: "class",
|
|
3
|
+
content: ["./src/**/*.{astro,html,js,jsx,svelte,ts,tsx,vue}"],
|
|
4
|
+
theme: {
|
|
5
|
+
extend: {},
|
|
6
|
+
},
|
|
7
|
+
plugins: [],
|
|
8
|
+
};
|
package/tsconfig.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
{
|
|
2
|
-
"include": ["env.d.ts", "src/**/*", "src/**/*.vue", "src/**/*.d.ts"],
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"target": "esnext",
|
|
5
|
-
"useDefineForClassFields": true,
|
|
6
|
-
"module": "esnext",
|
|
7
|
-
"moduleResolution": "node",
|
|
8
|
-
"jsx": "preserve",
|
|
9
|
-
"allowJs": true,
|
|
10
|
-
"types": ["vite/client"]
|
|
11
|
-
},
|
|
1
|
+
{
|
|
2
|
+
"include": ["env.d.ts", "src/**/*", "src/**/*.vue", "src/**/*.d.ts"],
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "esnext",
|
|
5
|
+
"useDefineForClassFields": true,
|
|
6
|
+
"module": "esnext",
|
|
7
|
+
"moduleResolution": "node",
|
|
8
|
+
"jsx": "preserve",
|
|
9
|
+
"allowJs": true,
|
|
10
|
+
"types": ["vite/client"]
|
|
11
|
+
},
|
|
12
12
|
}
|