uni.scss 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /**
  2. * uni-app 内置变量
  3. */
  4. /* 主题色 */
  5. $uni-primary: #FF6B6B;
  6. $uni-primary-light: #ff8a8a;
  7. $uni-primary-dark: #e65c5c;
  8. /* 背景色 */
  9. $uni-bg-color: #ffffff;
  10. $uni-bg-color-grey: #f5f5f5;
  11. /* 边框颜色 */
  12. $uni-border-color: #e5e5e5;
  13. /* 文字颜色 */
  14. $uni-text-color: #333333;
  15. $uni-text-color-inverse: #ffffff;
  16. $uni-text-color-grey: #999999;
  17. $uni-text-color-placeholder: #808080;
  18. /* 字体大小 */
  19. $uni-font-size-sm: 24rpx;
  20. $uni-font-size-base: 28rpx;
  21. $uni-font-size-lg: 32rpx;
  22. /** Design tokens bridging CSS variables for the new playful UI **/
  23. :root {
  24. --color-primary: #0EA5E9; /* Accent blue for primary actions (override) */
  25. --bg: #F7FAFD; /* Page background */
  26. --surface: #FFFFFF; /* Card surface */
  27. --text: #333333; /* Body text */
  28. --muted: #999999; /* Secondary text */
  29. --border: #e5e5e5; /* Borders/dividers */
  30. --radius-card: 20px;
  31. --shadow-soft: 0 6px 18px rgba(14, 165, 233, 0.12);
  32. --font-display: "Geist", system-ui, "Noto Sans SC", sans-serif;
  33. --font-body: "Inter", system-ui, "Noto Sans SC", sans-serif;
  34. }
  35. /* Helper playground styles aligned to the new design tokens */
  36. .playful-hero { padding: 6px 0 8px; }
  37. .playful-title { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: var(--text); }
  38. .playful-subtitle { font-family: var(--font-body); color: var(--muted); margin-top: 6px; }
  39. .section-header { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
  40. .grid { display: flex; gap: 12px; padding: 6px 0; }
  41. .stat { padding: 8px 12px; border-radius: 12px; background: #f0faff; border: 1px solid #e0f0ff; color: #0b4a6e; }
  42. .p { font-family: var(--font-body); font-size: 1rem; line-height: 1.6; color: var(--text); }