uni.scss 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /**
  2. * uni-app内置的常用样式变量
  3. */
  4. @import '@/uni_modules/uview-ui/theme.scss';
  5. /* 行为相关颜色 */
  6. $uni-color-primary: #007aff;
  7. $uni-color-success: #4cd964;
  8. $uni-color-warning: #f0ad4e;
  9. $uni-color-error: #dd524d;
  10. /* 文字基本颜色 */
  11. $uni-text-color:#333;//基本色
  12. $uni-text-color-inverse:#fff;//反色
  13. $uni-text-color-grey:#999;//辅助灰色,如加载更多的提示信息
  14. $uni-text-color-placeholder: #808080;
  15. $uni-text-color-disable:#c0c0c0;
  16. /* 背景颜色 */
  17. $uni-bg-color:#ffffff;
  18. $uni-bg-color-grey:#f8f8f8;
  19. $uni-bg-color-hover:#f1f1f1;//点击状态颜色
  20. $uni-bg-color-mask:rgba(0, 0, 0, 0.4);//遮罩颜色
  21. /* 边框颜色 */
  22. $uni-border-color:#e5e5e5;
  23. /* 尺寸变量 */
  24. /* 文字尺寸 */
  25. $uni-font-size-sm:12px;
  26. $uni-font-size-base:14px;
  27. $uni-font-size-lg:16px;
  28. /* 图片尺寸 */
  29. $uni-img-size-sm:20px;
  30. $uni-img-size-base:26px;
  31. $uni-img-size-lg:40px;
  32. /* Border Radius */
  33. $uni-border-radius-sm: 2px;
  34. $uni-border-radius-base: 3px;
  35. $uni-border-radius-lg: 6px;
  36. $uni-border-radius-circle: 50%;
  37. /* 水平间距 */
  38. $uni-spacing-row-sm: 5px;
  39. $uni-spacing-row-base: 10px;
  40. $uni-spacing-row-lg: 15px;
  41. /* 垂直间距 */
  42. $uni-spacing-col-sm: 4px;
  43. $uni-spacing-col-base: 8px;
  44. $uni-spacing-col-lg: 12px;
  45. /* 透明度 */
  46. $uni-opacity-disabled: 0.3; // 组件禁用态的透明度
  47. /* 文章场景相关 */
  48. $uni-color-title: #2C405A; // 文章标题颜色
  49. $uni-font-size-title:20px;
  50. $uni-color-subtitle: #555555; // 二级标题颜色
  51. $uni-font-size-subtitle:26px;
  52. $uni-color-paragraph: #3F536E; // 文章段落颜色
  53. $uni-font-size-paragraph:15px;