|
1 | | -// suggested naming convention: `--pub-[component]-[role]-[property]`, where |
2 | | -// - `[component]` may be: `default`, `button`, `link`, `card`, ... |
3 | | -// - `[role]` may be the `background`, `text`, `border`, ... (multiple parts are separated by `_`) |
4 | | -// - `[property]` may be `color`, `opacity` for specific values, or a `value` for multi-part properties. |
| 1 | +// suggested naming convention: |
| 2 | +// |
| 3 | +// color definitions: |
| 4 | +// `--pub-color-<qualifier><baseColor>` |
| 5 | +// |
| 6 | +// components: |
| 7 | +// `--pub-[component]-[role]-[property]`, where |
| 8 | +// - `[component]` may be: `default`, `button`, `link`, `card`, ... |
| 9 | +// - `[role]` may be the `background`, `text`, `border`, ... (multiple parts are separated by `_`) |
| 10 | +// - `[property]` may be `color`, `opacity` for specific values, or a `value` for multi-part properties. |
5 | 11 |
|
6 | 12 | :root { |
| 13 | + --pub-color-dangerRed: #ff4242; |
| 14 | + |
7 | 15 | --pub-default-background-color: #ffffff; |
8 | 16 | --pub-default-headline-font_family: "Google Sans Display", "Google Sans", "Roboto", sans-serif; |
9 | 17 | --pub-default-text-color: hsl(0, 0%, 29%); |
|
13 | 21 | --pub-link-text-color: #0175c2; |
14 | 22 | --pub-code-text-font_family: "Google Sans Mono", "Roboto Mono", "Source Code Pro", Menlo, "Bitstream Vera Sans Mono", "DejaVu Sans Mono", Monaco, Consolas, monospace; |
15 | 23 | --pub-badge-default-color: var(--pub-link-text-color); |
16 | | - --pub-badge-red-color: #ff4242; |
| 24 | + --pub-badge-red-color: var(--pub-color-dangerRed); |
17 | 25 | --pub-carousel-background-color: rgba(0,0,0,0.85); |
18 | 26 | --pub-carousel_nav-background-color: rgba(0,0,0,0.7); |
19 | 27 | --pub-carousel_nav_hover-background-color: #4285f4; |
|
47 | 55 | --pub-input-placeholder-color: #888; |
48 | 56 | --pub-pkg_list_item_hover-background-color: #fafafa; |
49 | 57 | --pub-pkg_list_recent_item-text-color: #6d7278; |
50 | | - --pub-remove_button-background-color: #ff4242; |
| 58 | + --pub-remove_button-background-color: var(--pub-color-dangerRed); |
51 | 59 | --pub-remove_button-text-color: #ffffff; |
52 | 60 | --pub-report_header_score_error-text-color: #e13701; |
53 | 61 | --pub-report_header_score_warning-text-color: #ffa500; |
|
102 | 110 | --pub-code-text-color: var(--pub-default-text-color); |
103 | 111 | --pub-link-text-color: #40c4ff; |
104 | 112 | --pub-badge-default-color: var(--pub-link-text-color); |
105 | | - --pub-badge-red-color: #ff4242; |
| 113 | + --pub-badge-red-color: var(--pub-color-dangerRed); |
106 | 114 | --pub-copy_feedback-background-color: #404040; |
107 | 115 | --pub-detail_tab-background-color: var(--pub-code-background-color); |
108 | 116 | --pub-detail_tab-text-color: var(--pub-default-text-color); |
@@ -195,7 +203,5 @@ $z-index-nav-mask: 1000; |
195 | 203 |
|
196 | 204 | $site-max-width: 1136px; |
197 | 205 |
|
198 | | -$color-input-danger: #ff4242; |
199 | | - |
200 | 206 | // NOTE: keep in sync with hoverable.dart 900ms delay |
201 | 207 | $copy-feedback-transition-opacity-delay: 0.9s; |
0 commit comments