spoko-design-system 0.0.1

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.
Files changed (113) hide show
  1. package/.astro/icon.d.ts +2193 -0
  2. package/.github/workflows/deploy.yml +40 -0
  3. package/.stackblitzrc +6 -0
  4. package/.vscode/extensions.json +4 -0
  5. package/.vscode/launch.json +11 -0
  6. package/LICENSE +21 -0
  7. package/Layout/Header.astro +89 -0
  8. package/README.md +69 -0
  9. package/astro-i18next.config.mjs +18 -0
  10. package/astro-i18next.config.ts +11 -0
  11. package/astro.config.mjs +43 -0
  12. package/index.ts +6 -0
  13. package/package.json +71 -0
  14. package/public/Components.jpg +0 -0
  15. package/public/Core.jpg +0 -0
  16. package/public/Patterns.jpg +0 -0
  17. package/public/astro-design-system-logo.svg +10 -0
  18. package/public/default-og-image.png +0 -0
  19. package/public/favicon.ico +0 -0
  20. package/public/fonts/VWHeadline-LtTab.woff2 +0 -0
  21. package/public/fonts/lg.svg +54 -0
  22. package/public/fonts/lg.svg.br +0 -0
  23. package/public/fonts/lg.svg.gz +0 -0
  24. package/public/fonts/lg.ttf +0 -0
  25. package/public/fonts/lg.woff +0 -0
  26. package/public/fonts/lg.woff2 +0 -0
  27. package/public/fonts/nova-mono-v13-latin-regular.woff +0 -0
  28. package/public/fonts/nova-mono-v13-latin-regular.woff2 +0 -0
  29. package/public/fonts/vwhead-bold-demo.html +549 -0
  30. package/public/fonts/vwhead-bold-webfont.woff +0 -0
  31. package/public/fonts/vwhead-bold-webfont.woff2 +0 -0
  32. package/public/fonts/vwhead-light-webfont.woff +0 -0
  33. package/public/fonts/vwhead-light-webfont.woff2 +0 -0
  34. package/public/fonts/vwhead-regular-demo.html +549 -0
  35. package/public/fonts/vwhead-regular-webfont-OLD.woff +0 -0
  36. package/public/fonts/vwhead-regular-webfont-OLD.woff2 +0 -0
  37. package/public/fonts/vwhead-regular-webfont.woff +0 -0
  38. package/public/fonts/vwhead-regular-webfont.woff2 +0 -0
  39. package/public/fonts/vwtext-bold-demo.html +549 -0
  40. package/public/fonts/vwtext-bold-webfont.woff +0 -0
  41. package/public/fonts/vwtext-bold-webfont.woff2 +0 -0
  42. package/public/fonts/vwtext-light-webfont.woff +0 -0
  43. package/public/fonts/vwtext-light-webfont.woff2 +0 -0
  44. package/public/fonts/vwtext-regular-demo.html +549 -0
  45. package/public/fonts/vwtext-regular-webfont.woff +0 -0
  46. package/public/fonts/vwtext-regular-webfont.woff2 +0 -0
  47. package/public/github.svg +3 -0
  48. package/public/grid_dot.svg +4 -0
  49. package/public/linkedin.svg +44 -0
  50. package/public/locales/en/translation.json +6 -0
  51. package/public/locales/pl/translation.json +6 -0
  52. package/public/make-scrollable-code-focusable.js +3 -0
  53. package/public/twitter.svg +46 -0
  54. package/sandbox.config.json +11 -0
  55. package/src/MyComponent.astro +8 -0
  56. package/src/assets/hand-drive.svg +1 -0
  57. package/src/components/Badge.vue +20 -0
  58. package/src/components/Badges.vue +23 -0
  59. package/src/components/Breadcrumbs.vue +111 -0
  60. package/src/components/Copyright.astro +12 -0
  61. package/src/components/FuckRussia.vue +65 -0
  62. package/src/components/HandDrive.astro +31 -0
  63. package/src/components/HeadCommon.astro +40 -0
  64. package/src/components/HeadSEO.astro +41 -0
  65. package/src/components/Header/AstroLogo.astro +27 -0
  66. package/src/components/Header/Header.astro +48 -0
  67. package/src/components/Header/SkipToContent.astro +1 -0
  68. package/src/components/Jumbatron.vue +31 -0
  69. package/src/components/LeftSidebar.astro +44 -0
  70. package/src/components/MainButton.vue +26 -0
  71. package/src/components/MainColors.vue +29 -0
  72. package/src/components/MainInput.vue +18 -0
  73. package/src/components/MainStatusPill.vue +32 -0
  74. package/src/components/MainTable.vue +45 -0
  75. package/src/components/PageContent.astro +14 -0
  76. package/src/components/RightSidebar.astro +11 -0
  77. package/src/components/SlimBanner.vue +60 -0
  78. package/src/components/TableOfContents.astro +12 -0
  79. package/src/components/flags/FlagPL.vue +3 -0
  80. package/src/components/flags/FlagUA.vue +3 -0
  81. package/src/components/layout/Container.astro +7 -0
  82. package/src/components/layout/Header.astro +99 -0
  83. package/src/config.ts +42 -0
  84. package/src/design.config.ts +92 -0
  85. package/src/env.d.ts +2 -0
  86. package/src/layouts/MainLayout.astro +50 -0
  87. package/src/pages/components/badges.mdx +35 -0
  88. package/src/pages/components/breadcrumbs.mdx +103 -0
  89. package/src/pages/components/buttons.mdx +60 -0
  90. package/src/pages/components/copyright.mdx +24 -0
  91. package/src/pages/components/flags.mdx +27 -0
  92. package/src/pages/components/fuck-russia.mdx +16 -0
  93. package/src/pages/components/hand-drive.mdx +27 -0
  94. package/src/pages/components/icons.astro +45 -0
  95. package/src/pages/components/input.mdx +15 -0
  96. package/src/pages/components/jumbatron.mdx +48 -0
  97. package/src/pages/components/slimbanner.mdx +27 -0
  98. package/src/pages/components/status-pill.mdx +22 -0
  99. package/src/pages/components/table.mdx +20 -0
  100. package/src/pages/core/colors.mdx +8 -0
  101. package/src/pages/core/introduction.mdx +68 -0
  102. package/src/pages/core/shadows.astro +21 -0
  103. package/src/pages/core/typography.astro +47 -0
  104. package/src/pages/index.astro +52 -0
  105. package/src/pages/patterns/introduction.mdx +61 -0
  106. package/src/styles/_variables.scss +75 -0
  107. package/src/styles/base/_base.scss +158 -0
  108. package/src/styles/base/_typography.scss +148 -0
  109. package/src/styles/content.scss +72 -0
  110. package/src/styles/main.scss +22 -0
  111. package/tailwind.config.cjs +8 -0
  112. package/tsconfig.json +12 -0
  113. package/uno.config.ts +228 -0
