@tangible/ui 0.2.1 → 0.2.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.
@@ -47,12 +47,15 @@
47
47
  */
48
48
  /* @tui-tokens
49
49
  --tui-card-bg
50
+ --tui-card-bg-interact
50
51
  --tui-card-border
51
52
  --tui-card-border-width
52
53
  --tui-card-border-interact
54
+ --tui-card-border-active
53
55
  --tui-card-radius
54
56
  --tui-card-shadow
55
57
  --tui-card-shadow-interact
58
+ --tui-card-gap
56
59
  --tui-card-padding
57
60
  --tui-card-foot-basis
58
61
  */
@@ -590,11 +593,14 @@
590
593
  --tui-generative-pink-strong: oklch(0.82 0.1 350);
591
594
  /* UA chrome: native controls, scrollbars render in dark mode */
592
595
  color-scheme: dark;
593
- /* Backgrounds */
594
- --tui-color-bg: #111928;
595
- --tui-color-bg-surface: #202836;
596
+ /* Backgrounds — surface is the darkest (page canvas); bg (component faces)
597
+ and elevated sit a step above it, mirroring light (white faces on an
598
+ off-white surface). Previously bg/surface were inverted, so faces read
599
+ darker than the page behind them. */
600
+ --tui-color-bg: #202836;
601
+ --tui-color-bg-surface: #111928;
596
602
  --tui-color-bg-muted: #374151;
597
- --tui-color-bg-elevated: #111928;
603
+ --tui-color-bg-elevated: #202836;
598
604
  --tui-color-bg-inverted: #F9FAFB;
599
605
  --tui-color-bg-overlay: rgba(0, 0, 0, 0.7);
600
606
  /* Text */
@@ -624,23 +630,42 @@
624
630
  --tui-theme-secondary-subtlest: #202836;
625
631
  --tui-theme-secondary-subtle: #374151;
626
632
  --tui-theme-secondary-soft: #4B5563;
633
+ --tui-theme-secondary-base: #9CA3AF;
627
634
  --tui-theme-secondary-strong: #D1D5DB;
628
635
  --tui-theme-secondary-stronger: #E5E7EB;
629
636
  --tui-theme-secondary-strongest: #F3F4F6;
637
+ /* Success */
638
+ --tui-theme-success-subtlest: #003008;
639
+ --tui-theme-success-subtle: #00450c;
640
+ --tui-theme-success-soft: #008a20;
630
641
  --tui-theme-success-base: #00a32a;
631
642
  --tui-theme-success-strong: #00ba37;
632
643
  --tui-theme-success-stronger: #1ed14b;
633
644
  --tui-theme-success-strongest: #68de7c;
634
- --tui-theme-success-subtlest: #003008;
645
+ /* Info */
646
+ --tui-theme-info-subtlest: #090949;
647
+ --tui-theme-info-subtle: #101375;
648
+ --tui-theme-info-soft: #2942d1;
649
+ --tui-theme-info-base: #3858e9;
650
+ --tui-theme-info-strong: #5373f2;
651
+ --tui-theme-info-stronger: #7b93ff;
652
+ --tui-theme-info-strongest: #a0b5fe;
653
+ /* Warning */
654
+ --tui-theme-warning-subtlest: #362400;
655
+ --tui-theme-warning-subtle: #4a3200;
656
+ --tui-theme-warning-soft: #996800;
635
657
  --tui-theme-warning-base: #bd8600;
636
658
  --tui-theme-warning-strong: #dba617;
637
659
  --tui-theme-warning-stronger: #f0c33c;
638
- --tui-theme-warning-subtlest: #362400;
660
+ --tui-theme-warning-strongest: #f2d675;
661
+ /* Danger */
662
+ --tui-theme-danger-subtlest: #451313;
663
+ --tui-theme-danger-subtle: #691c1c;
664
+ --tui-theme-danger-soft: #d63638;
639
665
  --tui-theme-danger-base: #e65054;
640
666
  --tui-theme-danger-strong: #f86368;
641
667
  --tui-theme-danger-stronger: #ff8085;
642
668
  --tui-theme-danger-strongest: #ffabaf;
