You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+53-8Lines changed: 53 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
-
# MOx design systeem
1
+
# MOZa proof of concept prototype
2
2
3
-
## MOx omgeving installeren
3
+
## Omgeving installeren
4
4
5
5
1. Clone deze repository lokaal
6
6
2.[Installeer Style Dictionary](https://styledictionary.com/getting-started/using_the_cli/#installation) in `/style-dictionary`, deze vertaald design tokens naar CSS variabelen
7
7
3.[Instaleer SD-Transforms](https://www.npmjs.com/package/@tokens-studio/sd-transforms#installation) in `/style-dictionary`, dit is een pakketje met extra transformatie-opties die nodig zijn om design tokens uit Figma [Tokens Studio](https://docs.tokens.studio/) te vertalen
8
8
9
-
## Eleventy installeren
9
+
## Statische site-generator installeren
10
10
11
11
[Eleventy](https://www.11ty.dev/) wordt gebruikt om herhalende componenten zoals headers en footers als includes te beheren. Installeer Eleventy in de root van het project:
12
12
@@ -16,7 +16,7 @@ npm install @11ty/eleventy
16
16
17
17
### Pagina's bouwen
18
18
19
-
Om de HTML pagina's te bouwen voer je dit commando uit vanuit de root van het project:
19
+
Om de HTML pagina's te bouwen voer je het commando uit vanuit de root van het project:
20
20
21
21
```bash
22
22
npx @11ty/eleventy
@@ -40,10 +40,10 @@ Herhalende componenten staan in de `_includes` map:
40
40
41
41
| Bestand | Beschrijving |
42
42
| ------- | ------------ |
43
-
|`base.njk`| Basis layout met `<html>`, `<head>` en `<body>`|
44
-
|`header-rijksoverheid.njk`|Standaard header met logo en optionele navigatie |
|`Selectie.stories.js`| Selectievakjes en keuzerondjes |
97
+
|`Feedback.stories.js`| Notificaties en foutmeldingen |
98
+
|`Navigatie.stories.js`| Navigatiecomponenten |
99
+
|`Typografie.stories.js`| Koppen en tekststijlen |
100
+
|`Tabel.stories.js`| Tabelopmaak |
101
+
102
+
### Publiceren naar Chromatic
103
+
104
+
[Chromatic](https://www.chromatic.com/) host Storybook online en biedt visuele regressietests. Eenmalige installatie:
105
+
106
+
```bash
107
+
npm install --save-dev chromatic
108
+
```
109
+
110
+
Publiceren:
111
+
112
+
```bash
113
+
npx chromatic --project-token=<jouw-token>
114
+
```
115
+
116
+
Het project token vind je na het aanmaken van een project op [chromatic.com](https://www.chromatic.com/). Chromatic bouwt en uploadt Storybook automatisch — je hoeft zelf niets te builden.
{%ifloop.index== 3 %}{%include"side-nav-temp.njk"ignoremissing%}{%endif%}<!-- tijdelijk, voor de preview van functionaliteit tijdens gebruikers onderzoeken -->
14
13
{%endfor%}
15
14
</ul>
16
15
</nav>
17
-
<script>
18
-
document.querySelector(".side-nav-toggle").addEventListener("click", function () {
0 commit comments