@marianmeres/design-tokens 1.0.2 → 1.0.3

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.
@@ -82,12 +82,17 @@ export function generateThemedCss(schema, prefix) {
82
82
  const lightTokens = generateCssTokens(schema.light, prefix, "light");
83
83
  const lightBridge = generateRebootBridge(lightTokens, prefix);
84
84
  let css = toCssString({ ...lightTokens, ...lightBridge });
85
+ // Override reboot's RGB triplet approach for links so that color-mix() values work
86
+ css += "\na { color: var(--bs-link-color); }";
87
+ css += "\na:hover { color: var(--bs-link-hover-color); }";
85
88
  // Dark mode
86
89
  if (schema.dark) {
87
90
  const darkTokens = generateCssTokens(schema.dark, prefix, "dark");
88
91
  const darkBridge = generateRebootBridge(darkTokens, prefix);
89
92
  css += "\n" +
90
93
  toCssString({ ...darkTokens, ...darkBridge }, ":root.dark");
94
+ css += "\n:root.dark a { color: var(--bs-link-color); }";
95
+ css += "\n:root.dark a:hover { color: var(--bs-link-hover-color); }";
91
96
  }
92
97
  return css;
93
98
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/design-tokens",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "type": "module",
5
5
  "main": "dist/mod.js",
6
6
  "types": "dist/mod.d.ts",
@@ -8,6 +8,22 @@
8
8
  ".": {
9
9
  "types": "./dist/mod.d.ts",
10
10
  "import": "./dist/mod.js"
11
+ },
12
+ "./reboot-bridge": {
13
+ "types": "./dist/reboot-bridge.d.ts",
14
+ "import": "./dist/reboot-bridge.js"
15
+ },
16
+ "./themes/mod": {
17
+ "types": "./dist/themes/mod.d.ts",
18
+ "import": "./dist/themes/mod.js"
19
+ },
20
+ "./reboot": {
21
+ "types": "./dist/reboot-bridge.d.ts",
22
+ "import": "./dist/reboot-bridge.js"
23
+ },
24
+ "./themes": {
25
+ "types": "./dist/themes/mod.d.ts",
26
+ "import": "./dist/themes/mod.js"
11
27
  }
12
28
  },
13
29
  "author": "Marian Meres",