643
- --tui-theme-danger-subtlest: #451313;
644
669
  /* Focus ring - brighter for dark backgrounds */
645
670
  --tui-focus-ring-color: #3858e9;
646
671
  /* Shadows - more pronounced in dark mode */
@@ -681,11 +706,14 @@
681
706
  --tui-generative-pink-strong: oklch(0.82 0.1 350);
682
707
  /* UA chrome: native controls, scrollbars render in dark mode */
683
708
  color-scheme: dark;
684
- /* Backgrounds */
685
- --tui-color-bg: #111928;
686
- --tui-color-bg-surface: #202836;
709
+ /* Backgrounds — surface is the darkest (page canvas); bg (component faces)
710
+ and elevated sit a step above it, mirroring light (white faces on an
711
+ off-white surface). Previously bg/surface were inverted, so faces read
712
+ darker than the page behind them. */
713
+ --tui-color-bg: #202836;
714
+ --tui-color-bg-surface: #111928;
687
715
  --tui-color-bg-muted: #374151;
688
- --tui-color-bg-elevated: #111928;
716
+ --tui-color-bg-elevated: #202836;
689
717
  --tui-color-bg-inverted: #F9FAFB;
690
718
  --tui-color-bg-overlay: rgba(0, 0, 0, 0.7);
691
719
  /* Text */
@@ -715,23 +743,42 @@
715
743
  --tui-theme-secondary-subtlest: #202836;
716
744
  --tui-theme-secondary-subtle: #374151;
717
745
  --tui-theme-secondary-soft: #4B5563;
746
+ --tui-theme-secondary-base: #9CA3AF;
718
747
  --tui-theme-secondary-strong: #D1D5DB;
719
748
  --tui-theme-secondary-stronger: #E5E7EB;
720
749
  --tui-theme-secondary-strongest: #F3F4F6;
750
+ /* Success */
751
+ --tui-theme-success-subtlest: #003008;
752
+ --tui-theme-success-subtle: #00450c;
753
+ --tui-theme-success-soft: #008a20;
721
754
  --tui-theme-success-base: #00a32a;
722
755
  --tui-theme-success-strong: #00ba37;
723
756
  --tui-theme-success-stronger: #1ed14b;
724
757
  --tui-theme-success-strongest: #68de7c;
725
- --tui-theme-success-subtlest: #003008;
758
+ /* Info */
759
+ --tui-theme-info-subtlest: #090949;
760
+ --tui-theme-info-subtle: #101375;
761
+ --tui-theme-info-soft: #2942d1;
762
+ --tui-theme-info-base: #3858e9;
763
+ --tui-theme-info-strong: #5373f2;
764
+ --tui-theme-info-stronger: #7b93ff;
765
+ --tui-theme-info-strongest: #a0b5fe;
766
+ /* Warning */
767
+ --tui-theme-warning-subtlest: #362400;
768
+ --tui-theme-warning-subtle: #4a3200;
769
+ --tui-theme-warning-soft: #996800;
726
770
  --tui-theme-warning-base: #bd8600;
727
771
  --tui-theme-warning-strong: #dba617;
728
772
  --tui-theme-warning-stronger: #f0c33c;
729
- --tui-theme-warning-subtlest: #362400;
773
+ --tui-theme-warning-strongest: #f2d675;
774
+ /* Danger */
775
+ --tui-theme-danger-subtlest: #451313;
776
+ --tui-theme-danger-subtle: #691c1c;
777
+ --tui-theme-danger-soft: #d63638;
730
778
  --tui-theme-danger-base: #e65054;
731
779
  --tui-theme-danger-strong: #f86368;
732
780
  --tui-theme-danger-stronger: #ff8085;
733
781
  --tui-theme-danger-strongest: #ffabaf;
734
- --tui-theme-danger-subtlest: #451313;
735
782
  /* Focus ring - brighter for dark backgrounds */
736
783
  --tui-focus-ring-color: #3858e9;
737
784
  /* Shadows - more pronounced in dark mode */
@@ -1572,7 +1619,9 @@
1572
1619
  --_radius: var(--tui-card-radius, var(--tui-radius-md));
1573
1620
  --_shadow: var(--tui-card-shadow, var(--tui-shadow-sm));
