@rokkit/themes 1.1.14 → 1.1.15

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/build.mjs CHANGED
@@ -41,7 +41,9 @@ const uno = await createGenerator({
41
41
  })
42
42
  ],
43
43
  shortcuts: [
44
- ['skin-default', { ...theme.getPalette(), ...theme.getNamedTokens() }],
44
+ // NOTE: the former `skin-default` shortcut was removed — palette.css no
45
+ // longer `@apply`s it. The default skin's named-token vars now come from
46
+ // the preset's `:root` preflight (see @rokkit/unocss buildPreflights).
45
47
  ...theme.getShortcuts('surface'),
46
48
  ...theme.getShortcuts('primary'),
47
49
  ...theme.getShortcuts('secondary'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rokkit/themes",
3
- "version": "1.1.14",
3
+ "version": "1.1.15",
4
4
  "description": "Theme styles for @rokkit/ui components",
5
5
  "repository": {
6
6
  "type": "git",
@@ -103,10 +103,10 @@
103
103
  "build": "bun run build.mjs"
104
104
  },
105
105
  "dependencies": {
106
- "@rokkit/core": "1.1.14"
106
+ "@rokkit/core": "1.1.15"
107
107
  },
108
108
  "devDependencies": {
109
- "@rokkit/unocss": "1.1.14",
109
+ "@rokkit/unocss": "1.1.15",
110
110
  "magic-string": "^0.30.21",
111
111
  "unocss": "^66.5.1"
112
112
  },
package/src/palette.css CHANGED
@@ -2,6 +2,11 @@
2
2
  :root {
3
3
  --scroll-width: 0.5rem;
4
4
  --tab-size: 2;
5
- @apply skin-default;
5
+ /*
6
+ * The default skin's named-token vars (--paper, --ink, --primary, …) now
7
+ * come from the preset's `:root` preflight. `themable` writes
8
+ * data-skin='default' by default, and `[data-skin='default']` resolves to
9
+ * :root (it's the active default), so :root already carries those vars.
10
+ */
6
11
  }
7
12
  }