@helvetia-design/styles 0.1.0-snapshot.332-4b8089f → 0.2.0

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.
@@ -2,7 +2,7 @@
2
2
  /*!
3
3
  * Helvetia Design System — Full Bundle (Foundation + Components)
4
4
  * @package @helvetia-design/styles
5
- * @version 0.1.0-snapshot.332-4b8089f
5
+ * @version 0.2.0
6
6
  * @license Apache-2.0
7
7
  * @copyright Copyright © 2026 Helvetia
8
8
  * @homepage https://baloise-design-system.vercel.app
@@ -1539,8 +1539,25 @@ fieldset[disabled] .ds-button > ds-spinner.is-circle, fieldset[disabled] .ds-but
1539
1539
  * @prop --link-underline-offset - Offset of the underline from text baseline.
1540
1540
  * @prop --link-focus - Focus ring color.
1541
1541
  */
1542
+ .ds-content > a:-moz-any-link:not(.ds-button) {
1543
+ --_link-focus: var(--link-focus, var(--mod-link-focus, var(--ds-alias-interaction-focus-color-base)));
1544
+ --_link-color: var(--link-color, var(--mod-link-color, var(--ds-link-primary-base)));
1545
+ --_link-color-hover: var(--link-color-hover, var(--mod-link-color-hover, var(--ds-link-primary-hover)));
1546
+ --_link-color-active: var(--link-color-active, var(--mod-link-color-active, var(--ds-link-primary-active)));
1547
+ --_link-font-family: var(--link-font-family, var(--mod-link-font-family, var(--ds-link-typo-font-family)));
1548
+ --_link-font-size: var(--link-font-size, var(--mod-link-font-size, var(--ds-link-typo-font-size)));
1549
+ --_link-font-weight: var(--link-font-weight, var(--mod-link-font-weight, var(--ds-link-typo-font-weight)));
1550
+ --_link-line-height: var(--link-line-height, var(--mod-link-line-height, var(--ds-link-typo-line-height)));
1551
+ --_link-letter-spacing: var(--link-letter-spacing, var(--mod-link-letter-spacing, var(--ds-link-typo-letter-spacing)));
1552
+ --_link-text-decoration: var(--link-text-decoration, var(--mod-link-text-decoration, var(--ds-link-typo-text-decoration)));
1553
+ --_link-text-transform: var(--link-text-transform, var(--mod-link-text-transform, var(--ds-link-typo-text-transform)));
1554
+ --_link-underline-width: var(--link-underline-width, var(--mod-link-underline-width, var(--ds-link-underline-width)));
1555
+ --_link-underline-offset: var(--link-underline-offset, var(--mod-link-underline-offset, var(--ds-link-underline-offset, 0.25rem)));
1556
+ --_link-radius: var(--link-radius, var(--mod-link-radius, var(--ds-alias-radius-base)));
1557
+ }
1542
1558
  a.ds-link:not(.ds-button),