1574
1621
  --_shadow-interact: var(--tui-card-shadow-interact, var(--tui-shadow-md));
1622
+ --_bg-interact: var(--tui-card-bg-interact, var(--_bg));
1575
1623
  --_padding: var(--tui-card-padding, var(--tui-spacing-lg));
1624
+ --_gap: var(--tui-card-gap, var(--tui-spacing-lg));
1576
1625
  --_foot-basis: var(--tui-card-foot-basis, 500px);
1577
1626
  container-type: inline-size;
1578
1627
  container-name: tuiCard;
@@ -1592,20 +1641,31 @@
1592
1641
  }
1593
1642
  :where(.tui-interface) .tui-card .tui-card__media.is-flush {
1594
1643
  margin-inline: calc(var(--_padding) * -1);
1644
+ max-width: 100%;
1595
1645
  max-width: calc(100% + 2 * var(--_padding));
1596
1646
  border-radius: 0;
1597
1647
  }
1598
1648
  :where(.tui-interface) .tui-card__head {
1599
- padding-block: var(--_padding);
1649
+ padding-block: var(--_gap);
1600
1650
  padding-inline: var(--_padding);
1601
1651
  width: 100%;
1602
1652
  }
1653
+ :where(.tui-interface) .tui-card__head:first-child {
1654
+ padding-block-start: var(--_padding);
1655
+ }
1656
+ :where(.tui-interface) .tui-card__head:last-child {
1657
+ padding-block-end: var(--_padding);
1658
+ }
1659
+ :where(.tui-interface) .tui-card__head:not(:first-child) {
1660
+ padding-block-start: unset;
1661
+ }
1603
1662
  :where(.tui-interface) .tui-card__head .tui-card__media.is-flush:first-child {
1604
1663
  margin-block-start: calc(var(--_padding) * -1);
1605
- border-start-end-radius: calc(var(--_radius) - 1px);
1606
- border-start-start-radius: calc(var(--_radius) - 1px);
1664
+ border-start-end-radius: calc(var(--_radius) - var(--_border-width));
1665
+ border-start-start-radius: calc(var(--_radius) - var(--_border-width));
1607
1666
  }
1608
1667
  :where(.tui-interface) .tui-card__body {
1668
+ padding-block: var(--_gap);
1609
1669
  padding-inline: var(--_padding);
1610
1670
  width: 100%;
1611
1671
  }
@@ -1624,15 +1684,27 @@
1624
1684
  :where(.tui-interface) .tui-card__body:last-child {
1625
1685
  padding-block-end: var(--_padding);
1626
1686
  }
1687
+ :where(.tui-interface) .tui-card__body:not(:first-child) {
1688
+ padding-block-start: unset;
1689
+ }
1627
1690
  :where(.tui-interface) .tui-card__foot {
1628
- padding-block: var(--_padding);
1691
+ padding-block: var(--_gap);
1629
1692
  padding-inline: var(--_padding);
1630
1693
  width: 100%;
1631
1694
  }
1695
+ :where(.tui-interface) .tui-card__foot:first-child {
1696
+ padding-block-start: var(--_padding);
1697
+ }
1698
+ :where(.tui-interface) .tui-card__foot:last-child {
1699
+ padding-block-end: var(--_padding);
1700
+ }
1701
+ :where(.tui-interface) .tui-card__foot:not(:first-child) {
1702
+ padding-block-start: unset;
1703
+ }
1632
1704
  :where(.tui-interface) .tui-card__foot .tui-card__media.is-flush:last-child {
1633
1705
  margin-block-end: calc(var(--_padding) * -1);
1634
- border-end-end-radius: calc(var(--_radius) - 1px);
1635
- border-end-start-radius: calc(var(--_radius) - 1px);
1706
+ border-end-end-radius: calc(var(--_radius) - var(--_border-width));
1707
+ border-end-start-radius: calc(var(--_radius) - var(--_border-width));
1636
1708
  }
