方诺官网改正版
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

tailwind.config.js 2.9 KiB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. const plugin = require("tailwindcss/plugin");
  2. module.exports = {
  3. purge: {
  4. enabled: process.env.NODE_ENV === "production",
  5. content: ["./public/**/*.html", "./src/**/*.vue"]
  6. },
  7. theme: {
  8. extend: {
  9. colors: {
  10. theme: {
  11. 1: "#1890FF",
  12. 2: "#F1F5F8",
  13. 3: "#3EA4FB",
  14. 4: "#5AAEFC",
  15. 5: "#dee7ef",
  16. 6: "#D32929",
  17. 7: "#365A74",
  18. 8: "#D2DFEA",
  19. 9: "#91C714",
  20. 10: "#3160D8",
  21. 11: "#F78B00",
  22. 12: "#FBC500",
  23. 13: "#7F9EB9",
  24. 14: "#E6F3FF",
  25. 15: "#8DA9BE",
  26. 16: "#607F96",
  27. 17: "#FFEFD9",
  28. 18: "#D8F8BC",
  29. 19: "#E6F3FF",
  30. 20: "#2449AF",
  31. 21: "#284EB2",
  32. 22: "#395EC1",
  33. 23: "#D6E1FF",
  34. 24: "#2e51bb",
  35. 25: "#C6D4FD",
  36. 26: "#E8EEFF",
  37. 27: "#98AFF5",
  38. 28: "#1A389F",
  39. 29: "#142C91",
  40. 30: "#8da3e6",
  41. 31: "#ffd8d8",
  42. 32: "#3b5998",
  43. 33: "#4ab3f4",
  44. 34: "#517fa4",
  45. 35: "#0077b5",
  46. 36: "#d18d96",
  47. 37: "#c7d2ff",
  48. 38: "#1890FF",
  49. 40: "#1890FF",
  50. 41: "#BBC8FD"
  51. },
  52. dark: {
  53. 1: "#293145",
  54. 2: "#232a3b",
  55. 3: "#313a55",
  56. 4: "#1e2533",
  57. 5: "#3f4865",
  58. 6: "#2b3348",
  59. 7: "#181f29"
  60. }
  61. },
  62. container: {
  63. center: true
  64. },
  65. maxWidth: {
  66. "1/4": "25%",
  67. "1/2": "50%",
  68. "3/4": "75%"
  69. },
  70. screens: {
  71. sm: "640px",
  72. md: "768px",
  73. lg: "1024px",
  74. xl: "1280px",
  75. xxl: "1600px"
  76. },
  77. strokeWidth: {
  78. "0.5": 0.5,
  79. "1.5": 1.5,
  80. "2.5": 2.5
  81. }
  82. }
  83. },
  84. variants: {
  85. zIndex: ["responsive", "hover"],
  86. position: ["responsive", "hover"],
  87. padding: ["responsive", "last"],
  88. margin: ["responsive", "last"],
  89. borderWidth: ["responsive", "last"],
  90. backgroundColor: [
  91. "last",
  92. "first",
  93. "odd",
  94. "responsive",
  95. "hover",
  96. "dark",
  97. "dark-hover"
  98. ],
  99. borderColor: [
  100. "last",
  101. "first",
  102. "odd",
  103. "responsive",
  104. "hover",
  105. "dark",
  106. "dark-hover"
  107. ],
  108. textColor: [
  109. "last",
  110. "first",
  111. "odd",
  112. "responsive",
  113. "hover",
  114. "dark",
  115. "dark-hover"
  116. ]
  117. },
  118. plugins: [
  119. plugin(function({ addVariant, e }) {
  120. addVariant("dark", ({ modifySelectors, separator }) => {
  121. modifySelectors(({ className }) => {
  122. return `.dark .${e(`dark${separator}${className}`)}`;
  123. });
  124. });
  125. addVariant("dark-hover", ({ modifySelectors, separator }) => {
  126. modifySelectors(({ className }) => {
  127. return `.dark .${e(
  128. `dark${separator}hover${separator}${className}`
  129. )}:hover`;
  130. });
  131. });
  132. })
  133. ]
  134. };