Skip to content

Commit 427669f

Browse files
Jeffrey Lauwersclaude
andcommitted
docs: synchroniseer documentatie voor Body component (v5.7.0)
- README.md: Layout Components 4→5 (Body toegevoegd), 1002→1008 tests - docs/README.md: versie 5.6.0→5.7.0, 42→43 componenten, 1002→1008 tests - docs/03-components.md: Body sectie toegevoegd onder Layout Components - docs/05-storybook-configuration.md: decorator beschrijving bijgewerkt (dsn-body) - docs/changelog.md: v5.7.0 entry toegevoegd (PR #84) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 93ff38c commit 427669f

File tree

5 files changed

+51
-11
lines changed

5 files changed

+51
-11
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ pnpm --filter @dsn/design-tokens watch
6565
# Start Storybook in development mode
6666
pnpm dev
6767

68-
# Run tests (1002 tests across 48 test suites)
68+
# Run tests (1008 tests across 49 test suites)
6969
pnpm test
7070

7171
# Run tests in watch mode
@@ -162,10 +162,11 @@ All components are fully typed with TypeScript and include comprehensive JSDoc d
162162

163163
### Current Components
164164

165-
**Layout Components (4)**
165+
**Layout Components (5)**
166166

167167
| Component | HTML/CSS | React | Web Component |
168168
| ------------- | -------- | ----- | ------------- |
169+
| **Body** | Yes | Yes ||
169170
| **Container** | Yes | Yes ||
170171
| **Grid** | Yes | Yes ||
171172
| **GridItem** | Yes | Yes ||
@@ -368,7 +369,7 @@ Comprehensive documentation is available in the `/docs` folder:
368369

369370
- **Pre-commit hooks** via Husky + lint-staged (ESLint + Prettier)
370371
- **Type checking** across all packages (`pnpm type-check`)
371-
- **1002 tests** covering React components, Web Components, and utilities
372+
- **1008 tests** covering React components, Web Components, and utilities
372373
- **CI/CD** via GitHub Actions (lint, type-check, test, build)
373374

374375
## Tech Stack

docs/03-components.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Components
22

3-
**Last Updated:** March 9, 2026
3+
**Last Updated:** March 13, 2026
44

55
Complete component specifications and guidelines for the Design System Starter Kit.
66

@@ -155,7 +155,33 @@ Components are designed to compose together:
155155

156156
## Layout Components
157157

158-
Layout components bieden structuur voor paginalayouts. Container heeft een visuele stijl; Grid en Stack zijn pure CSS-utilities.
158+
Layout components bieden structuur voor paginalayouts. Body stelt document-level cascade stijlen in; Container heeft een visuele stijl; Grid en Stack zijn pure CSS-utilities.
159+
160+
### Body
161+
162+
Stelt document-level CSS stijlen in zodat alle child-elementen via de CSS cascade automatisch de juiste typografie, kleur en achtergrond erven.
163+
164+
**HTML/CSS:**
165+
166+
```html
167+
<body class="dsn-body">
168+
<!-- paginainhoud -->
169+
</body>
170+
```
171+
172+
**React:**
173+
174+
```tsx
175+
<Body>{/* paginainhoud */}</Body>
176+
```
177+
178+
**Props:** Geen custom props — `Body` accepteert alle standaard `HTMLDivElement` attributen.
179+
180+
**Gebruik:** Zet `dsn-body` op het `<body>` element in je HTML template, of gebruik de React `<Body>` component als root-wrapper. In Storybook is `dsn-body` via de global decorator automatisch op alle stories van toepassing.
181+
182+
**Design tokens:** Geen component tokens — verwijst rechtstreeks naar globale tokens: `--dsn-color-neutral-bg-document`, `--dsn-color-neutral-color-document`, `--dsn-text-font-family-default`, `--dsn-text-font-size-md`, `--dsn-text-line-height-md`, `--dsn-text-font-weight-default`.
183+
184+
---
159185

160186
### Container
161187

docs/05-storybook-configuration.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Storybook Configuration
22

3-
**Last Updated:** February 24, 2026
3+
**Last Updated:** March 13, 2026
44

55
Documentation for the Storybook setup, runtime theme switching, UI components, and documentation structure.
66

@@ -109,7 +109,7 @@ export default config;
109109
**Key features:**
110110

111111
- Toolbar controls for Theme, Mode, Density
112-
- Decorator for dynamic token loading
112+
- Decorator for dynamic token loading — also applies `dsn-body` to `document.body` so all story previews inherit document-level base styles
113113
- Story sorting
114114

115115
```ts

docs/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Design System Documentation
22

3-
**Version:** 5.6.0
4-
**Last Updated:** March 12, 2026
3+
**Version:** 5.7.0
4+
**Last Updated:** March 13, 2026
55

66
Complete documentation voor het Design System Starter Kit.
77

@@ -83,8 +83,8 @@ Complete documentation voor het Design System Starter Kit.
8383

8484
- **Tokens per configuration:** ~1100 (400 semantic + 700 component)
8585
- **Configurations:** 8 (2 themes × 2 modes × 2 project types)
86-
- **Components:** 42 (4 layout + 9 content + 5 display/feedback + 25 form; HTML/CSS + React)
87-
- **Tests:** 1002 across 48 test suites
86+
- **Components:** 43 (5 layout + 9 content + 5 display/feedback + 25 form; HTML/CSS + React)
87+
- **Tests:** 1008 across 49 test suites
8888
- **Storybook stories:** 130+
8989

9090
---

docs/changelog.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,19 @@ All notable changes to this project are documented in this file.
66

77
---
88

9+
## Version 5.7.0 (March 13, 2026)
10+
11+
### Body component: document-level cascade basisstijlen (PR #84, issue #83)
12+
13+
- **Body component** (`dsn-body`) — stelt zes document-level CSS properties in via globale design tokens: `background-color`, `color`, `font-family`, `font-size`, `line-height`, `font-weight`
14+
- Geen component tokens — `dsn-body` verwijst rechtstreeks naar globale semantische tokens (`--dsn-color-neutral-bg-document`, `--dsn-color-neutral-color-document`, `--dsn-text-font-family-default`, `--dsn-text-font-size-md`, `--dsn-text-line-height-md`, `--dsn-text-font-weight-default`)
15+
- React `<Body>` component rendert als `<div class="dsn-body">` — zelfde patroon als alle andere componenten
16+
- Storybook global decorator: `dsn-body` toegevoegd aan `document.body.className` zodat alle story-previews en 'Voorbeeld'-secties automatisch de juiste omgevingsstijlen erven
17+
- Storybook story onder `Foundations/Body` met volledige documentatie (drie bestanden)
18+
- **6 nieuwe tests** — totaal 1008 tests, 49 test suites
19+
20+
---
21+
922
## Version 5.6.0 (March 12, 2026)
1023

1124
### Details component: uitvouwbare inhoudsaanwijzer (PR #82, issue #80)

0 commit comments

Comments
 (0)