Skip to content

Commit

Permalink
improved color contrast switch in SL dark
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielleRameau committed Apr 3, 2024
1 parent 0e6ad73 commit cc10d29
Showing 1 changed file with 35 additions and 35 deletions.
70 changes: 35 additions & 35 deletions packages/tokens/src/sanoma-learning/dark.json
Original file line number Diff line number Diff line change
Expand Up @@ -2597,66 +2597,66 @@
"unchecked": {
"default": {
"background": {
"value": "{color.palette.neutral.300}",
"value": "{color.palette.neutral.400}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
"text": {
"value": "{body.background}",
"value": "{body.foreground}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
"icon": {
"value": "{color.palette.black.base}",
"value": "{color.input.switch.default.unchecked.default.background}",
"type": "color",
"description": "color.surface.solid.primary.foreground"
},
"handle": {
"value": "{color.palette.white.base}",
"value": "{color.palette.black.base}",
"type": "color",
"description": "color.surface.solid.primary.background"
}
},
"hover": {
"background": {
"value": "{color.palette.neutral.400}",
"value": "{color.palette.neutral.300}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
"text": {
"value": "{body.background}",
"value": "{color.input.switch.default.unchecked.default.text}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
"icon": {
"value": "{color.input.switch.default.unchecked.default.icon}",
"value": "{color.input.switch.default.unchecked.hover.background}",
"type": "color",
"description": "color.surface.solid.primary.foreground"
},
"handle": {
"value": "{color.palette.white.base}",
"value": "{color.palette.black.base}",
"type": "color",
"description": "color.surface.solid.primary.background"
}
},
"active": {
"background": {
"value": "{color.palette.neutral.500}",
"value": "{color.palette.neutral.200}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
"text": {
"value": "{body.background}",
"value": "{color.input.switch.default.unchecked.default.text}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
"icon": {
"value": "{color.input.switch.default.unchecked.default.icon}",
"value": "{color.input.switch.default.unchecked.active.background}",
"type": "color",
"description": "color.surface.solid.primary.foreground"
},
"handle": {
"value": "{color.palette.white.base}",
"value": "{color.palette.black.base}",
"type": "color",
"description": "color.surface.solid.primary.background"
}
Expand All @@ -2668,7 +2668,7 @@
"description": "color.surface.solid.primary.background"
},
"text": {
"value": "{body.background}",
"value": "{color.input.switch.default.unchecked.default.text}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
Expand All @@ -2678,7 +2678,7 @@
"description": "color.surface.solid.primary.foreground"
},
"handle": {
"value": "{color.palette.white.base}",
"value": "{color.input.switch.default.unchecked.default.handle}",
"type": "color",
"description": "color.surface.solid.primary.background"
}
Expand All @@ -2690,17 +2690,17 @@
"description": "color.surface.solid.primary.background"
},
"text": {
"value": "{body.background}",
"value": "{color.palette.neutral.400}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
"icon": {
"value": "{color.palette.neutral.300}",
"value": "{color.palette.neutral.700}",
"type": "color",
"description": "color.surface.solid.primary.foreground"
},
"handle": {
"value": "{color.palette.neutral.150}",
"value": "{color.palette.neutral.400}",
"type": "color",
"description": "color.surface.solid.primary.background"
}
Expand All @@ -2709,100 +2709,100 @@
"checked": {
"default": {
"background": {
"value": "{color.palette.success.400}",
"value": "{color.palette.success.200}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
"text": {
"value": "{body.background}",
"value": "{body.foreground}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
"icon": {
"value": "{color.input.switch.default.unchecked.default.icon}",
"value": "{color.input.switch.default.checked.default.background}",
"type": "color",
"description": "color.surface.solid.primary.foreground"
},
"handle": {
"value": "{color.palette.white.base}",
"value": "{color.palette.black.base}",
"type": "color",
"description": "color.surface.solid.primary.background"
}
},
"hover": {
"background": {
"value": "{color.palette.success.500}",
"value": "{color.palette.success.300}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
"text": {
"value": "{body.background}",
"value": "{body.foreground}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
"icon": {
"value": "{color.input.switch.default.unchecked.default.icon}",
"value": "{color.input.switch.default.checked.hover.background}",
"type": "color",
"description": "color.surface.solid.primary.foreground"
},
"handle": {
"value": "{color.palette.white.base}",
"value": "{color.palette.black.base}",
"type": "color",
"description": "color.surface.solid.primary.background"
}
},
"active": {
"background": {
"value": "{color.palette.success.600}",
"value": "{color.palette.success.400}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
"text": {
"value": "{body.background}",
"value": "{body.foreground}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
"icon": {
"value": "{color.input.switch.default.unchecked.default.icon}",
"value": "{color.input.switch.default.checked.active.background}",
"type": "color",
"description": "color.surface.solid.primary.foreground"
},
"handle": {
"value": "{color.palette.white.base}",
"value": "{color.palette.black.base}",
"type": "color",
"description": "color.surface.solid.primary.background"
}
},
"focus": {
"background": {
"value": "{color.palette.success.400}",
"value": "{color.input.switch.default.checked.default.background}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
"text": {
"value": "{body.background}",
"value": "{body.foreground}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
"icon": {
"value": "{color.input.switch.default.unchecked.default.icon}",
"value": "{color.input.switch.default.checked.focus.background}",
"type": "color",
"description": "color.surface.solid.primary.foreground"
},
"handle": {
"value": "{color.palette.white.base}",
"value": "{color.palette.black.base}",
"type": "color",
"description": "color.surface.solid.primary.background"
}
},
"disabled": {
"background": {
"value": "{color.palette.success.700}",
"value": "{color.input.switch.default.unchecked.disabled.background}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
"text": {
"value": "{body.background}",
"value": "{color.input.switch.default.unchecked.disabled.text}",
"type": "color",
"description": "color.surface.solid.primary.background"
},
Expand Down

0 comments on commit cc10d29

Please sign in to comment.