1637
1709
  @container tuiCard (width >= 400px) {
1638
1710
  :where(:where(.tui-interface) .tui-card.is-layout-inline) .tui-card__inner {
@@ -1660,9 +1732,10 @@
1660
1732
  }
1661
1733
  :where(:where(.tui-interface) .tui-card.is-layout-inline) .tui-card__inner .tui-card__head .tui-card__media.is-flush:first-child {
1662
1734
  margin-inline-end: var(--_padding);
1735
+ max-width: 100%;
1663
1736
  max-width: calc(100% + var(--_padding));
1664
1737
  border-start-end-radius: 0;
1665
- border-end-start-radius: calc(var(--_radius) - 1px);
1738
+ border-end-start-radius: calc(var(--_radius) - var(--_border-width));
1666
1739
  }
1667
1740
  :where(:where(.tui-interface) .tui-card.is-layout-inline) .tui-card__inner .tui-card__body {
1668
1741
  flex: 2 1 auto;
@@ -1678,9 +1751,10 @@
1678
1751
  }
1679
1752
  :where(:where(.tui-interface) .tui-card.is-layout-inline) .tui-card__inner .tui-card__foot .tui-card__media.is-flush:last-child {
1680
1753
  margin-inline-start: var(--_padding);
1754
+ max-width: 100%;
1681
1755
  max-width: calc(100% + var(--_padding));
1682
1756
  border-end-start-radius: 0;
1683
- border-start-end-radius: calc(var(--_radius) - 1px);
1757
+ border-start-end-radius: calc(var(--_radius) - var(--_border-width));
1684
1758
  }
1685
1759
  :where(:where(.tui-interface) .tui-card.is-layout-inline) .tui-card__inner .tui-card__head:not(:first-child),
1686
1760
  :where(:where(.tui-interface) .tui-card.is-layout-inline) .tui-card__inner .tui-card__body:not(:first-child),
@@ -1700,13 +1774,21 @@
1700
1774
  }
1701
1775
  :where(.tui-interface) .tui-card.has-interaction:hover {
1702
1776
  --_border: var(--_border-interact);
1777
+ background-color: var(--_bg-interact);
1703
1778
  }
1704
1779
  :where(.tui-interface) .tui-card.has-interaction:focus-visible, :where(.tui-interface) .tui-card.has-interaction:has(:focus-visible) {
1705
1780
  --_border: var(--_border-interact);
1781
+ background-color: var(--_bg-interact);
1706
1782
  }
1707
1783
  :where(.tui-interface) .tui-card.has-interaction:active, :where(.tui-interface) .tui-card.has-interaction.active {
1708
1784
  --_border: var(--tui-card-border-active, var(--tui-theme-primary-soft));
1709
1785
  }
1786
+ :where(.tui-interface) .tui-card.has-interaction.is-style-elevated {
1787
+ transition-property: border-color, color, background-color, box-shadow;
1788
+ }
1789
+ :where(.tui-interface) .tui-card.has-interaction.is-style-elevated:hover {
1790
+ box-shadow: var(--_shadow-interact);
1791
+ }
1710
1792
  :where(.tui-interface) .tui-card .tui-stretched-link:focus {
1711
1793
  outline: none;
1712
1794
  }
@@ -1721,10 +1803,20 @@
1721
1803
  }
1722
1804
  :where(.tui-interface) .tui-card.is-style-elevated {
1723
1805
  box-shadow: var(--_shadow);
1724
- transition-property: border-color, color, background-color, box-shadow;
1725
1806
  }
