@skeletonlabs/skeleton 3.0.0-next.11 → 3.0.0-next.13

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.
Files changed (2) hide show
  1. package/dist/index.css +231 -172
  2. package/package.json +3 -3
package/dist/index.css CHANGED
@@ -16,7 +16,7 @@
16
16
  /* Scrollbars --- */
17
17
  /* https://developer.mozilla.org/en-US/docs/Web/CSS/scrollbar-color */
18
18
  /* https://developer.chrome.com/docs/css-ui/scrollbar-styling */
19
- scrollbar-color: var(--color-surface-200-800) var(--color-surface-50-950); /* thumb / track */
19
+ scrollbar-color: var(--color-surface-300-700) var(--color-surface-100-900); /* thumb / track */
20
20
  scrollbar-width: thin;
21
21
  }
22
22
 
@@ -694,137 +694,149 @@
694
694
  /* Components: Badges */
695
695
  @utility badge {
696
696
  border-radius: var(--radius-base);
697
- font-weight: var(--font-weight-medium);
698
- text-decoration-line: none;
697
+
698
+ /* Icon Spacing */
699
699
  display: inline-flex;
700
700
  flex-direction: row;
701
701
  align-items: center;
702
702
  justify-content: center;
703
703
  gap: --spacing(2);
704
+
705
+ /* Typography */
706
+ text-decoration-line: none;
704
707
  white-space: nowrap;
705
708
 
706
- /* Base Size --- */
709
+ /* Size */
707
710
  font-size: var(--text-xs);
708
- line-height: --spacing(6);
709
- height: --spacing(6);
711
+ line-height: var(--text-xs--line-height);
712
+ padding-block: --spacing(1);
710
713
  padding-inline: --spacing(3);
711
- padding-block: --spacing(2);
712
714
  }
713
715
  @utility badge-icon {
714
- border-radius: var(--radius-base);
715
- font-weight: var(--font-weight-medium);
716
- text-decoration-line: none;
716
+ box-sizing: content-box;
717
+ border-radius: 100%;
718
+
719
+ /* Center Icons */
717
720
  display: inline-flex;
718
- flex-direction: row;
719
- align-items: center;
720
721
  justify-content: center;
721
- gap: --spacing(2);
722
+ align-items: center;
723
+
724
+ /* Typography */
725
+ text-decoration-line: none;
722
726
  white-space: nowrap;
723
- border-radius: 100%;
724
727
 
725
- /* Base Size --- */
728
+ /* Size */
726
729
  font-size: var(--text-xs);
727
- line-height: --spacing(6);
728
- width: --spacing(6);
729
- height: --spacing(6);
730
+ width: var(--text-xs);
731
+ height: var(--text-xs);
732
+ padding: --spacing(1.5);
730
733
  }
731
734
  /* Components: Buttons */
732
735
  @utility btn {
733
- cursor: pointer;
734
736
  border-radius: var(--radius-base);
735
- font-weight: var(--font-weight-medium);
736
- text-decoration-line: none;
737
+
738
+ /* Icon Spacing */
737
739
  display: inline-flex;
738
740
  flex-direction: row;
739
741
  align-items: center;
740
742
  justify-content: center;
741
743
  gap: --spacing(2);
744
+
745
+ /* Typography */
746
+ text-decoration-line: none;
742
747
  white-space: nowrap;
743
748
 
744
- /* Transitions (all) */
749
+ /* Size */
750
+ font-size: var(--text-base);
751
+ line-height: var(--text-base--line-height);
752
+ padding-block: --spacing(1);
753
+ padding-inline: --spacing(4);
754
+
755
+ /* Transitions */
745
756
  transition-property: all;
746
757
  transition-timing-function: var(--default-transition-timing-function);
747
758
  transition-duration: var(--default-transition-duration);
748
759
 
749
- /* Base Size --- */
750
- font-size: var(--text-base);
751
- line-height: --spacing(9);
752
- height: --spacing(9);
753
- padding-inline: --spacing(4);
754
- padding-block: --spacing(2);
760
+ @variant hover {
761
+ filter: brightness(125%);
762
+ @variant dark {
763
+ filter: brightness(75%);
764
+ }
765
+ }
755
766
  }
