-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yuany16
committed
Sep 25, 2023
1 parent
605cb85
commit 1a5594e
Showing
4 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// unocss config: https://unocss.dev/config/ | ||
// interactive: https://unocss.dev/interactive | ||
import { | ||
defineConfig, | ||
presetAttributify, | ||
presetIcons, | ||
presetTypography, | ||
presetUno, | ||
presetWebFonts, | ||
transformerDirectives, | ||
transformerVariantGroup | ||
} from 'unocss' | ||
|
||
export default defineConfig({ | ||
shortcuts: [ | ||
// shortcuts to multiple utilities | ||
{ | ||
btn: 'py-2 px-4 font-semibold rounded-lg shadow-md cursor-pointer border-none', | ||
}, | ||
// dynamic shortcuts | ||
[/^btn-(.*)$/, ([, c]) => `btn bg-${c}-400 text-${c}-100`] | ||
], | ||
theme: { | ||
colors: { | ||
// ... | ||
} | ||
}, | ||
presets: [ | ||
presetUno(), | ||
presetAttributify(), | ||
presetIcons({ | ||
collections: { | ||
// https://tabler-icons.io/ | ||
'tabler-icons': () => import('@iconify-json/tabler/icons.json').then(i => i.default), | ||
} | ||
}), | ||
presetTypography(), | ||
presetWebFonts({ | ||
fonts: { | ||
// ... | ||
}, | ||
}), | ||
], | ||
transformers: [ | ||
transformerDirectives(), | ||
transformerVariantGroup(), | ||
], | ||
}) |