global_20241228161049.scss 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. /*
  2. * App Global CSS
  3. * ----------------------------------------------------------------------------
  4. * Put style rules here that you want to apply globally. These styles are for
  5. * the entire app and not just one component. Additionally, this file can be
  6. * used as an entry point to import other CSS/Sass files to be included in the
  7. * output CSS.
  8. * For more information on global stylesheets, visit the documentation:
  9. * https://ionicframework.com/docs/layout/global-stylesheets
  10. */
  11. /* Core CSS required for Ionic components to work properly */
  12. @import "@ionic/angular/css/core.css";
  13. /* Basic CSS for apps built with Ionic */
  14. @import "@ionic/angular/css/normalize.css";
  15. @import "@ionic/angular/css/structure.css";
  16. @import "@ionic/angular/css/typography.css";
  17. @import "@ionic/angular/css/display.css";
  18. /* Optional CSS utils that can be commented out */
  19. @import "@ionic/angular/css/padding.css";
  20. @import "@ionic/angular/css/float-elements.css";
  21. @import "@ionic/angular/css/text-alignment.css";
  22. @import "@ionic/angular/css/text-transformation.css";
  23. @import "@ionic/angular/css/flex-utils.css";
  24. /**
  25. * Ionic Dark Mode
  26. * -----------------------------------------------------
  27. * For more info, please see:
  28. * https://ionicframework.com/docs/theming/dark-mode
  29. */
  30. /* @import "@ionic/angular/css/palettes/dark.always.css"; */
  31. /* @import "@ionic/angular/css/palettes/dark.class.css"; */
  32. @import '@ionic/angular/css/palettes/dark.system.css';
  33. /* global.scss */
  34. /* 暖色主题 */
  35. .warm-theme {
  36. --background: #f9e79f; /* 浅黄色背景 */
  37. --ion-background-color: #f9e79f; /* 确保背景颜色生效 */
  38. --ion-color-warning: #ffcc80; /* 暖色按钮颜色 */
  39. --ion-color-danger: #ffcdd2; /* 粉色按钮颜色 */
  40. }
  41. /* 粉色主题 */
  42. .pink-theme {
  43. --background: #fce4ec; /* 浅粉色背景 */
  44. --ion-background-color: #fce4ec; /* 确保背景颜色生效 */
  45. --ion-color-warning: #ffe0b2; /* 暖色按钮颜色 */
  46. --ion-color-danger: #ffc0cb; /* 粉色按钮颜色 */
  47. }
  48. .default-theme {
  49. --background: #ffffff; /* 白色背景 */
  50. --ion-background-color: #ffffff; /* 确保背景颜色生效 */
  51. }
  52. :root {
  53. --ion-color-pink: #ffc0cb; /* 粉色 */
  54. --ion-color-pink-rgb: 255, 192, 203;
  55. --ion-color-pink-contrast: #000000; /* 黑色文字以确保可读性 */
  56. --ion-color-pink-shade: #d7aebb;
  57. --ion-color-pink-tint: #ffe6eb;
  58. }