@ludiks/react
Version:
Complete React library for Ludiks gamification platform - includes SDK and ready-to-use components
95 lines (89 loc) • 2.18 kB
JavaScript
export function createStyles(styles) {
return styles;
}
export const commonStyles = {
// Animations
fadeIn: {
animation: 'fadeIn 0.3s ease-in-out',
},
slideUp: {
animation: 'slideUp 0.3s ease-out',
},
scaleIn: {
animation: 'scaleIn 0.2s ease-out',
},
pulse: {
animation: 'pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite',
},
// Shadows
shadowSm: {
boxShadow: '0 1px 2px 0 rgba(0, 0, 0, 0.05)',
},
shadowMd: {
boxShadow: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)',
},
shadowLg: {
boxShadow: '0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)',
},
shadowXl: {
boxShadow: '0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
},
// Gradients
gradientPrimary: {
background: 'linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%)',
},
gradientSuccess: {
background: 'linear-gradient(135deg, #10b981 0%, #059669 100%)',
},
gradientWarning: {
background: 'linear-gradient(135deg, #f59e0b 0%, #d97706 100%)',
},
gradientGray: {
background: 'linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%)',
},
// Transitions
transition: {
transition: 'all 0.2s ease-in-out',
},
transitionSlow: {
transition: 'all 0.3s ease-in-out',
},
};
export const keyframes = `
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes slideUp {
from {
transform: translateY(10px);
opacity: 0;
}
to {
transform: translateY(0);
opacity: 1;
}
}
@keyframes scaleIn {
from {
transform: scale(0.95);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.5; }
}
@keyframes bounce {
0%, 100% { transform: translateY(0); }
50% { transform: translateY(-5px); }
}
@keyframes shimmer {
0% { background-position: -200px 0; }
100% { background-position: calc(200px + 100%) 0; }
}
`;