Skip to content

Commit

Permalink
Merge pull request #399 from Sage/250108-DS-globalMessageIcon
Browse files Browse the repository at this point in the history
feat(frozen): Add modes.color.status.caution.frozen.icon to light dark mode. Add status icon color token to frozenproduct.
  • Loading branch information
ljemmo authored Jan 8, 2025
2 parents 7e4f7a7 + 15b8e37 commit 0b2e424
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 25 deletions.
5 changes: 5 additions & 0 deletions data/tokens/context/frozenproduct.json
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,11 @@
"value": "{modes.color.status.caution.frozen.default}",
"type": "color",
"description": "Global message bg"
},
"icon": {
"value": "{modes.color.status.caution.frozen.icon}",
"type": "color",
"description": "Global message icon."
}
}
},
Expand Down
65 changes: 40 additions & 25 deletions data/tokens/modes/dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -1035,31 +1035,6 @@
}
},
"status": {
"ai": {
"default": {
"value": "{modes.color.generic.bg.nought}",
"type": "color"
},
"defaultAlt": {
"value": "{modes.color.generic.bg.extreme}",
"type": "color",
"description": "bg for contextual message comp"
},
"default-horizontal": {
"value": "{primitives.colors.lightAiH}",
"type": "color"
},
"default-vertical": {
"value": "{primitives.colors.lightAiV}",
"type": "color"
}
},
"generic": {
"default": {
"value": "{primitives.colors.petrol}",
"type": "color"
}
},
"caution": {
"default": {
"value": "{primitives.colors.tangerine}",
Expand Down Expand Up @@ -1129,9 +1104,49 @@
"value": "{modes.color.status.caution.defaultAlt}",
"type": "color",
"description": "Global message bg"
},
"icon": {
"value": "{primitives.colors.tangerine}",
"type": "color",
"$extensions": {
"studio.tokens": {
"modify": {
"type": "mix",
"value": "0.10",
"space": "lch",
"color": "{modes.color.modifier.contrastMore}"
}
}
},
"description": "Global message icon."
}
}
},
"ai": {
"default": {
"value": "{modes.color.generic.bg.nought}",
"type": "color"
},
"defaultAlt": {
"value": "{modes.color.generic.bg.extreme}",
"type": "color",
"description": "bg for contextual message comp"
},
"default-horizontal": {
"value": "{primitives.colors.lightAiH}",
"type": "color"
},
"default-vertical": {
"value": "{primitives.colors.lightAiV}",
"type": "color"
}
},
"generic": {
"default": {
"value": "{primitives.colors.petrol}",
"type": "color"
}
},
"content": {
"withDefault": {
"value": "{modes.color.generic.content.nought}",
Expand Down
5 changes: 5 additions & 0 deletions data/tokens/modes/light.json
Original file line number Diff line number Diff line change
Expand Up @@ -1177,6 +1177,11 @@
"value": "#FF8629",
"type": "color",
"description": "used on global message bg"
},
"icon": {
"value": "{primitives.colors.black}",
"type": "color",
"description": "used on global message icon"
}
}
},
Expand Down

0 comments on commit 0b2e424

Please sign in to comment.