Skip to content

Commit

Permalink
chore: fix interactive docs
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 24, 2023
1 parent 9273a0e commit 7ce2756
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions interactive/unocss.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,18 @@ export default defineConfig({
}),
],
shortcuts: [
[/^badge-(.*)$/, ([, c]) => `bg-${c}4:10 text-${c}5 rounded`],
[/^badge-xs-(.*)$/, ([, c]) => `badge-${c} text-xs px2 py0.5`],
[/^badge-sm-(.*)$/, ([, c]) => `badge-${c} text-sm px3 py0.6`],
[/^badge-lg-(.*)$/, ([, c]) => `badge-${c} px3 py0.8`],
[/^badge-square-(.*)$/, ([, c]) => `badge-${c} w-7 h-7 text-lg font-200 flex flex-none items-center justify-center`],
{
'border-base': 'border-gray-500:10',
'bg-base': 'bg-white dark:bg-hex-121212',
'btn': 'px-4 py-1 inline-block bg-cyan6 hover:bg-cyan7 text-white cursor-pointer disabled:cursor-default disabled:bg-gray-600 disabled:opacity-50',
'link': 'op50 hover:op100 hover:text-cyan6',
'divider': 'border-b border-base',
},
[/^badge-xs-(.*)$/, ([, c]) => `badge-${c} text-xs px2 py0.5`],
[/^badge-sm-(.*)$/, ([, c]) => `badge-${c} text-sm px3 py0.6`],
[/^badge-lg-(.*)$/, ([, c]) => `badge-${c} px3 py0.8`],
[/^badge-square-(.*)$/, ([, c]) => `badge-${c} w-7 h-7 text-lg font-200 flex flex-none items-center justify-center`],
[/^badge-(.*)$/, ([, c]) => `bg-${c}4:10 text-${c}5 rounded`],
],
transformers: [
transformerVariantGroup(),
Expand Down

0 comments on commit 7ce2756

Please sign in to comment.