uno.config.ts 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. import { defineConfig } from 'unocss';
  2. import presetWind3 from '@unocss/preset-wind3';
  3. export default defineConfig({
  4. // ...UnoCSS options
  5. presets: [presetWind3()],
  6. theme: {
  7. colors: {
  8. primary: '#082653',
  9. upcolor: '#00BB06',
  10. downcolor: '#F61800',
  11. },
  12. },
  13. shortcuts: {
  14. 'park-rpanel-item': 'park-panel-item park-panel-item-r',
  15. },
  16. rules: [
  17. [
  18. 'middle-content',
  19. {
  20. width: '6245px',
  21. position: 'absolute',
  22. left: '50%',
  23. transform: 'translateX(-50%)',
  24. },
  25. ],
  26. [
  27. 'chart-title',
  28. {
  29. 'font-family': 'PingFangSC-Medium, sans-serif',
  30. 'font-size': '44px',
  31. color: '#fff',
  32. },
  33. ],
  34. [
  35. 'num',
  36. {
  37. 'font-family': 'URWGothic-Book',
  38. },
  39. ],
  40. [
  41. 'park-item-title',
  42. {
  43. 'font-family': 'PingFangSC-Medium, sans-serif',
  44. 'font-size': '44px',
  45. 'line-height': '62px',
  46. },
  47. ],
  48. [
  49. 'park-panel-item',
  50. {
  51. width: '100%',
  52. background: `linear-gradient(
  53. 270deg,
  54. rgba(9, 41, 76, 0.5) 0%,
  55. rgba(9, 41, 76, 0) 100%
  56. )`,
  57. 'border-radius': '6px 6px 6px 6px',
  58. 'box-sizing': 'border-box',
  59. padding: '20px',
  60. },
  61. ],
  62. [
  63. 'park-panel-item-r',
  64. {
  65. background: `linear-gradient(
  66. 270deg,
  67. rgba(9, 41, 76, 0) 0%,
  68. rgba(9, 41, 76, 0.5) 100%
  69. )`,
  70. },
  71. ],
  72. ],
  73. });