@@ -0,0 +1,158 @@
1
+ * {
2
+ -webkit-font-smoothing: antialiased;
3
+ -moz-osx-font-smoothing: grayscale;
4
+ }
5
+
6
+ body {
7
+ font-family: 'vw_textregular', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
8
+ overflow-y: scroll;
9
+ scrollbar-width: thin;
10
+ overflow-x: hidden;
11
+ }
12
+
13
+ ::-webkit-scrollbar {
14
+ width: 5px;
15
+ height: 3px;
16
+ }
17
+
18
+ ::-webkit-scrollbar-track {
19
+ background: rgba(0, 0, 0, 0.1); //$secondary;
20
+ border-radius: 0;
21
+ }
22
+
23
+ ::-webkit-scrollbar-thumb {
24
+ border-radius: 0;
25
+ background-color: $blue;
26
+ }
27
+
28
+ *:focus {
29
+ outline: none !important;
30
+ }
31
+
32
+
33
+ .bg-spoko {
34
+ background: radial-gradient(circle at 50% 85%, #00437A 0%, #001E50 100%);
35
+ color: #fff;
36
+ width: 100%;
37
+ }
38
+
39
+ .bg-vw {
40
+ background: radial-gradient(
41
+ circle at 50% 85%,
42
+ #00437A 0%,
43
+ #001E50 100%
44
+ );
45
+ color: #fff;
46
+ }
47
+
48
+ .display-3 {
49
+ letter-spacing: -0.96px;
50
+ }
51
+
52
+
53
+ html {
54
+ scroll-behavior: smooth;
55
+
56
+ &::-webkit-scrollbar {
57
+ width: 7px; /* width of the entire scrollbar */
58
+ }
59
+
60
+ &::-webkit-scrollbar-track {
61
+ background: #00437A; /* color of the tracking area */
62
+ }
63
+
64
+ &::-webkit-scrollbar-thumb {
65
+ background-color: $primary; /* color of the scroll thumb */
66
+ border-radius: 0; /* roundness of the scroll thumb */
67
+ border: 0 solid #00437A; /* creates padding around scroll thumb */
68
+ }
69
+
70
+ scrollbar-width: thin;
71
+ scrollbar-color: $primary #00437A;
72
+ }
73
+
74
+
75
+ //Swiper styles
76
+ :root {
77
+ // --swiper-navigation-color: #0099da;
78
+ --swiper-navigation-size: 22px;
79
+ --swiper-scrollbar-drag-bg-color: #0099da;
80
+ --swiper-scrollbar-size: 1px;
81
+ --swiper-scrollbar-bottom: 0px;
82
+ }
83
+
84
+ .swiper-horizontal{
85
+ &> .swiper-scrollbar {
86
+ height: 1px;
87
+ }
88
+ }
89
+
90
+ .fade-enter-active,
91
+ .fade-leave-active {
92
+ transition: opacity 0.5s ease;
93
+ }
94
+
95
+ .fade-enter-from,
96
+ .fade-leave-to {
97
+ opacity: 0;
98
+ }
99
+
100
+ .colon-after {
101
+ &:after {
102
+ content: ':'
103
+ }
104
+ }
105
+
106
+ .items {
107
+ & > .item {
108
+ &:not(:last-child) {
109
+ &:after {
110
+ content: ', '
111
+ }
112
+ }
113
+ }
114
+ }
115
+
116
+ /* override styles when printing */
117
+ @media print {
118
+ @page :footer {
119
+ display: none;
120
+ margin-top: 0;
121
+ margin-bottom: 0;
122
+ }
123
+
124
+ @page :header {
125
+ display: none;
126
+ margin-top: 0;
127
+ margin-bottom: 0;
128
+ }
129
+ }
130
+
131
+ .comma:not(:last-child) {
132
+ @apply mr-1;
133
+
134
+ &:after {
135
+ content: ','
136
+ }
137
+ }
138
+
139
+ #l-page {
140
+ table {
141
+ border-collapse: collapse;
142
+ border-color: inherit;
143
+ color: #212529;
144
+ margin-bottom: .875rem;
145
+ table-layout: fixed;
146
+ text-indent: 0;
147
+ width: 100%;
148
+
149
+ td, th {
150
+ border: 1px solid;
151
+ padding: 0.5em;
152
+ }
153
+ }
154
+ }
155
+
156
+ [data-icon] {
157
+ font-size: 1em;
158
+ }
@@ -0,0 +1,148 @@
1
+ @font-face {
2
+ font-family: 'vw_textregular';
3
+ src: url('/fonts/vwtext-regular-webfont.woff2') format('woff2');
4
+ font-weight: normal;
5
+ font-style: normal;
6
+ font-display: swap;
7
+ }
8
+
9
+ @font-face {
10
+ font-family: 'vw_textbold';
11
+ src: url('/fonts/vwtext-bold-webfont.woff2') format('woff2');
12
+ font-weight: normal;
13
+ font-style: normal;
14
+ font-display: fallback;
15
+ }
16
+
17
+ .font-vw-textbold {
18
+ font-family: 'vw_textbold';
19
+ font-display: fallback;
20
+ }
21
+
22
+ @font-face {
23
+ font-family: 'vw_headbold';
24
+ src: url('/fonts/vwhead-bold-webfont.woff2') format('woff2');
25
+ font-weight: normal;
26
+ font-style: normal;
27
+ font-display: fallback;
28
+ }
29
+
30
+ .font-vw-headbold {
31
+ font-family: 'vw_headbold' !important;
32
+ font-display: fallback;
33
+ }
34
+
35
+ @font-face {
36
+ font-family: 'vw_headregular';
37
+ src: url('/fonts/vwhead-regular-webfont.woff2') format('woff2');
38
+ font-weight: normal;
39
+ font-style: normal;
40
+ font-display: fallback;
41
+ }
42
+
43
+ // .font-headregular {
44
+ // font-family: 'vw_headregular', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
45
+ // font-display: fallback;
46
+ // }
47
+
48
+ @font-face {
49
+ font-family: 'vw_headlight';
50
+ src: url('/fonts/vwhead-light-webfont.woff2') format('woff2'),;
51
+ font-weight: normal;
52
+ font-style: normal;
53
+ font-display: swap;
54
+ }
55
+
56
+ // .font-headlight {
57
+ // font-family: 'vw_headlight';
58
+ // }
59
+
60
+ @font-face {
61
+ font-family: 'Nova Mono';
62
+ src: url('/fonts/nova-mono-v13-latin-regular.woff2') format('woff2');
63
+ font-weight: normal;
64
+ font-style: normal;
65
+ font-display: swap; //fallback;
66
+ }
67
+
68
+ // .font-mono {
69
+ // font-family: 'Nova Mono';
70
+ // }
71
+
72
+ @font-face {
73
+ font-family: 'vw_textlight';
74
+ src: url('/fonts/vwtext-light-webfont.woff2') format('woff2');
75
+ font-weight: normal;
76
+ font-style: normal;
77
+ font-display: swap;
78
+ }
79
+
80
+ // @font-face {
81
+ // font-family: 'swiper-icons';
82
+ // src: url('/fonts/swiper-icons.woff2') format('woff2');
83
+ // font-weight: normal;
84
+ // font-style: normal;
85
+ // font-display: swap;
86
+ // }
87
+
88
+ // .font-textlight {
89
+ // font-family: 'vw_textlight';
90
+ // }
91
+
92
+ // @font-face {
93
+ // font-family: 'vw-headline-ltab';
94
+ // src: url('/fonts/VWHeadline-LtTab.woff2') format('woff2');
95
+ // font-weight: normal;
96
+ // font-style: normal;
97
+ // font-display: swap;
98
+ // }
99
+
100
+ // .font-vw-headline-ltab {
101
+ // font-family: 'vw-headline-ltab';
102
+ // }
103
+
104
+ // @font-face {
105
+ // font-family: 'futura-book';
106
+ // src: url('/fonts/Futura-Book.woff2') format('woff2');
107
+ // font-weight: normal;
108
+ // font-style: normal;
109
+ // font-display: swap;
110
+ // }
111
+
112
+ // .font-futura-book {
113
+ // font-family: 'futura-book';
114
+ // }
115
+
116
+ // @font-face {
117
+ // font-family: 'futura-pt-light';
118
+ // src: url('/fonts/futura-pt-light.woff2') format('woff2');
119
+ // // src: url('/fonts/Futura-Book.woff2') format('woff2');
120
+ // font-weight: normal;
121
+ // font-style: normal;
122
+ // font-display: swap;
123
+ // }
124
+
125
+ // .font-futura-pt-light {
126
+ // font-family: 'futura-pt-light';
127
+ // }
128
+
129
+
130
+ // @font-face {
131
+ // font-family: 'futura-pt-medium';
132
+ // src: url('/fonts/futura-pt-medium.woff2') format('woff2');
133
+ // font-weight: normal;
134
+ // font-style: normal;
135
+ // font-display: swap;
136
+ // }
137
+
138
+ // .font-futura-pt-medium {
139
+ // font-family: 'futura-pt-medium';
140
+ // }
141
+
142
+
143
+ // src: url('/fonts/Futura-Book-BT.woff') format('woff');
144
+ // src: url('/fonts/futura-bk-bt-book_18979-webfont.woff2') format('woff2');
145
+
146
+ [data-text]:before {
147
+ content: attr(data-text);
148
+ }
@@ -0,0 +1,72 @@
1
+ .content {
2
+ h1,
3
+ h2,
4
+ h3,
5
+ h4,
6
+ h5,
7
+ h6 {
8
+ margin-top: 1.77rem;
9
+ }
10
+ h1 {
11
+ font-size: 22pt;
12
+ font-weight: 400;
13
+ }
14
+ h2 {
15
+ font-size: 17pt;
16
+ font-weight: 500;
17
+ }
18
+ h3 {
19
+ font-size: 15pt;
20
+ font-weight: 600;
21
+ }
22
+ h4 {
23
+ font-size: 13pt;
24
+ }
25
+ p {
26
+ // margin-top: 0.77rem;
27
+ // color: theme("colors.slate.600");
28
+ }
29
+ // a {
30
+ // color: theme("colors.blue.600");
31
+ // }
32
+
33
+ pre.astro-code {
34
+ margin: 0.5rem;
35
+ }
36
+
37
+ code {
38
+ font-family: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco,
39
+ Consolas, "Liberation Mono", "Courier New", monospace;
40
+ }
41
+
42
+ .component-preview {
43
+ padding: 4rem;
44
+ display: flex;
45
+ gap: 1rem;
46
+ justify-content: center;
47
+ align-items: center;
48
+ @apply bg-gray-200;
49
+ // background-image: url("/grid_dot.svg");
50
+ background-repeat: repeat;
51
+ background-size: 1.5rem;
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
+ }
@@ -0,0 +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;
@@ -0,0 +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
+ };
package/tsconfig.json ADDED
@@ -0,0 +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
+ },
12
+ }
package/uno.config.ts ADDED
@@ -0,0 +1,228 @@
1
+ // uno.config.ts
2
+ import {
3
+ defineConfig,
4
+ transformerVariantGroup,
5
+ presetAttributify,
6
+ presetIcons,
7
+ presetTypography,
8
+ presetUno,
9
+ presetWebFonts,
10
+ transformerDirectives,
11
+ } from 'unocss'
12
+
13
+
14
+ // import transformerVariantGroup from '@unocss/transformer-variant-group'
15
+
16
+ // import presetWind from '@unocss/preset-wind';
17
+ // import presetUno from '@unocss/preset-uno';
18
+ // import presetAttributify from '@unocss/preset-attributify';
19
+ // import presetTypography from '@unocss/preset-typography';
20
+ // import presetWebFonts from '@unocss/preset-web-fonts';
21
+
22
+
23
+
24
+ export default defineConfig({
25
+ // ...
26
+ transformers: [
27
+ transformerDirectives(),
28
+ transformerVariantGroup(),
29
+ ],
30
+ shortcuts: [
31
+ ['main','text-gray-700 dark:text-gray-200 dark:bg-blue-700 pt-24 sm:pt-14 relative'],
32
+ ['nav','bg-white dark:bg-black absolute sm:fixed w-full top-0 z-40 sm:z-30 max-w-screen'],
33
+ ['cat-menu','fixed bottom-[-4px] w-full z-10 border-t-1 border-gray-300 bg-white dark:bg-blue-900 text-center sm:(static z-auto border-t-none) sm:min-h-32'],
34
+ ['cats-slide','transition duration-300 ease-linear mb-0.5 min-h-tile-mobile sm:(min-h-tile h-tile mb-2 p-3) text-black dark:text-white hover:(text-white even:bg-blue-600 odd:bg-lightBlue-500) cursor-pointer flex items-center flex-col justify-center transition ease-in-out duration-700 px-1.5 cursor-grab active:cursor-grabbing overflow-hidden'],
35
+ ['cats-img','w-full h-8 md:h-icon group-hover:filter-invert dark:filter-invert relative'],
36
+ ['subcat', 'whitespace-nowrap cursor-pointer text-light-blue-600 dark:text-lightBlue-500 hover:text-lightBlue-600 font-light mb-1 py-2 md:py-0'],
37
+ ['product-row','bg-white flex flex-wrap odd:(pr-2.5 pl-3.5 sm:px-0) even:(pl-2.5 pr-3.5 sm:px-0) w-1/2 sm:w-auto sm:grid sm:grid-cols-3 gap-x-1 gap-y-0 md:(grid-cols-product gap-x-4) justify-start content-start content-start place-content-start py-4 pb-6 sm:pb-4'],
38
+ ['product-row__photo','aspect-ratio-[4/3] mb-2 sm:mb-0 after:(content-empty bg-black bg-opacity-[.03] absolute w-full h-full top-0) w-100 col-span-1 row-span-3 max-w-full text-left overflow-hidden relative bg-gray-100 md:(col-span-1 row-span-1) box-content'], //filter drop-shadow-sm
39
+ ['product-row__description', 'text-xs text-gray-900 dark:text-gray-300 leading-tight mt-2 font-textlight line-clamp-3 whitespace-normal md:(text-sm mt-0 font-textregular whitespace-pre-wrap)'],
40
+ ['product-row__main', 'w-full sm:w-auto col-span-2 leading-none relative sm:pl-1 md:(pl-0 row-start-1 col-start-2 col-span-1)'],
41
+ ['product-date', 'inline-block text-xxs md:text-xs leading-none mt-1 md:(mt-4 mb-1) mr-2'],
42
+ ['detail-name', 'text-xs text-gray-900 dark:text-gray-300 leading-tight font-textlight line-clamp-3 whitespace-normal md:(text-sm whitespace-pre-wrap line-clamp-9 font-textregular)'],
43
+ ['detail-row','text-sm mt-1 md:mt-4 mb-4 grid grid-cols-2 gap-4 sm:(grid-cols-details-desktop grid-flow-col auto-cols-max)'],
44
+ ['product-thumb', 'h-full w-full object-cover object-center transform scale-100 group-hover:scale-110 absolute inset-0 will-change-transform bg-gray-100'],
45
+ ['product-thumb--plp','aspect-ratio-[4/3] flex items-center flex justify-center mb-3 sm:mb-0 after:(content-empty bg-black bg-opacity-[.03] absolute w-full h-full top-0)'], //filter drop-shadow-sm
46
+ ['product-thumb--related', 'w-22 min-w-22 xl:w-30 xl:min-w-30 h-auto object-contain object-top bg-gray-100 aspect-[4/3] relative'],
47
+ ['product-thumb--carousel', 'w-60 min-w-60 sm:w-22 sm:min-w-22 xl:w-30 xl:min-w-30 h-auto object-contain object-top bg-gray-100 aspect-[4/3] relative'],
48
+ ['product-link--related', 'relative flex w-full bg-white dark:bg-blue-901 after:absolute after:bg-lightBlue-500 after:w-full after:left-0 after:h-px after:-bottom-2 after:content-empty after:scale-x-0 after:transition-transform-300 after:origin-top-right hover:after:origin-top-left hover:after:scale-x-100'],
49
+ ['btn', 'px-4 py-1 rounded inline-block bg-teal-600 text-white cursor-pointer hover:bg-teal-700 disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50'],
50
+ ['icon-btn', 'text-[0.9em] inline-block cursor-pointer select-none opacity-75 transition duration-200 ease-in-out hover:(opacity-100 text-teal-600)'],
51
+ ['sidebar-title','font-headregular text-light-blue-500 text-xl md:(text-2xl px-4) mb-2 px-14 sm:px-3 flex items-center justify-center sm:justify-start py-3'],
52
+ ['product-info','text-gray-400 text-xxs font-textlight leading-none mt-0.5 md:(mt-0 text-xs)'],
53
+ ['product-button', 'text-blue-500 cursor-pointer text-base leading-none inline-flex items-center justify-center w-8 h-8 min-w-8 transition-colors duration-150 bg-white dark:bg-blue-901 focus:(text-blue-500) hover:(text-blue-500)'],
54
+ ['pdp-headline','text-2xl sm:text-4xl 2xl:text-5xl font-headlight mb-6 font-bold sm:font-normal pr-7 lg:pr-0 pt-0 leading-none'],
55
+ ['pdp-detail-row','text-sm mt-1 md:mt-4 mb-4 grid grid-cols-2 sm:(grid-cols-details-desktop grid-flow-col auto-cols-max) gap-4'],
56
+ ['pdp-slide','h-full bg-gray-100 aspect-[4/3] relative overflow-hidden border border-transparent'],
57
+ ['slide-bg','scale-140 bg-center bg-no-repeat bg-contain h-full w-full absolute top-0 filter-blur overflow-hidden transform bg-gray-200 dark:bg-gray-700'],
58
+ ['slide-img','cursor-zoom-in my-auto z-50 h-full max-w-screen-2xl object-center object-contain pointer-events-none'],
59
+ ['slide-pic','w-full flex justify-end absolute top-0 bottom-0'],
60
+ ['slide-thumb','bg-gray-100 aspect-[4/3] w-auto h-auto cursor-grab active:cursor-grabbing max-h-44'],
61
+ ['slide-thumb__img','pointer-events-none pb-px h-full m-auto object-cover bg-white dark:bg-blue-901'],
62
+ ['cat-card','p-4 text-base md:text-sm'],
63
+ ['flag-ua', 'inline-block text-4xl w-6 h-3.5 min-w-[1.25rem] mr-3 bg-gradient-to-b stops-[#0057b7_50%,50%,#ffd700_100%]'],
64
+ ['slimbanner','px-4 sm:px-8 py-3 flex items-center justify-center text-xs sm:text-base leading-none text-white relative'],
65
+ ['similar-products','flex items-center space-y-4 gap-8 flex-wrap px-4 md:grid grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-5'],
66
+ ['products-grid','flex w-full flex-nowrap items-center pr-4 md:grid grid-rows-1 overflow-hidden grid-cols-2 lg:grid-cols-3 2xl:grid-cols-4 3xl:grid-cols-5 max-h-[6rem]'],
67
+ ['cat-link','whitespace-nowrap cursor-pointer text-blue-901 dark:text-white hover:text-lightBlue-400 font-light uppercase py-2 md:py-0'],
68
+ ['plp-name','flex items-center leading-none font-headregular cursor-pointer sm:pr-6 md:pr-12'],
69
+ ['plp-replacements','col-span-3 md:col-span-1 md:col-start-2 text-xs mt-3 md:mt-4'],
70
+ ['product-number','font-mono content-center flex flex-wrap flex-col content-start'],
71
+ ['product-code','text-blue-500 dark:text-lightBlue-500 mr-1 leading-none tracking-wide select-all'],
72
+ ['code-formatted','leading-none mt-0 relative text-xs'],
73
+ ['btn-copy', 'leading-none opacity-10 hover:opacity-80 ml-auto w-6 h-6 -right-7 sm:(h-4 w-4 -right-5) absolute'],
74
+ ['btn-copy-text','shadow-sm py-0.5 px-1 bg-gray-100 -ml-1 -mt-4 text-xxs whitespace-nowrap'],
75
+ ['plp-icons','absolute top-0 -right-2 md:(top-0.5 right-0) w-12 bottom-auto flex justify-end text-sm'],
76
+ ['plp-desc','hidden sm:block col-span-3 md:col-span-1 md:col-start-3 relative px-2 sm:px-0'],
77
+ ['plp-materials', 'text-xs md:text-sm text-gray-900 dark:text-gray-300 leading-tight font-textlight md:font-textregular whitespace-normal md:whitespace-pre-wrap'],
78
+ ['plp-b-desc','whitespace-pre-wrap text-xs md:text-sm font-textlight leading-4 md:leading-5'],
79
+ ['category-tile', 'flex-wrap sm:flex-nowrap content-between w-64 min-w-64 lg:(w-28.57% min-w-28.57%) 2xl:(w-24.09% min-w-24.09%) 3xl:(w-19.60% min-w-19.60%) flex ml-1 lg:ml-1.5'],
80
+ ['carousel-tile', 'w-52 min-w-52 flex ml-1 lg:ml-1.5'],
81
+ ['category-carousel__link', 'uppercase ml-auto px-4 text-xs flex items-center mt-3 hover:underline'],
82
+ ['adsbygoogle', 'w-full text-center'],
83
+ ['search-container', 'mb-2 sm:mb-0'],
84
+ ['l-main', 'text-gray-700 dark:text-gray-200 pt-24 sm:pt-14 bg-white dark:bg-blue-901'],
85
+ ['product-link', 'relative flex w-full bg-white pb-1 dark:bg-blue-901 after:absolute after:bg-lightBlue-500 after:w-[calc(100%-1rem)] after:left-0 after:h-px after:top-[calc(100%-1px)] after:bottom-1 after:content-empty after:scale-x-0 after:transition-transform-300 after:origin-top-right hover:after:origin-top-left hover:after:scale-x-100'],
86
+ ['category-section', 'pb-4 w-full bg-white mb-4 overflow-x-hidden flex flex-wrap max-w-full'],
87
+ ['number-secondary', 'block absolute inset-0 text-gray-400 select-all bg-white dark:bg-blue-901'],
88
+ ['product-list', 'flex flex-wrap sm:block bg-white dark:bg-blue-901 sm:divide-y-1 sm:divide-solid divide-gray-200 dark:divide-white dark:divide-opacity-10 md:px-2 md:pl-4 mb-4 w-full bg-gray-100 dark:bg-gray-700 mb-auto']
89
+
90
+ ],
91
+ theme: {
92
+ colors: {
93
+ blue: {
94
+ 500: '#3b82f6',
95
+ 600: '#02307d',
96
+ 700: '#001e50',
97
+ 800: '#00437a',
98
+ 900: '#000f28',
99
+ 901: '#0c1a32',
100
+ wrc: '#0000c8'
101
+ },
102
+ lightBlue: {
103
+ 400: '#00b0f0',
104
+ 500: '#0099da',
105
+ 600: '#0087c1',
106
+ 700: '#006ea6'
107
+ },
108
+ gray: {
109
+ 100: '#f3f4f6',
110
+ 200: '#e5e7eb',
111
+ 300: '#b5bbc5',
112
+ 400: '#9ca3af',
113
+ 500: '#64748B'
114
+ }
115
+ },
116
+ gridTemplateColumn: {
117
+ 16: 'repeat(16, minmax(0, 1fr))',
118
+ product: '15rem 20rem minmax(15rem, 1fr) ',
119
+ productGalleryDesktop: 'calc(100% - 14% - 0.9375rem) 14%',
120
+ replacement: '6.25rem 12rem auto', // minmax(10rem, 1fr)
121
+ 'details-desktop': '12.5rem calc(100% - 12.5rem - 1rem)'
122
+ },
123
+ height: {
124
+ 'tile': ' 104px',
125
+ 'tile-mobile': ' 78px',
126
+ 'sidebar': 'calc(100vh - 5.125rem)',
127
+ 'full-mobile': 'calc(var(--vh, 1vh) * 100)',
128
+ icon: '46px',
129
+ },
130
+ filter: {
131
+ blur: 'blur(5px)',
132
+ },
133
+ backgroundSize: {
134
+ full: '100% 100%',
135
+ },
136
+ maxHeight: {
137
+ icon: '46px',
138
+ sidebar: 'calc(100vh - 5.125rem)',
139
+ },
140
+ minHeight: {
141
+ 'tile': ' 104px',
142
+ 'tile-mobile': ' 78px',
143
+ },
144
+ scale: ['group-hover'],
145
+ cursor: {
146
+ 'zoom-in': 'zoom-in',
147
+ },
148
+ breakpoints: {
149
+ 'sm': '640px',
150
+ 'md': '768px',
151
+ 'lg': '1024px',
152
+ 'xl': '1280px',
153
+ '2xl': '1536px',
154
+ '3xl': '1920px',
155
+ '4xl': '2400px',
156
+ },
157
+ screens: {
158
+ 'sm': '640px',
159
+ 'md': '768px',
160
+ 'lg': '1024px',
161
+ 'xl': '1280px',
162
+ '2xl': '1536px',
163
+ '3xl': '1920px',
164
+ 'print': { 'raw': 'print' },
165
+ },
166
+ fontSize: {
167
+ xxs: '.625rem',
168
+ },
169
+ aspectRatio: {
170
+ '4/3': '4 / 3',
171
+ },
172
+ },
173
+ presets: [
174
+ presetUno(),
175
+ presetAttributify(),
176
+ presetIcons({
177
+ scale: 1.2,
178
+ warn: true,
179
+ prefix: 'i-',
180
+ extraProperties: {
181
+ 'display': 'inline-block',
182
+ 'vertical-align': 'middle',
183
+ // ...
184
+ },
185
+ }),
186
+ presetTypography(),
187
+ presetWebFonts({
188
+ fonts: {
189
+ sans: [{
190
+ name: 'vw_textregular',
191
+ provider: 'none'
192
+ }],
193
+ novamono: [{
194
+ name: 'Nova Mono',
195
+ provider: 'none'
196
+ }],
197
+ mono: [{
198
+ name: 'Nova Mono',
199
+ provider: 'none'
200
+ }],
201
+ headlight: [{
202
+ name: 'vw_headlight',
203
+ provider: 'none'
204
+ }],
205
+ headregular: [{
206
+ name: 'vw_headregular',
207
+ provider: 'none'
208
+ }],
209
+ headbold: [{
210
+ name: 'vw_headbold',
211
+ provider: 'none'
212
+ }],
213
+ textlight: [{
214
+ name: 'vw_textlight',
215
+ provider: 'none'
216
+ }],
217
+ textregular: [{
218
+ name: 'vw_textregular',
219
+ provider: 'none'
220
+ }],
221
+ textbold: [{
222
+ name: 'vw_textbold',
223
+ provider: 'none'
224
+ }]
225
+ }
226
+ })
227
+ ]
228
+ })