756
767
  @utility btn-icon {
757
- cursor: pointer;
768
+ box-sizing: content-box;
758
769
  border-radius: var(--radius-base);
759
- font-weight: var(--font-weight-medium);
760
- text-decoration-line: none;
770
+
771
+ /* Center Icons */
761
772
  display: inline-flex;
762
- flex-direction: row;
763
- align-items: center;
764
773
  justify-content: center;
765
- gap: --spacing(2);
766
- white-space: nowrap;
774
+ align-items: center;
767
775
 
768
- /* Transitions (all) */
769
- transition-property: all;
770
- transition-timing-function: var(--default-transition-timing-function);
771
- transition-duration: var(--default-transition-duration);
776
+ /* Typography */
777
+ text-decoration-line: none;
778
+ white-space: nowrap;
772
779
 
773
- /* Base Size --- */
780
+ /* Size */
774
781
  font-size: var(--text-base);
775
- line-height: --spacing(9);
776
- width: --spacing(9);
777
- height: --spacing(9);
778
- }
779
- @utility btn-group {
780
- /* Group --- */
781
- border-radius: var(--radius-container);
782
- display: inline-flex;
783
- gap: --spacing(2);
782
+ width: var(--text-base);
783
+ height: var(--text-base);
784
784
  padding: --spacing(2);
785
- overflow: hidden;
785
+
786
+ @variant hover {
787
+ filter: brightness(125%);
788
+ @variant dark {
789
+ filter: brightness(75%);
790
+ }
791
+ }
786
792
  }
787
793
  /* Sizes --- */
788
794
  /* Button */
789
795
  @utility btn-sm {
790
796
  font-size: var(--text-xs);
791
- line-height: --spacing(6);
792
- height: --spacing(6);
797
+ line-height: var(--text-xs--line-height);
798
+ padding-block: --spacing(1);
793
799
  padding-inline: --spacing(3);
794
- padding-block: --spacing(2);
795
800
  }
796
801
  @utility btn-base {
797
802
  font-size: var(--text-base);
798
- line-height: --spacing(8);
799
- height: --spacing(8);
803
+ line-height: var(--text-base--line-height);
804
+ padding-block: --spacing(1);
800
805
  padding-inline: --spacing(4);
801
- padding-block: --spacing(2);
802
806
  }
803
807
  @utility btn-lg {
804
- font-size: var(--text-lg);
805
- line-height: --spacing(12);
806
- height: --spacing(12);
807
- padding-inline: --spacing(6);
808
+ font-size: var(--text-xl);
809
+ line-height: var(--text-xl--line-height);
808
810
  padding-block: --spacing(2);
811
+ padding-inline: --spacing(5);
809
812
  }
810
813
  /* Button Icon */
811
814
  @utility btn-icon-sm {
812
815
  font-size: var(--text-xs);
813
- line-height: --spacing(6);
814
- width: --spacing(6);
815
- height: --spacing(6);
816
+ width: var(--text-xs);
817
+ height: var(--text-xs);
818
+ padding: --spacing(1.5);
816
819
  }
817
820
  @utility btn-icon-base {
818
821
  font-size: var(--text-base);
819
- line-height: --spacing(8);
820
- width: --spacing(8);
821
- height: --spacing(8);
822
+ width: var(--text-base);
823
+ height: var(--text-base);
824
+ padding: --spacing(2);
822
825
  }
823
826
  @utility btn-icon-lg {
824
- font-size: var(--text-lg);
825
- line-height: --spacing(12);
826
- width: --spacing(12);
827
- height: --spacing(12);
827
+ font-size: var(--text-xl);
828
+ width: var(--text-xl);
829
+ height: var(--text-xl);
830
+ padding: --spacing(3);
831
+ }
832
+ /* Group --- */
833
+ @utility btn-group {
834
+ border-radius: var(--radius-container);
835
+ display: inline-flex;
836
+ align-items: center;
837
+ gap: --spacing(2);
838
+ padding: --spacing(2);
839
+ overflow: hidden;
828
840
  }
