@c2n/theme 0.0.9 → 0.0.11

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/theme.css CHANGED
@@ -208,6 +208,12 @@
208
208
  --c2-avatar__remove--border: var(--c2-theme--border-width, 1px) solid var(--c2-theme--color-outline-variant, #e4e4e7);
209
209
  --c2-avatar__remove--box-shadow: var(--c2-theme--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.18));
210
210
  --c2-avatar__badge--border: 2px solid var(--c2-theme--color-surface, #ffffff);
211
+ --c2-avatar-group__overflow--background: var(--c2-theme--color-inverse-surface, #52525b);
212
+ --c2-avatar-group__overflow--color: var(--c2-theme--color-on-inverse-surface, #ffffff);
213
+ --c2-avatar-group__overflow--border: 2px solid var(--c2-theme--color-surface, #ffffff);
214
+ --c2-avatar-group__overflow--border-radius: var(--c2-theme--radius-full, 999px);
215
+ --c2-avatar-group__overflow--font-size: var(--c2-theme--font-size-sm, 12px);
216
+ --c2-avatar-group__overflow--font-weight: var(--c2-theme--font-weight-semibold, 600);
211
217
  }
212
218
 
213
219
  /* @c2n/badge */
@@ -225,6 +231,13 @@
225
231
  --c2-badge__anchor--border: 2px solid var(--c2-theme--color-surface, #ffffff);
226
232
  }
227
233
 
234
+ /* @c2n/border-beam */
235
+ :root,
236
+ :host {
237
+ --c2-border-beam__beam--radius: var(--c2-theme--radius-lg, 12px);
238
+ --c2-border-beam__beam--color-from: var(--c2-theme--color-primary, #0265dc);
239
+ }
240
+
228
241
  /* @c2n/breadcrumb */
229
242
  :root,
230
243
  :host {
@@ -412,6 +425,33 @@
412
425
  --c2-checkbox__state-layer--border-bottom-right-radius: var(--c2-theme--radius-md, 6px);
413
426
  }
414
427
 
428
+ /* @c2n/code-editor */
429
+ :root,
430
+ :host {
431
+ --c2-code-editor--background: var(--c2-theme--color-surface, #ffffff);
432
+ --c2-code-editor--border: var(--c2-theme--border, var(--c2-theme--border-width, 1px) solid var(--c2-theme--color-outline, #bcbcc6));
433
+ --c2-code-editor__focus--border: var(--c2-theme--border-width, 1px) solid var(--c2-theme--color-primary, rgb(2, 101, 220));
434
+ --c2-code-editor__focus--outline: var(--c2-theme--focus-ring, 2px solid rgba(2, 101, 220, 0.4));
435
+ --c2-code-editor--border-radius: var(--c2-theme--radius-md, 6px);
436
+ --c2-code-editor__disabled--opacity: var(--c2-theme--disabled-opacity, 0.38);
437
+ --c2-code-editor--font-family: var(--c2-theme--font-family, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
438
+ --c2-code-editor__gutter--color: var(--c2-theme--color-on-surface-variant, #71717a);
439
+ --c2-code-editor__gutter__active--color: var(--c2-theme--color-on-surface, #18181b);
440
+ --c2-code-editor__gutter--border-right: var(--c2-theme--border-width, 1px) solid var(--c2-theme--color-outline-variant, #e4e4e7);
441
+ --c2-code-editor__active-line--background: color-mix(in srgb, var(--c2-theme--color-primary, #0265dc) 4%, transparent);
442
+ --c2-code-editor__selection--background: color-mix(in srgb, var(--c2-theme--color-primary, #0265dc) 18%, transparent);
443
+ --c2-code-editor__cursor--color: var(--c2-theme--color-on-surface, #18181b);
444
+ --c2-code-editor__matching-bracket--background: color-mix(in srgb, var(--c2-theme--color-primary, #0265dc) 16%, transparent);
445
+ --c2-code-editor__placeholder--color: var(--c2-theme--color-on-surface-variant, #71717a);
446
+ --c2-code-editor__label--color: var(--c2-theme--color-on-surface, #18181b);
447
+ --c2-code-editor__label--font-size: var(--c2-theme--font-size-sm, 12px);
448
+ --c2-code-editor__label--font-weight: var(--c2-theme--font-weight-medium, 500);
449
+ --c2-code-editor__supporting-text--color: var(--c2-theme--color-on-surface-variant, #71717a);
450
+ --c2-code-editor__supporting-text--font-size: var(--c2-theme--font-size-sm, 12px);
451
+ --c2-code-editor__error--color: var(--c2-theme--color-error, #dc2626);
452
+ --c2-code-editor__error--border: var(--c2-theme--border-width, 1px) solid var(--c2-theme--color-error, #dc2626);
453
+ }
454
+
415
455
  /* @c2n/code-viewer */
416
456
  :root,
417
457
  :host {
@@ -500,6 +540,27 @@
500
540
  --c2-copy-button--transition-duration: calc(150ms * var(--c2-theme--motion-scale, 1));
501
541
  }
502
542
 
543
+ /* @c2n/dashboard */
544
+ :root,
545
+ :host {
546
+ --c2-dash-card__expanded--animation-duration: calc(200ms * var(--c2-theme--motion-scale, 1));
547
+ --c2-dash-card__header--color: var(--c2-theme--color-on-surface, #18181b);
548
+ --c2-dash-card__header--font-size: var(--c2-theme--font-size-md, 14px);
549
+ --c2-dash-card__header--font-weight: var(--c2-theme--font-weight-semibold, 600);
550
+ --c2-dash-card__footer--color: var(--c2-theme--color-on-surface-variant, #71717a);
551
+ --c2-dash-card__footer--font-size: var(--c2-theme--font-size-sm, 12px);
552
+ --c2-dash-card__control--border-radius: var(--c2-theme--radius-md, 6px);
553
+ --c2-dash-card__control--color: var(--c2-theme--color-on-surface-variant, #71717a);
554
+ --c2-dash-card__control__hover--background: var(--c2-theme--color-surface-container, #f4f4f5);
555
+ --c2-dash-card__control__hover--color: var(--c2-theme--color-on-surface, #18181b);
556
+ --c2-dash-card__control__focus--outline: var(--c2-theme--focus-ring, 2px solid rgba(2, 101, 220, 0.4));
557
+ --c2-dash-card__handle__hover--background: var(--c2-theme--color-primary-glow, rgba(2, 101, 220, 0.2));
558
+ --c2-dash-card__handle__active--background: var(--c2-theme--color-primary, rgb(2, 101, 220));
559
+ --c2-dash-card__handle--border-radius: var(--c2-theme--radius-full, 999px);
560
+ --c2-dash-card__handle--transition-duration: calc(150ms * var(--c2-theme--motion-scale, 1));
561
+ --c2-dash-card__handle__focus--outline: var(--c2-theme--focus-ring, 2px solid rgba(2, 101, 220, 0.4));
562
+ }
563
+
503
564
  /* @c2n/date-input */
504
565
  :root,
505
566
  :host {
@@ -1064,6 +1125,29 @@
1064
1125
  --c2-status-panel__content--background-color: var(--c2-theme--color-surface-container, #f4f4f5);
1065
1126
  }
1066
1127
 
1128
+ /* @c2n/steps */
1129
+ :root,
1130
+ :host {
1131
+ --c2-step__row--border-bottom: var(--c2-theme--border-width, 1px) solid var(--c2-theme--color-outline-variant, #e4e4e7);
1132
+ --c2-step__toggle--color: var(--c2-theme--color-on-surface-variant, #a1a1aa);
1133
+ --c2-step__guide--color: var(--c2-theme--color-outline-variant, #e4e4e7);
1134
+ --c2-step__marker--font-weight: var(--c2-theme--font-weight-semibold, 600);
1135
+ --c2-step__marker--border-radius: var(--c2-theme--radius-full, 999px);
1136
+ --c2-step__marker--border: var(--c2-theme--border, var(--c2-theme--border-width, 1px) solid var(--c2-theme--color-outline, #bcbcc6));
1137
+ --c2-step__marker--color: var(--c2-theme--color-on-surface-variant, #71717a);
1138
+ --c2-step__rail--color: var(--c2-theme--color-outline-variant, #e4e4e7);
1139
+ --c2-step__label--color: var(--c2-theme--color-on-surface, #18181b);
1140
+ --c2-step__label--font-weight: var(--c2-theme--font-weight-medium, 500);
1141
+ --c2-step__label--font-family: var(--c2-theme--font-family, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
1142
+ --c2-step__detail--color: var(--c2-theme--color-on-surface-variant, #71717a);
1143
+ --c2-step__trailing--color: var(--c2-theme--color-on-surface-variant, #71717a);
1144
+ --c2-step__error--color: var(--c2-theme--color-error, #dc2626);
1145
+ --c2-step__running--color: var(--c2-theme--color-primary, rgb(2, 101, 220));
1146
+ --c2-step__current--color: var(--c2-theme--color-primary, rgb(2, 101, 220));
1147
+ --c2-step__skipped--color: var(--c2-theme--color-on-surface-variant, #71717a);
1148
+ --c2-step--transition-duration: calc(150ms * var(--c2-theme--motion-scale, 1));
1149
+ }
1150
+
1067
1151
  /* @c2n/switch */
1068
1152
  :root,
1069
1153
  :host {
@@ -1201,6 +1285,29 @@
1201
1285
  --c2-textarea__supporting-text__error--color: var(--c2-theme--color-error, #dc2626);
1202
1286
  }
1203
1287
 
1288
+ /* @c2n/theme-select */
1289
+ :root,
1290
+ :host {
1291
+ --c2-theme-select__trigger--border-radius: var(--c2-theme--radius-lg, 8px);
1292
+ --c2-theme-select__trigger--color: var(--c2-theme--color-on-surface, #18181b);
1293
+ --c2-theme-select__trigger__hover--background: var(--c2-theme--color-surface-container, #f4f4f5);
1294
+ --c2-theme-select__trigger__focus--outline: var(--c2-theme--focus-ring, 2px solid rgba(2, 101, 220, 0.4));
1295
+ --c2-theme-select__trigger__disabled--opacity: var(--c2-theme--disabled-opacity, 0.38);
1296
+ --c2-theme-select__label--font-size: var(--c2-theme--font-size-md, 14px);
1297
+ --c2-theme-select__label--font-weight: var(--c2-theme--font-weight-medium, 500);
1298
+ --c2-theme-select__menu--background: var(--c2-theme--color-surface, #ffffff);
1299
+ --c2-theme-select__menu--border: var(--c2-theme--border-width, 1px) solid var(--c2-theme--color-outline-variant, #e4e4e7);
1300
+ --c2-theme-select__menu--border-radius: var(--c2-theme--radius-lg, 8px);
1301
+ --c2-theme-select__menu--box-shadow: var(--c2-theme--shadow-md, 0 8px 24px rgba(24, 24, 27, 0.08));
1302
+ --c2-theme-select__menu-item--border-radius: var(--c2-theme--radius-md, 6px);
1303
+ --c2-theme-select__menu-item--color: var(--c2-theme--color-on-surface, #18181b);
1304
+ --c2-theme-select__menu-item--font-size: var(--c2-theme--font-size-md, 14px);
1305
+ --c2-theme-select__menu-item--font-weight: var(--c2-theme--font-weight-medium, 500);
1306
+ --c2-theme-select__menu-item__hover--background: var(--c2-theme--color-surface-container, #f4f4f5);
1307
+ --c2-theme-select__menu-item__selected--color: var(--c2-theme--color-primary, rgb(2, 101, 220));
1308
+ --c2-theme-select--transition-duration: calc(150ms * var(--c2-theme--motion-scale, 1));
1309
+ }
1310
+
1204
1311
  /* @c2n/toast */
1205
1312
  :root,
1206
1313
  :host {
package/dist/tokens.json CHANGED
@@ -362,6 +362,12 @@
362
362
  "--c2-avatar__remove--border": "--c2-theme--color-outline-variant",
363
363
  "--c2-avatar__remove--box-shadow": "--c2-theme--shadow-sm",
364
364
  "--c2-avatar__badge--border": "--c2-theme--color-surface",
365
+ "--c2-avatar-group__overflow--background": "--c2-theme--color-inverse-surface",
366
+ "--c2-avatar-group__overflow--color": "--c2-theme--color-on-inverse-surface",
367
+ "--c2-avatar-group__overflow--border": "--c2-theme--color-surface",
368
+ "--c2-avatar-group__overflow--border-radius": "--c2-theme--radius-full",
369
+ "--c2-avatar-group__overflow--font-size": "--c2-theme--font-size-sm",
370
+ "--c2-avatar-group__overflow--font-weight": "--c2-theme--font-weight-semibold",
365
371
  "--c2-badge--border-radius": "--c2-theme--radius-full",
366
372
  "--c2-badge--font-size": "--c2-theme--font-size-sm",
367
373
  "--c2-badge--font-weight": "--c2-theme--font-weight-medium",
@@ -372,6 +378,8 @@
372
378
  "--c2-badge__danger--color": "--c2-theme--color-error",
373
379
  "--c2-badge__pulse--animation-duration": "--c2-theme--motion-scale",
374
380
  "--c2-badge__anchor--border": "--c2-theme--color-surface",
381
+ "--c2-border-beam__beam--radius": "--c2-theme--radius-lg",
382
+ "--c2-border-beam__beam--color-from": "--c2-theme--color-primary",
375
383
  "--c2-breadcrumb__separator--color": "--c2-theme--color-on-surface-variant",
376
384
  "--c2-breadcrumb__item--color": "--c2-theme--color-on-surface-variant",
377
385
  "--c2-breadcrumb__item--font-size": "--c2-theme--font-size-md",
@@ -514,6 +522,28 @@
514
522
  "--c2-checkbox__state-layer--border-top-right-radius": "--c2-theme--radius-md",
515
523
  "--c2-checkbox__state-layer--border-bottom-left-radius": "--c2-theme--radius-md",
516
524
  "--c2-checkbox__state-layer--border-bottom-right-radius": "--c2-theme--radius-md",
525
+ "--c2-code-editor--background": "--c2-theme--color-surface",
526
+ "--c2-code-editor--border": "--c2-theme--border",
527
+ "--c2-code-editor__focus--border": "--c2-theme--color-primary",
528
+ "--c2-code-editor__focus--outline": "--c2-theme--focus-ring",
529
+ "--c2-code-editor--border-radius": "--c2-theme--radius-md",
530
+ "--c2-code-editor__disabled--opacity": "--c2-theme--disabled-opacity",
531
+ "--c2-code-editor--font-family": "--c2-theme--font-family",
532
+ "--c2-code-editor__gutter--color": "--c2-theme--color-on-surface-variant",
533
+ "--c2-code-editor__gutter__active--color": "--c2-theme--color-on-surface",
534
+ "--c2-code-editor__gutter--border-right": "--c2-theme--color-outline-variant",
535
+ "--c2-code-editor__active-line--background": "--c2-theme--color-primary",
536
+ "--c2-code-editor__selection--background": "--c2-theme--color-primary",
537
+ "--c2-code-editor__cursor--color": "--c2-theme--color-on-surface",
538
+ "--c2-code-editor__matching-bracket--background": "--c2-theme--color-primary",
539
+ "--c2-code-editor__placeholder--color": "--c2-theme--color-on-surface-variant",
540
+ "--c2-code-editor__label--color": "--c2-theme--color-on-surface",
541
+ "--c2-code-editor__label--font-size": "--c2-theme--font-size-sm",
542
+ "--c2-code-editor__label--font-weight": "--c2-theme--font-weight-medium",
543
+ "--c2-code-editor__supporting-text--color": "--c2-theme--color-on-surface-variant",
544
+ "--c2-code-editor__supporting-text--font-size": "--c2-theme--font-size-sm",
545
+ "--c2-code-editor__error--color": "--c2-theme--color-error",
546
+ "--c2-code-editor__error--border": "--c2-theme--color-error",
517
547
  "--c2-code-viewer--border-top": "--c2-theme--border",
518
548
  "--c2-code-viewer--border-right": "--c2-theme--border",
519
549
  "--c2-code-viewer--border-bottom": "--c2-theme--border",
@@ -560,6 +590,22 @@
560
590
  "--c2-copy-button__container__focus--outline": "--c2-theme--focus-ring",
561
591
  "--c2-copy-button__container__disabled--opacity": "--c2-theme--disabled-opacity",
562
592
  "--c2-copy-button--transition-duration": "--c2-theme--motion-scale",
593
+ "--c2-dash-card__expanded--animation-duration": "--c2-theme--motion-scale",
594
+ "--c2-dash-card__header--color": "--c2-theme--color-on-surface",
595
+ "--c2-dash-card__header--font-size": "--c2-theme--font-size-md",
596
+ "--c2-dash-card__header--font-weight": "--c2-theme--font-weight-semibold",
597
+ "--c2-dash-card__footer--color": "--c2-theme--color-on-surface-variant",
598
+ "--c2-dash-card__footer--font-size": "--c2-theme--font-size-sm",
599
+ "--c2-dash-card__control--border-radius": "--c2-theme--radius-md",
600
+ "--c2-dash-card__control--color": "--c2-theme--color-on-surface-variant",
601
+ "--c2-dash-card__control__hover--background": "--c2-theme--color-surface-container",
602
+ "--c2-dash-card__control__hover--color": "--c2-theme--color-on-surface",
603
+ "--c2-dash-card__control__focus--outline": "--c2-theme--focus-ring",
604
+ "--c2-dash-card__handle__hover--background": "--c2-theme--color-primary-glow",
605
+ "--c2-dash-card__handle__active--background": "--c2-theme--color-primary",
606
+ "--c2-dash-card__handle--border-radius": "--c2-theme--radius-full",
607
+ "--c2-dash-card__handle--transition-duration": "--c2-theme--motion-scale",
608
+ "--c2-dash-card__handle__focus--outline": "--c2-theme--focus-ring",
563
609
  "--c2-date-input--border": "--c2-theme--border",
564
610
  "--c2-date-input--border-radius": "--c2-theme--radius-md",
565
611
  "--c2-date-input--color": "--c2-theme--color-on-surface",
@@ -970,6 +1016,24 @@
970
1016
  "--c2-status-panel__description--font-size": "--c2-theme--font-size-md",
971
1017
  "--c2-status-panel__content--border-radius": "--c2-theme--radius-lg",
972
1018
  "--c2-status-panel__content--background-color": "--c2-theme--color-surface-container",
1019
+ "--c2-step__row--border-bottom": "--c2-theme--color-outline-variant",
1020
+ "--c2-step__toggle--color": "--c2-theme--color-on-surface-variant",
1021
+ "--c2-step__guide--color": "--c2-theme--color-outline-variant",
1022
+ "--c2-step__marker--font-weight": "--c2-theme--font-weight-semibold",
1023
+ "--c2-step__marker--border-radius": "--c2-theme--radius-full",
1024
+ "--c2-step__marker--border": "--c2-theme--border",
1025
+ "--c2-step__marker--color": "--c2-theme--color-on-surface-variant",
1026
+ "--c2-step__rail--color": "--c2-theme--color-outline-variant",
1027
+ "--c2-step__label--color": "--c2-theme--color-on-surface",
1028
+ "--c2-step__label--font-weight": "--c2-theme--font-weight-medium",
1029
+ "--c2-step__label--font-family": "--c2-theme--font-family",
1030
+ "--c2-step__detail--color": "--c2-theme--color-on-surface-variant",
1031
+ "--c2-step__trailing--color": "--c2-theme--color-on-surface-variant",
1032
+ "--c2-step__error--color": "--c2-theme--color-error",
1033
+ "--c2-step__running--color": "--c2-theme--color-primary",
1034
+ "--c2-step__current--color": "--c2-theme--color-primary",
1035
+ "--c2-step__skipped--color": "--c2-theme--color-on-surface-variant",
1036
+ "--c2-step--transition-duration": "--c2-theme--motion-scale",
973
1037
  "--c2-switch__container__disabled--opacity": "--c2-theme--disabled-opacity",
974
1038
  "--c2-switch__track--border-radius": "--c2-theme--radius-full",
975
1039
  "--c2-switch__track--color": "--c2-theme--color-outline-variant",
@@ -1082,6 +1146,24 @@
1082
1146
  "--c2-textarea__supporting-text--font-size": "--c2-theme--font-size-sm",
1083
1147
  "--c2-textarea__supporting-text--color": "--c2-theme--color-on-surface-variant",
1084
1148
  "--c2-textarea__supporting-text__error--color": "--c2-theme--color-error",
1149
+ "--c2-theme-select__trigger--border-radius": "--c2-theme--radius-lg",
1150
+ "--c2-theme-select__trigger--color": "--c2-theme--color-on-surface",
1151
+ "--c2-theme-select__trigger__hover--background": "--c2-theme--color-surface-container",
1152
+ "--c2-theme-select__trigger__focus--outline": "--c2-theme--focus-ring",
1153
+ "--c2-theme-select__trigger__disabled--opacity": "--c2-theme--disabled-opacity",
1154
+ "--c2-theme-select__label--font-size": "--c2-theme--font-size-md",
1155
+ "--c2-theme-select__label--font-weight": "--c2-theme--font-weight-medium",
1156
+ "--c2-theme-select__menu--background": "--c2-theme--color-surface",
1157
+ "--c2-theme-select__menu--border": "--c2-theme--color-outline-variant",
1158
+ "--c2-theme-select__menu--border-radius": "--c2-theme--radius-lg",
1159
+ "--c2-theme-select__menu--box-shadow": "--c2-theme--shadow-md",
1160
+ "--c2-theme-select__menu-item--border-radius": "--c2-theme--radius-md",
1161
+ "--c2-theme-select__menu-item--color": "--c2-theme--color-on-surface",
1162
+ "--c2-theme-select__menu-item--font-size": "--c2-theme--font-size-md",
1163
+ "--c2-theme-select__menu-item--font-weight": "--c2-theme--font-weight-medium",
1164
+ "--c2-theme-select__menu-item__hover--background": "--c2-theme--color-surface-container",
1165
+ "--c2-theme-select__menu-item__selected--color": "--c2-theme--color-primary",
1166
+ "--c2-theme-select--transition-duration": "--c2-theme--motion-scale",
1085
1167
  "--c2-toast__container--background": "--c2-theme--color-surface",
1086
1168
  "--c2-toast__container--color": "--c2-theme--color-on-surface",
1087
1169
  "--c2-toast__container--border": "--c2-theme--color-outline-variant",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c2n/theme",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "description": "Design tokens (--c2-theme--*) and a generated base theme that maps every @c2n component CSS variable onto them",
5
5
  "type": "module",
6
6
  "main": "dist/tokens.js",
@@ -54,7 +54,12 @@
54
54
  "build": {
55
55
  "dependencies": [
56
56
  "type-check",
57
+ "../../components/dashboard:build",
58
+ "../../components/steps:build",
59
+ "../../components/code-editor:build",
60
+ "../../components/theme-select:build",
57
61
  "../../components/tree:build",
62
+ "../../components/border-beam:build",
58
63
  "../../components/status-panel:build",
59
64
  "../../components/qr-code:build",
60
65
  "../../components/upload:build",
@@ -127,5 +132,5 @@
127
132
  "@c2n/config": "*",
128
133
  "prettier": "3.9.6"
129
134
  },
130
- "gitHead": "e4768cce5e0fbd5bc3165cd493a1e8d57cf0fff4"
135
+ "gitHead": "bf962fba5e49a0ac7555a082584e262949d323a5"
131
136
  }