unocss.config.js 812 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. import {
  2. defineConfig,
  3. presetAttributify,
  4. presetIcons,
  5. presetTypography,
  6. presetUno,
  7. presetWebFonts,
  8. transformerDirectives,
  9. transformerVariantGroup
  10. } from 'unocss'
  11. // https://unocss.dev/guide/config-file
  12. export default defineConfig({
  13. rules: [
  14. ['lr-box-bg', { background: 'no-repeat center/100% 100% url(@/assets/images/lr-box-bg.png)' }],
  15. [
  16. 'breadcrumb-bg',
  17. { background: 'no-repeat center/100% 100% url(@/assets/images/breadcrumb-bg.png)' }
  18. ]
  19. ],
  20. shortcuts: [
  21. // ...
  22. ],
  23. theme: {
  24. colors: {
  25. // ...
  26. }
  27. },
  28. presets: [
  29. presetUno(),
  30. presetAttributify(),
  31. presetIcons(),
  32. presetTypography(),
  33. presetWebFonts({
  34. fonts: {
  35. // ...
  36. }
  37. })
  38. ],
  39. transformers: [transformerDirectives(), transformerVariantGroup()]
  40. })