|
1 | 1 | :root { |
2 | | - // --ion-color-primary: #8e95fd; |
3 | 2 | --ion-color-primary: #6068da; |
4 | 3 | --ion-color-primary-rgb: 142, 149, 253; |
5 | 4 | --ion-color-primary-contrast: #fff; |
|
72 | 71 | --ion-color-shade: var(--ion-color-secondary-shade); |
73 | 72 | --ion-color-tint: var(--ion-color-secondary-tint); |
74 | 73 | } |
| 74 | + |
| 75 | +/* |
| 76 | +* Dark Colors |
| 77 | +* ------------------ |
| 78 | +*/ |
| 79 | + |
| 80 | +body.dark { |
| 81 | + --ion-color-primary: #6068da; |
| 82 | + --ion-color-primary-rgb: 142, 149, 253; |
| 83 | + --ion-color-primary-contrast: #fff; |
| 84 | + --ion-color-primary-contrast-rgb: 0, 0, 0; |
| 85 | + --ion-color-primary-shade: #7d83df; |
| 86 | + --ion-color-primary-tint: #99a0fd; |
| 87 | + |
| 88 | + --ion-color-secondary: #f08d49; |
| 89 | + --ion-color-secondary-rgb: 240, 141, 73; |
| 90 | + --ion-color-secondary-contrast: #000000; |
| 91 | + --ion-color-secondary-contrast-rgb: 0, 0, 0; |
| 92 | + --ion-color-secondary-shade: #d37c40; |
| 93 | + --ion-color-secondary-tint: #f2985b; |
| 94 | + |
| 95 | + --ion-color-tertiary: #7ec699; |
| 96 | + --ion-color-tertiary-rgb: 126, 198, 153; |
| 97 | + --ion-color-tertiary-contrast: #000000; |
| 98 | + --ion-color-tertiary-contrast-rgb: 0, 0, 0; |
| 99 | + --ion-color-tertiary-shade: #6fae87; |
| 100 | + --ion-color-tertiary-tint: #8bcca3; |
| 101 | + |
| 102 | + --ion-color-success: #10dc60; |
| 103 | + --ion-color-success-rgb: 16, 220, 96; |
| 104 | + --ion-color-success-contrast: #ffffff; |
| 105 | + --ion-color-success-contrast-rgb: 255, 255, 255; |
| 106 | + --ion-color-success-shade: #0ec254; |
| 107 | + --ion-color-success-tint: #28e070; |
| 108 | + |
| 109 | + --ion-color-warning: #ffce00; |
| 110 | + --ion-color-warning-rgb: 255, 206, 0; |
| 111 | + --ion-color-warning-contrast: #ffffff; |
| 112 | + --ion-color-warning-contrast-rgb: 255, 255, 255; |
| 113 | + --ion-color-warning-shade: #e0b500; |
| 114 | + --ion-color-warning-tint: #ffd31a; |
| 115 | + |
| 116 | + --ion-color-danger: #f04141; |
| 117 | + --ion-color-danger-rgb: 245, 61, 61; |
| 118 | + --ion-color-danger-contrast: #ffffff; |
| 119 | + --ion-color-danger-contrast-rgb: 255, 255, 255; |
| 120 | + --ion-color-danger-shade: #d33939; |
| 121 | + --ion-color-danger-tint: #f25454; |
| 122 | + |
| 123 | + --ion-color-dark: #f4f5f8; |
| 124 | + --ion-color-dark-rgb: 244, 245, 248; |
| 125 | + --ion-color-dark-contrast: #000000; |
| 126 | + --ion-color-dark-contrast-rgb: 0, 0, 0; |
| 127 | + --ion-color-dark-shade: #d7d8da; |
| 128 | + --ion-color-dark-tint: #f5f6f9; |
| 129 | + |
| 130 | + --ion-color-medium: #989aa2; |
| 131 | + --ion-color-medium-rgb: 152, 154, 162; |
| 132 | + --ion-color-medium-contrast: #000000; |
| 133 | + --ion-color-medium-contrast-rgb: 0, 0, 0; |
| 134 | + --ion-color-medium-shade: #86888f; |
| 135 | + --ion-color-medium-tint: #a2a4ab; |
| 136 | + |
| 137 | + --ion-color-light: #222428; |
| 138 | + --ion-color-light-rgb: 34, 36, 40; |
| 139 | + --ion-color-light-contrast: #ffffff; |
| 140 | + --ion-color-light-contrast-rgb: 255, 255, 255; |
| 141 | + --ion-color-light-shade: #1e2023; |
| 142 | + --ion-color-light-tint: #383a3e; |
| 143 | +} |
| 144 | + |
| 145 | +/* |
| 146 | +* iOS Dark Theme |
| 147 | +* ------------------------------------------- |
| 148 | +*/ |
| 149 | + |
| 150 | +.ios body.dark { |
| 151 | + --ion-background-color: #000000; |
| 152 | + --ion-background-color-rgb: 0, 0, 0; |
| 153 | + |
| 154 | + --ion-text-color: #ffffff; |
| 155 | + --ion-text-color-rgb: 255, 255, 255; |
| 156 | + |
| 157 | + --ion-color-step-50: #0d0d0d; |
| 158 | + --ion-color-step-100: #1a1a1a; |
| 159 | + --ion-color-step-150: #262626; |
| 160 | + --ion-color-step-200: #333333; |
| 161 | + --ion-color-step-250: #404040; |
| 162 | + --ion-color-step-300: #4d4d4d; |
| 163 | + --ion-color-step-350: #595959; |
| 164 | + --ion-color-step-400: #666666; |
| 165 | + --ion-color-step-450: #737373; |
| 166 | + --ion-color-step-500: #808080; |
| 167 | + --ion-color-step-550: #8c8c8c; |
| 168 | + --ion-color-step-600: #999999; |
| 169 | + --ion-color-step-650: #a6a6a6; |
| 170 | + --ion-color-step-700: #b3b3b3; |
| 171 | + --ion-color-step-750: #bfbfbf; |
| 172 | + --ion-color-step-800: #cccccc; |
| 173 | + --ion-color-step-850: #d9d9d9; |
| 174 | + --ion-color-step-900: #e6e6e6; |
| 175 | + --ion-color-step-950: #f2f2f2; |
| 176 | + |
| 177 | + --ion-toolbar-background: #0d0d0d; |
| 178 | + |
| 179 | + --ion-item-background: #1c1c1c; |
| 180 | + --ion-item-background-activated: #313131; |
| 181 | +} |
| 182 | + |
| 183 | +/* |
| 184 | +* Material Design Dark Theme |
| 185 | +* ------------------------------------------- |
| 186 | +*/ |
| 187 | + |
| 188 | +.md body.dark { |
| 189 | + --ion-background-color: #121212; |
| 190 | + --ion-background-color-rgb: 18, 18, 18; |
| 191 | + |
| 192 | + --ion-text-color: #ffffff; |
| 193 | + --ion-text-color-rgb: 255, 255, 255; |
| 194 | + |
| 195 | + --ion-border-color: #222222; |
| 196 | + |
| 197 | + --ion-color-step-50: #1e1e1e; |
| 198 | + --ion-color-step-100: #2a2a2a; |
| 199 | + --ion-color-step-150: #363636; |
| 200 | + --ion-color-step-200: #414141; |
| 201 | + --ion-color-step-250: #4d4d4d; |
| 202 | + --ion-color-step-300: #595959; |
| 203 | + --ion-color-step-350: #656565; |
| 204 | + --ion-color-step-400: #717171; |
| 205 | + --ion-color-step-450: #7d7d7d; |
| 206 | + --ion-color-step-500: #898989; |
| 207 | + --ion-color-step-550: #949494; |
| 208 | + --ion-color-step-600: #a0a0a0; |
| 209 | + --ion-color-step-650: #acacac; |
| 210 | + --ion-color-step-700: #b8b8b8; |
| 211 | + --ion-color-step-750: #c4c4c4; |
| 212 | + --ion-color-step-800: #d0d0d0; |
| 213 | + --ion-color-step-850: #dbdbdb; |
| 214 | + --ion-color-step-900: #e7e7e7; |
| 215 | + --ion-color-step-950: #f3f3f3; |
| 216 | + |
| 217 | + --ion-item-background: #1a1b1e; |
| 218 | +} |
| 219 | + |
| 220 | +/* Optional CSS, this is added for the flashing that happens when toggling between themes */ |
| 221 | +ion-item { |
| 222 | + --transition: none; |
| 223 | +} |
0 commit comments