@skeletonlabs/skeleton 4.0.0-next.5 → 4.0.0-next.7
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 +27 -19
- package/package.json +9 -6
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);
|
|
@@ -2592,35 +2592,43 @@
|
|
|
2592
2592
|
@custom-variant theme-seafoam (&:where([data-theme="seafoam"] *));
|
|
2593
2593
|
@custom-variant theme-vintage (&:where([data-theme="vintage"] *));
|
|
2594
2594
|
@custom-variant theme-wintry (&:where([data-theme="wintry"] *));
|
|
2595
|
-
/* Components: Keyframe - Progress
|
|
2596
|
-
/* 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. */
|
|
2597
2613
|
/* Horizontal */
|
|
2598
|
-
@keyframes
|
|
2614
|
+
@keyframes progress-linear-indeterminate-horizontal {
|
|
2599
2615
|
from {
|
|
2616
|
+
scale: 0.5 1;
|
|
2600
2617
|
transform: translateX(-200%);
|
|
2601
2618
|
}
|
|
2602
2619
|
to {
|
|
2620
|
+
scale: 0.5 1;
|
|
2603
2621
|
transform: translateX(200%);
|
|
2604
2622
|
}
|
|
2605
2623
|
}
|
|
2606
2624
|
/* Vertical */
|
|
2607
|
-
@keyframes
|
|
2625
|
+
@keyframes progress-linear-indeterminate-vertical {
|
|
2608
2626
|
from {
|
|
2627
|
+
scale: 0.5 1;
|
|
2609
2628
|
transform: translateY(-200%);
|
|
2610
2629
|
}
|
|
2611
2630
|
to {
|
|
2631
|
+
scale: 0.5 1;
|
|
2612
2632
|
transform: translateY(200%);
|
|
2613
2633
|
}
|
|
2614
2634
|
}
|
|
2615
|
-
/* Components: Keyframe - Ring Indeterminate */
|
|
2616
|
-
/* NOTE: only for use in the progress ring functional component. */
|
|
2617
|
-
@keyframes anim-ring-indeterminate {
|
|
2618
|
-
from {
|
|
2619
|
-
stroke-dasharray: 1, 400;
|
|
2620
|
-
stroke-dashoffset: 0;
|
|
2621
|
-
}
|
|
2622
|
-
to {
|
|
2623
|
-
stroke-dasharray: 400, 400;
|
|
2624
|
-
stroke-dashoffset: -140;
|
|
2625
|
-
}
|
|
2626
|
-
}
|
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.7",
|
|
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,12 +25,12 @@
|
|
|
22
25
|
"tailwindcss": "^4.0.0"
|
|
23
26
|
},
|
|
24
27
|
"devDependencies": {
|
|
25
|
-
"sass-embedded": "1.
|
|
26
|
-
"tinyglobby": "0.2.
|
|
27
|
-
"vite": "7.1.
|
|
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": {
|
|
32
35
|
"dev": "vite build --watch",
|
|
33
36
|
"build": "vite build",
|