Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions packages/theme-saas/plugins/loadTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ function loadLayout(designToken) {
const space = Layout.space
const boxShadow = Layout.boxShadow
const opacity = Layout.opacity
const backgroundSize = Layout.backgroundSize

layoutToken.fontSize = getToken('fontSize', fontSize)
layoutToken.lineHeight = getToken('lineHeight', lineHeight)
Expand All @@ -136,7 +135,6 @@ function loadLayout(designToken) {
layoutToken.spacing = getToken('spacing', space)
layoutToken.boxShadow = getToken('boxShadow', boxShadow)
layoutToken.opacity = getToken('opacity', opacity)
layoutToken.backgroundSize = getToken('backgroundSize', {})

return layoutToken
}
Expand Down
2 changes: 1 addition & 1 deletion packages/theme-saas/src/skeleton-item/index.less
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
@apply from-color-border-separator;
@apply via-color-bg-2;
@apply to-color-border-separator;
@apply bg-200-100;
@apply bg-w200h100;
@apply animate-skeleton-loading-1500ms;
}
}
Expand Down
4 changes: 3 additions & 1 deletion packages/theme-saas/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ module.exports = {
borderRadius: layoutToken.borderRadius,
borderWidth: layoutToken.borderWidth,
opacity: layoutToken.opacity,
backgroundSize: layoutToken.backgroundSize,
extend: {
backgroundSize: {
'w200h100': '200% 100%'
},
animation: {
'skeleton-loading-1500ms': '1.5s skeleton-loading-1500ms ease-in-out infinite'
},
Expand Down
3 changes: 0 additions & 3 deletions packages/theme-saas/theme/defaultTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,5 @@ module.exports = {
sm: '0.125rem',
DEFAULT: '0.25rem',
none: '0px'
},
backgroundSize: {
'200-100': '200% 100%'
}
}
2 changes: 1 addition & 1 deletion packages/vue/src/skeleton-item/src/mobile-first.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
gcls(`shape-${variant}`),
variant !== 'square' ? gcls(`${variant}-${size}`) : '',
state.isActive &&
'bg-200-100 bg-gradient-to-r from-color-border-separator via-color-bg-2 to-color-border-separator animate-skeleton-loading-1500ms'
'bg-w200h100 bg-gradient-to-r from-color-border-separator via-color-bg-2 to-color-border-separator animate-skeleton-loading-1500ms'
)
"
>
Expand Down
Loading