unocss.config.ts 810 B

123456789101112131415161718192021222324252627
  1. import {
  2. defineConfig,
  3. presetAttributify,
  4. presetTypography,
  5. presetUno,
  6. transformerDirectives,
  7. transformerVariantGroup,
  8. } from 'unocss';
  9. import { presetScrollbar } from 'unocss-preset-scrollbar';
  10. export default defineConfig({
  11. presets: [presetUno(), presetAttributify(), presetTypography(), presetScrollbar()],
  12. transformers: [transformerDirectives(), transformerVariantGroup()],
  13. theme: {
  14. colors: {
  15. primary: '#1ea54c',
  16. },
  17. },
  18. shortcuts: {
  19. 'pretty-scrollbar': 'scrollbar scrollbar-rounded scrollbar-thumb-color-gray-300 scrollbar-track-color-gray-100 dark:scrollbar-thumb-color-#424242 dark:scrollbar-track-color-#686868',
  20. 'divider': 'h-1px bg-current op-10',
  21. 'bg-surface': 'bg-#ffffff dark:bg-#232323',
  22. 'bg-background': 'bg-#f1f5f9 dark:bg-#1c1c1c',
  23. },
  24. });