1726
- :where(.tui-interface) .tui-card.is-style-elevated:hover {
1727
- box-shadow: var(--_shadow-interact);
1807
+ :where(.tui-interface) .tui-card.is-style-outline {
1808
+ --_bg: transparent;
1809
+ }
1810
+ :where(.tui-interface) .tui-card.is-style-ghost {
1811
+ --_bg: transparent;
1812
+ --_border: transparent;
1813
+ --_bg-interact: var(--tui-card-bg-interact, var(--tui-color-bg-muted));
1814
+ }
1815
+ :where(.tui-interface) .tui-card.is-style-seamless {
1816
+ --_bg: transparent;
1817
+ --_border: transparent;
1818
+ --_border-width: 0px;
1819
+ --_padding: 0px;
1728
1820
  }
1729
1821
  .tui-interface :is(.tui-inline-choice__control[type=checkbox],
1730
1822
  .tui-inline-choice input[type=checkbox]) {
@@ -47,12 +47,15 @@
47
47
  */
48
48
  /* @tui-tokens
49
49
  --tui-card-bg
50
+ --tui-card-bg-interact
50
51
  --tui-card-border
51
52
  --tui-card-border-width
52
53
  --tui-card-border-interact
54
+ --tui-card-border-active
53
55
  --tui-card-radius
54
56
  --tui-card-shadow
55
57
  --tui-card-shadow-interact
58
+ --tui-card-gap
56
59
  --tui-card-padding
57
60
  --tui-card-foot-basis
58
61
  */
@@ -590,11 +593,14 @@
590
593
  --tui-generative-pink-strong: oklch(0.82 0.1 350);
591
594
  /* UA chrome: native controls, scrollbars render in dark mode */
592
595
  color-scheme: dark;
593
- /* Backgrounds */
594
- --tui-color-bg: #111928;
595
- --tui-color-bg-surface: #202836;
596
+ /* Backgrounds — surface is the darkest (page canvas); bg (component faces)
597
+ and elevated sit a step above it, mirroring light (white faces on an
598
+ off-white surface). Previously bg/surface were inverted, so faces read
599
+ darker than the page behind them. */
600
+ --tui-color-bg: #202836;
601
+ --tui-color-bg-surface: #111928;
596
602
  --tui-color-bg-muted: #374151;
597
- --tui-color-bg-elevated: #111928;
603
+ --tui-color-bg-elevated: #202836;
598
604
  --tui-color-bg-inverted: #F9FAFB;
599
605
  --tui-color-bg-overlay: rgba(0, 0, 0, 0.7);
600
606
  /* Text */
@@ -624,23 +630,42 @@
624
630
  --tui-theme-secondary-subtlest: #202836;
625
631
  --tui-theme-secondary-subtle: #374151;
626
632
  --tui-theme-secondary-soft: #4B5563;
633
+ --tui-theme-secondary-base: #9CA3AF;
627
634
  --tui-theme-secondary-strong: #D1D5DB;
628
635
  --tui-theme-secondary-stronger: #E5E7EB;
629
636
  --tui-theme-secondary-strongest: #F3F4F6;
637
+ /* Success */
638
+ --tui-theme-success-subtlest: #003008;
639
+ --tui-theme-success-subtle: #00450c;
640
+ --tui-theme-success-soft: #008a20;
630
641
  --tui-theme-success-base: #00a32a;
631
642
  --tui-theme-success-strong: #00ba37;
632
643
  --tui-theme-success-stronger: #1ed14b;
633
644
  --tui-theme-success-strongest: #68de7c;
634
- --tui-theme-success-subtlest: #003008;
645
+ /* Info */
646
+ --tui-theme-info-subtlest: #090949;
647
+ --tui-theme-info-subtle: #101375;
648
+ --tui-theme-info-soft: #2942d1;
649
+ --tui-theme-info-base: #3858e9;
650
+ --tui-theme-info-strong: #5373f2;
651
+ --tui-theme-info-stronger: #7b93ff;
652
+ --tui-theme-info-strongest: #a0b5fe;
653
+ /* Warning */
654
+ --tui-theme-warning-subtlest: #362400;
655
+ --tui-theme-warning-subtle: #4a3200;
656
+ --tui-theme-warning-soft: #996800;
635
657
  --tui-theme-warning-base: #bd8600;
636
658
  --tui-theme-warning-strong: #dba617;
637
659
  --tui-theme-warning-stronger: #f0c33c;
638
- --tui-theme-warning-subtlest: #362400;
660
+ --tui-theme-warning-strongest: #f2d675;
661
+ /* Danger */
662
+ --tui-theme-danger-subtlest: #451313;
663
+ --tui-theme-danger-subtle: #691c1c;
664
+ --tui-theme-danger-soft: #d63638;
639
665
  --tui-theme-danger-base: #e65054;
640
666
  --tui-theme-danger-strong: #f86368;
641
667
  --tui-theme-danger-stronger: #ff8085;
642
668
  --tui-theme-danger-strongest: #ffabaf;
643
- --tui-theme-danger-subtlest: #451313;
644
669
  /* Focus ring - brighter for dark backgrounds */
645
670
  --tui-focus-ring-color: #3858e9;
646
671
  /* Shadows - more pronounced in dark mode */
@@ -681,11 +706,14 @@
681
706
  --tui-generative-pink-strong: oklch(0.82 0.1 350);
682
707
  /* UA chrome: native controls, scrollbars render in dark mode */
683
708
  color-scheme: dark;
684
- /* Backgrounds */
685
- --tui-color-bg: #111928;
686
- --tui-color-bg-surface: #202836;
709
+ /* Backgrounds — surface is the darkest (page canvas); bg (component faces)
710
+ and elevated sit a step above it, mirroring light (white faces on an
711
+ off-white surface). Previously bg/surface were inverted, so faces read
712
+ darker than the page behind them. */
713
+ --tui-color-bg: #202836;
714
+ --tui-color-bg-surface: #111928;
687
715
  --tui-color-bg-muted: #374151;
688
- --tui-color-bg-elevated: #111928;
716
+ --tui-color-bg-elevated: #202836;
689
717
  --tui-color-bg-inverted: #F9FAFB;
690
718
  --tui-color-bg-overlay: rgba(0, 0, 0, 0.7);
691
719
  /* Text */
@@ -715,23 +743,42 @@
715
743
  --tui-theme-secondary-subtlest: #202836;
716
744
  --tui-theme-secondary-subtle: #374151;
717
745
  --tui-theme-secondary-soft: #4B5563;
746
+ --tui-theme-secondary-base: #9CA3AF;
718
747
  --tui-theme-secondary-strong: #D1D5DB;
719
748
  --tui-theme-secondary-stronger: #E5E7EB;
720
749
  --tui-theme-secondary-strongest: #F3F4F6;
750
+ /* Success */
751
+ --tui-theme-success-subtlest: #003008;
752
+ --tui-theme-success-subtle: #00450c;
753
+ --tui-theme-success-soft: #008a20;
721
754
  --tui-theme-success-base: #00a32a;
722
755
  --tui-theme-success-strong: #00ba37;
723
756
  --tui-theme-success-stronger: #1ed14b;
724
757
  --tui-theme-success-strongest: #68de7c;
725
- --tui-theme-success-subtlest: #003008;
758
+ /* Info */
759
+ --tui-theme-info-subtlest: #090949;
760
+ --tui-theme-info-subtle: #101375;
761
+ --tui-theme-info-soft: #2942d1;
762
+ --tui-theme-info-base: #3858e9;
763
+ --tui-theme-info-strong: #5373f2;
764
+ --tui-theme-info-stronger: #7b93ff;
765
+ --tui-theme-info-strongest: #a0b5fe;
766
+ /* Warning */
767
+ --tui-theme-warning-subtlest: #362400;
768
+ --tui-theme-warning-subtle: #4a3200;
769
+ --tui-theme-warning-soft: #996800;
726
770
  --tui-theme-warning-base: #bd8600;
727
771
  --tui-theme-warning-strong: #dba617;
728
772
  --tui-theme-warning-stronger: #f0c33c;
729
- --tui-theme-warning-subtlest: #362400;
773
+ --tui-theme-warning-strongest: #f2d675;
774
+ /* Danger */
775
+ --tui-theme-danger-subtlest: #451313;
776
+ --tui-theme-danger-subtle: #691c1c;
777
+ --tui-theme-danger-soft: #d63638;
730
778
  --tui-theme-danger-base: #e65054;
731
779
  --tui-theme-danger-strong: #f86368;
732
780
  --tui-theme-danger-stronger: #ff8085;
733
781
  --tui-theme-danger-strongest: #ffabaf;
734
- --tui-theme-danger-subtlest: #451313;
735
782
  /* Focus ring - brighter for dark backgrounds */
736
783
  --tui-focus-ring-color: #3858e9;
737
784
  /* Shadows - more pronounced in dark mode */
@@ -1572,7 +1619,9 @@
1572
1619
  --_radius: var(--tui-card-radius, var(--tui-radius-md));
1573
1620
  --_shadow: var(--tui-card-shadow, var(--tui-shadow-sm));
1574
1621
  --_shadow-interact: var(--tui-card-shadow-interact, var(--tui-shadow-md));
1622
+ --_bg-interact: var(--tui-card-bg-interact, var(--_bg));
1575
1623
  --_padding: var(--tui-card-padding, var(--tui-spacing-lg));
1624
+ --_gap: var(--tui-card-gap, var(--tui-spacing-lg));
1576
1625
  --_foot-basis: var(--tui-card-foot-basis, 500px);
1577
1626
  container-type: inline-size;
1578
1627
  container-name: tuiCard;
@@ -1592,20 +1641,31 @@
1592
1641
  }
1593
1642
  :where(.tui-interface) .tui-card .tui-card__media.is-flush {
1594
1643
  margin-inline: calc(var(--_padding) * -1);
1644
+ max-width: 100%;
1595
1645
  max-width: calc(100% + 2 * var(--_padding));
1596
1646
  border-radius: 0;
1597
1647
  }
1598
1648
  :where(.tui-interface) .tui-card__head {
1599
- padding-block: var(--_padding);
1649
+ padding-block: var(--_gap);
1600
1650
  padding-inline: var(--_padding);
1601
1651
  width: 100%;
1602
1652
  }
1653
+ :where(.tui-interface) .tui-card__head:first-child {
1654
+ padding-block-start: var(--_padding);
1655
+ }
1656
+ :where(.tui-interface) .tui-card__head:last-child {
1657
+ padding-block-end: var(--_padding);
1658
+ }
1659
+ :where(.tui-interface) .tui-card__head:not(:first-child) {
1660
+ padding-block-start: unset;
1661
+ }
1603
1662
  :where(.tui-interface) .tui-card__head .tui-card__media.is-flush:first-child {
1604
1663
  margin-block-start: calc(var(--_padding) * -1);
1605
- border-start-end-radius: calc(var(--_radius) - 1px);
1606
- border-start-start-radius: calc(var(--_radius) - 1px);
1664
+ border-start-end-radius: calc(var(--_radius) - var(--_border-width));
1665
+ border-start-start-radius: calc(var(--_radius) - var(--_border-width));
1607
1666
  }
1608
1667
  :where(.tui-interface) .tui-card__body {
1668
+ padding-block: var(--_gap);
1609
1669
  padding-inline: var(--_padding);
1610
1670
  width: 100%;
1611
1671
  }
@@ -1624,15 +1684,27 @@
1624
1684
  :where(.tui-interface) .tui-card__body:last-child {
1625
1685
  padding-block-end: var(--_padding);
1626
1686
  }
1687
+ :where(.tui-interface) .tui-card__body:not(:first-child) {
1688
+ padding-block-start: unset;
1689
+ }
1627
1690
  :where(.tui-interface) .tui-card__foot {
1628
- padding-block: var(--_padding);
1691
+ padding-block: var(--_gap);
1629
1692
  padding-inline: var(--_padding);
1630
1693
  width: 100%;
1631
1694
  }
1695
+ :where(.tui-interface) .tui-card__foot:first-child {
1696
+ padding-block-start: var(--_padding);
1697
+ }
1698
+ :where(.tui-interface) .tui-card__foot:last-child {
1699
+ padding-block-end: var(--_padding);
1700
+ }
1701
+ :where(.tui-interface) .tui-card__foot:not(:first-child) {
1702
+ padding-block-start: unset;
1703
+ }
1632
1704
  :where(.tui-interface) .tui-card__foot .tui-card__media.is-flush:last-child {
1633
1705
  margin-block-end: calc(var(--_padding) * -1);
1634
- border-end-end-radius: calc(var(--_radius) - 1px);
1635
- border-end-start-radius: calc(var(--_radius) - 1px);
1706
+ border-end-end-radius: calc(var(--_radius) - var(--_border-width));
1707
+ border-end-start-radius: calc(var(--_radius) - var(--_border-width));
1636
1708
  }
1637
1709
  @container tuiCard (width >= 400px) {
1638
1710
  :where(:where(.tui-interface) .tui-card.is-layout-inline) .tui-card__inner {
@@ -1660,9 +1732,10 @@
1660
1732
  }
1661
1733
  :where(:where(.tui-interface) .tui-card.is-layout-inline) .tui-card__inner .tui-card__head .tui-card__media.is-flush:first-child {
1662
1734
  margin-inline-end: var(--_padding);
1735
+ max-width: 100%;
1663
1736
  max-width: calc(100% + var(--_padding));
1664
1737
  border-start-end-radius: 0;
1665
- border-end-start-radius: calc(var(--_radius) - 1px);
1738
+ border-end-start-radius: calc(var(--_radius) - var(--_border-width));
1666
1739
  }
1667
1740
  :where(:where(.tui-interface) .tui-card.is-layout-inline) .tui-card__inner .tui-card__body {
1668
1741
  flex: 2 1 auto;
@@ -1678,9 +1751,10 @@
1678
1751
  }
1679
1752
  :where(:where(.tui-interface) .tui-card.is-layout-inline) .tui-card__inner .tui-card__foot .tui-card__media.is-flush:last-child {
1680
1753
  margin-inline-start: var(--_padding);
1754
+ max-width: 100%;
1681
1755
  max-width: calc(100% + var(--_padding));
1682
1756
  border-end-start-radius: 0;
1683
- border-start-end-radius: calc(var(--_radius) - 1px);
1757
+ border-start-end-radius: calc(var(--_radius) - var(--_border-width));
1684
1758
  }
1685
1759
  :where(:where(.tui-interface) .tui-card.is-layout-inline) .tui-card__inner .tui-card__head:not(:first-child),
1686
1760
  :where(:where(.tui-interface) .tui-card.is-layout-inline) .tui-card__inner .tui-card__body:not(:first-child),
@@ -1700,13 +1774,21 @@
1700
1774
  }
1701
1775
  :where(.tui-interface) .tui-card.has-interaction:hover {
1702
1776
  --_border: var(--_border-interact);
1777
+ background-color: var(--_bg-interact);
1703
1778
  }
1704
1779
  :where(.tui-interface) .tui-card.has-interaction:focus-visible, :where(.tui-interface) .tui-card.has-interaction:has(:focus-visible) {
1705
1780
  --_border: var(--_border-interact);
1781
+ background-color: var(--_bg-interact);
1706
1782
  }
1707
1783
  :where(.tui-interface) .tui-card.has-interaction:active, :where(.tui-interface) .tui-card.has-interaction.active {
1708
1784
  --_border: var(--tui-card-border-active, var(--tui-theme-primary-soft));
1709
1785
  }
1786
+ :where(.tui-interface) .tui-card.has-interaction.is-style-elevated {
1787
+ transition-property: border-color, color, background-color, box-shadow;
1788
+ }
1789
+ :where(.tui-interface) .tui-card.has-interaction.is-style-elevated:hover {
1790
+ box-shadow: var(--_shadow-interact);
1791
+ }
1710
1792
  :where(.tui-interface) .tui-card .tui-stretched-link:focus {
1711
1793
  outline: none;
1712
1794
  }
@@ -1721,10 +1803,20 @@
1721
1803
  }
1722
1804
  :where(.tui-interface) .tui-card.is-style-elevated {
1723
1805
  box-shadow: var(--_shadow);
1724
- transition-property: border-color, color, background-color, box-shadow;
1725
1806
  }
1726
- :where(.tui-interface) .tui-card.is-style-elevated:hover {
1727
- box-shadow: var(--_shadow-interact);
1807
+ :where(.tui-interface) .tui-card.is-style-outline {
1808
+ --_bg: transparent;
1809
+ }
1810
+ :where(.tui-interface) .tui-card.is-style-ghost {
1811
+ --_bg: transparent;
1812
+ --_border: transparent;
1813
+ --_bg-interact: var(--tui-card-bg-interact, var(--tui-color-bg-muted));
1814
+ }
1815
+ :where(.tui-interface) .tui-card.is-style-seamless {
1816
+ --_bg: transparent;
1817
+ --_border: transparent;
1818
+ --_border-width: 0px;
1819
+ --_padding: 0px;
1728
1820
  }
1729
1821
  .tui-interface :is(.tui-inline-choice__control[type=checkbox],
1730
1822
  .tui-inline-choice input[type=checkbox]) {