mixin view-badge +view('badge', 'Badge') .c-box +badge(size='sm' href='#')= '50' = ' ' +badge(href='#')= '100' = ' ' +badge(size='lg' href='#')= '200' = ' ' +badge(size='xl' href='#')= '300' .c-box +badge(pill=true size='sm' href='#')= '50' = ' ' +badge(pill=true href='#')= '100' = ' ' +badge(pill=true size='lg' href='#')= '200' = ' ' +badge(pill=true size='xl' href='#')= '300' .c-box +badge(icon='image' size='sm' href='#')= '50' = ' ' +badge(icon='image' href='#')= '100' = ' ' +badge(icon='image' size='lg' href='#')= '200' = ' ' +badge(icon='image' size='xl' href='#')= '300' .c-box +badge(pill=true icon='image' size='sm' href='#')= '50' = ' ' +badge(pill=true icon='image' href='#')= '100' = ' ' +badge(pill=true icon='image' size='lg' href='#')= '200' = ' ' +badge(pill=true icon='image' size='xl' href='#')= '300' .c-box +badge(href='#')= '100' = ' ' +badge(quiet=true href='#')= '100' = ' ' +badge(pill=true href='#')= '100' = ' ' +badge(quiet=true pill=true href='#')= '100' each theme in ['accent', 'positive', 'negative', 'warning'] .c-box +badge(theme)(href='#')= 'new' = ' ' +badge(theme)(quiet=true href='#')= 'new' = ' ' +badge(theme)(pill=true href='#')= 'new' = ' ' +badge(theme)(quiet=true pill=true href='#')= 'new' each theme in ['static-black', 'static-white'] - const bg = theme.startsWith('static-black') ? 500 : 1000; .c-box(style=`background-color: var(--static-colors--blue--${bg});`) +badge(theme)(href='#')= 'new' = ' ' +badge(theme)(quiet=true href='#')= 'new' = ' ' +badge(theme)(pill=true href='#')= 'new' = ' ' +badge(theme)(quiet=true pill=true href='#')= 'new'