Skip to content

Commit

Permalink
tokens: Add 'maroon' color option token and Red Link component tokens
Browse files Browse the repository at this point in the history
Adding new 'maroon' color option token and also
Red Link component tokens as they are only used in a MediaWiki context.

Bug: T305236
Change-Id: Id739631fd2b579d4878268d84637c633da50cab3
  • Loading branch information
Volker-E committed Sep 8, 2022
1 parent c1222ce commit cb6cf97
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/codex-design-tokens/src/codex-base.json
Expand Up @@ -162,7 +162,7 @@
"value": "{ color.red600 }"
},
"visited": {
"comment": "'Visited' color. In combination with progressive. Used for links.",
"comment": "'Visited' color. In combination with progressive. Used for default links.",
"value": "{ color.purple }"
},
"error": {
Expand Down
16 changes: 16 additions & 0 deletions packages/codex-design-tokens/src/codex-components.json
Expand Up @@ -74,6 +74,22 @@
"primary--focus": {
"deprecated": true,
"value": "{ color.progressive--focus }"
},
"link-red": {
"comment": "Red ('new') Link color and states",
"value": "{ color.red600 }"
},
"link-red--hover": {
"value": "{ color.red500 }"
},
"link-red--active": {
"value": "{ color.red700 }"
},
"link-red--focus": {
"value": "{ color.red600 }"
},
"link-red--visited": {
"value": "{ color.maroon }"
}
},
"position": {
Expand Down
3 changes: 3 additions & 0 deletions packages/codex-design-tokens/src/theme-wikimedia-ui.json
Expand Up @@ -77,6 +77,9 @@
"purple": {
"value": "#6b4ba1"
},
"maroon": {
"value": "#a55858"
},
"modifier-gray100-translucent": {
"comment": "TODO: Not part of DS Figma yet. Equals `color-gray100` on white.",
"value": "rgba( 0, 24, 73, calc( 7 / 255 ) )"
Expand Down

0 comments on commit cb6cf97

Please sign in to comment.