@quilltap/theme-storybook 1.0.85 → 1.0.86

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/dist/index.css CHANGED
@@ -300,6 +300,12 @@ body {
300
300
  --qt-status-danger-border: var(--color-destructive);
301
301
  --qt-punctuation-warning-bg: color-mix(in srgb, var(--color-warning) 35%, transparent);
302
302
  --qt-punctuation-warning-underline: var(--color-warning);
303
+ --qt-punctuation-no-dialogue-bg: color-mix(in srgb, var(--color-warning) 14%, transparent);
304
+ --qt-punctuation-no-dialogue-underline: var(--color-warning);
305
+ --qt-composer-narration-fg: color-mix(in srgb, var(--color-foreground) 65%, var(--color-primary));
306
+ --qt-composer-narration-bg: color-mix(in srgb, var(--color-primary) 7%, transparent);
307
+ --qt-composer-ooc-fg: var(--qt-rp-ooc-color);
308
+ --qt-composer-ooc-bg: var(--qt-rp-ooc-bg);
303
309
  --qt-badge-primary-bg: var(--color-primary);
304
310
  --qt-badge-primary-fg: var(--color-primary-foreground);
305
311
  --qt-badge-secondary-bg: var(--color-secondary);
@@ -1944,6 +1950,20 @@ body {
1944
1950
  text-decoration: underline wavy var(--qt-punctuation-warning-underline);
1945
1951
  text-decoration-thickness: 2px;
1946
1952
  }
1953
+ ::highlight(qt-punctuation-no-dialogue) {
1954
+ background-color: var(--qt-punctuation-no-dialogue-bg);
1955
+ -webkit-text-decoration: underline dotted var(--qt-punctuation-no-dialogue-underline);
1956
+ text-decoration: underline dotted var(--qt-punctuation-no-dialogue-underline);
1957
+ text-decoration-thickness: 2px;
1958
+ }
1959
+ ::highlight(qt-composer-narration) {
1960
+ color: var(--qt-composer-narration-fg);
1961
+ background-color: var(--qt-composer-narration-bg);
1962
+ }
1963
+ ::highlight(qt-composer-ooc) {
1964
+ color: var(--qt-composer-ooc-fg);
1965
+ background-color: var(--qt-composer-ooc-bg);
1966
+ }
1947
1967
  .qt-lexical-contenteditable {
1948
1968
  overflow-y: auto;
1949
1969
  position: relative;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quilltap/theme-storybook",
3
- "version": "1.0.85",
3
+ "version": "1.0.86",
4
4
  "description": "Storybook preset and stories for developing Quilltap theme plugins",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -169,6 +169,14 @@
169
169
  /* Composer punctuation warnings (PunctuationLintPlugin, ::highlight) */
170
170
  --qt-punctuation-warning-bg: color-mix(in srgb, var(--color-warning) 35%, transparent);
171
171
  --qt-punctuation-warning-underline: var(--color-warning);
172
+ /* Prose mode (Novel-like templates): no dialogue in the draft at all */
173
+ --qt-punctuation-no-dialogue-bg: color-mix(in srgb, var(--color-warning) 14%, transparent);
174
+ --qt-punctuation-no-dialogue-underline: var(--color-warning);
175
+ /* Prose mode composer preview: narration, and ((out of character)) asides */
176
+ --qt-composer-narration-fg: color-mix(in srgb, var(--color-foreground) 65%, var(--color-primary));
177
+ --qt-composer-narration-bg: color-mix(in srgb, var(--color-primary) 7%, transparent);
178
+ --qt-composer-ooc-fg: var(--qt-rp-ooc-color);
179
+ --qt-composer-ooc-bg: var(--qt-rp-ooc-bg);
172
180
 
173
181
  /* Badge palette tokens - referenced by the provider badges */
174
182
  --qt-badge-primary-bg: var(--color-primary);
@@ -2339,6 +2347,27 @@
2339
2347
  text-decoration-thickness: 2px;
2340
2348
  }
2341
2349
 
2350
+ /* Prose mode (a template like Novel: unmarked narration, quoted dialogue).
2351
+ The no-dialogue tint covers every narrated run while the draft has no
2352
+ dialogue at all; the preview marks narration and ((asides)) the way the
2353
+ rendered message will set them. ::highlight cannot set font-style, so
2354
+ narration is told apart by colour rather than italics. */
2355
+ ::highlight(qt-punctuation-no-dialogue) {
2356
+ background-color: var(--qt-punctuation-no-dialogue-bg);
2357
+ text-decoration: underline dotted var(--qt-punctuation-no-dialogue-underline);
2358
+ text-decoration-thickness: 2px;
2359
+ }
2360
+
2361
+ ::highlight(qt-composer-narration) {
2362
+ color: var(--qt-composer-narration-fg);
2363
+ background-color: var(--qt-composer-narration-bg);
2364
+ }
2365
+
2366
+ ::highlight(qt-composer-ooc) {
2367
+ color: var(--qt-composer-ooc-fg);
2368
+ background-color: var(--qt-composer-ooc-bg);
2369
+ }
2370
+
2342
2371
  /* Lexical editor rich text node styles */
2343
2372
  .qt-lexical-contenteditable {
2344
2373
  overflow-y: auto;