@marwes-ui/presets 1.4.1 → 1.5.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/README.md CHANGED
@@ -252,7 +252,7 @@ Use the helper that matches the job:
252
252
  - `mwThemeVars` returns CSS `var(...)` references for app-owned CSS-in-JS, style objects, vanilla-extract, and config files.
253
253
  - `mwThemeVarNames` returns raw custom property names for assigning overrides or inspecting the preset CSS contract.
254
254
  - `mwVar()` wraps custom or advanced `--mw-*` names with optional fallback support.
255
- - `mwStyledTheme` mirrors `mwThemeVars` as a plain theme object for styled-components and Emotion integrations.
255
+ - `mwTheme` mirrors `mwThemeVars` as a plain theme object for styled-components and Emotion integrations. `mwStyledTheme` remains as a deprecated compatibility alias.
256
256
 
257
257
  ```ts
258
258
  import { mwThemeVarNames, mwThemeVars, mwVar } from "@marwes-ui/core"
package/package.json CHANGED
@@ -1,6 +1,26 @@
1
1
  {
2
2
  "name": "@marwes-ui/presets",
3
- "version": "1.4.1",
3
+ "version": "1.5.1",
4
+ "description": "Static Marwes preset CSS, theme defaults, and font assets for the public framework adapters.",
5
+ "homepage": "https://marwes.io/docs/theming/",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/niklas-westman/marwes.git",
9
+ "directory": "packages/presets"
10
+ },
11
+ "bugs": {
12
+ "url": "https://github.com/niklas-westman/marwes/issues"
13
+ },
14
+ "keywords": [
15
+ "marwes",
16
+ "design-system",
17
+ "css",
18
+ "themes",
19
+ "design-tokens"
20
+ ],
21
+ "engines": {
22
+ "node": ">=20"
23
+ },
4
24
  "publishConfig": {
5
25
  "access": "public"
6
26
  },
@@ -30,13 +50,13 @@
30
50
  ],
31
51
  "dependencies": {
32
52
  "@fontsource/instrument-sans": "5.2.8",
33
- "@marwes-ui/core": "1.4.1"
53
+ "@marwes-ui/core": "1.5.1"
34
54
  },
35
55
  "devDependencies": {
36
56
  "rimraf": "6.1.2",
37
57
  "tsup": "8.5.1",
38
58
  "typescript": "5.9.3",
39
- "vitest": "4.1.8"
59
+ "vitest": "4.1.11"
40
60
  },
41
61
  "scripts": {
42
62
  "dev": "tsup --watch",
@@ -56,7 +56,7 @@
56
56
 
57
57
  .mw-badge--warning {
58
58
  --mw-badge-surface: var(--mw-color-status-warning-background, #fff8e6);
59
- --mw-badge-border: var(--mw-color-status-warning-border, #b45309);
59
+ --mw-badge-border: var(--mw-color-status-warning-border-accessible, #b45309);
60
60
  --mw-badge-label: var(--mw-color-status-warning-text, #b45309);
61
61
  }
62
62
 
@@ -90,7 +90,7 @@
90
90
 
91
91
  .mw-theme--dark .mw-badge--warning {
92
92
  --mw-badge-surface: var(--mw-color-status-warning-background, #221004);
93
- --mw-badge-border: var(--mw-color-status-warning-border, #b45309);
93
+ --mw-badge-border: var(--mw-color-status-warning-border-accessible, #b45309);
94
94
  --mw-badge-label: var(--mw-color-status-warning-text, #fcc94a);
95
95
  }
96
96
 
@@ -18,6 +18,12 @@
18
18
  user-select: none;
19
19
  }
20
20
 
21
+ /* Native legends sit outside the fieldset grid, so its gap does not apply.
22
+ * Div-based group labels already receive that gap (Svelte). */
23
+ legend.mw-accordion-field__label {
24
+ margin-block-end: var(--mw-density-field-gap, 8px);
25
+ }
26
+
21
27
  .mw-accordion-field__items {
22
28
  display: grid;
23
29
  gap: var(--mw-density-gap, 8px);