@openwebconcept/theme-ridderkerk 0.0.0 → 1.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.
- package/CHANGELOG.md +49 -0
- package/LICENSE.md +5 -0
- package/README.md +45 -29
- package/dist/_variables.scss +532 -0
- package/dist/index.css +5 -0
- package/dist/index.js +578 -0
- package/dist/theme.css +535 -0
- package/dist/tokens.json +751 -0
- package/package.json +36 -7
- package/src/brand/color.tokens.json +9 -0
- package/src/brand/typography.tokens.json +27 -0
- package/src/components/button.tokens.json +24 -0
- package/src/index.scss +6 -0
- package/style-dictionary.config.json +57 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# @openwebconcept/theme-ridderkerk
|
|
2
|
+
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 17308f9: Added `owc.typography.font-weight.base` and `basis.text.font-weight.default` for the weight of body text, so a theme can set it. The description list uses it. The default stays 400, so nothing changes visually.
|
|
8
|
+
|
|
9
|
+
## 1.0.0
|
|
10
|
+
|
|
11
|
+
### Major Changes
|
|
12
|
+
|
|
13
|
+
- 70ff2a2: Released the theme as version 1.0.0, its first stable version.
|
|
14
|
+
|
|
15
|
+
### Minor Changes
|
|
16
|
+
|
|
17
|
+
- 7056d74: Added design tokens for the `alert` component (`--denhaag-alert-*`) and for the button, close button and heading inside it (`--denhaag-button-*`, `--denhaag-icon-button-*`, `--nl-heading-*`). Every theme now includes them. The variants use the new status colours `basis.color.{info,negative,positive,warning}.*` (`--basis-color-*`, NL Design System naming), which a theme can override. Info follows the primary colour of the theme; negative, positive and warning default to accessible fixed colours.
|
|
18
|
+
- 2719b22: Aligned the default component tokens with the mijn-omgeving WordPress theme (`owc-mijn-omgeving-sage-theme`, `resources/styles/nlds`), so that theme can load these tokens instead of setting the variables itself:
|
|
19
|
+
- Case card: the primary colour as background, black title and context, a 200px card without rounded corners and 1.5rem padding.
|
|
20
|
+
- Description list: padding in `em`, a first column of 240px and the caption at heading 2 size.
|
|
21
|
+
- File, tabs and process steps: spacing, font weights and font sizes as in mijn-omgeving.
|
|
22
|
+
- Buttons: 5px corners, 0.75em 1.25em padding, weight 400 and a new `owc.button.line-height` (1.375). The primary `nl-button` darkens on hover and the subtle `nl-button` is grey (`basis.color.default.bg-subtle`, `bg-default` on hover) with black text.
|
|
23
|
+
- Heading: colour, size, weight, line height and margins per heading level.
|
|
24
|
+
- New `basis.text.font-size.*` scale (`md` to `4xl`), which refers to `owc.typography.font-size.*`, and the Tailwind greys of mijn-omgeving as `basis.color.default.*`; the negative colour is `#c10007`.
|
|
25
|
+
- Breaking: `owc.typography.font-size.xl` is renamed to `owc.typography.font-size.lg`, and `owc.typography.font-size.xl` to `4xl` are new steps of the scale. A theme that overrides `xl` should rename it to `lg`. The icon in the large `denhaag-button` follows `basis.text.font-size.xl` (at most 1.21rem instead of 1.25rem).
|
|
26
|
+
|
|
27
|
+
The warning colour of process steps stays `#8a3500` and `basis.color.default.color-subtle` is `#4a5565` instead of `#6a7282`, because the mijn-omgeving values do not meet the WCAG contrast requirement (`#ff6900` on white, `#6a7282` on the grey of an archived case card).
|
|
28
|
+
|
|
29
|
+
- 36276f3: Added `basis` colour tokens with NL Design System naming and pointed every component to them, so a theme can override text, border, disabled and status colours in one place:
|
|
30
|
+
- `basis.color.default.{color-document,color-subtle,border-default}` replace the fixed near-black text colours (`#000000`, `#2e2e2e`), the grey text colour `#4a4a4a` and the two border greys (`#d1d1d1`, `#ced4da`) in case card, description list, file, icon button, tabs and process steps.
|
|
31
|
+
- `basis.color.disabled.*` is used by the buttons, links and step markers in their disabled state.
|
|
32
|
+
- Process steps and the error status button now use `basis.color.{negative,warning}.*`. The warning colour is `#8a3500` instead of `#f97316`, which meets the WCAG contrast requirement, and the text of a nested warning step marker is no longer white on white.
|
|
33
|
+
|
|
34
|
+
`owc.color.success`, `owc.color.warning` and `owc.color.danger` are deprecated and will be removed in the next major version.
|
|
35
|
+
|
|
36
|
+
- 0a52ba1: Added `basis.text.*` (`font-family.default`, `font-size.sm`, `line-height.md`) and `basis.focus.*` (`outline-color`, `outline-width`, `outline-style`, `outline-offset`) with NL Design System naming. They refer to the `owc.*` brand tokens, so a theme can keep setting `owc.*`, or override the `basis.*` tokens directly. The components now refer to `basis.*` instead of `owc.typography.*` and `owc.focus.*`; the resulting values did not change.
|
|
37
|
+
- 4ffd68e: Added design tokens for the `card-group` component (`--denhaag-card-group-*`). Every theme now includes them.
|
|
38
|
+
- 6714b12: Added design tokens for the `case-card` component (`--denhaag-case-card-*`) and the links inside it (`--denhaag-link-*`, `--nl-link-*`). Every theme now includes them. The title, subtitle, arrow and background colours are derived from the primary colour of the theme.
|
|
39
|
+
- 0858380: Added design tokens for the `description-list` component (`--denhaag-description-list-*`). Every theme now includes them.
|
|
40
|
+
- 5650e65: Added design tokens for the `file` component (`--denhaag-file-*`). Every theme now includes them. The link and focus colours follow the primary colour of the theme.
|
|
41
|
+
- de27e3b: Added the base colours of the step marker (`--denhaag-step-marker-background-color`, `-color`, `-connector-color` and `-connector-outline-color`), which had no value.
|
|
42
|
+
- 4ce429b: Added design tokens for the `tabs` component (`--denhaag-tabs-*`) and the `number-badge` it uses for tab indicators (`--nl-number-badge-*`). Every theme now includes them.
|
|
43
|
+
- 4edf30b: Added the font Open Sans (`@fontsource/open-sans`), which the Leiden and Ridderkerk websites use, and load it in `index.css`.
|
|
44
|
+
- e87784d: Added the Ridderkerk brand tokens, measured on ridderkerk.nl: the green primary colour, Open Sans with the body text sizes and line height, and the button shape and type (`owc.button.*`). The README records where each value comes from.
|
|
45
|
+
- 0a15fe1: Added an empty theme for Ridderkerk. It shows the defaults from `@openwebconcept/design-tokens` until the Ridderkerk design tokens are added.
|
|
46
|
+
|
|
47
|
+
### Patch Changes
|
|
48
|
+
|
|
49
|
+
- 40bf0df: The steps `xl` to `4xl` of `owc.typography.font-size` are now at least 1.05 times the step below them. A theme that sets larger text for `sm` to `lg` no longer gets headings that are smaller than its lead or body text. The default sizes are unchanged.
|
package/LICENSE.md
ADDED
package/README.md
CHANGED
|
@@ -1,45 +1,61 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Ridderkerk Theme
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Design tokens for the Ridderkerk municipality theme.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Sources
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
The values were measured on [ridderkerk.nl](https://www.ridderkerk.nl/) (theme stylesheet `themes/ridderkerk/assets/dist/build/frontend.css`) on 26 November 2026.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
| Token | Value | Used on ridderkerk.nl for |
|
|
10
|
+
| --------------------------------- | -------------------------------------------------------------------- | ---------------------------------------------------------- |
|
|
11
|
+
| `owc.color.primary` | `#008937` | links, the primary button, text selection and focus shadow |
|
|
12
|
+
| `owc.typography.font-family.sans` | Open Sans | body text and headings h3 to h6 |
|
|
13
|
+
| `owc.typography.font-size.*` | small 0.9rem, body 0.9rem to 1rem, lead 1.1rem | small text, body text (0.9rem below 768px), lead text |
|
|
14
|
+
| `owc.typography.line-height.base` | 1.7 | body text |
|
|
15
|
+
| `owc.button.*` | radius 5px, padding 0.7rem 1.2rem, 1rem, weight 700, line height 1.7 | buttons (`.btn`) |
|
|
10
16
|
|
|
11
|
-
|
|
12
|
-
1. Configure OIDC trusted publishing for the package name `@openwebconcept/theme-ridderkerk`
|
|
13
|
-
2. Enable secure, token-less publishing from CI/CD workflows
|
|
14
|
-
3. Establish provenance for packages published under this name
|
|
17
|
+
The [Ridderkerk tokens in the NL Design System themes repository](https://github.com/nl-design-system/themes/tree/main/proprietary/ridderkerk-design-tokens) define green `#008937`, purple `#4d327c` and the font Lato; the rest of that set is the example theme. The green still matches the website, but the website now uses purple `#5e3560` and the font Open Sans (Lato is still declared but not used). The website is therefore the source here.
|
|
15
18
|
|
|
16
|
-
|
|
19
|
+
Deliberate differences from the website:
|
|
17
20
|
|
|
18
|
-
|
|
21
|
+
- Headings h1 and h2, card titles and some labels use Jost in capitals on the website. The brand layer has one font family, so Open Sans is used everywhere.
|
|
22
|
+
- The primary button on the website turns `#118934` on hover, which is barely different from `#008937`; the website relies on a moving arrow icon instead. The shared darker hover colour is kept so the hover state stays visible.
|
|
23
|
+
- The purple secondary colour `#5e3560` is not set as `owc.color.secondary`, because the website does not use it for tab text.
|
|
19
24
|
|
|
20
|
-
##
|
|
25
|
+
## Installation
|
|
21
26
|
|
|
22
|
-
|
|
27
|
+
```bash
|
|
28
|
+
pnpm add @openwebconcept/theme-ridderkerk
|
|
29
|
+
```
|
|
23
30
|
|
|
24
|
-
|
|
25
|
-
2. Configure the trusted publisher (e.g., GitHub Actions)
|
|
26
|
-
3. Specify the repository and workflow that should be allowed to publish
|
|
27
|
-
4. Use the configured workflow to publish your actual package
|
|
31
|
+
## Usage
|
|
28
32
|
|
|
29
|
-
|
|
33
|
+
### CSS
|
|
30
34
|
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
- Should not be installed as a dependency
|
|
35
|
-
- Exists only for administrative purposes
|
|
35
|
+
```css
|
|
36
|
+
@import '@openwebconcept/theme-ridderkerk/dist/index.css';
|
|
37
|
+
```
|
|
36
38
|
|
|
37
|
-
|
|
39
|
+
### SCSS
|
|
38
40
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
41
|
+
```scss
|
|
42
|
+
@import '@openwebconcept/theme-ridderkerk/dist/variables';
|
|
43
|
+
```
|
|
42
44
|
|
|
43
|
-
|
|
45
|
+
### JavaScript
|
|
44
46
|
|
|
45
|
-
|
|
47
|
+
```js
|
|
48
|
+
import tokens from '@openwebconcept/theme-ridderkerk';
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
## Building
|
|
52
|
+
|
|
53
|
+
```bash
|
|
54
|
+
pnpm run build
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Development
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
pnpm run watch
|
|
61
|
+
```
|