Gathering detailed insights and metrics for @gradin/tailwindcss-skeleton-screen
Gathering detailed insights and metrics for @gradin/tailwindcss-skeleton-screen
Gathering detailed insights and metrics for @gradin/tailwindcss-skeleton-screen
Gathering detailed insights and metrics for @gradin/tailwindcss-skeleton-screen
Tailwindcss plugin to make skeleton screen. We provide the basic animation, and you can customize them to your liking.
npm install @gradin/tailwindcss-skeleton-screen
Typescript
Module System
Node Version
NPM Version
68.5
Supply Chain
98.8
Quality
75.7
Maintenance
100
Vulnerability
100
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
22 Stars
16 Commits
1 Watchers
1 Branches
3 Contributors
Updated on Dec 07, 2024
Latest Version
1.0.2
Package Id
@gradin/tailwindcss-skeleton-screen@1.0.2
Unpacked Size
6.45 kB
Size
2.62 kB
File Count
5
NPM Version
7.10.0
Node Version
16.0.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
1
Tailwindcss plugin to make skeleton screen.
1# Using npm 2npm install -D @gradin/tailwindcss-skeleton-screen 3 4# Using Yarn 5yarn add -D @gradin/tailwindcss-skeleton-screen
Then add the plugin to tailwind.config.js
file
1module.exports = { 2 theme: { 3 // ... 4 }, 5 6 plugins: [ 7 require('@gradin/tailwindcss-skeleton-screen'), 8 ], 9}
You can change the color and animation via theme
settings.
The object keys will be appended to the end of the .loading
class.
The base .loading
class can be configured by DEFAULT
key.
1module.exports = { 2 theme: { 3 skeletonScreen: { 4 DEFAULT: { // .loading 5 baseColor: '#c7c7c7', 6 movingColor: 'linear-gradient(to right, transparent 0%, #E8E8E8 50%, transparent 100%)', 7 duration: '1s', 8 timing: 'cubic-bezier(0.4, 0.0, 0.2, 1)', 9 }, 10 // specify another color to have multiple loading colors. 11 blue: { // .loading-blue 12 baseColor: 'blue', 13 movingColor: 'linear-gradient(to right, transparent 0%, lightblue 50%, transparent 100%)', 14 duration: '.3s', 15 timing: 'ease', 16 }, 17 }, 18 }, 19}
Or you can use theme.extend
to add another color in addition to the default.
1module.exports = { 2 theme: { 3 extend: { 4 skeletonScreen: { 5 red: { // .loading-red 6 baseColor: 'red', 7 movingColor: 'pink', 8 duration: '3s', 9 timing: 'ease', 10 }, 11 }, 12 }, 13 }, 14}
If you want to use colors from your theme. You can do it like this. Learn more about this here.
1module.exports = { 2 theme: { 3 skeletonScreen: theme => ({ 4 DEFAULT: { 5 baseColor: theme('colors.gray.300'), 6 movingColor: 'linear-gradient(to right, transparent 0%, ' + theme('colors.gray.50') + ' 50%, transparent 100%)', 7 duration: '1s', 8 timing: 'ease', 9 }, 10 }), 11 }, 12}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
7 existing vulnerabilities detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/16 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More