Security News
38% of CISOs Fear They’re Not Moving Fast Enough on AI
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
@gradin/tailwindcss-skeleton-screen
Advanced tools
Tailwindcss plugin to make skeleton screen.
# Using npm
npm install -D @gradin/tailwindcss-skeleton-screen
# Using Yarn
yarn add -D @gradin/tailwindcss-skeleton-screen
Then add the plugin to tailwind.config.js
file
module.exports = {
theme: {
// ...
},
plugins: [
require('@gradin/tailwindcss-skeleton-screen'),
],
}
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.
module.exports = {
theme: {
skeletonScreen: {
DEFAULT: { // .loading
baseColor: '#c7c7c7',
movingColor: 'linear-gradient(to right, transparent 0%, #E8E8E8 50%, transparent 100%)',
duration: '1s',
timing: 'cubic-bezier(0.4, 0.0, 0.2, 1)',
},
// specify another color to have multiple loading colors.
blue: { // .loading-blue
baseColor: 'blue',
movingColor: 'linear-gradient(to right, transparent 0%, lightblue 50%, transparent 100%)',
duration: '.3s',
timing: 'ease',
},
},
},
}
Or you can use theme.extend
to add another color in addition to the default.
module.exports = {
theme: {
extend: {
skeletonScreen: {
red: { // .loading-red
baseColor: 'red',
movingColor: 'pink',
duration: '3s',
timing: 'ease',
},
},
},
},
}
If you want to use colors from your theme. You can do it like this. Learn more about this here.
module.exports = {
theme: {
skeletonScreen: theme => ({
DEFAULT: {
baseColor: theme('colors.gray.300'),
movingColor: 'linear-gradient(to right, transparent 0%, ' + theme('colors.gray.50') + ' 50%, transparent 100%)',
duration: '1s',
timing: 'ease',
},
}),
},
}
FAQs
Tailwindcss plugin to make skeleton screen.
The npm package @gradin/tailwindcss-skeleton-screen receives a total of 0 weekly downloads. As such, @gradin/tailwindcss-skeleton-screen popularity was classified as not popular.
We found that @gradin/tailwindcss-skeleton-screen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.
Security News
Company News
Socket is joining TC54 to help develop standards for software supply chain security, contributing to the evolution of SBOMs, CycloneDX, and Package URL specifications.