829
841
  /* Components: Cards */
830
842
  @utility card {
@@ -859,61 +871,58 @@
859
871
  }
860
872
  /* Components: Chips */
861
873
  @utility chip {
862
- cursor: pointer;
863
874
  border-radius: var(--radius-base);
864
- font-weight: var(--font-weight-medium);
865
- text-decoration-line: none;
875
+
876
+ /* Icon Spacing */
866
877
  display: inline-flex;
867
878
  flex-direction: row;
868
879
  align-items: center;
869
880
  justify-content: center;
870
881
  gap: --spacing(2);
882
+
883
+ /* Typography */
884
+ text-decoration-line: none;
871
885
  white-space: nowrap;
872
886
 
887
+ /* Size */
888
+ font-size: var(--text-xs);
889
+ line-height: var(--text-xs--line-height);
890
+ padding-block: --spacing(1);
891
+ padding-inline: --spacing(3);
892
+
873
893
  /* Transitions */
874
894
  transition-property: all;
875
895
  transition-timing-function: var(--default-transition-timing-function);
876
896
  transition-duration: var(--default-transition-duration);
877
897
 
878
- /* Base Size --- */
879
- font-size: var(--text-xs);
880
- line-height: --spacing(6);
881
- height: --spacing(6);
882
- padding-inline: --spacing(3);
883
- padding-block: --spacing(2);
884
-
885
898
  @variant hover {
886
- filter: brightness(105%);
899
+ filter: brightness(125%);
887
900
  @variant dark {
888
901
  filter: brightness(75%);
889
902
  }
890
903
  }
891
904
  }
