Skip to content

Commit

Permalink
feat(data): Update base.color.generic.fg.inverse token values for use…
Browse files Browse the repository at this point in the history
… in dataTable
  • Loading branch information
clairedenning committed Dec 7, 2023
1 parent 0614adc commit 167086c
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 18 deletions.
4 changes: 2 additions & 2 deletions data/tokens/Components/dataTable.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
"type": "color"
},
"bgAlt-default": {
"value": "{base.color.generic.bg.inverse.moderate}",
"value": "{base.color.generic.bg.inverse.faint}",
"type": "color",
"description": "Zebra stripes"
},
"border-default": {
"value": "{base.color.generic.fg.inverse.delicate}",
"value": "{base.color.generic.fg.inverse.faint}",
"type": "color"
},
"label-default": {
Expand Down
46 changes: 30 additions & 16 deletions data/tokens/Modes/light.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@
"studio.tokens": {
"modify": {
"type": "alpha",
"value": "0.3",
"value": "0.32",
"space": "lch",
"color": "{base.color.modifier.contrastLess}"
}
Expand Down Expand Up @@ -210,33 +210,33 @@
}
}
},
"delicate": {
"moderate": {
"value": "{base.color.generic.content.inverse.extreme}",
"type": "color",
"$extensions": {
"studio.tokens": {
"modify": {
"type": "alpha",
"value": "0.3",
"space": "lch",
"color": "{base.color.modifier.contrastLess}"
"value": "0.67",
"space": "lch"
}
}
},
"description": "Used for disabled text"
}
},
"moderate": {
"delicate": {
"value": "{base.color.generic.content.inverse.extreme}",
"type": "color",
"$extensions": {
"studio.tokens": {
"modify": {
"type": "alpha",
"value": "0.67",
"space": "lch"
"value": "0.3",
"space": "lch",
"color": "{base.color.modifier.contrastLess}"
}
}
}
},
"description": "Used for disabled text"
}
}
},
Expand Down Expand Up @@ -283,7 +283,7 @@
"studio.tokens": {
"modify": {
"type": "mix",
"value": "0.30",
"value": "0.32",
"space": "lch",
"color": "{base.color.modifier.contrastMore} "
}
Expand All @@ -306,7 +306,11 @@
}
},
"inverse": {
"delicate": {
"extreme": {
"value": "{origin.colors.black}",
"type": "color"
},
"soft": {
"value": "{base.color.generic.fg.inverse.extreme}",
"type": "color",
"$extensions": {
Expand All @@ -321,9 +325,19 @@
},
"description": "table dividers and borders"
},
"extreme": {
"value": "{origin.colors.black}",
"type": "color"
"faint": {
"value": "{base.color.generic.fg.inverse.extreme}",
"type": "color",
"$extensions": {
"studio.tokens": {
"modify": {
"type": "mix",
"value": "0.32",
"space": "lch",
"color": "{base.color.modifier.contrastLess} "
}
}
}
}
}
}
Expand Down

0 comments on commit 167086c

Please sign in to comment.