windi.config.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. import { defineConfig } from 'windicss/helpers'
  2. // import plugin from 'windicss/plugin'
  3. // function range(size, startAt = 1) {
  4. // return Array.from(Array(size).keys()).map((i) => i + startAt)
  5. // }
  6. export default defineConfig({
  7. extract: {
  8. include: ['src/**/*.{vue,html,jsx,tsx}'],
  9. exclude: ['node_modules', '.git']
  10. },
  11. darkMode: 'class',
  12. attributify: false,
  13. theme: {
  14. extend: {
  15. backgroundColor: {
  16. // 暗黑背景色
  17. 'v-dark': 'var(--dark-bg-color)'
  18. }
  19. // screens: {
  20. // sm: '768px',
  21. // md: '992px',
  22. // lg: '1200px',
  23. // xl: '1920px'
  24. // }
  25. }
  26. // height: {
  27. // ...range(50).map((i) => `h-${i}px`)
  28. // },
  29. // margin: {
  30. // // ...range(50).map((i) => `mt-${i}px`),
  31. // // ...range(50).map((i) => `mr-${i}px`),
  32. // // ...range(50).map((i) => `mb-${i}px`),
  33. // // ...range(50).map((i) => `ml-${i}px`)
  34. // }
  35. }
  36. // plugins: [
  37. // plugin(({ addComponents }) => {
  38. // addComponents({
  39. // '.hover-tigger': {
  40. // display: 'flex',
  41. // height: '100%',
  42. // padding: '1px 10px 0',
  43. // cursor: 'pointer',
  44. // alignItems: 'center',
  45. // transition: 'background var(--transition-time-02)',
  46. // '&:hover': {
  47. // backgroundColor: '#f6f6f6'
  48. // }
  49. // },
  50. // '.border-bottom': {
  51. // position: 'relative',
  52. // '&:after': {
  53. // position: 'absolute',
  54. // bottom: '0',
  55. // left: '0',
  56. // width: '100%',
  57. // height: '1px',
  58. // borderTop: '1px solid var(--top-tool-border-color)',
  59. // content: ''
  60. // }
  61. // }
  62. // })
  63. // })
  64. // ]
  65. })