uno.config.ts 752 B

123456789101112131415161718192021222324252627282930313233
  1. import {
  2. defineConfig,
  3. presetAttributify,
  4. presetIcons,
  5. presetTypography,
  6. presetUno,
  7. presetWebFonts,
  8. transformerDirectives,
  9. transformerVariantGroup
  10. } from 'unocss';
  11. export default defineConfig({
  12. shortcuts: {
  13. 'panel-title':
  14. 'pb-[5px] font-sans leading-[1.1] font-medium text-base text-[#6379bb] border-b border-b-solid border-[var(--el-border-color-light)] mb-5 mt-0'
  15. },
  16. theme: {
  17. colors: {
  18. primary: 'var(--el-color-primary)',
  19. primary_dark: 'var(--el-color-primary-light-5)'
  20. }
  21. },
  22. presets: [
  23. presetUno(),
  24. presetAttributify(),
  25. presetIcons(),
  26. presetTypography(),
  27. presetWebFonts({
  28. fonts: {}
  29. })
  30. ],
  31. transformers: [transformerDirectives(), transformerVariantGroup()]
  32. });