1543
- a.is-link:not(.ds-button) {
1559
+ a.is-link:not(.ds-button),
1560
+ .ds-content > a:any-link:not(.ds-button) {
1544
1561
  --_link-focus: var(--link-focus, var(--mod-link-focus, var(--ds-alias-interaction-focus-color-base)));
1545
1562
  --_link-color: var(--link-color, var(--mod-link-color, var(--ds-link-primary-base)));
1546
1563
  --_link-color-hover: var(--link-color-hover, var(--mod-link-color-hover, var(--ds-link-primary-hover)));
@@ -5627,6 +5644,18 @@ hr.is-dashed.is-vertical, .ds-divider.is-dashed.is-vertical {
5627
5644
  * @variant gap-2xl - Sets the column gap to the 2xl spacing token.
5628
5645
  * @variant gap-3xl - Sets the column gap to the 3xl spacing token.
5629
5646
  * @variant gap-4xl - Sets the column gap to the 4xl spacing token.
5647
+ * @variant row-gap-none - Sets the row gap to the none spacing token.
5648
+ * @variant row-gap-3xs - Sets the row gap to the 3xs spacing token.
5649
+ * @variant row-gap-2xs - Sets the row gap to the 2xs spacing token.
5650
+ * @variant row-gap-xs - Sets the row gap to the xs spacing token.
5651
+ * @variant row-gap-sm - Sets the row gap to the sm spacing token.
5652
+ * @variant row-gap-base - Sets the row gap to the base spacing token.
5653
+ * @variant row-gap-md - Sets the row gap to the md spacing token.
5654
+ * @variant row-gap-lg - Sets the row gap to the lg spacing token.
5655
+ * @variant row-gap-xl - Sets the row gap to the xl spacing token.
5656
+ * @variant row-gap-2xl - Sets the row gap to the 2xl spacing token.
5657
+ * @variant row-gap-3xl - Sets the row gap to the 3xl spacing token.
5658
+ * @variant row-gap-4xl - Sets the row gap to the 4xl spacing token.
5630
5659
  */
5631
5660
  /**
5632
5661
  * Variables
@@ -5635,9 +5664,11 @@ hr.is-dashed.is-vertical, .ds-divider.is-dashed.is-vertical {
5635
5664
  * These variables can be used in the component styles below and later on be overridden in themes.
5636
5665
  *
5637
5666
  * @prop --ds-column-gap - Gap between grid columns, applied as padding on columns and negative margin on the grid.
5667
+ * @prop --ds-row-gap - Gap between grid rows (stacked columns); falls back to --ds-column-gap when unset.
5638
5668
  */
5639
5669
  .ds-grid {
5640
5670
  --ds-column-gap: 1rem;
5671
+ --ds-row-gap: initial;
5641
5672
  }
5642
5673
 
5643
5674
  .ds-grid {
@@ -5651,7 +5682,7 @@ hr.is-dashed.is-vertical, .ds-divider.is-dashed.is-vertical {
5651
5682
  flex-basis: 0;
5652
5683
  flex-grow: 1;
5653
5684
  flex-shrink: 1;
5654
- padding: var(--ds-column-gap);
5685
+ padding: var(--ds-row-gap, var(--ds-column-gap)) var(--ds-column-gap);
5655
5686
  }
5656
5687
  .ds-grid.is-mobile > .ds-col.is-narrow {
5657
5688
  flex: none;
@@ -6803,13 +6834,13 @@ hr.is-dashed.is-vertical, .ds-divider.is-dashed.is-vertical {
6803
6834
  .ds-grid {
6804
6835
  margin-left: calc(var(--ds-column-gap) * -1);
6805
6836
  margin-right: calc(var(--ds-column-gap) * -1);
6806
- margin-top: calc(var(--ds-column-gap) * -1);
6837
+ margin-top: calc(var(--ds-row-gap, var(--ds-column-gap)) * -1);
6807
6838
  }
6808
6839
  .ds-grid:last-child {
6809
- margin-bottom: calc(var(--ds-column-gap) * -1);
6840
+ margin-bottom: calc(var(--ds-row-gap, var(--ds-column-gap)) * -1);
6810
6841
  }
6811
6842
  .ds-grid:not(:last-child) {
6812
- margin-bottom: calc(1.5rem - var(--ds-column-gap));
6843
+ margin-bottom: calc(1.5rem - var(--ds-row-gap, var(--ds-column-gap)));
6813
6844
  }
6814
6845
  .ds-grid.is-centered {
6815
6846
  justify-content: center;
@@ -6912,6 +6943,61 @@ hr.is-dashed.is-vertical, .ds-divider.is-dashed.is-vertical {
6912
6943
  gap: 0 !important;
6913
6944
  }
6914
6945
 
6946
+ /**
6947
+ * Row gap size utilities
6948
+ * --------------------------------
6949
+ * Override --ds-row-gap; `row-gap: 0 !important` cancels the shared `.row-gap-*` utility
6950
+ * for the same reason as `gap-*` above.
6951
+ */
6952
+ .ds-grid.row-gap-none {
6953
+ --ds-row-gap: calc(var(--ds-device-space-none) / 2);
6954
+ row-gap: 0 !important;
6955
+ }
6956
+ .ds-grid.row-gap-3xs {
6957
+ --ds-row-gap: calc(var(--ds-device-space-3xs) / 2);
6958
+ row-gap: 0 !important;
6959
+ }
6960
+ .ds-grid.row-gap-2xs {
6961
+ --ds-row-gap: calc(var(--ds-device-space-2xs) / 2);
6962
+ row-gap: 0 !important;
6963
+ }
6964
+ .ds-grid.row-gap-xs {
6965
+ --ds-row-gap: calc(var(--ds-device-space-xs) / 2);
6966
+ row-gap: 0 !important;
6967
+ }
6968
+ .ds-grid.row-gap-sm {
6969
+ --ds-row-gap: calc(var(--ds-device-space-sm) / 2);
6970
+ row-gap: 0 !important;
6971
+ }
6972
+ .ds-grid.row-gap-base {
6973
+ --ds-row-gap: calc(var(--ds-device-space-base) / 2);
6974
+ row-gap: 0 !important;
6975
+ }
6976
+ .ds-grid.row-gap-md {
6977
+ --ds-row-gap: calc(var(--ds-device-space-md) / 2);
6978
+ row-gap: 0 !important;
6979
+ }
6980
+ .ds-grid.row-gap-lg {
6981
+ --ds-row-gap: calc(var(--ds-device-space-lg) / 2);
6982
+ row-gap: 0 !important;
6983
+ }
6984
+ .ds-grid.row-gap-xl {
6985
+ --ds-row-gap: calc(var(--ds-device-space-xl) / 2);
6986
+ row-gap: 0 !important;
6987
+ }
6988
+ .ds-grid.row-gap-2xl {
6989
+ --ds-row-gap: calc(var(--ds-device-space-2xl) / 2);
6990
+ row-gap: 0 !important;
6991
+ }
6992
+ .ds-grid.row-gap-3xl {
6993
+ --ds-row-gap: calc(var(--ds-device-space-3xl) / 2);
6994
+ row-gap: 0 !important;
6995
+ }
6996
+ .ds-grid.row-gap-4xl {
6997
+ --ds-row-gap: calc(var(--ds-device-space-4xl) / 2);
6998
+ row-gap: 0 !important;
6999
+ }
7000
+
6915
7001
  /**
6916
7002
  * Variables
6917
7003
  * --------------------------------
@@ -9082,6 +9168,11 @@ ds-item [slot=content] {
9082
9168
  align-items: flex-end;
9083
9169
  justify-content: flex-end;
9084
9170
  }
9171
+ .ds-stack.align-stretch,
9172
+ .ds-stack-content.align-stretch {
9173
+ justify-content: flex-start;
9174
+ align-items: stretch;
9175
+ }
9085
9176
 
9086
9177
  /**
9087
9178
  * Text Alignment for stack-content
@@ -2,12 +2,41 @@
2
2
  /*!
3
3
  * Helvetia Design System — Full Bundle — Local Dev (Fonts + Foundation + Components)
4
4
  * @package @helvetia-design/styles
5
- * @version 0.1.0-snapshot.332-4b8089f
5
+ * @version 0.2.0
6
6
  * @license Apache-2.0
7
7
  * @copyright Copyright © 2026 Helvetia
8
8
  * @homepage https://baloise-design-system.vercel.app
9
9
  * @repository git+https://github.com/helvetia-design/system.git
10
10
  */
11
+ @font-face {
12
+ font-family: "Baloise Create Headline";
13
+ font-style: normal;
14
+ font-weight: 700;
15
+ font-display: swap;
16
+ src: local("BaloiseCreateHeadline"), local("BaloiseCreateHeadline-bold"), url("/assets/fonts/BaloiseCreateHeadline-bold.woff2") format("woff2"), url("/assets/fonts/BaloiseCreateHeadline-bold.woff") format("woff");
17
+ }
18
+ @font-face {
19
+ font-family: "Baloise Create Headline";
20
+ font-style: normal;
21
+ font-weight: 300;
22
+ font-display: swap;
23
+ src: local("BaloiseCreateHeadline-light"), url("/assets/fonts/BaloiseCreateHeadline-light.woff2") format("woff2"), url("/assets/fonts/BaloiseCreateHeadline-light.woff") format("woff");
24
+ }
25
+ @font-face {
26
+ font-family: "Baloise Create Text";
27
+ font-style: normal;
28
+ font-weight: 700;
29
+ font-display: swap;
30
+ src: local("BaloiseCreateText-bold"), url("/assets/fonts/BaloiseCreateText-bold.woff2") format("woff2"), url("/assets/fonts/BaloiseCreateText-bold.woff") format("woff");
31
+ }
32
+ @font-face {
33
+ font-family: "Baloise Create Text";
34
+ font-style: normal;
35
+ font-weight: 400;
36
+ font-display: swap;
37
+ src: local("BaloiseCreateText"), local("BaloiseCreateText-regular"), url("/assets/fonts/BaloiseCreateText-regular.woff2") format("woff2"), url("/assets/fonts/BaloiseCreateText-regular.woff") format("woff");
38
+ }
39
+ /* Deprecated: legacy no-space family names, kept so apps that hardcode them keep working. Remove in next major. */
11
40
  @font-face {
12
41
  font-family: BaloiseCreateHeadline;
13
42
  font-style: normal;
@@ -1567,8 +1596,25 @@ fieldset[disabled] .ds-button > ds-spinner.is-circle, fieldset[disabled] .ds-but
1567
1596
  * @prop --link-underline-offset - Offset of the underline from text baseline.
1568
1597
  * @prop --link-focus - Focus ring color.
1569
1598
  */
1599
+ .ds-content > a:-moz-any-link:not(.ds-button) {
1600
+ --_link-focus: var(--link-focus, var(--mod-link-focus, var(--ds-alias-interaction-focus-color-base)));
1601
+ --_link-color: var(--link-color, var(--mod-link-color, var(--ds-link-primary-base)));
1602
+ --_link-color-hover: var(--link-color-hover, var(--mod-link-color-hover, var(--ds-link-primary-hover)));
1603
+ --_link-color-active: var(--link-color-active, var(--mod-link-color-active, var(--ds-link-primary-active)));
1604
+ --_link-font-family: var(--link-font-family, var(--mod-link-font-family, var(--ds-link-typo-font-family)));
1605
+ --_link-font-size: var(--link-font-size, var(--mod-link-font-size, var(--ds-link-typo-font-size)));
1606
+ --_link-font-weight: var(--link-font-weight, var(--mod-link-font-weight, var(--ds-link-typo-font-weight)));
1607
+ --_link-line-height: var(--link-line-height, var(--mod-link-line-height, var(--ds-link-typo-line-height)));
1608
+ --_link-letter-spacing: var(--link-letter-spacing, var(--mod-link-letter-spacing, var(--ds-link-typo-letter-spacing)));
1609
+ --_link-text-decoration: var(--link-text-decoration, var(--mod-link-text-decoration, var(--ds-link-typo-text-decoration)));
1610
+ --_link-text-transform: var(--link-text-transform, var(--mod-link-text-transform, var(--ds-link-typo-text-transform)));
1611
+ --_link-underline-width: var(--link-underline-width, var(--mod-link-underline-width, var(--ds-link-underline-width)));
1612
+ --_link-underline-offset: var(--link-underline-offset, var(--mod-link-underline-offset, var(--ds-link-underline-offset, 0.25rem)));
1613
+ --_link-radius: var(--link-radius, var(--mod-link-radius, var(--ds-alias-radius-base)));
1614
+ }
1570
1615
  a.ds-link:not(.ds-button),
1571
- a.is-link:not(.ds-button) {
1616
+ a.is-link:not(.ds-button),
1617
+ .ds-content > a:any-link:not(.ds-button) {
1572
1618
  --_link-focus: var(--link-focus, var(--mod-link-focus, var(--ds-alias-interaction-focus-color-base)));
1573
1619
  --_link-color: var(--link-color, var(--mod-link-color, var(--ds-link-primary-base)));
1574
1620
  --_link-color-hover: var(--link-color-hover, var(--mod-link-color-hover, var(--ds-link-primary-hover)));
@@ -5655,6 +5701,18 @@ hr.is-dashed.is-vertical, .ds-divider.is-dashed.is-vertical {
5655
5701
  * @variant gap-2xl - Sets the column gap to the 2xl spacing token.
5656
5702
  * @variant gap-3xl - Sets the column gap to the 3xl spacing token.
5657
5703
  * @variant gap-4xl - Sets the column gap to the 4xl spacing token.
5704
+ * @variant row-gap-none - Sets the row gap to the none spacing token.
5705
+ * @variant row-gap-3xs - Sets the row gap to the 3xs spacing token.
5706
+ * @variant row-gap-2xs - Sets the row gap to the 2xs spacing token.
5707
+ * @variant row-gap-xs - Sets the row gap to the xs spacing token.
5708
+ * @variant row-gap-sm - Sets the row gap to the sm spacing token.
5709
+ * @variant row-gap-base - Sets the row gap to the base spacing token.
5710
+ * @variant row-gap-md - Sets the row gap to the md spacing token.
5711
+ * @variant row-gap-lg - Sets the row gap to the lg spacing token.
5712
+ * @variant row-gap-xl - Sets the row gap to the xl spacing token.
5713
+ * @variant row-gap-2xl - Sets the row gap to the 2xl spacing token.
5714
+ * @variant row-gap-3xl - Sets the row gap to the 3xl spacing token.
5715
+ * @variant row-gap-4xl - Sets the row gap to the 4xl spacing token.
5658
5716
  */
5659
5717
  /**
5660
5718
  * Variables
@@ -5663,9 +5721,11 @@ hr.is-dashed.is-vertical, .ds-divider.is-dashed.is-vertical {
5663
5721
  * These variables can be used in the component styles below and later on be overridden in themes.
5664
5722
  *
5665
5723
  * @prop --ds-column-gap - Gap between grid columns, applied as padding on columns and negative margin on the grid.
5724
+ * @prop --ds-row-gap - Gap between grid rows (stacked columns); falls back to --ds-column-gap when unset.
5666
5725
  */
5667
5726
  .ds-grid {
5668
5727
  --ds-column-gap: 1rem;
5728
+ --ds-row-gap: initial;
5669
5729
  }
5670
5730
 
5671
5731
  .ds-grid {
@@ -5679,7 +5739,7 @@ hr.is-dashed.is-vertical, .ds-divider.is-dashed.is-vertical {
5679
5739
  flex-basis: 0;
5680
5740
  flex-grow: 1;
5681
5741
  flex-shrink: 1;
5682
- padding: var(--ds-column-gap);
5742
+ padding: var(--ds-row-gap, var(--ds-column-gap)) var(--ds-column-gap);
5683
5743
  }
5684
5744
  .ds-grid.is-mobile > .ds-col.is-narrow {
5685
5745
  flex: none;
@@ -6831,13 +6891,13 @@ hr.is-dashed.is-vertical, .ds-divider.is-dashed.is-vertical {
6831
6891
  .ds-grid {
6832
6892
  margin-left: calc(var(--ds-column-gap) * -1);
6833
6893
  margin-right: calc(var(--ds-column-gap) * -1);
6834
- margin-top: calc(var(--ds-column-gap) * -1);
6894
+ margin-top: calc(var(--ds-row-gap, var(--ds-column-gap)) * -1);
6835
6895
  }
6836
6896
  .ds-grid:last-child {
6837
- margin-bottom: calc(var(--ds-column-gap) * -1);
6897
+ margin-bottom: calc(var(--ds-row-gap, var(--ds-column-gap)) * -1);
6838
6898
  }
6839
6899
  .ds-grid:not(:last-child) {
6840
- margin-bottom: calc(1.5rem - var(--ds-column-gap));
6900
+ margin-bottom: calc(1.5rem - var(--ds-row-gap, var(--ds-column-gap)));
6841
6901
  }
6842
6902
  .ds-grid.is-centered {
6843
6903
  justify-content: center;
@@ -6940,6 +7000,61 @@ hr.is-dashed.is-vertical, .ds-divider.is-dashed.is-vertical {
6940
7000
  gap: 0 !important;
6941
7001
  }
6942
7002
 
7003
+ /**
7004
+ * Row gap size utilities
7005
+ * --------------------------------
7006
+ * Override --ds-row-gap; `row-gap: 0 !important` cancels the shared `.row-gap-*` utility
7007
+ * for the same reason as `gap-*` above.
7008
+ */
7009
+ .ds-grid.row-gap-none {
7010
+ --ds-row-gap: calc(var(--ds-device-space-none) / 2);
7011
+ row-gap: 0 !important;
7012
+ }
7013
+ .ds-grid.row-gap-3xs {
7014
+ --ds-row-gap: calc(var(--ds-device-space-3xs) / 2);
7015
+ row-gap: 0 !important;
7016
+ }
7017
+ .ds-grid.row-gap-2xs {
7018
+ --ds-row-gap: calc(var(--ds-device-space-2xs) / 2);
7019
+ row-gap: 0 !important;
7020
+ }
7021
+ .ds-grid.row-gap-xs {
7022
+ --ds-row-gap: calc(var(--ds-device-space-xs) / 2);
7023
+ row-gap: 0 !important;
7024
+ }
7025
+ .ds-grid.row-gap-sm {
7026
+ --ds-row-gap: calc(var(--ds-device-space-sm) / 2);
7027
+ row-gap: 0 !important;
7028
+ }
7029
+ .ds-grid.row-gap-base {
7030
+ --ds-row-gap: calc(var(--ds-device-space-base) / 2);
7031
+ row-gap: 0 !important;
7032
+ }
7033
+ .ds-grid.row-gap-md {
7034
+ --ds-row-gap: calc(var(--ds-device-space-md) / 2);
7035
+ row-gap: 0 !important;
7036
+ }
7037
+ .ds-grid.row-gap-lg {
7038
+ --ds-row-gap: calc(var(--ds-device-space-lg) / 2);
7039
+ row-gap: 0 !important;
7040
+ }
7041
+ .ds-grid.row-gap-xl {
7042
+ --ds-row-gap: calc(var(--ds-device-space-xl) / 2);
7043
+ row-gap: 0 !important;
7044
+ }
7045
+ .ds-grid.row-gap-2xl {
7046
+ --ds-row-gap: calc(var(--ds-device-space-2xl) / 2);
7047
+ row-gap: 0 !important;
7048
+ }
7049
+ .ds-grid.row-gap-3xl {
7050
+ --ds-row-gap: calc(var(--ds-device-space-3xl) / 2);
7051
+ row-gap: 0 !important;
7052
+ }
7053
+ .ds-grid.row-gap-4xl {
7054
+ --ds-row-gap: calc(var(--ds-device-space-4xl) / 2);
7055
+ row-gap: 0 !important;
7056
+ }
7057
+
6943
7058
  /**
6944
7059
  * Variables
6945
7060
  * --------------------------------
@@ -9110,6 +9225,11 @@ ds-item [slot=content] {
9110
9225
  align-items: flex-end;
9111
9226
  justify-content: flex-end;
9112
9227
  }
9228
+ .ds-stack.align-stretch,
9229
+ .ds-stack-content.align-stretch {
9230
+ justify-content: flex-start;
9231
+ align-items: stretch;
9232
+ }
9113
9233
 
9114
9234
  /**
9115
9235
  * Text Alignment for stack-content