| 1 |
/** |
| 2 |
* Codex Design Tokens v1.14.0 |
| 3 |
* Design System for Wikimedia |
| 4 |
* See https://doc.wikimedia.org/codex/latest/design-tokens/overview.html |
| 5 |
*/ |
| 6 |
|
| 7 |
.cdx-mode-reset() { |
| 8 |
--color-base: #202122; |
| 9 |
--color-base-fixed: #202122; |
| 10 |
--color-base--hover: #404244; |
| 11 |
--color-emphasized: #101418; |
| 12 |
--color-subtle: #54595d; |
| 13 |
--color-placeholder: #72777d; |
| 14 |
--color-disabled: #72777d; |
| 15 |
--color-inverted: #fff; |
| 16 |
--color-inverted-fixed: #fff; /* The same as color-inverted in light mode, but does not change in dark mode. Use this for things that should be white in both modes. */ |
| 17 |
--color-progressive: #36c; /* 'Progressive' Color and states */ |
| 18 |
--color-progressive--hover: #4b77d6; |
| 19 |
--color-progressive--active: #233566; |
| 20 |
--color-progressive--focus: #36c; |
| 21 |
--color-destructive: #d73333; /* 'Destructive' Color and states */ |
| 22 |
--color-destructive--hover: #fc493b; |
| 23 |
--color-destructive--active: #9f3526; |
| 24 |
--color-destructive--focus: #36c; |
| 25 |
--color-visited: #6a60b0; /* 'Visited' color. In combination with progressive. Used for default links. */ |
| 26 |
--color-destructive--visited: #9f5555; /* Red link 'Visited' color. Used for visited red links. */ |
| 27 |
--color-error: #d73333; |
| 28 |
--color-warning: #eeb533; /* Note, this is only meant for warning icon for contrast reasons. */ |
| 29 |
--color-success: #177860; /* Note, this needs to use a tone darker than Red and Yellow for contrast reasons with background White. */ |
| 30 |
--color-notice: #202122; |
| 31 |
--color-content-added: #006400; |
| 32 |
--color-content-removed: #8b0000; |
| 33 |
--filter-invert-icon: 0; |
| 34 |
--filter-invert-primary-button-icon: 1; |
| 35 |
--box-shadow-color-base: #000; |
| 36 |
--box-shadow-color-progressive--active: #233566; |
| 37 |
--box-shadow-color-progressive--focus: #36c; |
| 38 |
--box-shadow-color-progressive-selected: #36c; |
| 39 |
--box-shadow-color-progressive-selected--hover: #4b77d6; |
| 40 |
--box-shadow-color-progressive-selected--active: #233566; |
| 41 |
--box-shadow-color-destructive--focus: #36c; |
| 42 |
--box-shadow-color-inverted: #fff; |
| 43 |
--box-shadow-color-transparent: transparent; |
| 44 |
--background-color-base: #fff; /* Background Colors for static elements (for page layout, sections, etc.) from here on. */ |
| 45 |
--background-color-base-fixed: #fff; /* The same as background-color-base in light mode, but does not change in dark mode. Use this for things that should be white in both modes. */ |
| 46 |
--background-color-neutral: #eaecf0; |
| 47 |
--background-color-neutral-subtle: #f8f9fa; |
| 48 |
--background-color-interactive: #eaecf0; |
| 49 |
--background-color-interactive-subtle: #f8f9fa; |
| 50 |
--background-color-disabled: #c8ccd1; /* Components like Buttons, Checkboxes, Radios, ProgressBars…. */ |
| 51 |
--background-color-disabled-subtle: #eaecf0; /* Components like TextInputs, Selects…. */ |
| 52 |
--background-color-inverted: #101418; |
| 53 |
--background-color-progressive: #36c; |
| 54 |
--background-color-progressive--hover: #4b77d6; |
| 55 |
--background-color-progressive--active: #233566; |
| 56 |
--background-color-progressive--focus: #36c; |
| 57 |
--background-color-progressive-subtle: #f1f4fd; |
| 58 |
--background-color-destructive: #d73333; |
| 59 |
--background-color-destructive--hover: #fc493b; |
| 60 |
--background-color-destructive--active: #9f3526; |
| 61 |
--background-color-destructive--focus: #36c; |
| 62 |
--background-color-destructive-subtle: #ffe9e5; |
| 63 |
--background-color-error: #d73333; |
| 64 |
--background-color-error--hover: #fc493b; |
| 65 |
--background-color-error--active: #9f3526; |
| 66 |
--background-color-error-subtle: #ffe9e5; |
| 67 |
--background-color-warning-subtle: #fdf2d5; |
| 68 |
--background-color-success-subtle: #dff2eb; |
| 69 |
--background-color-notice-subtle: #eaecf0; |
| 70 |
--background-color-content-added: #a3d3ff; |
| 71 |
--background-color-content-removed: #ffe49c; |
| 72 |
--background-color-transparent: transparent; |
| 73 |
--background-color-backdrop-light: rgba( 255, 255, 255, 0.65 ); /* Backdrop is the term used by CSS Fullscreen API and is used to dim the background when a modal Dialog is open. Also known as overlay mask. */ |
| 74 |
--background-color-backdrop-dark: rgba( 0, 0, 0, 0.65 ); |
| 75 |
--background-color-button-quiet--hover: rgba( 0, 24, 73, 0.027 ); |
| 76 |
--background-color-button-quiet--active: rgba( 0, 24, 73, 0.082 ); |
| 77 |
--background-color-input-binary--checked: #36c; |
| 78 |
--background-color-tab-list-item-framed--hover: rgba( 255, 255, 255, 0.3 ); |
| 79 |
--background-color-tab-list-item-framed--active: rgba( 255, 255, 255, 0.65 ); |
| 80 |
--opacity-icon-base: 0.87; |
| 81 |
--opacity-icon-base--hover: 0.74; |
| 82 |
--opacity-icon-base--selected: 1; |
| 83 |
--opacity-icon-base--disabled: 0.51; |
| 84 |
--opacity-icon-placeholder: 0.51; |
| 85 |
--opacity-icon-subtle: 0.67; |
| 86 |
--border-color-base: #a2a9b1; |
| 87 |
--border-color-subtle: #c8ccd1; |
| 88 |
--border-color-muted: #dadde3; |
| 89 |
--border-color-interactive: #72777d; |
| 90 |
--border-color-disabled: #c8ccd1; |
| 91 |
--border-color-inverted: #fff; |
| 92 |
--border-color-progressive: #36c; |
| 93 |
--border-color-progressive--hover: #4b77d6; |
| 94 |
--border-color-progressive--active: #233566; |
| 95 |
--border-color-progressive--focus: #36c; |
| 96 |
--border-color-destructive: #d73333; |
| 97 |
--border-color-destructive--hover: #fc493b; |
| 98 |
--border-color-destructive--active: #9f3526; |
| 99 |
--border-color-destructive--focus: #36c; |
| 100 |
--border-color-error: #9f3526; |
| 101 |
--border-color-error--hover: #fc493b; |
| 102 |
--border-color-warning: #987027; |
| 103 |
--border-color-success: #196551; |
| 104 |
--border-color-notice: #54595d; |
| 105 |
--border-color-content-added: #a3d3ff; |
| 106 |
--border-color-content-removed: #ffe49c; |
| 107 |
--border-color-transparent: transparent; |
| 108 |
--border-color-divider: #a2a9b1; |
| 109 |
--outline-color-progressive--focus: #36c; /* Use in places where no more customized focus styles are provided, for example on generic `:focus`. */ |
| 110 |
--color-link-red: var( --color-destructive ); /* Red ('new') Link color and states */ |
| 111 |
--color-link-red--hover: var( --color-destructive--hover ); |
| 112 |
--color-link-red--active: var( --color-destructive--active ); |
| 113 |
--color-link-red--focus: var( --color-destructive--focus ); |
| 114 |
--color-link-red--visited: var( --color-destructive--visited ); |
| 115 |
--border-color-input--hover: var( --border-color-interactive ); |
| 116 |
--border-color-input-binary: var( --border-color-interactive ); |
| 117 |
--border-color-input-binary--hover: var( --border-color-progressive--hover ); |
| 118 |
--border-color-input-binary--active: var( --border-color-progressive--active ); |
| 119 |
--border-color-input-binary--focus: var( --border-color-progressive--focus ); |
| 120 |
--border-color-input-binary--checked: var( --border-color-progressive ); |
| 121 |
|
| 122 |
/* DEPRECATED TOKENS */ |
| 123 |
/* Warning: the following token name is deprecated (Use `color-subtle` instead. Note, that `color-subtle` is using `color.gray600` instead of `color.gray500` now.) */ |
| 124 |
--color-base--subtle: #54595d; |
| 125 |
} |