@openwebconcept/theme-leiden 0.0.0-stage → 1.1.0

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 (90) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/LICENSE.md +5 -0
  3. package/README.md +102 -2
  4. package/dist/_variables.scss +1247 -0
  5. package/dist/index.css +8 -0
  6. package/dist/index.js +1303 -0
  7. package/dist/theme.css +1250 -0
  8. package/dist/tokens.json +1876 -0
  9. package/package.json +36 -3
  10. package/src/basis/color.tokens.json +55 -0
  11. package/src/brand/button.tokens.json +21 -0
  12. package/src/brand/color.tokens.json +12 -0
  13. package/src/brand/conduction/color.tokens.json +131 -0
  14. package/src/brand/conduction/font-size.tokens.json +50 -0
  15. package/src/brand/conduction/size.tokens.json +39 -0
  16. package/src/brand/conduction/typography.tokens.json +62 -0
  17. package/src/brand/focus.tokens.json +19 -0
  18. package/src/brand/typography.tokens.json +32 -0
  19. package/src/common/utrecht/action.tokens.json +36 -0
  20. package/src/common/utrecht/space.tokens.json +64 -0
  21. package/src/components/conduction/card-header.tokens.json +39 -0
  22. package/src/components/conduction/card-wrapper.tokens.json +49 -0
  23. package/src/components/conduction/checkbox.tokens.json +147 -0
  24. package/src/components/conduction/download-card.tokens.json +54 -0
  25. package/src/components/conduction/logo.tokens.json +39 -0
  26. package/src/components/conduction/navigation.tokens.json +153 -0
  27. package/src/components/conduction/pagination.tokens.json +164 -0
  28. package/src/components/conduction/select.tokens.json +75 -0
  29. package/src/components/conduction/table-wrapper.tokens.json +39 -0
  30. package/src/components/conduction/tabs.tokens.json +173 -0
  31. package/src/components/conduction/tooltip.tokens.json +39 -0
  32. package/src/components/denhaag/alert.tokens.json +9 -0
  33. package/src/components/denhaag/button.tokens.json +14 -0
  34. package/src/components/denhaag/case-card.tokens.json +49 -0
  35. package/src/components/denhaag/description-list.tokens.json +12 -0
  36. package/src/components/denhaag/file.tokens.json +33 -0
  37. package/src/components/denhaag/link.tokens.json +9 -0
  38. package/src/components/denhaag/process-steps.tokens.json +89 -0
  39. package/src/components/denhaag/tabs.tokens.json +52 -0
  40. package/src/components/nl/button.tokens.json +22 -0
  41. package/src/components/nl/heading.tokens.json +111 -0
  42. package/src/components/nl/link.tokens.json +12 -0
  43. package/src/components/nl/number-badge.tokens.json +27 -0
  44. package/src/components/nl/paragraph.tokens.json +27 -0
  45. package/src/components/open-catalogi/rating.tokens.json +18 -0
  46. package/src/components/utrecht/alert.tokens.json +78 -0
  47. package/src/components/utrecht/badge-counter.tokens.json +27 -0
  48. package/src/components/utrecht/badge.tokens.json +29 -0
  49. package/src/components/utrecht/blockquote.tokens.json +35 -0
  50. package/src/components/utrecht/breadcrumb.tokens.json +60 -0
  51. package/src/components/utrecht/button.tokens.json +251 -0
  52. package/src/components/utrecht/calendar.tokens.json +137 -0
  53. package/src/components/utrecht/checkbox.tokens.json +87 -0
  54. package/src/components/utrecht/code.tokens.json +60 -0
  55. package/src/components/utrecht/data-list.tokens.json +38 -0
  56. package/src/components/utrecht/document.tokens.json +20 -0
  57. package/src/components/utrecht/extra-tokens/alert.tokens.json +11 -0
  58. package/src/components/utrecht/extra-tokens/badge-counter.tokens.json +15 -0
  59. package/src/components/utrecht/extra-tokens/breadcrumb.tokens.json +31 -0
  60. package/src/components/utrecht/extra-tokens/form-field.tokens.json +23 -0
  61. package/src/components/utrecht/extra-tokens/form-input.tokens.json +30 -0
  62. package/src/components/utrecht/extra-tokens/icon.tokens.json +9 -0
  63. package/src/components/utrecht/extra-tokens/link.tokens.json +10 -0
  64. package/src/components/utrecht/extra-tokens/page-footer.tokens.json +54 -0
  65. package/src/components/utrecht/extra-tokens/page-header.tokens.json +16 -0
  66. package/src/components/utrecht/extra-tokens/radio-button.tokens.json +29 -0
  67. package/src/components/utrecht/extra-tokens/skip-link.tokens.json +36 -0
  68. package/src/components/utrecht/extra-tokens/table.tokens.json +39 -0
  69. package/src/components/utrecht/extra-tokens/textbox.tokens.json +30 -0
  70. package/src/components/utrecht/focus.tokens.json +24 -0
  71. package/src/components/utrecht/form-field.tokens.json +27 -0
  72. package/src/components/utrecht/form-input.tokens.json +52 -0
  73. package/src/components/utrecht/form-label.tokens.json +29 -0
  74. package/src/components/utrecht/heading.tokens.json +99 -0
  75. package/src/components/utrecht/icon.tokens.json +12 -0
  76. package/src/components/utrecht/link.tokens.json +53 -0
  77. package/src/components/utrecht/list.tokens.json +61 -0
  78. package/src/components/utrecht/page-footer.tokens.json +27 -0
  79. package/src/components/utrecht/page-header.tokens.json +18 -0
  80. package/src/components/utrecht/page.tokens.json +17 -0
  81. package/src/components/utrecht/paragraph.tokens.json +39 -0
  82. package/src/components/utrecht/radio-button.tokens.json +140 -0
  83. package/src/components/utrecht/separator.tokens.json +18 -0
  84. package/src/components/utrecht/skip-link.tokens.json +32 -0
  85. package/src/components/utrecht/spotlight-section.tokens.json +46 -0
  86. package/src/components/utrecht/surface.tokens.json +10 -0
  87. package/src/components/utrecht/table.tokens.json +98 -0
  88. package/src/components/utrecht/textbox.tokens.json +56 -0
  89. package/src/index.scss +9 -0
  90. package/style-dictionary.config.json +57 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,53 @@
