@carissa-io/theme-default 0.3.2 → 0.3.3

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/DESIGN.md CHANGED
@@ -248,9 +248,9 @@ from the custom properties, so the card works in both modes.
248
248
  is almost invisible on the dark ground, the border keeps the edge in dark mode.
249
249
 
250
250
  ## Alert
251
- From [components-alert](components/components-alert): `Alert` in `info`, `success`, `warning` and `error`. A `--c-surface` box with a 1px `--c-muted` border
251
+ From [components-alert](components/components-alert): `Alert` in `info`, `success`, `warning` and `error`. A box **tinted with the variant color** (12% of `--c-info`, `--c-success`, `--c-warning` or `--c-error` mixed over `--c-background` with `color-mix`, so it follows the mode) with a 1px border at 35% of the same color
252
252
  and a **4px accent on the left edge** in the variant color (`--c-info`, `--c-success`, `--c-warning`, `--c-error`); the icon, when given, has the same color.
253
- The text and the title are `--c-text` (the status colors are not used for text: see the contrast notes in [Dark mode](#dark-mode)). The title is bold, the text
253
+ The text and the title are `--c-text`, 14.8:1 or more on every tint in both modes; the accent and the icon are at least 3.8:1 on the tint (the status colors are not used for text: see the contrast notes in [Dark mode](#dark-mode)). The title is bold, the text
254
254
  0.875rem, square corners. The dismiss button is a plain "x" in `--c-muted`, `--c-text` on hover, with the usual focus ring.
255
255
 
256
256
  ## Keyboard focus (all controls)
package/dist/index.css CHANGED
@@ -1449,8 +1449,8 @@
1449
1449
 
1450
1450
  .c-alert--info {
1451
1451
  color: var(--c-text);
1452
- background: var(--c-surface);
1453
- border-color: var(--c-muted);
1452
+ background: color-mix(in srgb, var(--c-info) 12%, var(--c-background));
1453
+ border-color: color-mix(in srgb, var(--c-info) 35%, var(--c-background));
1454
1454
  border-left-color: var(--c-info);
1455
1455
  }
1456
1456
  .c-alert--info .c-alert__icon {
@@ -1462,8 +1462,8 @@
1462
1462
 
1463
1463
  .c-alert--success {
1464
1464
  color: var(--c-text);
1465
- background: var(--c-surface);
1466
- border-color: var(--c-muted);
1465
+ background: color-mix(in srgb, var(--c-success) 12%, var(--c-background));
1466
+ border-color: color-mix(in srgb, var(--c-success) 35%, var(--c-background));
1467
1467
  border-left-color: var(--c-success);
1468
1468
  }
1469
1469
  .c-alert--success .c-alert__icon {
@@ -1475,8 +1475,8 @@
1475
1475
 
1476
1476
  .c-alert--warning {
1477
1477
  color: var(--c-text);
1478
- background: var(--c-surface);
1479
- border-color: var(--c-muted);
1478
+ background: color-mix(in srgb, var(--c-warning) 12%, var(--c-background));
1479
+ border-color: color-mix(in srgb, var(--c-warning) 35%, var(--c-background));
1480
1480
  border-left-color: var(--c-warning);
1481
1481
  }
1482
1482
  .c-alert--warning .c-alert__icon {
@@ -1488,8 +1488,8 @@
1488
1488
 
1489
1489
  .c-alert--error {
1490
1490
  color: var(--c-text);
1491
- background: var(--c-surface);
1492
- border-color: var(--c-muted);
1491
+ background: color-mix(in srgb, var(--c-error) 12%, var(--c-background));
1492
+ border-color: color-mix(in srgb, var(--c-error) 35%, var(--c-background));
1493
1493
  border-left-color: var(--c-error);
1494
1494
  }
1495
1495
  .c-alert--error .c-alert__icon {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carissa-io/theme-default",
3
- "version": "0.3.2",
3
+ "version": "0.3.3",
4
4
  "description": "Carissa UI: the default theme (Swiss minimalism) as SCSS variable overrides of the Carissa components, with a compiled CSS build",
5
5
  "type": "module",
6
6
  "style": "dist/index.css",
package/scss/index.scss CHANGED
@@ -599,32 +599,32 @@
599
599
  $c-alert-dismiss-color-hover: $var-text,
600
600
 
601
601
  // Info
602
- $c-alert-info-background: $var-surface,
603
- $c-alert-info-border-color: $var-muted,
602
+ $c-alert-info-background: color-mix(in srgb, $var-info 12%, $var-background),
603
+ $c-alert-info-border-color: color-mix(in srgb, $var-info 35%, $var-background),
604
604
  $c-alert-info-accent-color: $var-info,
605
605
  $c-alert-info-color: $var-text,
606
606
  $c-alert-info-icon-color: $var-info,
607
607
  $c-alert-info-title-color: $var-text,
608
608
 
609
609
  // Success
610
- $c-alert-success-background: $var-surface,
611
- $c-alert-success-border-color: $var-muted,
610
+ $c-alert-success-background: color-mix(in srgb, $var-success 12%, $var-background),
611
+ $c-alert-success-border-color: color-mix(in srgb, $var-success 35%, $var-background),
612
612
  $c-alert-success-accent-color: $var-success,
613
613
  $c-alert-success-color: $var-text,
614
614
  $c-alert-success-icon-color: $var-success,
615
615
  $c-alert-success-title-color: $var-text,
616
616
 
617
617
  // Warning
618
- $c-alert-warning-background: $var-surface,
619
- $c-alert-warning-border-color: $var-muted,
618
+ $c-alert-warning-background: color-mix(in srgb, $var-warning 12%, $var-background),
619
+ $c-alert-warning-border-color: color-mix(in srgb, $var-warning 35%, $var-background),
620
620
  $c-alert-warning-accent-color: $var-warning,
621
621
  $c-alert-warning-color: $var-text,
622
622
  $c-alert-warning-icon-color: $var-warning,
623
623
  $c-alert-warning-title-color: $var-text,
624
624
 
625
625
  // Error
626
- $c-alert-error-background: $var-surface,
627
- $c-alert-error-border-color: $var-muted,
626
+ $c-alert-error-background: color-mix(in srgb, $var-error 12%, $var-background),
627
+ $c-alert-error-border-color: color-mix(in srgb, $var-error 35%, $var-background),
628
628
  $c-alert-error-accent-color: $var-error,
629
629
  $c-alert-error-color: $var-text,
630
630
  $c-alert-error-icon-color: $var-error,