unocss.config.ts 994 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /** @format */
  2. import {
  3. defineConfig,
  4. presetAttributify,
  5. presetIcons,
  6. presetTypography,
  7. presetUno,
  8. presetWind,
  9. presetWebFonts,
  10. transformerDirectives,
  11. transformerVariantGroup,
  12. } from "unocss"
  13. // @unocss-include
  14. export default defineConfig({
  15. shortcuts: [
  16. ["n-link", "op50 hover:(op100 text-primary) transition"],
  17. ["n-link-text", "n-link underline"],
  18. [
  19. "n-tab",
  20. "text-xl tracking-wide uppercase p3 border-b-2 border-transparent op20 transition",
  21. ],
  22. ["n-tab-active", "border-current op100"],
  23. ["border-base", "border-gray-400/20"],
  24. ],
  25. rules: [
  26. [
  27. /^view-transition-([\w-]+)$/,
  28. ([, name]) => ({ "view-transition-name": name }),
  29. ],
  30. ],
  31. theme: {
  32. colors: {
  33. primary: "#C58C64",
  34. },
  35. },
  36. presets: [
  37. presetUno(),
  38. presetWind(),
  39. presetAttributify(),
  40. presetIcons({
  41. scale: 1.2,
  42. }),
  43. presetTypography(),
  44. ],
  45. transformers: [transformerDirectives(), transformerVariantGroup()],
  46. })