windi.config.ts 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. import { defineConfig } from "windicss/helpers"
  2. export default defineConfig({
  3. extract: {
  4. include: ["src/**/*.{vue,html}", "../hoppscotch-ui/src/**/*.{vue,html}"],
  5. },
  6. theme: {
  7. container: {
  8. center: true,
  9. },
  10. extend: {
  11. inset: {
  12. upperPrimaryStickyFold: "var(--upper-primary-sticky-fold)",
  13. upperSecondaryStickyFold: "var(--upper-secondary-sticky-fold)",
  14. upperTertiaryStickyFold: "var(--upper-tertiary-sticky-fold)",
  15. upperMobilePrimaryStickyFold: "var(--upper-mobile-primary-sticky-fold)",
  16. upperMobileSecondaryStickyFold:
  17. "var(--upper-mobile-secondary-sticky-fold)",
  18. upperMobileStickyFold: "var(--upper-mobile-sticky-fold)",
  19. upperMobileTertiaryStickyFold:
  20. "var(--upper-mobile-tertiary-sticky-fold)",
  21. lowerPrimaryStickyFold: "var(--lower-primary-sticky-fold)",
  22. lowerSecondaryStickyFold: "var(--lower-secondary-sticky-fold)",
  23. lowerTertiaryStickyFold: "var(--lower-tertiary-sticky-fold)",
  24. sidebarPrimaryStickyFold: "var(--sidebar-primary-sticky-fold)",
  25. sidebarSecondaryStickyFold: "var(--line-height-body)",
  26. },
  27. colors: {
  28. primary: "var(--primary-color)",
  29. primaryLight: "var(--primary-light-color)",
  30. primaryDark: "var(--primary-dark-color)",
  31. primaryContrast: "var(--primary-contrast-color)",
  32. secondary: "var(--secondary-color)",
  33. secondaryLight: "var(--secondary-light-color)",
  34. secondaryDark: "var(--secondary-dark-color)",
  35. accent: "var(--accent-color)",
  36. accentLight: "var(--accent-light-color)",
  37. accentDark: "var(--accent-dark-color)",
  38. accentContrast: "var(--accent-contrast-color)",
  39. divider: "var(--divider-color)",
  40. dividerLight: "var(--divider-light-color)",
  41. dividerDark: "var(--divider-dark-color)",
  42. error: "var(--error-color)",
  43. tooltip: "var(--tooltip-color)",
  44. popover: "var(--popover-color)",
  45. gradientFrom: "var(--gradient-from-color)",
  46. gradientVia: "var(--gradient-via-color)",
  47. gradientTo: "var(--gradient-to-color)",
  48. },
  49. fontFamily: {
  50. sans: "var(--font-sans)",
  51. mono: "var(--font-mono)",
  52. icon: "var(--font-icon)",
  53. },
  54. fontSize: {
  55. tiny: "var(--font-size-tiny)",
  56. body: "var(--font-size-body)",
  57. },
  58. lineHeight: {
  59. body: "var(--line-height-body)",
  60. },
  61. cursor: {
  62. nsResize: "ns-resize",
  63. grab: "grab",
  64. grabbing: "grabbing",
  65. },
  66. },
  67. },
  68. })