@quilltap/theme-storybook 1.0.86 → 1.0.87

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
@@ -511,7 +511,7 @@ body {
511
511
  --qt-response-status-gathering-fg: hsl(270 55% 55%);
512
512
  --qt-response-status-building-fg: hsl(38 85% 48%);
513
513
  --qt-response-status-sending-fg: var(--qt-status-info-fg);
514
- --qt-response-status-streaming-fg: hsl(152 55% 38%);
514
+ --qt-response-status-streaming-fg: hsl(152 55% 29%);
515
515
  --qt-response-status-tool-fg: hsl(270 55% 55%);
516
516
  --qt-participant-card-radius: var(--radius-lg);
517
517
  --qt-participant-card-bg: var(--color-card);
@@ -991,6 +991,7 @@ body {
991
991
  }
992
992
  .qt-danger-badge {
993
993
  --qt-concierge-badge-color: var(--color-destructive, #dc2626);
994
+ --qt-concierge-badge-fg: var(--qt-alert-error-fg, var(--qt-concierge-badge-color));
994
995
  display: inline-flex;
995
996
  align-items: center;
996
997
  gap: 0.25rem;
@@ -1000,14 +1001,15 @@ body {
1000
1001
  line-height: 1rem;
1001
1002
  font-weight: 500;
1002
1003
  background: color-mix(in srgb, var(--qt-concierge-badge-color) 15%, transparent);
1003
- color: var(--qt-concierge-badge-color);
1004
+ color: var(--qt-concierge-badge-fg);
1004
1005
  border: 1px solid color-mix(in srgb, var(--qt-concierge-badge-color) 40%, transparent);
1005
1006
  }
1006
1007
  .qt-danger-badge-muted {
1007
1008
  --qt-concierge-badge-color: var(--color-muted-foreground, #6b7280);
1009
+ --qt-concierge-badge-fg: var(--color-foreground);
1008
1010
  }
1009
1011
  .qt-concierge-mark {
1010
- --qt-concierge-mark-color: var(--color-destructive, #dc2626);
1012
+ --qt-concierge-mark-color: var(--qt-alert-error-fg, var(--color-destructive, #dc2626));
1011
1013
  display: inline-block;
1012
1014
  font-weight: 700;
1013
1015
  line-height: 1;
@@ -1636,6 +1638,7 @@ body {
1636
1638
  color: var(--qt-response-status-streaming-fg);
1637
1639
  }
1638
1640
  .qt-chat-regenerating-plate-text {
1641
+ color: var(--qt-chat-regenerating-plate-fg, var(--qt-chat-assistant-fg, var(--color-foreground)));
1639
1642
  font-size: 0.875rem;
1640
1643
  line-height: 1.25rem;
1641
1644
  font-weight: 500;
@@ -4244,7 +4247,7 @@ body {
4244
4247
  .qt-storyteller-warning {
4245
4248
  font-size: 0.75rem;
4246
4249
  font-weight: 600;
4247
- color: var(--qt-storyteller-warning-fg, var(--color-destructive));
4250
+ color: var(--qt-storyteller-warning-fg, var(--qt-alert-error-fg));
4248
4251
  }
4249
4252
  .qt-storyteller-actions {
4250
4253
  display: flex;
@@ -4307,7 +4310,7 @@ body {
4307
4310
  .qt-intervention-note {
4308
4311
  font-size: 0.75rem;
4309
4312
  font-style: italic;
4310
- color: var(--qt-intervention-note-fg, var(--color-warning));
4313
+ color: var(--qt-intervention-note-fg, var(--qt-alert-warning-fg));
4311
4314
  }
4312
4315
  .qt-intervention-badge {
4313
4316
  display: inline-flex;
@@ -4335,5 +4338,11 @@ body {
4335
4338
  }
4336
4339
  .qt-intervene-toggle--off {
4337
4340
  color: var(--qt-intervene-toggle-off-fg, var(--color-muted-foreground));
4338
- opacity: 0.5;
4341
+ background-image:
4342
+ linear-gradient(
4343
+ to top right,
4344
+ transparent calc(50% - 0.75px),
4345
+ currentColor calc(50% - 0.75px),
4346
+ currentColor calc(50% + 0.75px),
4347
+ transparent calc(50% + 0.75px));
4339
4348
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quilltap/theme-storybook",
3
- "version": "1.0.86",
3
+ "version": "1.0.87",
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",
@@ -441,7 +441,7 @@
441
441
  --qt-response-status-gathering-fg: hsl(270 55% 55%);
442
442
  --qt-response-status-building-fg: hsl(38 85% 48%);
443
443
  --qt-response-status-sending-fg: var(--qt-status-info-fg);
444
- --qt-response-status-streaming-fg: hsl(152 55% 38%);
444
+ --qt-response-status-streaming-fg: hsl(152 55% 29%);
445
445
  --qt-response-status-tool-fg: hsl(270 55% 55%);
446
446
 
447
447
  /* Participant card variables */
@@ -1080,6 +1080,9 @@
1080
1080
  */
1081
1081
  .qt-danger-badge {
1082
1082
  --qt-concierge-badge-color: var(--color-destructive, #dc2626);
1083
+ /* The ink is the alert token, not the fill red: --color-destructive on its
1084
+ own 15% tint read at ~3.5:1 on every bundled theme. */
1085
+ --qt-concierge-badge-fg: var(--qt-alert-error-fg, var(--qt-concierge-badge-color));
1083
1086
  display: inline-flex;
1084
1087
  align-items: center;
1085
1088
  gap: 0.25rem;
@@ -1089,13 +1092,15 @@
1089
1092
  line-height: 1rem;
1090
1093
  font-weight: 500;
1091
1094
  background: color-mix(in srgb, var(--qt-concierge-badge-color) 15%, transparent);
1092
- color: var(--qt-concierge-badge-color);
1095
+ color: var(--qt-concierge-badge-fg);
1093
1096
  border: 1px solid color-mix(in srgb, var(--qt-concierge-badge-color) 40%, transparent);
1094
1097
  }
1095
1098
 
1096
- /* Locked — no colour: the chat keeps to the ordinary desks. */
1099
+ /* Locked — no colour: the chat keeps to the ordinary desks. The grey lives
1100
+ in the tint and the rule; the word is in body ink so it stays legible. */
1097
1101
  .qt-danger-badge-muted {
1098
1102
  --qt-concierge-badge-color: var(--color-muted-foreground, #6b7280);
1103
+ --qt-concierge-badge-fg: var(--color-foreground);
1099
1104
  }
1100
1105
 
1101
1106
 
@@ -1106,7 +1111,7 @@
1106
1111
  * so there is no third modifier.
1107
1112
  */
1108
1113
  .qt-concierge-mark {
1109
- --qt-concierge-mark-color: var(--color-destructive, #dc2626);
1114
+ --qt-concierge-mark-color: var(--qt-alert-error-fg, var(--color-destructive, #dc2626));
1110
1115
  display: inline-block;
1111
1116
  font-weight: 700;
1112
1117
  line-height: 1;
@@ -1975,7 +1980,11 @@
1975
1980
  color: var(--qt-response-status-streaming-fg);
1976
1981
  }
1977
1982
 
1983
+ /* The words are in the bubble's own ink: the streaming green is a status
1984
+ accent, and on a mid-tone bubble it fell below 3:1. The green stays on the
1985
+ border and the quill. */
1978
1986
  .qt-chat-regenerating-plate-text {
1987
+ color: var(--qt-chat-regenerating-plate-fg, var(--qt-chat-assistant-fg, var(--color-foreground)));
1979
1988
  font-size: 0.875rem;
1980
1989
  line-height: 1.25rem;
1981
1990
  font-weight: 500;
@@ -5244,7 +5253,9 @@
5244
5253
  .qt-storyteller-warning {
5245
5254
  font-size: 0.75rem;
5246
5255
  font-weight: 600;
5247
- color: var(--qt-storyteller-warning-fg, var(--color-destructive));
5256
+ /* The alert token, not --color-destructive: a fill red is too dark to read
5257
+ as small text on a dark card. */
5258
+ color: var(--qt-storyteller-warning-fg, var(--qt-alert-error-fg));
5248
5259
  }
5249
5260
 
5250
5261
  .qt-storyteller-actions {
@@ -5334,7 +5345,9 @@
5334
5345
  .qt-intervention-note {
5335
5346
  font-size: 0.75rem;
5336
5347
  font-style: italic;
5337
- color: var(--qt-intervention-note-fg, var(--color-warning));
5348
+ /* The alert token, not --color-warning: amber fill is not amber ink, and on
5349
+ a light card the raw warning colour falls to ~2:1. */
5350
+ color: var(--qt-intervention-note-fg, var(--qt-alert-warning-fg));
5338
5351
  }
5339
5352
 
5340
5353
  /* The "adjusted" hand beside a Pascal chip's label. */
@@ -5369,7 +5382,16 @@
5369
5382
  }
5370
5383
 
5371
5384
  /* A field the author has hidden from the dialog. */
5385
+ /* A field the author has hidden from the dialog: the hand, struck through.
5386
+ The slash says "off" without leaning on colour, and without the half
5387
+ opacity that left the icon at ~2:1 on every bundled theme. */
5372
5388
  .qt-intervene-toggle--off {
5373
5389
  color: var(--qt-intervene-toggle-off-fg, var(--color-muted-foreground));
5374
- opacity: 0.5;
5390
+ background-image: linear-gradient(
5391
+ to top right,
5392
+ transparent calc(50% - 0.75px),
5393
+ currentColor calc(50% - 0.75px),
5394
+ currentColor calc(50% + 0.75px),
5395
+ transparent calc(50% + 0.75px)
5396
+ );
5375
5397
  }