@skeletonlabs/skeleton 4.0.0-next.2 → 4.0.0-next.24
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 +2 -48
- package/dist/index.css +63 -28
- package/package.json +11 -7
package/README.md
CHANGED
|
@@ -1,57 +1,11 @@
|
|
|
1
1
|
# Skeleton
|
|
2
2
|
|
|
3
|
-
This repository contains all the stylesheets for the Skeleton package.
|
|
4
|
-
|
|
5
3
|
## Installation
|
|
6
4
|
|
|
7
5
|
```bash
|
|
8
6
|
pnpm add @skeletonlabs/skeleton
|
|
9
7
|
```
|
|
10
8
|
|
|
11
|
-
##
|
|
12
|
-
|
|
13
|
-
1. Import our base stylesheet _after_ the tailwind import:
|
|
14
|
-
|
|
15
|
-
```css
|
|
16
|
-
@import 'tailwindcss';
|
|
17
|
-
@import '@skeletonlabs/skeleton'; /* Add Skeleton Stylesheet */
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
2. Import a prebuild or custom theme _after_ the base skeleton import:
|
|
21
|
-
|
|
22
|
-
```css
|
|
23
|
-
@import 'tailwindcss';
|
|
24
|
-
@import '@skeletonlabs/skeleton';
|
|
25
|
-
@import '@skeletonlabs/skeleton/themes/cerberus'; /* Add Skeleton Theme */
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
3. Set your imported theme in your HTML root:
|
|
29
|
-
|
|
30
|
-
```html
|
|
31
|
-
<html data-theme="cerberus">
|
|
32
|
-
<!-- Add Skeleton Theme -->
|
|
33
|
-
<!-- ... -->
|
|
34
|
-
</html>
|
|
35
|
-
```
|
|
36
|
-
|
|
37
|
-
4. Enjoy Skeleton! Visit [the documentation](https://skeleton.dev/) for any questions.
|
|
38
|
-
|
|
39
|
-
## Project Setup
|
|
40
|
-
|
|
41
|
-
This project uses [Vite](https://vite.dev/) as the build tool. To author our CSS stylesheets in an efficient way we utilize [Sass](https://sass-lang.com/) for handling things like loops and shared variables. This is merely a build tool so we will never author actual Sass, we're a Tailwind library after all.
|
|
42
|
-
|
|
43
|
-
## Project Structure
|
|
44
|
-
|
|
45
|
-
```
|
|
46
|
-
src/
|
|
47
|
-
├── base/ # Core styles, color definitions, and base configurations
|
|
48
|
-
├── components/ # Component-specific classes
|
|
49
|
-
├── internal/ # Internal utilities, constants, and shared resources
|
|
50
|
-
├── themes/ # All official Skeleton themes
|
|
51
|
-
├── utilities/ # Tailwind utilities
|
|
52
|
-
└── variants/ # Tailwind variants
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
## License
|
|
9
|
+
## Documentation
|
|
56
10
|
|
|
57
|
-
|
|
11
|
+
Explore the full documentation at [skeleton.dev](https://skeleton.dev/).
|
package/dist/index.css
CHANGED
|
@@ -144,9 +144,9 @@
|
|
|
144
144
|
--default-divide-width: 1px;
|
|
145
145
|
--default-ring-width: 1px;
|
|
146
146
|
/* Animations --- */
|
|
147
|
-
--animate-progress-indeterminate-
|
|
148
|
-
--animate-progress-indeterminate-
|
|
149
|
-
--animate-
|
|
147
|
+
--animate-progress-linear-indeterminate-horizontal: progress-linear-indeterminate-horizontal 1.5s ease-in-out infinite;
|
|
148
|
+
--animate-progress-linear-indeterminate-vertical: progress-linear-indeterminate-vertical 1.5s ease-in-out infinite;
|
|
149
|
+
--animate-progress-circular-indeterminate: progress-circular-indeterminate 1.5s linear infinite;
|
|
150
150
|
/* Colors --- */
|
|
151
151
|
--color-primary-50: oklch(98.5% 0 0deg);
|
|
152
152
|
--color-primary-100: oklch(97% 0 0deg);
|
|
@@ -853,14 +853,39 @@
|
|
|
853
853
|
padding-inline: --spacing(4);
|
|
854
854
|
|
|
855
855
|
/* Transitions */
|
|
856
|
-
transition-property:
|
|
856
|
+
transition-property:
|
|
857
|
+
color,
|
|
858
|
+
background-color,
|
|
859
|
+
border-color,
|
|
860
|
+
outline-color,
|
|
861
|
+
text-decoration-color,
|
|
862
|
+
fill,
|
|
863
|
+
stroke,
|
|
864
|
+
--tw-gradient-from,
|
|
865
|
+
--tw-gradient-via,
|
|
866
|
+
--tw-gradient-to,
|
|
867
|
+
opacity,
|
|
868
|
+
box-shadow,
|
|
869
|
+
transform,
|
|
870
|
+
translate,
|
|
871
|
+
scale,
|
|
872
|
+
rotate,
|
|
873
|
+
filter,
|
|
874
|
+
-webkit-backdrop-filter,
|
|
875
|
+
backdrop-filter,
|
|
876
|
+
display,
|
|
877
|
+
content-visibility,
|
|
878
|
+
overlay,
|
|
879
|
+
pointer-events;
|
|
857
880
|
transition-timing-function: var(--default-transition-timing-function);
|
|
858
881
|
transition-duration: var(--default-transition-duration);
|
|
859
882
|
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
883
|
+
&:not(:disabled) {
|
|
884
|
+
&:hover {
|
|
885
|
+
filter: brightness(125%);
|
|
886
|
+
@variant dark {
|
|
887
|
+
filter: brightness(75%);
|
|
888
|
+
}
|
|
864
889
|
}
|
|
865
890
|
}
|
|
866
891
|
}
|
|
@@ -883,10 +908,12 @@
|
|
|
883
908
|
height: var(--text-base);
|
|
884
909
|
padding: --spacing(2);
|
|
885
910
|
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
911
|
+
&:not(:disabled) {
|
|
912
|
+
&:hover {
|
|
913
|
+
filter: brightness(125%);
|
|
914
|
+
@variant dark {
|
|
915
|
+
filter: brightness(75%);
|
|
916
|
+
}
|
|
890
917
|
}
|
|
891
918
|
}
|
|
892
919
|
}
|
|
@@ -2565,35 +2592,43 @@
|
|
|
2565
2592
|
@custom-variant theme-seafoam (&:where([data-theme="seafoam"] *));
|
|
2566
2593
|
@custom-variant theme-vintage (&:where([data-theme="vintage"] *));
|
|
2567
2594
|
@custom-variant theme-wintry (&:where([data-theme="wintry"] *));
|
|
2568
|
-
/* Components: Keyframe - Progress
|
|
2569
|
-
/* NOTE: only for use in the progress
|
|
2595
|
+
/* Components: Keyframe - Progress Circular */
|
|
2596
|
+
/* NOTE: only for use in the progress circular functional component. */
|
|
2597
|
+
@keyframes progress-circular-indeterminate {
|
|
2598
|
+
0% {
|
|
2599
|
+
stroke-dasharray: 1 var(--circumference);
|
|
2600
|
+
stroke-dashoffset: 0;
|
|
2601
|
+
}
|
|
2602
|
+
50% {
|
|
2603
|
+
stroke-dasharray: calc(var(--circumference) * 0.75) var(--circumference);
|
|
2604
|
+
stroke-dashoffset: calc(-1 * var(--circumference) * 0.5);
|
|
2605
|
+
}
|
|
2606
|
+
100% {
|
|
2607
|
+
stroke-dasharray: 1 var(--circumference);
|
|
2608
|
+
stroke-dashoffset: calc(-1 * var(--circumference));
|
|
2609
|
+
}
|
|
2610
|
+
}
|
|
2611
|
+
/* Components: Keyframe - Progress Linear */
|
|
2612
|
+
/* NOTE: only for use in the progress linear functional component. */
|
|
2570
2613
|
/* Horizontal */
|
|
2571
|
-
@keyframes
|
|
2614
|
+
@keyframes progress-linear-indeterminate-horizontal {
|
|
2572
2615
|
from {
|
|
2616
|
+
scale: 0.5 1;
|
|
2573
2617
|
transform: translateX(-200%);
|
|
2574
2618
|
}
|
|
2575
2619
|
to {
|
|
2620
|
+
scale: 0.5 1;
|
|
2576
2621
|
transform: translateX(200%);
|
|
2577
2622
|
}
|
|
2578
2623
|
}
|
|
2579
2624
|
/* Vertical */
|
|
2580
|
-
@keyframes
|
|
2625
|
+
@keyframes progress-linear-indeterminate-vertical {
|
|
2581
2626
|
from {
|
|
2627
|
+
scale: 0.5 1;
|
|
2582
2628
|
transform: translateY(-200%);
|
|
2583
2629
|
}
|
|
2584
2630
|
to {
|
|
2631
|
+
scale: 0.5 1;
|
|
2585
2632
|
transform: translateY(200%);
|
|
2586
2633
|
}
|
|
2587
2634
|
}
|
|
2588
|
-
/* Components: Keyframe - Ring Indeterminate */
|
|
2589
|
-
/* NOTE: only for use in the progress ring functional component. */
|
|
2590
|
-
@keyframes anim-ring-indeterminate {
|
|
2591
|
-
from {
|
|
2592
|
-
stroke-dasharray: 1, 400;
|
|
2593
|
-
stroke-dashoffset: 0;
|
|
2594
|
-
}
|
|
2595
|
-
to {
|
|
2596
|
-
stroke-dasharray: 400, 400;
|
|
2597
|
-
stroke-dashoffset: -140;
|
|
2598
|
-
}
|
|
2599
|
-
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skeletonlabs/skeleton",
|
|
3
|
-
"version": "4.0.0-next.
|
|
3
|
+
"version": "4.0.0-next.24",
|
|
4
|
+
"description": "The TailwindCSS package for Skeleton.",
|
|
5
|
+
"author": "endigo9740 <chris@skeletonlabs.dev>",
|
|
4
6
|
"repository": {
|
|
5
7
|
"type": "git",
|
|
6
|
-
"url": "https://github.com/skeletonlabs/skeleton.git"
|
|
8
|
+
"url": "git+https://github.com/skeletonlabs/skeleton.git",
|
|
9
|
+
"directory": "packages/skeleton"
|
|
7
10
|
},
|
|
8
11
|
"exports": {
|
|
9
12
|
".": {
|
|
@@ -22,14 +25,15 @@
|
|
|
22
25
|
"tailwindcss": "^4.0.0"
|
|
23
26
|
},
|
|
24
27
|
"devDependencies": {
|
|
25
|
-
"sass-embedded": "
|
|
26
|
-
"tinyglobby": "
|
|
27
|
-
"vite": "
|
|
28
|
+
"sass-embedded": "1.93.2",
|
|
29
|
+
"tinyglobby": "0.2.15",
|
|
30
|
+
"vite": "7.1.7"
|
|
28
31
|
},
|
|
29
|
-
"type": "module",
|
|
30
32
|
"license": "MIT",
|
|
33
|
+
"type": "module",
|
|
31
34
|
"scripts": {
|
|
35
|
+
"dev": "vite build --watch",
|
|
32
36
|
"build": "vite build",
|
|
33
|
-
"
|
|
37
|
+
"sync": "pnpm build"
|
|
34
38
|
}
|
|
35
39
|
}
|