@stigmer/react 3.0.9-dev.20260615153829 → 3.0.9-dev.20260616060535

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/src/styles.css CHANGED
@@ -186,3 +186,91 @@
186
186
  }
187
187
  }
188
188
  }
189
+
190
+ @layer stgm {
191
+ /* Syntax highlighting for fenced code blocks (issue #183).
192
+ lowlight (highlight.js) emits these `hljs-*` token classes; we map each
193
+ onto a shared `--stgm-syntax-*` theme token so highlighted code tracks the
194
+ host's preset and color-mode with zero hardcoded colors — the same token
195
+ contract the CodeMirror YAML editor uses. Scoped to `.stgm` so nothing
196
+ leaks into the host application. */
197
+ .stgm .hljs {
198
+ color: var(--stgm-foreground);
199
+ }
200
+
201
+ .stgm .hljs-comment,
202
+ .stgm .hljs-quote {
203
+ color: var(--stgm-syntax-comment);
204
+ font-style: italic;
205
+ }
206
+
207
+ .stgm .hljs-keyword,
208
+ .stgm .hljs-selector-tag,
209
+ .stgm .hljs-subst {
210
+ color: var(--stgm-syntax-keyword);
211
+ }
212
+
213
+ .stgm .hljs-literal,
214
+ .stgm .hljs-symbol,
215
+ .stgm .hljs-bullet {
216
+ color: var(--stgm-syntax-bool);
217
+ }
218
+
219
+ .stgm .hljs-string,
220
+ .stgm .hljs-regexp,
221
+ .stgm .hljs-addition,
222
+ .stgm .hljs-template-tag,
223
+ .stgm .hljs-template-variable,
224
+ .stgm .hljs-meta .hljs-string {
225
+ color: var(--stgm-syntax-string);
226
+ }
227
+
228
+ .stgm .hljs-number {
229
+ color: var(--stgm-syntax-number);
230
+ }
231
+
232
+ .stgm .hljs-title,
233
+ .stgm .hljs-title.function_,
234
+ .stgm .hljs-title.class_,
235
+ .stgm .hljs-section,
236
+ .stgm .hljs-built_in,
237
+ .stgm .hljs-type {
238
+ color: var(--stgm-syntax-property);
239
+ }
240
+
241
+ .stgm .hljs-attr,
242
+ .stgm .hljs-attribute,
243
+ .stgm .hljs-property,
244
+ .stgm .hljs-variable,
245
+ .stgm .hljs-params,
246
+ .stgm .hljs-selector-attr,
247
+ .stgm .hljs-selector-pseudo,
248
+ .stgm .hljs-selector-class,
249
+ .stgm .hljs-selector-id {
250
+ color: var(--stgm-syntax-property);
251
+ }
252
+
253
+ .stgm .hljs-tag,
254
+ .stgm .hljs-name {
255
+ color: var(--stgm-syntax-tag);
256
+ }
257
+
258
+ .stgm .hljs-meta,
259
+ .stgm .hljs-meta .hljs-keyword,
260
+ .stgm .hljs-doctag {
261
+ color: var(--stgm-syntax-meta);
262
+ }
263
+
264
+ .stgm .hljs-link,
265
+ .stgm .hljs-deletion {
266
+ color: var(--stgm-syntax-atom);
267
+ }
268
+
269
+ .stgm .hljs-emphasis {
270
+ font-style: italic;
271
+ }
272
+
273
+ .stgm .hljs-strong {
274
+ font-weight: 600;
275
+ }
276
+ }