@skeletonlabs/skeleton 3.0.0 → 3.1.1

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/README.md CHANGED
@@ -34,7 +34,7 @@ pnpm add @skeletonlabs/skeleton
34
34
  </html>
35
35
  ```
36
36
 
37
- 4. Enjoy Skeleton! Visit [the documentation](https://next.skeleton.dev/) for any questions.
37
+ 4. Enjoy Skeleton! Visit [the documentation](https://skeleton.dev/) for any questions.
38
38
 
39
39
  ## Project Setup
40
40
 
package/dist/index.css CHANGED
@@ -59,7 +59,7 @@
59
59
  /* https://developer.mozilla.org/en-US/docs/Web/CSS/::selection */
60
60
 
61
61
  ::selection {
62
- background-color: var(--color-primary-500);
62
+ background-color: color-mix(in srgb, var(--color-primary-500) 50%, transparent);
63
63
  }
64
64
 
65
65
  /* States --- */
@@ -691,6 +691,96 @@
691
691
  --text-9xl: calc(8rem * var(--text-scaling));
692
692
  --text-9xl--line-height: calc(1 * var(--text-scaling));
693
693
  }
694
+ @utility body-background-color {
695
+ background-color: var(--body-background-color);
696
+ }
697
+ @utility body-background-color-dark {
698
+ background-color: var(--body-background-color-dark);
699
+ }
700
+ @utility base-font-color {
701
+ color: var(--base-font-color);
702
+ }
703
+ @utility base-font-color-dark {
704
+ color: var(--base-font-color-dark);
705
+ }
706
+ @utility base-font-family {
707
+ font-family: var(--base-font-family);
708
+ }
709
+ @utility base-font-size {
710
+ font-size: var(--base-font-size);
711
+ }
712
+ @utility base-line-height {
713
+ line-height: var(--base-line-height);
714
+ }
715
+ @utility base-font-weight {
716
+ font-weight: var(--base-font-weight);
717
+ }
718
+ @utility base-font-style {
719
+ font-style: var(--base-font-style);
720
+ }
721
+ @utility base-letter-spacing {
722
+ letter-spacing: var(--base-letter-spacing);
723
+ }
724
+ @utility heading-font-color {
725
+ color: var(--heading-font-color);
726
+ }
727
+ @utility heading-font-color-dark {
728
+ color: var(--heading-font-color-dark);
729
+ }
730
+ @utility heading-font-family {
731
+ font-family: var(--heading-font-family);
732
+ }
733
+ @utility heading-font-size {
734
+ font-size: var(--heading-font-size);
735
+ }
736
+ @utility heading-line-height {
737
+ line-height: var(--heading-line-height);
738
+ }
739
+ @utility heading-font-weight {
740
+ font-weight: var(--heading-font-weight);
741
+ }
742
+ @utility heading-font-style {
743
+ font-style: var(--heading-font-style);
744
+ }
745
+ @utility heading-letter-spacing {
746
+ letter-spacing: var(--heading-letter-spacing);
747
+ }
748
+ @utility anchor-font-color {
749
+ color: var(--anchor-font-color);
750
+ }
751
+ @utility anchor-font-color-dark {
752
+ color: var(--anchor-font-color-dark);
753
+ }
754
+ @utility anchor-font-family {
755
+ font-family: var(--anchor-font-family);
756
+ }
757
+ @utility anchor-font-size {
758
+ font-size: var(--anchor-font-size);
759
+ }
760
+ @utility anchor-line-height {
761
+ line-height: var(--anchor-line-height);
762
+ }
763
+ @utility anchor-font-weight {
764
+ font-weight: var(--anchor-font-weight);
765
+ }
766
+ @utility anchor-font-style {
767
+ font-style: var(--anchor-font-style);
768
+ }
769
+ @utility anchor-letter-spacing {
770
+ letter-spacing: var(--anchor-letter-spacing);
771
+ }
772
+ @utility anchor-text-decoration {
773
+ text-decoration: var(--anchor-text-decoration);
774
+ }
775
+ @utility anchor-text-decoration-active {
776
+ text-decoration: var(--anchor-text-decoration-active);
777
+ }
778
+ @utility anchor-text-decoration-focus {
779
+ text-decoration: var(--anchor-text-decoration-focus);
780
+ }
781
+ @utility anchor-text-decoration-hover {
782
+ text-decoration: var(--anchor-text-decoration-hover);
783
+ }
694
784
  /* Components: Badges */
695
785
  @utility badge {
696
786
  border-radius: var(--radius-base);
@@ -842,7 +932,7 @@
842
932
  @utility card {
843
933
  border-radius: var(--radius-container);
844
934
 
845
- & a {
935
+ &a {
846
936
  /* Transitions (all) */
847
937
  transition-property: all;
848
938
  transition-timing-function: var(--default-transition-timing-function);
@@ -1234,6 +1324,12 @@
1234
1324
  content: '−';
1235
1325
  }
1236
1326
  }
1327
+ @utility mark {
1328
+ color: var(--color-tertiary-contrast-500);
1329
+ background-color: var(--color-tertiary-500);
1330
+ border-radius: var(--radius-sm);
1331
+ padding-inline: --spacing(1);
1332
+ }
1237
1333
  /* Forms */
1238
1334
  /* Components: Forms (Core) */
1239
1335
  @utility fieldset {
@@ -1291,9 +1387,20 @@
1291
1387
  /* We recreate a subset of form element styles here */
1292
1388
  /* These are purpose-built to work in the group */
1293
1389
  @utility ig-input {
1294
- --tw-ring-inset: inset;
1295
1390
  background-color: transparent;
1391
+ display: block;
1392
+ width: 100%;
1393
+
1394
+ /* Size */
1395
+ font-size: var(--text-base);
1396
+ line-height: var(--text-base--line-height);
1397
+ padding-block: --spacing(1);
1398
+ padding-inline: --spacing(3);
1399
+
1400
+ /* Edges */
1401
+ outline-color: transparent;
1296
1402
  border-width: 0;
1403
+ --tw-ring-inset: inset;
1297
1404
 
1298
1405
  @variant active {
1299
1406
  --tw-ring-color: var(--color-primary-500);
@@ -1306,9 +1413,19 @@
1306
1413
  }
1307
1414
  }
1308
1415
  @utility ig-select {
1309
- --tw-ring-inset: inset;
1310
1416
  background-color: transparent;
1417
+ display: block;
1418
+ width: 100%;
1419
+
1420
+ /* Size */
1421
+ font-size: var(--text-base);
1422
+ line-height: var(--text-base--line-height);
1423
+ padding-block: --spacing(1);
1424
+
1425
+ /* Edges */
1426
+ outline-color: transparent;
1311
1427
  border-width: 0;
1428
+ --tw-ring-inset: inset;
1312
1429
 
1313
1430
  @variant active {
1314
1431
  --tw-ring-color: var(--color-primary-500);
@@ -1597,7 +1714,12 @@
1597
1714
  font-size: var(--text-base);
1598
1715
  line-height: var(--text-base--line-height);
1599
1716
  padding-block: --spacing(1);
1600
- padding-inline: --spacing(3);
1717
+
1718
+ /*
1719
+ WARNING
1720
+ Do not set `padding-inline` or it breaks
1721
+ the native drop-down arrow for selects.
1722
+ */
1601
1723
 
1602
1724
  /* Edges */
1603
1725
  outline-color: transparent;
@@ -1672,12 +1794,6 @@
1672
1794
  height: --spacing(9);
1673
1795
  padding: --spacing(2);
1674
1796
  }
1675
-
1676
- & option:checked {
1677
- /* https://stackoverflow.com/questions/50618602/change-color-of-selected-option-in-select-multiple */
1678
- background-image: linear-gradient(0deg, var(--color-primary-500) 0%, var(--color-primary-500) 100%) !important;
1679
- color: var(--color-primary-contrast-950-50) !important;
1680
- }
1681
1797
  }
1682
1798
  /* Components: Forms > Textarea */
1683
1799
  @utility textarea {
@@ -34,7 +34,7 @@
34
34
  --default-border-width: 1px;
35
35
  --default-divide-width: 1px;
36
36
  --default-ring-width: 1px;
37
- --body-background-color: 255 255 255;
37
+ --body-background-color: oklch(1 0 0 / 1);
38
38
  --body-background-color-dark: var(--color-surface-950);
39
39
  --color-primary-50: oklch(97.74% 0.02 214.3deg);
40
40
  --color-primary-100: oklch(91.46% 0.04 259.65deg);
@@ -32,7 +32,7 @@
32
32
  --default-border-width: 1px;
33
33
  --default-divide-width: 1px;
34
34
  --default-ring-width: 1px;
35
- --body-background-color: 255 255 255;
35
+ --body-background-color: oklch(1 0 0 / 1);
36
36
  --body-background-color-dark: var(--color-surface-900);
37
37
  --color-primary-50: oklch(93.95% 0.03 275.18deg);
38
38
  --color-primary-100: oklch(86.47% 0.06 279.05deg);
@@ -32,7 +32,7 @@
32
32
  --default-border-width: 1px;
33
33
  --default-divide-width: 1px;
34
34
  --default-ring-width: 1px;
35
- --body-background-color: 255 255 255;
35
+ --body-background-color: oklch(1 0 0 / 1);
36
36
  --body-background-color-dark: var(--color-surface-950);
37
37
  --color-primary-50: oklch(88.86% 0.05 4.44deg);
38
38
  --color-primary-100: oklch(80.66% 0.09 5.94deg);
@@ -1,14 +1,14 @@
1
1
  [data-theme='fennec'] {
2
2
  --text-scaling: 1.067;
3
- --base-font-color: 0 0 0;
4
- --base-font-color-dark: 255 255 255;
3
+ --base-font-color: oklch(0 0 0 / 1);
4
+ --base-font-color-dark: oklch(1 0 0 / 1);
5
5
  --base-font-family: Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif;
6
6
  --base-font-size: 20px;
7
7
  --base-line-height: inherit;
8
8
  --base-font-weight: normal;
9
9
  --base-font-style: normal;
10
10
  --base-letter-spacing: 0em;
11
- --heading-font-color: 0 0 0;
11
+ --heading-font-color: oklch(0 0 0 / 1);
12
12
  --heading-font-color-dark: var(--color-secondary-50);
13
13
  --heading-font-family: Bahnschrift, 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif-condensed, sans-serif;
14
14
  --heading-font-weight: normal;
@@ -32,7 +32,7 @@
32
32
  --default-border-width: 1px;
33
33
  --default-divide-width: 1px;
34
34
  --default-ring-width: 1px;
35
- --body-background-color: 255 255 255;
35
+ --body-background-color: oklch(1 0 0 / 1);
36
36
  --body-background-color-dark: var(--color-surface-950);
37
37
  --color-primary-50: oklch(95.58% 0.02 271.23deg);
38
38
  --color-primary-100: oklch(92.55% 0.03 269.83deg);
@@ -32,7 +32,7 @@
32
32
  --default-border-width: 1px;
33
33
  --default-divide-width: 1px;
34
34
  --default-ring-width: 1px;
35
- --body-background-color: 255 255 255;
35
+ --body-background-color: oklch(1 0 0 / 1);
36
36
  --body-background-color-dark: var(--color-surface-950);
37
37
  --color-primary-50: oklch(93.76% 0.05 174.04deg);
38
38
  --color-primary-100: oklch(88.31% 0.07 172.12deg);
@@ -14,7 +14,7 @@
14
14
  --heading-font-weight: normal;
15
15
  --heading-font-style: normal;
16
16
  --heading-letter-spacing: inherit;
17
- --anchor-font-color: 255 255 255;
17
+ --anchor-font-color: oklch(1 0 0 / 1);
18
18
  --anchor-font-color-dark: var(--color-primary-500);
19
19
  --anchor-font-family: inherit;
20
20
  --anchor-font-size: inherit;
@@ -32,7 +32,7 @@
32
32
  --default-border-width: 1px;
33
33
  --default-divide-width: 1px;
34
34
  --default-ring-width: 1px;
35
- --body-background-color: 255 255 255;
35
+ --body-background-color: oklch(1 0 0 / 1);
36
36
  --body-background-color-dark: var(--color-surface-950);
37
37
  --color-primary-50: oklch(95.05% 0.04 325.97deg);
38
38
  --color-primary-100: oklch(87.17% 0.08 312.56deg);
@@ -1,7 +1,7 @@
1
1
  [data-theme='reign'] {
2
2
  --text-scaling: 1.067;
3
- --base-font-color: 0 0 0;
4
- --base-font-color-dark: 255 255 255;
3
+ --base-font-color: oklch(0 0 0 / 1);
4
+ --base-font-color-dark: oklch(1 0 0 / 1);
5
5
  --base-font-family: Seravek, 'Gill Sans Nova', Ubuntu, Calibri, 'DejaVu Sans', source-sans-pro, sans-serif;
6
6
  --base-font-size: 18px;
7
7
  --base-line-height: inherit;
@@ -32,7 +32,7 @@
32
32
  --default-border-width: 1px;
33
33
  --default-divide-width: 1px;
34
34
  --default-ring-width: 1px;
35
- --body-background-color: 255 255 255;
35
+ --body-background-color: oklch(1 0 0 / 1);
36
36
  --body-background-color-dark: var(--color-surface-950);
37
37
  --color-primary-50: oklch(95.11% 0.03 211.57deg);
38
38
  --color-primary-100: oklch(89.65% 0.06 209.91deg);
@@ -9,7 +9,7 @@
9
9
  --base-font-style: normal;
10
10
  --base-letter-spacing: 0em;
11
11
  --heading-font-color: var(--color-secondary-950);
12
- --heading-font-color-dark: 255 255 255;
12
+ --heading-font-color-dark: oklch(1 0 0 / 1);
13
13
  --heading-font-family: Optima, Candara, 'Noto Sans', source-sans-pro, sans-serif;
14
14
  --heading-font-weight: bold;
15
15
  --heading-font-style: normal;
@@ -32,7 +32,7 @@
32
32
  --default-border-width: 1px;
33
33
  --default-divide-width: 1px;
34
34
  --default-ring-width: 1px;
35
- --body-background-color: 255 255 255;
35
+ --body-background-color: oklch(1 0 0 / 1);
36
36
  --body-background-color-dark: var(--color-surface-950);
37
37
  --color-primary-50: oklch(96.19% 0.04 201.62deg);
38
38
  --color-primary-100: oklch(89.29% 0.06 230.4deg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "3.0.0",
3
+ "version": "3.1.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/skeletonlabs/skeleton.git"