UNPKG

@penaprieto/design-system

Version:

Multi-brand React design system with design tokens from Figma

65 lines (55 loc) 1 kB
/* Base Spinner */ .ds-spinner { display: inline-block; -webkit-font-smoothing: antialiased; } .ds-spinner__svg { animation: ds-spinner-rotate 2s linear infinite; width: 100%; height: 100%; } .ds-spinner__circle { stroke: currentColor; stroke-linecap: round; animation: ds-spinner-dash 1.5s ease-in-out infinite; } /* Sizes */ .ds-spinner--small { width: 16px; height: 16px; } .ds-spinner--medium { width: 24px; height: 24px; } .ds-spinner--large { width: 40px; height: 40px; } /* Colors */ .ds-spinner--primary { color: var(--semantic-icon-brand-bold); } .ds-spinner--inverse { color: var(--semantic-icon-inverse-bold); } /* Animations */ @keyframes ds-spinner-rotate { 100% { transform: rotate(360deg); } } @keyframes ds-spinner-dash { 0% { stroke-dasharray: 1, 150; stroke-dashoffset: 0; } 50% { stroke-dasharray: 90, 150; stroke-dashoffset: -35; } 100% { stroke-dasharray: 90, 150; stroke-dashoffset: -124; } }