feat: add skeleton gradients and shimmer animations

This commit is contained in:
2025-09-02 12:51:31 -06:00
parent 178ae7777c
commit d3bfd585a7
3 changed files with 26 additions and 3 deletions

View File

@@ -99,7 +99,20 @@ const srJuggernautPandaPreset = (config?: themeConfig) => {
extrabold: { value: '800' },
black: { value: '900' }
},
gradients: {},
gradients: {
skeleton: {
value: {
type: 'linear',
placement: 'to right',
stops: [
'color-mix(in srgb, {colors.neutral.12} 0%, transparent 100%) 0%',
'color-mix(in srgb, {colors.neutral.12} 10%, transparent 100%) 20%',
'color-mix(in srgb, {colors.neutral.12} 30%, transparent 100%) 30%',
'color-mix(in srgb, {colors.neutral.12} 0%, transparent 100%) 40%'
]
}
}
},
letterSpacings: {},
lineHeights: {
none: { value: '1em' },
@@ -133,6 +146,16 @@ const srJuggernautPandaPreset = (config?: themeConfig) => {
},
zIndex: {}
},
keyframes: {
shimmerRight: {
'0%': { transform: 'translateX(-100%)' },
'100%': { transform: 'translateX(150%)' }
},
shimmerLeft: {
'0%': { transform: 'translateX(100%)' },
'100%': { transform: 'translateX(-150%)' }
}
},
semanticTokens: {
colors: {
neutral: neutral,