Paladox none | cf71094 | 2019-08-27 18:47:08 +0000 | [diff] [blame] | 1 | <!-- |
| 2 | @license |
| 3 | Copyright (C) 2019 The Android Open Source Project |
| 4 | |
| 5 | Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | you may not use this file except in compliance with the License. |
| 7 | You may obtain a copy of the License at |
| 8 | |
| 9 | http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | |
| 11 | Unless required by applicable law or agreed to in writing, software |
| 12 | distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | See the License for the specific language governing permissions and |
| 15 | limitations under the License. |
| 16 | --> |
Kasper Nilsson | 61aff03 | 2018-05-14 16:35:33 -0700 | [diff] [blame] | 17 | <dom-module id="dark-theme"> |
brohlfs | 97b1381 | 2019-04-11 17:30:16 +0200 | [diff] [blame] | 18 | <custom-style><style is="custom-style"> |
Kasper Nilsson | 61aff03 | 2018-05-14 16:35:33 -0700 | [diff] [blame] | 19 | html { |
Ben Rohlfs | 784b947 | 2019-10-08 09:40:00 +0200 | [diff] [blame] | 20 | /** |
| 21 | * Sections and variables must stay consistent with app-theme.html. |
| 22 | * |
| 23 | * Only modify color variables in this theme file. dark-theme extends |
| 24 | * app-theme, so there is no need to repeat all variables, but for colors |
| 25 | * it does make sense to list them all: If you override one color, then |
| 26 | * you probably want to override all. |
| 27 | */ |
| 28 | |
| 29 | /* text colors */ |
Ben Rohlfs | db3146b | 2019-08-21 17:23:36 +0200 | [diff] [blame] | 30 | --primary-text-color: #e8eaed; |
Ben Rohlfs | 784b947 | 2019-10-08 09:40:00 +0200 | [diff] [blame] | 31 | --link-color: #8ab4f8; |
| 32 | --comment-text-color: var(--primary-text-color); |
Milutin Kristofic | bcd0512 | 2019-10-17 16:37:52 +0200 | [diff] [blame] | 33 | --deemphasized-text-color: #9e9e9e; |
Ben Rohlfs | 784b947 | 2019-10-08 09:40:00 +0200 | [diff] [blame] | 34 | --default-button-text-color: #8ab4f8; |
| 35 | --error-text-color: red; |
| 36 | --primary-button-text-color: var(--primary-text-color); |
| 37 | /* Used on text color for change list doesn't need user's attention. */ |
| 38 | --reviewed-text-color: #dadce0; |
| 39 | --secondary-button-text-color: var(--deemphasized-text-color); |
| 40 | --tooltip-text-color: white; |
| 41 | --vote-text-color-recommended: #388e3c; |
| 42 | --vote-text-color-disliked: #d32f2f; |
| 43 | |
| 44 | /* background colors */ |
| 45 | --assignee-highlight-color: #3a361c; |
| 46 | --chip-background-color: #131416; |
| 47 | --comment-background-color: #0b162b; |
| 48 | --default-button-background-color: #3c4043; |
| 49 | --dialog-background-color: #131416; |
| 50 | --dropdown-background-color: #131416; |
| 51 | --edit-mode-background-color: #5c0a36; |
| 52 | --emphasis-color: #383f4a; |
| 53 | --expanded-background-color: #26282b; |
| 54 | --hover-background-color: rgba(161, 194, 250, 0.2); |
| 55 | --primary-button-background-color: var(--link-color); |
| 56 | --secondary-button-background-color: var(--primary-text-color); |
| 57 | --select-background-color: #3c4043; |
| 58 | --selection-background-color: rgba(161, 194, 250, 0.1); |
| 59 | --shell-command-background-color: #5f5f5f; |
| 60 | --shell-command-decoration-background-color: #999; |
Ben Rohlfs | db3146b | 2019-08-21 17:23:36 +0200 | [diff] [blame] | 61 | --table-header-background-color: #131416; |
Milutin Kristofic | bcd0512 | 2019-10-17 16:37:52 +0200 | [diff] [blame] | 62 | --table-subheader-background-color: rgba(158, 158, 158, 0.24); |
Ben Rohlfs | 784b947 | 2019-10-08 09:40:00 +0200 | [diff] [blame] | 63 | --tooltip-background-color: #111; |
| 64 | --unresolved-comment-background-color: #385a9a; |
| 65 | --view-background-color: #131416; |
| 66 | --vote-color-approved: #7fb66b; |
Kasper Nilsson | 61aff03 | 2018-05-14 16:35:33 -0700 | [diff] [blame] | 67 | --vote-color-disliked: #bf6874; |
| 68 | --vote-color-neutral: #597280; |
Ben Rohlfs | 784b947 | 2019-10-08 09:40:00 +0200 | [diff] [blame] | 69 | --vote-color-recommended: #3f6732; |
| 70 | --vote-color-rejected: #ac2d3e; |
Kasper Nilsson | 61aff03 | 2018-05-14 16:35:33 -0700 | [diff] [blame] | 71 | |
Ben Rohlfs | 784b947 | 2019-10-08 09:40:00 +0200 | [diff] [blame] | 72 | /* misc colors */ |
| 73 | --border-color: #5f6368; |
Kasper Nilsson | 61aff03 | 2018-05-14 16:35:33 -0700 | [diff] [blame] | 74 | |
Ben Rohlfs | 784b947 | 2019-10-08 09:40:00 +0200 | [diff] [blame] | 75 | /* fonts */ |
Ben Rohlfs | 784b947 | 2019-10-08 09:40:00 +0200 | [diff] [blame] | 76 | --font-weight-bold: 900; |
Kasper Nilsson | 61aff03 | 2018-05-14 16:35:33 -0700 | [diff] [blame] | 77 | |
Ben Rohlfs | 784b947 | 2019-10-08 09:40:00 +0200 | [diff] [blame] | 78 | /* spacing */ |
| 79 | |
| 80 | /* header and footer */ |
| 81 | --footer-background-color: #131416; |
| 82 | --footer-border-top: 1px solid var(--border-color); |
| 83 | --header-background-color: #3c4043; |
| 84 | --header-border-bottom: 1px solid var(--border-color); |
Luca Milanesio | 990c997 | 2019-11-04 07:03:29 +0000 | [diff] [blame] | 85 | --header-padding: 0 var(--spacing-l); |
Ben Rohlfs | 784b947 | 2019-10-08 09:40:00 +0200 | [diff] [blame] | 86 | --header-text-color: var(--primary-text-color); |
| 87 | |
| 88 | /* diff colors */ |
| 89 | --dark-add-highlight-color: #133820; |
| 90 | --dark-rebased-add-highlight-color: rgba(11, 255, 155, 0.15); |
| 91 | --dark-rebased-remove-highlight-color: rgba(255, 139, 6, 0.15); |
| 92 | --dark-remove-highlight-color: #62110f; |
| 93 | --diff-blank-background-color: #212121; |
| 94 | --diff-context-control-background-color: #131416; |
| 95 | --diff-context-control-border-color: var(--border-color); |
| 96 | --diff-context-control-color: var(--deemphasized-text-color); |
| 97 | --diff-highlight-range-color: rgba(0, 100, 200, 0.5); |
| 98 | --diff-highlight-range-hover-color: rgba(0, 150, 255, 0.5); |
| 99 | --diff-selection-background-color: #3a71d8; |
| 100 | --diff-tab-indicator-color: var(--deemphasized-text-color); |
| 101 | --diff-trailing-whitespace-indicator: #ff9ad2; |
| 102 | --light-add-highlight-color: #0f401f; |
| 103 | --light-rebased-add-highlight-color: #487165; |
| 104 | --light-remove-add-highlight-color: #2f3f2f; |
| 105 | --light-remove-highlight-color: #320404; |
Ben Rohlfs | 643ed48 | 2019-11-14 15:39:59 -0800 | [diff] [blame] | 106 | --coverage-covered: #e0f2f1; |
| 107 | --coverage-not-covered: #ffd1a4; |
Ben Rohlfs | 784b947 | 2019-10-08 09:40:00 +0200 | [diff] [blame] | 108 | |
| 109 | /* syntax colors */ |
| 110 | --syntax-attr-color: #80cbbf; |
| 111 | --syntax-attribute-color: var(--primary-text-color); |
| 112 | --syntax-built_in-color: #f7c369; |
Kasper Nilsson | 61aff03 | 2018-05-14 16:35:33 -0700 | [diff] [blame] | 113 | --syntax-comment-color: var(--deemphasized-text-color); |
Ben Rohlfs | 784b947 | 2019-10-08 09:40:00 +0200 | [diff] [blame] | 114 | --syntax-default-color: var(--primary-text-color); |
Paladox none | b0e1c6e | 2019-11-06 01:02:14 +0000 | [diff] [blame] | 115 | --syntax-doctag-weight: bold; |
Ben Rohlfs | 784b947 | 2019-10-08 09:40:00 +0200 | [diff] [blame] | 116 | --syntax-function-color: var(--primary-text-color); |
| 117 | --syntax-keyword-color: #cd4cf0; |
| 118 | --syntax-link-color: #c792ea; |
| 119 | --syntax-literal-color: #eefff7; |
| 120 | --syntax-meta-color: #6d7eee; |
| 121 | --syntax-meta-keyword-color: #eefff7; |
| 122 | --syntax-number-color: #00998a; |
Paladox none | eb06e9d | 2019-11-19 08:59:23 +0000 | [diff] [blame] | 123 | --syntax-params-color: var(--primary-text-color); |
Ben Rohlfs | 784b947 | 2019-10-08 09:40:00 +0200 | [diff] [blame] | 124 | --syntax-regexp-color: #f77669; |
| 125 | --syntax-selector-attr-color: #80cbbf; |
| 126 | --syntax-selector-class-color: #ffcb68; |
| 127 | --syntax-selector-id-color: #f77669; |
| 128 | --syntax-selector-pseudo-color: #c792ea; |
| 129 | --syntax-string-color: #c3e88d; |
| 130 | --syntax-tag-color: #f77669; |
| 131 | --syntax-template-tag-color: #c792ea; |
| 132 | --syntax-template-variable-color: #f77669; |
| 133 | --syntax-title-color: #75a5ff; |
| 134 | --syntax-type-color: #dd5f5f; |
| 135 | --syntax-variable-color: #f77669; |
Kasper Nilsson | 61aff03 | 2018-05-14 16:35:33 -0700 | [diff] [blame] | 136 | |
Ben Rohlfs | 784b947 | 2019-10-08 09:40:00 +0200 | [diff] [blame] | 137 | /* misc */ |
Thomas Shafer | 625b3be | 2019-03-04 11:58:12 -0800 | [diff] [blame] | 138 | |
Ben Rohlfs | 7fb289c | 2019-11-28 09:46:06 +0100 | [diff] [blame^] | 139 | /* paper and iron component overrides */ |
| 140 | --iron-overlay-backdrop-background-color: white; |
| 141 | |
Ben Rohlfs | 784b947 | 2019-10-08 09:40:00 +0200 | [diff] [blame] | 142 | /* rules applied to <html> */ |
Kasper Nilsson | 61aff03 | 2018-05-14 16:35:33 -0700 | [diff] [blame] | 143 | background-color: var(--view-background-color); |
| 144 | } |
brohlfs | 97b1381 | 2019-04-11 17:30:16 +0200 | [diff] [blame] | 145 | </style></custom-style> |
Kasper Nilsson | 8b1b945 | 2018-09-26 10:50:07 -0700 | [diff] [blame] | 146 | </dom-module> |