1
+ # @openwebconcept/theme-leiden
2
+
3
+ ## 1.1.0
4
+
5
+ ### Minor Changes
6
+
7
+ - e897e25: The Leiden theme now contains the complete Leiden set from the Conduction theme repository (`ConductionNL/conduction-theme`): the same CSS variables with the same values, apart from a few contrast corrections. The primary colour is now the red of the Conduction set instead of the blue of the links on the website. The tokens of this design system refer to the Conduction tokens, and the buttons follow the website. The tokens are in folders per vendor.
8
+
9
+ ### Patch Changes
10
+
11
+ - 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.
12
+
13
+ ## 1.0.0
14
+
15
+ ### Major Changes
16
+
17
+ - 70ff2a2: Released the theme as version 1.0.0, its first stable version.
18
+
19
+ ### Minor Changes
20
+
21
+ - 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.
22
+ - 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:
23
+ - Case card: the primary colour as background, black title and context, a 200px card without rounded corners and 1.5rem padding.
24
+ - Description list: padding in `em`, a first column of 240px and the caption at heading 2 size.
25
+ - File, tabs and process steps: spacing, font weights and font sizes as in mijn-omgeving.
26
+ - 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.
27
+ - Heading: colour, size, weight, line height and margins per heading level.
28
+ - 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`.
29
+ - 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).
30
+
31
+ 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).
32
+
33
+ - 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:
34
+ - `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.
35
+ - `basis.color.disabled.*` is used by the buttons, links and step markers in their disabled state.
36
+ - 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.
37
+
38
+ `owc.color.success`, `owc.color.warning` and `owc.color.danger` are deprecated and will be removed in the next major version.
39
+
40
+ - 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.
41
+ - 4ffd68e: Added design tokens for the `card-group` component (`--denhaag-card-group-*`). Every theme now includes them.
42
+ - 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.
43
+ - 0858380: Added design tokens for the `description-list` component (`--denhaag-description-list-*`). Every theme now includes them.
44
+ - 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.
45
+ - 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.
46
+ - 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.
47
+ - 987578f: Added the Leiden brand tokens, measured on gemeente.leiden.nl: the blue link colour as primary colour, Open Sans with the body text size and line height, the button shape and type (`owc.button.*`), the focus offset, and the red primary button of the Den Haag and NL Design System button components, including its focus state. The README records where each value comes from.
48
+ - 6b62014: Added an empty theme for Leiden. It shows the defaults from `@openwebconcept/design-tokens` until the Leiden design tokens are added.
49
+ - 4edf30b: Added the font Open Sans (`@fontsource/open-sans`), which the Leiden and Ridderkerk websites use, and load it in `index.css`.
50
+
51
+ ### Patch Changes
52
+
53
+ - 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
@@ -0,0 +1,5 @@
1
+ # License
2
+
3
+ Copyright (c) 2026 Community for NL Design System
4
+
5
+ All rights reserved.
package/README.md CHANGED
@@ -1,3 +1,103 @@
1
- # Temporary Holding Version
1
+ # Leiden Theme
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ Design tokens for the Leiden municipality theme.
4
+
5
+ ## Sources
6
+
7
+ This theme contains the complete [Leiden set from the Conduction theme repository](https://github.com/ConductionNL/conduction-theme/tree/d1107833d3e97a03f5ccf62a5fd7d31cb945d0af/municipalities/leiden-design-tokens) (`ConductionNL/conduction-theme`, `main`, commit `d110783`). It outputs the same CSS variables with the same values (`--leiden-*`, `--utrecht-*`, `--conduction-*`, `--denhaag-*` and `--open-catalogi-*`), apart from the contrast corrections listed below. The selector is `.theme-leiden`, not `.leiden-theme`.
8
+
9
+ The Conduction tokens are in folders per vendor, as in the Conduction repository:
10
+
11
+ | Folder | Contents |
12
+ | ------------------------------- | ------------------------------------------------------------------------------------------------ |
13
+ | `src/brand/conduction/` | the Conduction brand tokens (`leiden.*`): colours, font sizes, sizes and fonts |
14
+ | `src/common/utrecht/` | shared Utrecht tokens: action and space |
15
+ | `src/components/utrecht/` | Utrecht components |
16
+ | `src/components/conduction/` | Conduction components |
17
+ | `src/components/denhaag/` | the Den Haag components of this design system, including the process steps of the Conduction set |
18
+ | `src/components/open-catalogi/` | Open Catalogi components |
19
+
20
+ The tokens of this design system are layered on top of it. Only the brand layer refers to the Conduction set:
21
+
22
+ ```text
23
+ leiden.* Conduction brand tokens (src/brand/conduction/)
24
+ ↓
25
+ owc.*, basis.* brand and basis layer (src/brand/, src/basis/)
26
+ ↓
27
+ nl.*, denhaag.* the components of this design system (src/components/nl/, src/components/denhaag/)
28
+ ```
29
+
30
+ The components refer to `owc.*` and `basis.*`, never to the Conduction component tokens (`utrecht.*`, `conduction.*`). Where no brand or basis token exists, such as the padding of a card, they have their own value, equal to the Conduction value. The alert colours come from `basis.color.info`, `negative`, `positive` and `warning`, which refer to the alert colours of the Conduction brand tokens. The text colour (`basis.color.default.color-document`) is the dark blue `#0d1921` and the danger colour (`owc.color.danger`) the red `#d62410` of the Conduction set.
31
+
32
+ The primary colour is the red `#d62410` of the Conduction set, which also colours links. Earlier versions of this theme used the blue `#035989` of the links on the website.
33
+
34
+ The Conduction set loads Open Sans from Google Fonts. This theme loads the same weights (400, 600 and 700, each also in italic) from `@fontsource/open-sans`.
35
+
36
+ ### From the website
37
+
38
+ The website [gemeente.leiden.nl](https://gemeente.leiden.nl/) (theme stylesheet `theme-fusion/assets/dist/build/frontend.css`, measured on 26 November 2026) is the source for the buttons of this design system. The Conduction buttons (`utrecht.button.*`, with a `#b81f0e` hover) stay as they are.
39
+
40
+ | Token | Value | Used on gemeente.leiden.nl for |
41
+ | --------------------------------- | ------------------------------------------------- | ------------------------------ |
42
+ | `owc.button.*` | radius 5px, padding 0.8em 1.2em, 1rem, weight 700 | buttons |
43
+ | `denhaag.button.primary-action.*` | `#d62410`, hover `#a91c09` | the primary (red) button |
44
+ | `nl.button.*` | `#d62410`, hover, active and focus `#a91c09` | the primary (red) button |
45
+
46
+ ### Contrast corrections
47
+
48
+ These Conduction tokens do not meet WCAG 2.2 AA. The theme uses the nearest colour that does. In the Conduction files the corrected token has a description with the Conduction value; the step marker colours are in the process steps of this design system, which use the alert colours of `basis.color.positive` and `basis.color.warning`.
49
+
50
+ | Token | Conduction | Theme | Reason |
51
+ | ----------------------------------------------------- | ---------- | --------- | -------------------------------------------------- |
52
+ | `utrecht.focus.outline-color` | `#ffffff` | `#0d1921` | invisible on the white page (1:1), now 17.8:1 |
53
+ | `conduction.primary.top-nav.hover.color` | `#035688` | `#dce4ec` | 2.3:1 on the dark navigation `#0d1921`, now 13.9:1 |
54
+ | `utrecht.calendar.table.days-item-day.is-today.color` | `#d62410` | `#b81f0e` | 4.4:1 on `#fde9e7`, now 5.6:1 |
55
+ | `denhaag.step-marker.checked.color` | `#28a745` | `#155724` | 2.5:1 on `#d4edda`, now 7.0:1 |
56
+ | `denhaag.step-marker.warning.color` | `#ffc107` | `#856404` | 1.5:1 on `#fff3cd`, now 5.0:1 |
57
+
58
+ The focus outline of this design system (`basis.focus.outline-color`) is also `#0d1921`, dotted with a 3px offset, as in the Conduction set. Disabled states are exempt from the contrast requirement and stay as they are.
59
+
60
+ ### Deliberate differences in the tokens of this design system
61
+
62
+ - Headings 1 to 3 (`nl.heading.*`) use the Conduction sizes from a viewport of 1440px and scale down on small screens, so long words fit on a phone, but never below the size of the next heading. Headings 4 and 5 keep the Conduction sizes (1.125rem and 0.875rem).
63
+ - Headings 4 and 5 use weight 600 instead of the Conduction 400 and 100, so they stand out from body text (weight 400); heading 4 has the same size as body text. The Conduction set has no heading 6, so heading 6 takes the values of heading 5.
64
+ - Body text (`owc.typography.*`) has a line height of 1.5 instead of the 1.5em of the Conduction paragraph, so the line height scales with the font size of nested text.
65
+ - The case card (`denhaag.case-card.*`) keeps its folder shape and its tinted background; it takes over the radius, the padding and the dark text colour of the grey Conduction card.
66
+
67
+ ## Installation
68
+
69
+ ```bash
70
+ pnpm add @openwebconcept/theme-leiden
71
+ ```
72
+
73
+ ## Usage
74
+
75
+ ### CSS
76
+
77
+ ```css
78
+ @import '@openwebconcept/theme-leiden/dist/index.css';
79
+ ```
80
+
81
+ ### SCSS
82
+
83
+ ```scss
84
+ @import '@openwebconcept/theme-leiden/dist/variables';
85
+ ```
86
+
87
+ ### JavaScript
88
+
89
+ ```js
90
+ import tokens from '@openwebconcept/theme-leiden';
91
+ ```
92
+
93
+ ## Building
94
+
95
+ ```bash
96
+ pnpm run build
97
+ ```
98
+
99
+ ## Development
100
+
101
+ ```bash
102
+ pnpm run watch
103
+ ```