@salt-ds/theme 1.14.0 → 1.15.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.
- package/css/global.css +1 -1
- package/css/theme.css +22 -13
- package/index.css +23 -14
- package/package.json +1 -1
package/css/global.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* css/global.css */
|
|
2
2
|
.salt-theme {
|
|
3
3
|
color: var(--salt-content-primary-foreground);
|
|
4
|
-
font-family: var(--salt-
|
|
4
|
+
font-family: var(--salt-text-fontFamily);
|
|
5
5
|
font-size: var(--salt-text-fontSize);
|
|
6
6
|
letter-spacing: var(--salt-text-letterSpacing);
|
|
7
7
|
line-height: var(--salt-text-lineHeight);
|
package/css/theme.css
CHANGED
|
@@ -434,8 +434,8 @@
|
|
|
434
434
|
|
|
435
435
|
/* css/foundations/typography.css */
|
|
436
436
|
.salt-theme {
|
|
437
|
-
--salt-typography-fontFamily: "Open Sans";
|
|
438
|
-
--salt-typography-fontFamily-
|
|
437
|
+
--salt-typography-fontFamily-openSans: "Open Sans";
|
|
438
|
+
--salt-typography-fontFamily-ptMono: "PT Mono";
|
|
439
439
|
--salt-typography-fontWeight-light: 300;
|
|
440
440
|
--salt-typography-fontWeight-regular: 400;
|
|
441
441
|
--salt-typography-fontWeight-medium: 500;
|
|
@@ -689,6 +689,13 @@
|
|
|
689
689
|
--salt-palette-success-foreground: var(--salt-color-green-400);
|
|
690
690
|
}
|
|
691
691
|
|
|
692
|
+
/* css/palette/text.css */
|
|
693
|
+
.salt-theme {
|
|
694
|
+
--salt-palette-text-fontFamily: var(--salt-typography-fontFamily-openSans);
|
|
695
|
+
--salt-palette-text-fontFamily-heading: var(--salt-typography-fontFamily-openSans);
|
|
696
|
+
--salt-palette-text-fontFamily-code: var(--salt-typography-fontFamily-ptMono);
|
|
697
|
+
}
|
|
698
|
+
|
|
692
699
|
/* css/palette/warning.css */
|
|
693
700
|
.salt-theme[data-mode=light] {
|
|
694
701
|
--salt-palette-warning-background: var(--salt-color-orange-10);
|
|
@@ -926,47 +933,47 @@
|
|
|
926
933
|
--salt-text-action-textTransform: uppercase;
|
|
927
934
|
--salt-text-action-textAlign: center;
|
|
928
935
|
--salt-text-action-fontWeight: var(--salt-typography-fontWeight-semiBold);
|
|
929
|
-
--salt-text-fontFamily: var(--salt-
|
|
936
|
+
--salt-text-fontFamily: var(--salt-palette-text-fontFamily);
|
|
930
937
|
--salt-text-fontWeight: var(--salt-typography-fontWeight-regular);
|
|
931
938
|
--salt-text-fontWeight-small: var(--salt-typography-fontWeight-light);
|
|
932
939
|
--salt-text-fontWeight-strong: var(--salt-typography-fontWeight-semiBold);
|
|
933
|
-
--salt-text-notation-fontFamily: var(--salt-
|
|
940
|
+
--salt-text-notation-fontFamily: var(--salt-palette-text-fontFamily);
|
|
934
941
|
--salt-text-notation-fontWeight: var(--salt-typography-fontWeight-semiBold);
|
|
935
942
|
--salt-text-notation-fontWeight-small: var(--salt-typography-fontWeight-regular);
|
|
936
943
|
--salt-text-notation-fontWeight-strong: var(--salt-typography-fontWeight-bold);
|
|
937
|
-
--salt-text-h1-fontFamily: var(--salt-
|
|
944
|
+
--salt-text-h1-fontFamily: var(--salt-palette-text-fontFamily-heading);
|
|
938
945
|
--salt-text-h1-fontWeight: var(--salt-typography-fontWeight-bold);
|
|
939
946
|
--salt-text-h1-fontWeight-small: var(--salt-typography-fontWeight-medium);
|
|
940
947
|
--salt-text-h1-fontWeight-strong: var(--salt-typography-fontWeight-extraBold);
|
|
941
|
-
--salt-text-h2-fontFamily: var(--salt-
|
|
948
|
+
--salt-text-h2-fontFamily: var(--salt-palette-text-fontFamily-heading);
|
|
942
949
|
--salt-text-h2-fontWeight: var(--salt-typography-fontWeight-semiBold);
|
|
943
950
|
--salt-text-h2-fontWeight-small: var(--salt-typography-fontWeight-regular);
|
|
944
951
|
--salt-text-h2-fontWeight-strong: var(--salt-typography-fontWeight-bold);
|
|
945
|
-
--salt-text-h3-fontFamily: var(--salt-
|
|
952
|
+
--salt-text-h3-fontFamily: var(--salt-palette-text-fontFamily-heading);
|
|
946
953
|
--salt-text-h3-fontWeight: var(--salt-typography-fontWeight-semiBold);
|
|
947
954
|
--salt-text-h3-fontWeight-small: var(--salt-typography-fontWeight-regular);
|
|
948
955
|
--salt-text-h3-fontWeight-strong: var(--salt-typography-fontWeight-bold);
|
|
949
|
-
--salt-text-h4-fontFamily: var(--salt-
|
|
956
|
+
--salt-text-h4-fontFamily: var(--salt-palette-text-fontFamily-heading);
|
|
950
957
|
--salt-text-h4-fontWeight: var(--salt-typography-fontWeight-semiBold);
|
|
951
958
|
--salt-text-h4-fontWeight-small: var(--salt-typography-fontWeight-regular);
|
|
952
959
|
--salt-text-h4-fontWeight-strong: var(--salt-typography-fontWeight-bold);
|
|
953
|
-
--salt-text-label-fontFamily: var(--salt-
|
|
960
|
+
--salt-text-label-fontFamily: var(--salt-palette-text-fontFamily);
|
|
954
961
|
--salt-text-label-fontWeight: var(--salt-typography-fontWeight-regular);
|
|
955
962
|
--salt-text-label-fontWeight-small: var(--salt-typography-fontWeight-light);
|
|
956
963
|
--salt-text-label-fontWeight-strong: var(--salt-typography-fontWeight-semiBold);
|
|
957
|
-
--salt-text-display1-fontFamily: var(--salt-
|
|
964
|
+
--salt-text-display1-fontFamily: var(--salt-palette-text-fontFamily-heading);
|
|
958
965
|
--salt-text-display1-fontWeight: var(--salt-typography-fontWeight-semiBold);
|
|
959
966
|
--salt-text-display1-fontWeight-strong: var(--salt-typography-fontWeight-bold);
|
|
960
967
|
--salt-text-display1-fontWeight-small: var(--salt-typography-fontWeight-regular);
|
|
961
|
-
--salt-text-display2-fontFamily: var(--salt-
|
|
968
|
+
--salt-text-display2-fontFamily: var(--salt-palette-text-fontFamily-heading);
|
|
962
969
|
--salt-text-display2-fontWeight: var(--salt-typography-fontWeight-semiBold);
|
|
963
970
|
--salt-text-display2-fontWeight-strong: var(--salt-typography-fontWeight-bold);
|
|
964
971
|
--salt-text-display2-fontWeight-small: var(--salt-typography-fontWeight-regular);
|
|
965
|
-
--salt-text-display3-fontFamily: var(--salt-
|
|
972
|
+
--salt-text-display3-fontFamily: var(--salt-palette-text-fontFamily-heading);
|
|
966
973
|
--salt-text-display3-fontWeight: var(--salt-typography-fontWeight-semiBold);
|
|
967
974
|
--salt-text-display3-fontWeight-strong: var(--salt-typography-fontWeight-bold);
|
|
968
975
|
--salt-text-display3-fontWeight-small: var(--salt-typography-fontWeight-regular);
|
|
969
|
-
--salt-text-code-fontFamily: var(--salt-
|
|
976
|
+
--salt-text-code-fontFamily: var(--salt-palette-text-fontFamily-code);
|
|
970
977
|
}
|
|
971
978
|
.salt-density-touch {
|
|
972
979
|
--salt-text-h1-fontSize: 42px;
|
|
@@ -1262,6 +1269,8 @@
|
|
|
1262
1269
|
--salt-shadow-3: 0 4px 8px 0 var(--salt-shadow-3-color);
|
|
1263
1270
|
--salt-shadow-4: 0 6px 10px 0 var(--salt-shadow-4-color);
|
|
1264
1271
|
--salt-shadow-5: 0 12px 40px 0 var(--salt-shadow-5-color);
|
|
1272
|
+
--salt-typography-fontFamily: var(--salt-typography-fontFamily-openSans);
|
|
1273
|
+
--salt-typography-fontFamily-code: var(--salt-typography-fontFamily-ptMono);
|
|
1265
1274
|
}
|
|
1266
1275
|
.salt-theme[data-mode=light] {
|
|
1267
1276
|
--salt-shadow-1-color: rgba(0, 0, 0, 0.1);
|
package/index.css
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/* css/global.css */
|
|
2
2
|
.salt-theme {
|
|
3
3
|
color: var(--salt-content-primary-foreground);
|
|
4
|
-
font-family: var(--salt-
|
|
4
|
+
font-family: var(--salt-text-fontFamily);
|
|
5
5
|
font-size: var(--salt-text-fontSize);
|
|
6
6
|
letter-spacing: var(--salt-text-letterSpacing);
|
|
7
7
|
line-height: var(--salt-text-lineHeight);
|
|
@@ -463,8 +463,8 @@
|
|
|
463
463
|
|
|
464
464
|
/* css/foundations/typography.css */
|
|
465
465
|
.salt-theme {
|
|
466
|
-
--salt-typography-fontFamily: "Open Sans";
|
|
467
|
-
--salt-typography-fontFamily-
|
|
466
|
+
--salt-typography-fontFamily-openSans: "Open Sans";
|
|
467
|
+
--salt-typography-fontFamily-ptMono: "PT Mono";
|
|
468
468
|
--salt-typography-fontWeight-light: 300;
|
|
469
469
|
--salt-typography-fontWeight-regular: 400;
|
|
470
470
|
--salt-typography-fontWeight-medium: 500;
|
|
@@ -718,6 +718,13 @@
|
|
|
718
718
|
--salt-palette-success-foreground: var(--salt-color-green-400);
|
|
719
719
|
}
|
|
720
720
|
|
|
721
|
+
/* css/palette/text.css */
|
|
722
|
+
.salt-theme {
|
|
723
|
+
--salt-palette-text-fontFamily: var(--salt-typography-fontFamily-openSans);
|
|
724
|
+
--salt-palette-text-fontFamily-heading: var(--salt-typography-fontFamily-openSans);
|
|
725
|
+
--salt-palette-text-fontFamily-code: var(--salt-typography-fontFamily-ptMono);
|
|
726
|
+
}
|
|
727
|
+
|
|
721
728
|
/* css/palette/warning.css */
|
|
722
729
|
.salt-theme[data-mode=light] {
|
|
723
730
|
--salt-palette-warning-background: var(--salt-color-orange-10);
|
|
@@ -955,47 +962,47 @@
|
|
|
955
962
|
--salt-text-action-textTransform: uppercase;
|
|
956
963
|
--salt-text-action-textAlign: center;
|
|
957
964
|
--salt-text-action-fontWeight: var(--salt-typography-fontWeight-semiBold);
|
|
958
|
-
--salt-text-fontFamily: var(--salt-
|
|
965
|
+
--salt-text-fontFamily: var(--salt-palette-text-fontFamily);
|
|
959
966
|
--salt-text-fontWeight: var(--salt-typography-fontWeight-regular);
|
|
960
967
|
--salt-text-fontWeight-small: var(--salt-typography-fontWeight-light);
|
|
961
968
|
--salt-text-fontWeight-strong: var(--salt-typography-fontWeight-semiBold);
|
|
962
|
-
--salt-text-notation-fontFamily: var(--salt-
|
|
969
|
+
--salt-text-notation-fontFamily: var(--salt-palette-text-fontFamily);
|
|
963
970
|
--salt-text-notation-fontWeight: var(--salt-typography-fontWeight-semiBold);
|
|
964
971
|
--salt-text-notation-fontWeight-small: var(--salt-typography-fontWeight-regular);
|
|
965
972
|
--salt-text-notation-fontWeight-strong: var(--salt-typography-fontWeight-bold);
|
|
966
|
-
--salt-text-h1-fontFamily: var(--salt-
|
|
973
|
+
--salt-text-h1-fontFamily: var(--salt-palette-text-fontFamily-heading);
|
|
967
974
|
--salt-text-h1-fontWeight: var(--salt-typography-fontWeight-bold);
|
|
968
975
|
--salt-text-h1-fontWeight-small: var(--salt-typography-fontWeight-medium);
|
|
969
976
|
--salt-text-h1-fontWeight-strong: var(--salt-typography-fontWeight-extraBold);
|
|
970
|
-
--salt-text-h2-fontFamily: var(--salt-
|
|
977
|
+
--salt-text-h2-fontFamily: var(--salt-palette-text-fontFamily-heading);
|
|
971
978
|
--salt-text-h2-fontWeight: var(--salt-typography-fontWeight-semiBold);
|
|
972
979
|
--salt-text-h2-fontWeight-small: var(--salt-typography-fontWeight-regular);
|
|
973
980
|
--salt-text-h2-fontWeight-strong: var(--salt-typography-fontWeight-bold);
|
|
974
|
-
--salt-text-h3-fontFamily: var(--salt-
|
|
981
|
+
--salt-text-h3-fontFamily: var(--salt-palette-text-fontFamily-heading);
|
|
975
982
|
--salt-text-h3-fontWeight: var(--salt-typography-fontWeight-semiBold);
|
|
976
983
|
--salt-text-h3-fontWeight-small: var(--salt-typography-fontWeight-regular);
|
|
977
984
|
--salt-text-h3-fontWeight-strong: var(--salt-typography-fontWeight-bold);
|
|
978
|
-
--salt-text-h4-fontFamily: var(--salt-
|
|
985
|
+
--salt-text-h4-fontFamily: var(--salt-palette-text-fontFamily-heading);
|
|
979
986
|
--salt-text-h4-fontWeight: var(--salt-typography-fontWeight-semiBold);
|
|
980
987
|
--salt-text-h4-fontWeight-small: var(--salt-typography-fontWeight-regular);
|
|
981
988
|
--salt-text-h4-fontWeight-strong: var(--salt-typography-fontWeight-bold);
|
|
982
|
-
--salt-text-label-fontFamily: var(--salt-
|
|
989
|
+
--salt-text-label-fontFamily: var(--salt-palette-text-fontFamily);
|
|
983
990
|
--salt-text-label-fontWeight: var(--salt-typography-fontWeight-regular);
|
|
984
991
|
--salt-text-label-fontWeight-small: var(--salt-typography-fontWeight-light);
|
|
985
992
|
--salt-text-label-fontWeight-strong: var(--salt-typography-fontWeight-semiBold);
|
|
986
|
-
--salt-text-display1-fontFamily: var(--salt-
|
|
993
|
+
--salt-text-display1-fontFamily: var(--salt-palette-text-fontFamily-heading);
|
|
987
994
|
--salt-text-display1-fontWeight: var(--salt-typography-fontWeight-semiBold);
|
|
988
995
|
--salt-text-display1-fontWeight-strong: var(--salt-typography-fontWeight-bold);
|
|
989
996
|
--salt-text-display1-fontWeight-small: var(--salt-typography-fontWeight-regular);
|
|
990
|
-
--salt-text-display2-fontFamily: var(--salt-
|
|
997
|
+
--salt-text-display2-fontFamily: var(--salt-palette-text-fontFamily-heading);
|
|
991
998
|
--salt-text-display2-fontWeight: var(--salt-typography-fontWeight-semiBold);
|
|
992
999
|
--salt-text-display2-fontWeight-strong: var(--salt-typography-fontWeight-bold);
|
|
993
1000
|
--salt-text-display2-fontWeight-small: var(--salt-typography-fontWeight-regular);
|
|
994
|
-
--salt-text-display3-fontFamily: var(--salt-
|
|
1001
|
+
--salt-text-display3-fontFamily: var(--salt-palette-text-fontFamily-heading);
|
|
995
1002
|
--salt-text-display3-fontWeight: var(--salt-typography-fontWeight-semiBold);
|
|
996
1003
|
--salt-text-display3-fontWeight-strong: var(--salt-typography-fontWeight-bold);
|
|
997
1004
|
--salt-text-display3-fontWeight-small: var(--salt-typography-fontWeight-regular);
|
|
998
|
-
--salt-text-code-fontFamily: var(--salt-
|
|
1005
|
+
--salt-text-code-fontFamily: var(--salt-palette-text-fontFamily-code);
|
|
999
1006
|
}
|
|
1000
1007
|
.salt-density-touch {
|
|
1001
1008
|
--salt-text-h1-fontSize: 42px;
|
|
@@ -1291,6 +1298,8 @@
|
|
|
1291
1298
|
--salt-shadow-3: 0 4px 8px 0 var(--salt-shadow-3-color);
|
|
1292
1299
|
--salt-shadow-4: 0 6px 10px 0 var(--salt-shadow-4-color);
|
|
1293
1300
|
--salt-shadow-5: 0 12px 40px 0 var(--salt-shadow-5-color);
|
|
1301
|
+
--salt-typography-fontFamily: var(--salt-typography-fontFamily-openSans);
|
|
1302
|
+
--salt-typography-fontFamily-code: var(--salt-typography-fontFamily-ptMono);
|
|
1294
1303
|
}
|
|
1295
1304
|
.salt-theme[data-mode=light] {
|
|
1296
1305
|
--salt-shadow-1-color: rgba(0, 0, 0, 0.1);
|