spoko-design-system 0.0.6 → 0.0.7
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 +14 -2
- package/astro.config.mjs +55 -7
- package/package.json +21 -7
- package/public/pagefind.yml +4 -0
- package/src/components/Button.vue +10 -2
- package/src/components/ButtonCopy.vue +1 -6
- package/src/components/Card.astro +2 -2
- package/src/components/Header/Header.astro +172 -0
- package/src/components/Image.astro +0 -2
- package/src/components/Jumbatron.vue +17 -18
- package/src/components/MainTable.vue +20 -26
- package/src/components/Modal.astro +1 -4
- package/src/components/PageContent.astro +0 -1
- package/src/components/ProductTile.astro +30 -32
- package/src/components/RightSidebar.astro +0 -3
- package/src/config.ts +1 -0
- package/src/design.config.ts +4 -0
- package/src/layouts/Layout.astro +2 -2
- package/src/layouts/MainLayout.astro +7 -7
- package/src/pages/components/badges.mdx +17 -31
- package/src/pages/components/breadcrumbs.mdx +9 -6
- package/src/pages/components/buttons.mdx +106 -13
- package/src/pages/components/card.mdx +5 -5
- package/src/pages/components/copyright.mdx +3 -2
- package/src/pages/components/flags.mdx +3 -2
- package/src/pages/components/fuck-russia.mdx +1 -1
- package/src/pages/components/hand-drive.mdx +4 -4
- package/src/pages/components/headline.mdx +19 -13
- package/src/pages/components/image.mdx +17 -5
- package/src/pages/components/input.mdx +1 -1
- package/src/pages/components/jumbatron.mdx +5 -3
- package/src/pages/components/modal.mdx +3 -3
- package/src/pages/components/post-header.mdx +3 -1
- package/src/pages/components/pr-code.mdx +6 -10
- package/src/pages/components/product-number.mdx +2 -1
- package/src/pages/components/product-tile.mdx +1 -1
- package/src/pages/components/slimbanner.mdx +1 -1
- package/src/pages/components/table.mdx +72 -4
- package/src/pages/core/introduction.mdx +1 -1
- package/src/pages/index.astro +1 -0
- package/src/styles/_variables.scss +6 -15
- package/src/styles/base/_base.scss +14 -5
- package/src/styles/base/_typography.scss +1 -80
- package/src/styles/content.scss +6 -9
- package/src/styles/main.scss +0 -16
- package/uno.config.ts +13 -11
- package/Layout/Header.astro +0 -111
|
@@ -6,21 +6,26 @@ import Headline from '../../components/Headline.vue'
|
|
|
6
6
|
import { Icon } from 'astro-icon/components';
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
# Headline
|
|
10
|
+
|
|
11
|
+
Headline - universal HTML tag <small>(nice for SEO)</small>.
|
|
12
|
+
|
|
13
|
+
#
|
|
14
|
+
Headings give both your visitors and search engines important clues about the content's hierarchy and relevancy.
|
|
10
15
|
|
|
11
|
-
### Headline - universal HTML tag <small>(nice for SEO)</small>
|
|
12
|
-
Headings give both your visitors and search engines important clues about the content’s hierarchy and relevancy.
|
|
13
16
|
It's good to use only H1-H6 for important headings, but sometimes I want more things to be unified. That's why I created this universal component.
|
|
14
17
|
|
|
15
18
|
Thanks to this, I can make a header that always looks the same, regardless of whether it is an H1 or a DIV or P.
|
|
16
19
|
|
|
17
|
-
|
|
20
|
+
|
|
21
|
+
### Import
|
|
18
22
|
|
|
19
23
|
```js
|
|
20
24
|
import Headline from 'spoko-design-system/src/components/Headline.vue';
|
|
21
25
|
```
|
|
22
26
|
|
|
23
|
-
|
|
27
|
+
### Settings
|
|
28
|
+
supported parameters
|
|
24
29
|
```js
|
|
25
30
|
as: {
|
|
26
31
|
type: String as PropType<'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'div' | 'span'>,
|
|
@@ -35,7 +40,7 @@ textSize: {
|
|
|
35
40
|
|
|
36
41
|
```
|
|
37
42
|
|
|
38
|
-
|
|
43
|
+
## Headline H1
|
|
39
44
|
|
|
40
45
|
<div class="component-preview">
|
|
41
46
|
<Headline as="h1">Lorem Ipsum</Headline>
|
|
@@ -49,7 +54,7 @@ textSize: {
|
|
|
49
54
|
```
|
|
50
55
|
|
|
51
56
|
|
|
52
|
-
|
|
57
|
+
## Headline H2
|
|
53
58
|
|
|
54
59
|
<div class="component-preview">
|
|
55
60
|
<Headline as="h2"><Icon name="ph:cat-thin" class="inline-block mb-0 sm:mb-2.5 md:mb-0 md:(mr-4)" aria-hidden="true" />Lorem Ipsum</Headline>
|
|
@@ -63,7 +68,7 @@ textSize: {
|
|
|
63
68
|
|
|
64
69
|
```
|
|
65
70
|
|
|
66
|
-
|
|
71
|
+
## Headline DIV
|
|
67
72
|
|
|
68
73
|
<div class="component-preview">
|
|
69
74
|
<Headline as="div"><Icon name="ph:cat-thin" class="inline-block mb-0 sm:mb-2.5 md:mb-0 md:(mr-4) text-blue-wrc" aria-hidden="true" />Lorem Ipsum</Headline>
|
|
@@ -77,7 +82,8 @@ textSize: {
|
|
|
77
82
|
|
|
78
83
|
```
|
|
79
84
|
|
|
80
|
-
|
|
85
|
+
## Headline P
|
|
86
|
+
Paragraph `<p>`
|
|
81
87
|
|
|
82
88
|
<div class="component-preview">
|
|
83
89
|
<Headline as="p"><Icon name="ph:cat-thin" class="inline-block text-4xl mb-0 sm:mb-2.5 md:mb-0 md:(mr-4) text-4xl text-blue-wrc" aria-hidden="true" />Lorem Ipsum</Headline>
|
|
@@ -91,7 +97,7 @@ textSize: {
|
|
|
91
97
|
|
|
92
98
|
```
|
|
93
99
|
|
|
94
|
-
|
|
100
|
+
## Headline without icon
|
|
95
101
|
|
|
96
102
|
<div class="component-preview">
|
|
97
103
|
<Headline as="p">Lorem Ipsum</Headline>
|
|
@@ -102,7 +108,7 @@ textSize: {
|
|
|
102
108
|
|
|
103
109
|
```
|
|
104
110
|
|
|
105
|
-
|
|
111
|
+
## Headline without icon, text size 4xl
|
|
106
112
|
|
|
107
113
|
<div class="component-preview">
|
|
108
114
|
<Headline as="h1" text-size="4xl">Lorem Ipsum</Headline>
|
|
@@ -114,7 +120,7 @@ textSize: {
|
|
|
114
120
|
```
|
|
115
121
|
|
|
116
122
|
|
|
117
|
-
|
|
123
|
+
## Headline without icon, text size 4xl with blue icon
|
|
118
124
|
|
|
119
125
|
<div class="component-preview">
|
|
120
126
|
<Headline as="h1" text-size="4xl"><Icon name="ph:cat-thin" class="inline-block text-4xl mb-0 sm:mb-2.5 md:mb-0 md:(mr-4) text-4xl text-blue-wrc" aria-hidden="true" />Lorem Ipsum</Headline>
|
|
@@ -129,7 +135,7 @@ textSize: {
|
|
|
129
135
|
```
|
|
130
136
|
|
|
131
137
|
|
|
132
|
-
|
|
138
|
+
## Headline with underline
|
|
133
139
|
|
|
134
140
|
<div class="component-preview">
|
|
135
141
|
<Headline as="h1" text-size="4xl" underline><Icon name="ph:cat-thin" class="inline-block text-4xl mb-0 sm:mb-2.5 md:mb-0 md:(mr-4) text-4xl text-blue-wrc" aria-hidden="true" />Lorem Ipsum</Headline>
|
|
@@ -4,7 +4,7 @@ layout: "../../layouts/MainLayout.astro"
|
|
|
4
4
|
---
|
|
5
5
|
import Image from '../../components/Image.astro'
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
# Image
|
|
8
8
|
|
|
9
9
|
Image converted to AVIF format and resized.
|
|
10
10
|
AVIF compresses images significantly better than older-generation formats such as WebP and JPEG.
|
|
@@ -27,7 +27,7 @@ You can choose the image format you need so that you do not unnecessarily load a
|
|
|
27
27
|
Use `.img--overlay` class for images on white background to make a layer with light grey overlay.
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
|
|
30
|
+
## Small Image
|
|
31
31
|
`.img--small`
|
|
32
32
|
|
|
33
33
|
<div class="component-preview">
|
|
@@ -126,7 +126,7 @@ Use `.img--overlay` class for images on white background to make a layer with li
|
|
|
126
126
|
```
|
|
127
127
|
|
|
128
128
|
|
|
129
|
-
|
|
129
|
+
## Medium Image
|
|
130
130
|
`.img--medium`
|
|
131
131
|
|
|
132
132
|
<div class="component-preview">
|
|
@@ -215,7 +215,7 @@ Use `.img--overlay` class for images on white background to make a layer with li
|
|
|
215
215
|
</a>
|
|
216
216
|
```
|
|
217
217
|
|
|
218
|
-
|
|
218
|
+
## Responsive Image with srcset
|
|
219
219
|
- https://developer.mozilla.org/en-US/docs/Learn/HTML/Multimedia_and_embedding/Responsive_images#resolution_switching_different_sizes
|
|
220
220
|
|
|
221
221
|
<div class="component-preview">
|
|
@@ -252,11 +252,23 @@ Use `.img--overlay` class for images on white background to make a layer with li
|
|
|
252
252
|
|
|
253
253
|
|
|
254
254
|
|
|
255
|
-
|
|
255
|
+
## Image Aspect Ratios
|
|
256
256
|
|
|
257
257
|
Image ratio, also known as aspect ratio, is how wide an image is in relation to how tall it is.
|
|
258
258
|
For viewing on a mobile device, the recommended image ratio is 1:1 (a square picture).
|
|
259
259
|
|
|
260
|
+
#
|
|
261
|
+
Ready-made CSS classes:
|
|
262
|
+
|
|
263
|
+
- `img--1/1`
|
|
264
|
+
- `img--2/3`
|
|
265
|
+
- `img--3/1`
|
|
266
|
+
- `img--3/2`
|
|
267
|
+
- `img--3/4`
|
|
268
|
+
- `img--4/3`
|
|
269
|
+
- `img--16/9`
|
|
270
|
+
|
|
271
|
+
|
|
260
272
|
<div class="component-preview">
|
|
261
273
|
<div class="columns-2 lg:columns-4 w-full">
|
|
262
274
|
<div class="text-center mb-4">
|
|
@@ -5,11 +5,13 @@ layout: "../../layouts/MainLayout.astro"
|
|
|
5
5
|
import Jumbatron from '../../components/Jumbatron.vue'
|
|
6
6
|
import Button from '../../components/Button.vue'
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
# Jumbatron
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
A jumbotron indicates a big box for calling extra attention to some special content or information.
|
|
11
11
|
|
|
12
12
|
Find the code for this page in the `src/pages/components/jumbatron.mdx` file.
|
|
13
|
+
|
|
14
|
+
## Jumbatron - classic
|
|
13
15
|
<div class="component-preview">
|
|
14
16
|
<Jumbatron class="w-full">
|
|
15
17
|
<span slot="intro" set:html={`Lorem ipsum dolor sit amet, <span class=\"text-lightBlue-500\">consectetur</span> adipiscing elit.`} />
|
|
@@ -42,7 +44,7 @@ Find the code for this page in the `src/pages/components/jumbatron.mdx` file.
|
|
|
42
44
|
</Jumbatron>
|
|
43
45
|
```
|
|
44
46
|
|
|
45
|
-
## Jumbatron
|
|
47
|
+
## Small Jumbatron
|
|
46
48
|
|
|
47
49
|
<div class="component-preview">
|
|
48
50
|
<Jumbatron class="w-full" small>
|
|
@@ -7,7 +7,7 @@ import Button from '../../components/Button.vue'
|
|
|
7
7
|
import { Icon } from 'astro-icon/components';
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
# Modal
|
|
11
11
|
|
|
12
12
|
Native modal window based on `<dialog>` tag with `::backdrop` CSS pseudo-element (pure CSS3 modal window).
|
|
13
13
|
#
|
|
@@ -16,7 +16,7 @@ Native modal window based on `<dialog>` tag with `::backdrop` CSS pseudo-element
|
|
|
16
16
|
- https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog
|
|
17
17
|
- https://developer.mozilla.org/en-US/docs/Web/CSS/::backdrop
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
## Modal window
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
<div class="component-preview">
|
|
@@ -40,7 +40,7 @@ Native modal window based on `<dialog>` tag with `::backdrop` CSS pseudo-element
|
|
|
40
40
|
</Modal>
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
|
|
43
|
+
## Modal with different close button
|
|
44
44
|
|
|
45
45
|
<div class="component-preview">
|
|
46
46
|
<Modal id="dialog2" open="Open modal">
|
|
@@ -7,11 +7,13 @@ export const author = { firstName: 'Szymon', name: 'CNK' }
|
|
|
7
7
|
export const categories = [{"name":"Tools & garage accessories","uri":"#"}, {"name":"Lorem Ipsum","uri":"#"}]
|
|
8
8
|
export const date = "2023-07-13T01:35:03"
|
|
9
9
|
|
|
10
|
-
|
|
10
|
+
# PostHeader
|
|
11
11
|
|
|
12
12
|
WordPress PostHeader - post top component for WordPress Single Post template data like categories etc. comes from WP Rest API.
|
|
13
13
|
|
|
14
14
|
|
|
15
|
+
## PostHeader with some content for WordPress single page template
|
|
16
|
+
|
|
15
17
|
<div class="component-preview">
|
|
16
18
|
<div class="relative w-full">
|
|
17
19
|
<PostHeader
|
|
@@ -5,7 +5,7 @@ layout: "../../layouts/MainLayout.astro"
|
|
|
5
5
|
import PrCode from '../../components/PrCode.vue'
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
# PR-Code
|
|
9
9
|
|
|
10
10
|
PR Code are Production Codes for all of the installed equipment in the vehicle and is used by manufacturers including VW, Audi, Seat, Skoda, Porsche, Lamborghini etc.
|
|
11
11
|
PR Codes contain 3 characters comprising of letters and numbers.
|
|
@@ -16,15 +16,7 @@ They are important when purchasing spare parts as they provide information about
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
#### import:
|
|
21
|
-
|
|
22
|
-
```js
|
|
23
|
-
import PrCode from 'spoko-design-system/src/components/PrCode.vue'
|
|
24
|
-
```
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
### PR-Code
|
|
19
|
+
## PR-Code
|
|
28
20
|
|
|
29
21
|
<div class="component-preview">
|
|
30
22
|
<div class="bg-white p-6 w-full">
|
|
@@ -38,4 +30,8 @@ import PrCode from 'spoko-design-system/src/components/PrCode.vue'
|
|
|
38
30
|
<PrCode prcode="1ZJ" />
|
|
39
31
|
```
|
|
40
32
|
|
|
33
|
+
### import:
|
|
41
34
|
|
|
35
|
+
```js
|
|
36
|
+
import PrCode from 'spoko-design-system/src/components/PrCode.vue'
|
|
37
|
+
```
|
|
@@ -4,10 +4,11 @@ layout: "../../layouts/MainLayout.astro"
|
|
|
4
4
|
---
|
|
5
5
|
import ProductNumber from '../../components/ProductNumber.astro'
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
# ProductNumber
|
|
8
8
|
|
|
9
9
|
ProductNumber - with additional formatting adding spacing for Volkswagen product numbers + additional copy button for easier copying.
|
|
10
10
|
|
|
11
|
+
#
|
|
11
12
|
<div class="component-preview">
|
|
12
13
|
<div class="grid grid-cols-2 lg:grid-cols-4 gap-4 w-full bg-white p-y-5 px-4">
|
|
13
14
|
<ProductNumber
|
|
@@ -11,7 +11,7 @@ export const productObject = {
|
|
|
11
11
|
photo: 'https://img.freepik.com/darmowe-wektory/tlo-retro-modeli-geometrycznych_52683-17902.jpg?w=1380&t=st=1706311337'
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
# ProductTile
|
|
15
15
|
|
|
16
16
|
ProductTile - product link component which can be used for carousels, section with related products, recently added etc.
|
|
17
17
|
|
|
@@ -5,15 +5,47 @@ layout: "../../layouts/MainLayout.astro"
|
|
|
5
5
|
---
|
|
6
6
|
|
|
7
7
|
import MainTable from '../../components/MainTable.vue'
|
|
8
|
+
export const tableData = [
|
|
9
|
+
{
|
|
10
|
+
id: 1,
|
|
11
|
+
name: "Lorem Ipsum",
|
|
12
|
+
email: "lorem@email.com",
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: 2,
|
|
16
|
+
name: "Chuck Norris",
|
|
17
|
+
email: "ipsum@email.com",
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: 3,
|
|
21
|
+
name: "Ipsum Lorem",
|
|
22
|
+
email: "lorem@email.com",
|
|
23
|
+
}
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
export const tableDataSecondary = [
|
|
27
|
+
{
|
|
28
|
+
name: "Lorem Ipsum",
|
|
29
|
+
email: "lorem@email.com",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
name: "Chuck Norris",
|
|
33
|
+
email: "ipsum@email.com",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: "Ipsum Lorem",
|
|
37
|
+
email: "lorem@email.com",
|
|
38
|
+
}
|
|
39
|
+
];
|
|
8
40
|
|
|
9
41
|
|
|
10
|
-
|
|
42
|
+
# Table
|
|
11
43
|
|
|
12
44
|
<div class="component-preview">
|
|
13
|
-
<MainTable></MainTable>
|
|
45
|
+
<MainTable data={tableData}></MainTable>
|
|
14
46
|
</div>
|
|
15
47
|
|
|
16
|
-
|
|
48
|
+
## Code
|
|
17
49
|
|
|
18
50
|
```ts
|
|
19
51
|
const tableData = [
|
|
@@ -34,6 +66,42 @@ const tableData = [
|
|
|
34
66
|
}
|
|
35
67
|
];
|
|
36
68
|
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
```html
|
|
72
|
+
<!-- Astro -->
|
|
73
|
+
<MainTable data={tableData} />
|
|
37
74
|
|
|
38
|
-
|
|
75
|
+
<!-- Vue -->
|
|
76
|
+
<MainTable :data="tableData" />
|
|
39
77
|
```
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# Table
|
|
82
|
+
|
|
83
|
+
<div class="component-preview">
|
|
84
|
+
<MainTable data={tableDataSecondary} />
|
|
85
|
+
</div>
|
|
86
|
+
|
|
87
|
+
## Code
|
|
88
|
+
|
|
89
|
+
```ts
|
|
90
|
+
const tableDataSecondary = [
|
|
91
|
+
{
|
|
92
|
+
name: "Lorem Ipsum",
|
|
93
|
+
email: "lorem@email.com",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
name: "Chuck Norris",
|
|
97
|
+
email: "ipsum@email.com",
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
name: "Ipsum Lorem",
|
|
101
|
+
email: "lorem@email.com",
|
|
102
|
+
}
|
|
103
|
+
];
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
<MainTable data={tableDataSecondary} />
|
|
107
|
+
```
|
|
@@ -66,7 +66,7 @@ You can import your component library or create your own and document it easily.
|
|
|
66
66
|
There's a class called `.component-preview` that you can use to wrap your component in a grid, and it will look like this:
|
|
67
67
|
|
|
68
68
|
<div class="component-preview">
|
|
69
|
-
<Button primary>Your component</Button>
|
|
69
|
+
<Button primary rounded>Your component</Button>
|
|
70
70
|
</div>
|
|
71
71
|
|
|
72
72
|
### Have fun!
|
package/src/pages/index.astro
CHANGED
|
@@ -1,20 +1,11 @@
|
|
|
1
|
-
$navbar-height-md: 56px;
|
|
2
|
-
$navbar-height: 52px;
|
|
3
|
-
$special-menu-height: 145px;
|
|
4
|
-
$footer-navbar-height: 45px;
|
|
5
|
-
$footer-content-height: 166px;
|
|
6
|
-
|
|
7
|
-
$content-padding-bottom: 17px;
|
|
8
|
-
|
|
9
|
-
|
|
10
1
|
// Color system
|
|
11
2
|
|
|
12
3
|
$white: #fff !default;
|
|
13
|
-
$gray-100: #
|
|
14
|
-
$gray-200: #
|
|
15
|
-
$gray-300: #
|
|
16
|
-
$gray-400: #
|
|
17
|
-
$gray-500: #
|
|
4
|
+
$gray-100: #F3F4F6;
|
|
5
|
+
$gray-200: #E5E7EB;
|
|
6
|
+
$gray-300: #B5BBC5;
|
|
7
|
+
$gray-400: #9CA3AF;
|
|
8
|
+
$gray-500: #64748B!default;
|
|
18
9
|
$gray-600: #6c757d !default;
|
|
19
10
|
$gray-700: #495057 !default;
|
|
20
11
|
$gray-800: #343a40 !default;
|
|
@@ -51,7 +42,7 @@ $vwblue: #0786ba;
|
|
|
51
42
|
$vwblue2: #00b1eb;
|
|
52
43
|
$blue: #0099da; //#0070B2; //#007bff !default;
|
|
53
44
|
$darkblue: #00437A;
|
|
54
|
-
$verydarkblue: #
|
|
45
|
+
$verydarkblue: #001E50;
|
|
55
46
|
$indigo: #6610f2 !default;
|
|
56
47
|
$purple: #6f42c1 !default;
|
|
57
48
|
$pink: #e83e8c !default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
:root {
|
|
2
2
|
--primary: #{$blue};
|
|
3
|
+
--secondary: #{$gray-500}
|
|
4
|
+
--tertiary: #{$verydarkblue};
|
|
3
5
|
}
|
|
4
6
|
|
|
5
7
|
* {
|
|
@@ -26,7 +28,7 @@ body {
|
|
|
26
28
|
|
|
27
29
|
::-webkit-scrollbar-thumb {
|
|
28
30
|
border-radius: 0;
|
|
29
|
-
background-color:
|
|
31
|
+
background-color: var(--primary);
|
|
30
32
|
}
|
|
31
33
|
|
|
32
34
|
*:focus {
|
|
@@ -70,13 +72,13 @@ html {
|
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
&::-webkit-scrollbar-thumb {
|
|
73
|
-
background-color:
|
|
75
|
+
background-color: var(--primary); /* color of the scroll thumb */
|
|
74
76
|
border-radius: 0; /* roundness of the scroll thumb */
|
|
75
77
|
border: 0 solid #00437A; /* creates padding around scroll thumb */
|
|
76
78
|
}
|
|
77
79
|
|
|
78
80
|
scrollbar-width: thin;
|
|
79
|
-
scrollbar-color:
|
|
81
|
+
scrollbar-color: var(--primary) #00437A;
|
|
80
82
|
}
|
|
81
83
|
|
|
82
84
|
|
|
@@ -84,7 +86,7 @@ html {
|
|
|
84
86
|
:root {
|
|
85
87
|
// --swiper-navigation-color: #0099da;
|
|
86
88
|
--swiper-navigation-size: 22px;
|
|
87
|
-
--swiper-scrollbar-drag-bg-color:
|
|
89
|
+
--swiper-scrollbar-drag-bg-color: var(--primary);
|
|
88
90
|
--swiper-scrollbar-size: 1px;
|
|
89
91
|
--swiper-scrollbar-bottom: 0px;
|
|
90
92
|
}
|
|
@@ -163,4 +165,11 @@ html {
|
|
|
163
165
|
|
|
164
166
|
svg {
|
|
165
167
|
color: var(--primary);
|
|
166
|
-
}
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.btn-primary,
|
|
171
|
+
.btn-secondary {
|
|
172
|
+
svg {
|
|
173
|
+
color: #fff;
|
|
174
|
+
}
|
|
175
|
+
}
|
|
@@ -40,11 +40,6 @@
|
|
|
40
40
|
font-display: fallback;
|
|
41
41
|
}
|
|
42
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
43
|
@font-face {
|
|
49
44
|
font-family: 'vw_headlight';
|
|
50
45
|
src: url('/fonts/vwhead-light-webfont.woff2') format('woff2'),;
|
|
@@ -53,10 +48,6 @@
|
|
|
53
48
|
font-display: swap;
|
|
54
49
|
}
|
|
55
50
|
|
|
56
|
-
// .font-headlight {
|
|
57
|
-
// font-family: 'vw_headlight';
|
|
58
|
-
// }
|
|
59
|
-
|
|
60
51
|
@font-face {
|
|
61
52
|
font-family: 'Nova Mono';
|
|
62
53
|
src: url('/fonts/nova-mono-v13-latin-regular.woff2') format('woff2');
|
|
@@ -65,10 +56,6 @@
|
|
|
65
56
|
font-display: swap; //fallback;
|
|
66
57
|
}
|
|
67
58
|
|
|
68
|
-
// .font-mono {
|
|
69
|
-
// font-family: 'Nova Mono';
|
|
70
|
-
// }
|
|
71
|
-
|
|
72
59
|
@font-face {
|
|
73
60
|
font-family: 'vw_textlight';
|
|
74
61
|
src: url('/fonts/vwtext-light-webfont.woff2') format('woff2');
|
|
@@ -77,72 +64,6 @@
|
|
|
77
64
|
font-display: swap;
|
|
78
65
|
}
|
|
79
66
|
|
|
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
67
|
[data-text]:before {
|
|
147
68
|
content: attr(data-text);
|
|
148
|
-
}
|
|
69
|
+
}
|
package/src/styles/content.scss
CHANGED
|
@@ -18,16 +18,14 @@
|
|
|
18
18
|
}
|
|
19
19
|
&>h3 {
|
|
20
20
|
font-size: 15pt;
|
|
21
|
-
font-weight: 600;
|
|
22
21
|
}
|
|
23
22
|
&>h4 {
|
|
24
23
|
font-size: 13pt;
|
|
25
24
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
// color: theme("colors.slate.600");
|
|
25
|
+
|
|
26
|
+
ul {
|
|
27
|
+
@apply list-disc pl-5
|
|
28
|
+
}
|
|
31
29
|
}
|
|
32
30
|
|
|
33
31
|
code {
|
|
@@ -36,7 +34,7 @@
|
|
|
36
34
|
}
|
|
37
35
|
|
|
38
36
|
.component-preview {
|
|
39
|
-
@apply bg-blue-600 bg-opacity-5 px-0 py-4 mx-0 sm:(p-8)
|
|
37
|
+
@apply bg-blue-600 bg-opacity-5 px-0 py-4 mx-0 flex items-center sm:(p-8);
|
|
40
38
|
gap: 1rem;
|
|
41
39
|
border-radius: 0.33rem;
|
|
42
40
|
border: 1px solid theme("colors.slate.200");
|
|
@@ -49,7 +47,6 @@
|
|
|
49
47
|
}
|
|
50
48
|
}
|
|
51
49
|
|
|
52
|
-
|
|
53
50
|
table {
|
|
54
51
|
@apply table-auto text-left border bg-white shadow-md;
|
|
55
52
|
|
|
@@ -64,4 +61,4 @@ table {
|
|
|
64
61
|
thead {
|
|
65
62
|
@apply bg-gray-100;
|
|
66
63
|
}
|
|
67
|
-
}
|
|
64
|
+
}
|
package/src/styles/main.scss
CHANGED
|
@@ -3,20 +3,4 @@
|
|
|
3
3
|
@import "base/typography";
|
|
4
4
|
@import "base/base";
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
6
|
@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;
|