892
905
  @utility chip-icon {
893
- cursor: pointer;
906
+ box-sizing: content-box;
894
907
  border-radius: var(--radius-base);
895
- font-weight: var(--font-weight-medium);
896
- text-decoration-line: none;
908
+
909
+ /* Center Icons */
897
910
  display: inline-flex;
898
- flex-direction: row;
899
- align-items: center;
900
911
  justify-content: center;
901
- gap: --spacing(2);
912
+ align-items: center;
913
+
914
+ /* Typography */
915
+ text-decoration-line: none;
902
916
  white-space: nowrap;
903
917
 
904
- /* Base Size */
918
+ /* Size */
905
919
  font-size: var(--text-xs);
906
- line-height: --spacing(6);
907
- width: --spacing(6);
908
- height: --spacing(6);
909
-
910
- /* Transitions */
911
- transition-property: all;
912
- transition-timing-function: var(--default-transition-timing-function);
913
- transition-duration: var(--default-transition-duration);
920
+ width: var(--text-xs);
921
+ height: var(--text-xs);
922
+ padding: --spacing(1.5);
914
923
 
915
924
  @variant hover {
916
- filter: brightness(105%);
925
+ filter: brightness(125%);
917
926
  @variant dark {
918
927
  filter: brightness(75%);
919
928
  }
@@ -1251,12 +1260,12 @@
1251
1260
  }
1252
1261
  /* Components: Forms > Input Group */
1253
1262
  @utility input-group {
1263
+ border-radius: var(--radius-base);
1254
1264
  display: grid;
1255
1265
  align-items: stretch;
1256
- border-radius: var(--radius-base);
1257
1266
  overflow: hidden;
1258
1267
 
1259
- /* Edges --- */
1268
+ /* Edges */
1260
1269
  outline-color: transparent;
1261
1270
  border-width: 0;
1262
1271
  --tw-ring-inset: inset;
@@ -1264,54 +1273,115 @@
1264
1273
  --tw-ring-shadow: var(--tw-ring-inset,) 0 0 0 var(--default-ring-width) var(--tw-ring-color, currentColor);
1265
1274
  box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
1266
1275
 
1276
+ /* Dividers */
1267
1277
  & > * + * {
1268
1278
  border-left-width: 1px !important;
1269
1279
  border-color: var(--color-surface-200-800);
1270
1280
  }
1271
1281
  }
1272
- /* Child Elements -- */
1282
+ /* Children: Cell --- */
1273
1283
  @utility ig-cell {
1274
1284
  font-size: var(--text-sm);
1275
1285
  display: flex;
1276
- justify-contents: center;
1286
+ justify-content: center;
1277
1287
  align-items: center;
1278
1288
  padding-inline: --spacing(4);
1279
1289
  }
1290
+ /* Children: Form Elements --- */
1291
+ /* We recreate a subset of form element styles here */
1292
+ /* These are purpose-built to work in the group */
1280
1293
  @utility ig-input {
1281
1294
  --tw-ring-inset: inset;
1282
1295
  background-color: transparent;
1283
1296
  border-width: 0;
1297
+
1298
+ @variant active {
1299
+ --tw-ring-color: var(--color-primary-500);
1300
+ }
1301
+ @variant focus {
1302
+ --tw-ring-color: var(--color-primary-500);
1303
+ }
1304
+ @variant focus-within {
1305
+ --tw-ring-color: var(--color-primary-500);
1306
+ }
1284
1307
  }
1285
1308
  @utility ig-select {
1286
1309
  --tw-ring-inset: inset;
1287
1310
  background-color: transparent;
1288
1311
  border-width: 0;
1312
+
1313
+ @variant active {
1314
+ --tw-ring-color: var(--color-primary-500);
1315
+ }
1316
+ @variant focus {
1317
+ --tw-ring-color: var(--color-primary-500);
1318
+ }
1319
+ @variant focus-within {
1320
+ --tw-ring-color: var(--color-primary-500);
1321
+ }
1322
+
1323
+ /* Option --- */
1324
+
1325
+ & option {
1326
+ background-color: var(--color-surface-50-950);
1327
+ color: var(--color-surface-950-50);
1328
+ border-radius: var(--radius-base);
1329
+ font-size: var(--text-base);
1330
+ line-height: --spacing(9);
1331
+ height: --spacing(9);
1332
+ padding: --spacing(2);
1333
+ }
1334
+
1335
+ & option:checked {
1336
+ /* https://stackoverflow.com/questions/50618602/change-color-of-selected-option-in-select-multiple */
1337
+ background-image: linear-gradient(0deg, var(--color-primary-500) 0%, var(--color-primary-500) 100%);
1338
+ color: var(--color-primary-contrast-950-50);
1339
+ }
1289
1340
  }
1290
1341
  @utility ig-btn {
1291
- --tw-ring-inset: inset;
1292
- cursor: pointer;
1293
- font-size: var(--text-base);
1294
- font-weight: var(--font-weight-medium);
1295
- text-decoration-line: none;
1296
- display: flex;
1297
- justify-contents: center;
1342
+ /* Icon Spacing */
1343
+ display: inline-flex;
1344
+ flex-direction: row;
1298
1345
  align-items: center;
1346
+ justify-content: center;
1299
1347
  gap: --spacing(2);
1300
- padding-inline: --spacing(4);
1348
+
1349
+ /* Typography */
1350
+ text-decoration-line: none;
1301
1351
  white-space: nowrap;
1352
+
1353
+ /* Size */
1354
+ font-size: var(--text-base);
1355
+ line-height: var(--text-base--line-height);
1356
+ padding-block: --spacing(1);
1357
+ padding-inline: --spacing(4);
1358
+
1359
+ /* Transitions */
1360
+ transition-property: all;
1361
+ transition-timing-function: var(--default-transition-timing-function);
1362
+ transition-duration: var(--default-transition-duration);
1363
+
1364
+ @variant hover {
1365
+ filter: brightness(125%);
1366
+ @variant dark {
1367
+ filter: brightness(75%);
1368
+ }
1369
+ }
1302
1370
  }
1303
1371
  /* Components: Forms > Input */
1304
1372
  @utility input {
1305
- display: block;
1306
1373
  background-color: transparent;
1307
1374
  border-radius: var(--radius-base);
1308
- font-size: var(--text-base);
1309
- line-height: --spacing(9);
1310
- height: --spacing(9);
1375
+ display: block;
1311
1376
  width: 100%;
1312
- padding: --spacing(2);
1313
1377
 
1314
- /* Edges --- */
1378
+ /* Size */
1379
+ font-size: var(--text-base);
1380
+ line-height: var(--text-base--line-height);
1381
+ padding-block: --spacing(1);
1382
+ padding-inline: --spacing(3);
1383
+
1384
+ /* Edges */
1315
1385
  outline-color: transparent;
1316
1386
  border-width: 0;
1317
1387
  --tw-ring-inset: inset;
@@ -1332,46 +1402,25 @@
1332
1402
  /* Placeholder --- */
1333
1403
 
1334
1404
  &::placeholder {
1335
- color: var(--color-surface-800-200);
1336
- }
1337
-
1338
- /* File Date/Time --- */
1339
-
1340
- &[type='date'] {
1341
- font-size: var(--text-sm);
1342
- line-height: var(--text-sm--line-height);
1343
- }
1344
-
1345
- &[type='time'] {
1346
- font-size: var(--text-sm);
1347
- line-height: var(--text-sm--line-height);
1348
- }
1349
-
1350
- &[type='datetime-local'] {
1351
- font-size: var(--text-sm);
1352
- line-height: var(--text-sm--line-height);
1405
+ color: var(--color-surface-700-300);
1353
1406
  }
1354
1407
 
1355
1408
  /* File Input --- */
1356
1409
 
1357
- &[type='file'] {
1358
- font-size: var(--text-sm);
1359
- height: auto;
1360
- }
1361
1410
  &[type='file']::file-selector-button {
1362
1411
  cursor: pointer;
1412
+ border-radius: var(--radius-base);
1363
1413
  background-color: var(--color-surface-950-50);
1364
1414
  color: var(--color-surface-50-950);
1365
- border-radius: var(--radius-base);
1366
- font-weight: var(--font-weight-medium);
1367
- text-decoration-line: none;
1415
+ transform: translateY(--spacing(-0.5));
1416
+ margin-right: --spacing(2);
1417
+ text-transform: capitalize;
1368
1418
 
1369
- /* Base Size */
1419
+ /* Size */
1370
1420
  font-size: var(--text-xs);
1371
- height: 100%;
1372
- padding-inline: --spacing(3);
1421
+ height: var(--text-xs--line-height);
1373
1422
  padding-block: --spacing(0);
1374
- margin-right: --spacing(3);
1423
+ padding-inline: --spacing(3);
1375
1424
  }
1376
1425
 
1377
1426
  /* Range Input --- */
@@ -1387,8 +1436,8 @@
1387
1436
 
1388
1437
  &[type='color'] {
1389
1438
  border-radius: var(--radius-base);
1390
- width: --spacing(9);
1391
- height: --spacing(9);
1439
+ width: --spacing(8.5);
1440
+ height: --spacing(8.5);
1392
1441
  padding: 0;
1393
1442
  border: none;
1394
1443
  outline: none;
@@ -1405,11 +1454,10 @@
1405
1454
  /* Ghost Input*/
1406
1455
  /* Used for the <TagsInput> component. */
1407
1456
  @utility input-ghost {
1408
- /* Used for the <TagsInput> component. */
1409
1457
  padding: 0px;
1410
1458
  background-color: transparent;
1411
- border-color: transparent;
1412
1459
 
1460
+ border-color: transparent;
1413
1461
  outline-color: transparent;
1414
1462
  --tw-ring-color: transparent;
1415
1463
 
@@ -1540,18 +1588,18 @@
1540
1588
  We've styled this element within the confines of that browser's capabilities.
1541
1589
  */
1542
1590
  @utility select {
1543
- display: block;
1544
- border-radius: var(--radius-base);
1545
- border-width: var(--default-border-width);
1546
- border-color: var(--color-surface-200-800);
1547
1591
  background-color: transparent;
1548
-
1549
- /* Base Size */
1550
- height: --spacing(9);
1592
+ border-radius: var(--radius-base);
1593
+ display: block;
1551
1594
  width: 100%;
1552
- padding-block: 0px;
1553
1595
 
1554
- /* Edges --- */
1596
+ /* Size */
1597
+ font-size: var(--text-base);
1598
+ line-height: var(--text-base--line-height);
1599
+ padding-block: --spacing(1);
1600
+ padding-inline: --spacing(3);
1601
+
1602
+ /* Edges */
1555
1603
  outline-color: transparent;
1556
1604
  border-width: 0;
1557
1605
  --tw-ring-inset: inset;
@@ -1569,18 +1617,30 @@
1569
1617
  --tw-ring-color: var(--color-primary-500);
1570
1618
  }
1571
1619
 
1620
+ /* Multiple & Size --- */
1621
+
1572
1622
  & > * + * {
1573
1623
  margin-top: --spacing(2);
1574
1624
  }
1575
1625
 
1576
1626
  &[multiple] {
1577
- height: auto;
1578
- padding: --spacing(2);
1627
+ border-radius: var(--radius-container);
1628
+ padding: --spacing(1);
1629
+
1630
+ & optgroup,
1631
+ & option {
1632
+ background-color: transparent;
1633
+ }
1579
1634
  }
1580
1635
 
1581
1636
  &[size] {
1582
- height: auto;
1583
- padding: --spacing(2);
1637
+ border-radius: var(--radius-container);
1638
+ padding: --spacing(1);
1639
+
1640
+ & optgroup,
1641
+ & option {
1642
+ background-color: transparent;
1643
+ }
1584
1644
  }
1585
1645
 
1586
1646
  /* Optgroup --- */
@@ -1615,25 +1675,24 @@
1615
1675
 
1616
1676
  & option:checked {
1617
1677
  /* https://stackoverflow.com/questions/50618602/change-color-of-selected-option-in-select-multiple */
1618
- background-image: linear-gradient(0deg, var(--color-primary-500) 0%, var(--color-primary-500) 100%);
1619
- color: var(--color-primary-contrast-950-50);
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;
1620
1680
  }
1621
1681
  }
1622
1682
  /* Components: Forms > Textarea */
1623
1683
  @utility textarea {
1624
- display: block;
1625
- border-radius: var(--radius-base);
1626
- border-width: var(--default-border-width);
1627
- border-color: var(--color-surface-200-800);
1628
1684
  background-color: transparent;
1685
+ border-radius: var(--radius-base);
1686
+ display: block;
1687
+ width: 100%;
1629
1688
 
1630
- /* Base Size --- */
1689
+ /* Size */
1631
1690
  font-size: var(--text-base);
1632
- height: auto;
1633
- width: 100%;
1634
- padding: --spacing(2);
1691
+ line-height: var(--text-base--line-height);
1692
+ padding-block: --spacing(1);
1693
+ padding-inline: --spacing(3);
1635
1694
 
1636
- /* Edges --- */
1695
+ /* Edges */
1637
1696
  outline-color: transparent;
1638
1697
  border-width: 0;
1639
1698
  --tw-ring-inset: inset;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "3.0.0-next.11",
3
+ "version": "3.0.0-next.13",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/skeletonlabs/skeleton.git"
@@ -26,9 +26,9 @@
26
26
  "tailwindcss": "^4.0.0"
27
27
  },
28
28
  "devDependencies": {
29
- "sass-embedded": "^1.83.4",
29
+ "sass-embedded": "^1.85.1",
30
30
  "tinyglobby": "^0.2.12",
31
- "vite": "^6.0.11"
31
+ "vite": "^6.2.1"
32
32
  },
33
33
  "type": "module",
34
34
  "license": "MIT",