@fuzdev/fuz_code 0.39.0 → 0.40.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.
package/README.md CHANGED
@@ -25,8 +25,8 @@ but there are two optional dependencies:
25
25
  based on [`prism-svelte`](https://github.com/pngwn/prism-svelte)
26
26
  and a [Svelte component](src/lib/Code.svelte) for convenient usage.
27
27
  - The [default theme](src/lib/theme.css) integrates
28
- with my CSS library [Fuz CSS](https://github.com/fuzdev/fuz_css) for colors that adapt to the user's runtime `color-scheme` preference.
29
- Non-Fuz CSS users should import [theme_variables.css](src/lib/theme_variables.css)
28
+ with my CSS library [fuz_css](https://github.com/fuzdev/fuz_css) for colors that adapt to the user's runtime `color-scheme` preference.
29
+ Non-fuz_css users should import [theme_variables.css](src/lib/theme_variables.css)
30
30
  or otherwise define those variables.
31
31
 
32
32
  Compared to [Shiki](https://github.com/shikijs/shiki),
@@ -79,14 +79,14 @@ import '@fuzdev/fuz_code/theme.css';
79
79
  ```
80
80
 
81
81
  The primary themes (currently just [one](src/lib/theme.css)) have a dependency
82
- on my CSS library [Fuz CSS](https://github.com/fuzdev/fuz_css)
82
+ on my CSS library [fuz_css](https://github.com/fuzdev/fuz_css)
83
83
  for [color-scheme](https://css.fuz.dev/docs/themes) awareness.
84
- See the [Fuz CSS docs](https://css.fuz.dev/) for its usage.
84
+ See the [fuz_css docs](https://css.fuz.dev/) for its usage.
85
85
 
86
- If you're not using Fuz CSS, import `theme_variables.css` alongside `theme.css`:
86
+ If you're not using fuz_css, import `theme_variables.css` alongside `theme.css`:
87
87
 
88
88
  ```ts
89
- // Without Fuz CSS:
89
+ // Without fuz_css:
90
90
  import '@fuzdev/fuz_code/theme.css';
91
91
  import '@fuzdev/fuz_code/theme_variables.css';
92
92
  ```
@@ -96,9 +96,9 @@ import '@fuzdev/fuz_code/theme_variables.css';
96
96
  - [@fuzdev/fuz_code/syntax_styler_global.js](src/lib/syntax_styler_global.ts) - pre-configured instance with all grammars
97
97
  - [@fuzdev/fuz_code/syntax_styler.js](src/lib/syntax_styler.ts) - base class for custom grammars
98
98
  - [@fuzdev/fuz_code/theme.css](src/lib/theme.css) -
99
- default theme that depends on [Fuz CSS](https://github.com/fuzdev/fuz_css)
99
+ default theme that depends on [fuz_css](https://github.com/fuzdev/fuz_css)
100
100
  - [@fuzdev/fuz_code/theme_variables.css](src/lib/theme_variables.css) -
101
- CSS variables for non-Fuz CSS users
101
+ CSS variables for non-fuz_css users
102
102
  - [@fuzdev/fuz_code/Code.svelte](src/lib/Code.svelte) -
103
103
  Svelte component for syntax highlighting with HTML generation
104
104
 
package/dist/Code.svelte CHANGED
@@ -136,7 +136,7 @@
136
136
  >
137
137
 
138
138
  <style>
139
- /* inline code inherits Fuz CSS defaults: pre-wrap, inline-block, baseline alignment */
139
+ /* inline code inherits fuz_css defaults: pre-wrap, inline-block, baseline alignment */
140
140
 
141
141
  code:not(.inline) {
142
142
  /* block code: traditional no-wrap, horizontal scroll */
@@ -148,7 +148,7 @@
148
148
  }
149
149
 
150
150
  code.wrap:not(.inline) {
151
- /* unset what we set above, otherwise rely on Fuz CSS base styles */
151
+ /* unset what we set above, otherwise rely on fuz_css base styles */
152
152
  white-space: pre-wrap;
153
153
  }
154
154
 
@@ -188,7 +188,7 @@
188
188
  >
189
189
 
190
190
  <style>
191
- /* inline code inherits Fuz CSS defaults: pre-wrap, inline-block, baseline alignment */
191
+ /* inline code inherits fuz_css defaults: pre-wrap, inline-block, baseline alignment */
192
192
 
193
193
  code:not(.inline) {
194
194
  /* block code: traditional no-wrap, horizontal scroll */
@@ -200,7 +200,7 @@
200
200
  }
201
201
 
202
202
  code.wrap:not(.inline) {
203
- /* unset what we set above, otherwise rely on Fuz CSS base styles */
203
+ /* unset what we set above, otherwise rely on fuz_css base styles */
204
204
  white-space: pre-wrap;
205
205
  }
206
206
  </style>
@@ -1,7 +1,7 @@
1
1
  /*
2
2
 
3
- CSS variables for syntax highlighting when not using Fuz CSS.
4
- Import this alongside theme.css if you're not using Fuz CSS.
3
+ CSS variables for syntax highlighting when not using fuz_css.
4
+ Import this alongside theme.css if you're not using fuz_css.
5
5
 
6
6
  */
7
7
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fuzdev/fuz_code",
3
- "version": "0.39.0",
3
+ "version": "0.40.0",
4
4
  "description": "syntax styling utilities and components for TypeScript, Svelte, and Markdown",
5
5
  "glyph": "🎨",
6
6
  "logo": "logo.svg",
@@ -32,7 +32,7 @@
32
32
  "node": ">=22.15"
33
33
  },
34
34
  "peerDependencies": {
35
- "@fuzdev/fuz_css": ">=0.41.0",
35
+ "@fuzdev/fuz_css": ">=0.44.1",
36
36
  "svelte": "^5"
37
37
  },
38
38
  "peerDependenciesMeta": {
@@ -45,16 +45,17 @@
45
45
  },
46
46
  "devDependencies": {
47
47
  "@changesets/changelog-git": "^0.2.1",
48
- "@fuzdev/fuz_css": "^0.43.0",
49
- "@fuzdev/fuz_ui": "^0.177.0",
50
- "@fuzdev/fuz_util": "^0.45.1",
48
+ "@fuzdev/fuz_css": "^0.44.1",
49
+ "@fuzdev/fuz_ui": "^0.178.2",
50
+ "@fuzdev/fuz_util": "^0.45.3",
51
51
  "@ryanatkn/eslint-config": "^0.9.0",
52
- "@ryanatkn/gro": "^0.184.0",
52
+ "@ryanatkn/gro": "^0.186.0",
53
53
  "@sveltejs/adapter-static": "^3.0.10",
54
54
  "@sveltejs/kit": "^2.49.1",
55
55
  "@sveltejs/package": "^2.5.7",
56
56
  "@sveltejs/vite-plugin-svelte": "^6.2.1",
57
57
  "@types/node": "^24.10.1",
58
+ "@webref/css": "^8.2.0",
58
59
  "eslint": "^9.39.1",
59
60
  "eslint-plugin-svelte": "^3.13.1",
60
61
  "esm-env": "^1.2.2",