unocss.config.ts 727 B

123456789101112131415161718192021222324252627282930
  1. import {
  2. transformerVariantGroup,
  3. transformerDirectives,
  4. presetAttributify,
  5. defineConfig,
  6. presetMini,
  7. presetUno,
  8. } from 'unocss';
  9. // https://github.com/unocss/unocss#readme
  10. export default defineConfig({
  11. presets: [
  12. presetMini({ dark: 'class' }),
  13. // https://unocss.dev/presets/attributify#properties-conflicts
  14. presetAttributify({ prefix: 'un-', prefixedOnly: true }),
  15. presetUno(),
  16. ],
  17. transformers: [transformerDirectives(), transformerVariantGroup()],
  18. shortcuts: {
  19. 'wh-full': 'w-full h-full',
  20. 'flex-ac': 'flex justify-around items-center',
  21. 'flex-bc': 'flex justify-between items-center',
  22. },
  23. theme: {
  24. colors: {
  25. grey: '#797979',
  26. blue: '#3078f0',
  27. },
  28. },
  29. });