Skip to content

Commit

Permalink
Inline value prop of tokens if possible
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentSmedinga committed Jul 26, 2024
1 parent a527e41 commit 65867a8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 66 deletions.
84 changes: 21 additions & 63 deletions proprietary/tokens/src/components/ams/link-list.tokens.json
Original file line number Diff line number Diff line change
@@ -1,82 +1,40 @@
{
"ams": {
"link-list": {
"gap": {
"value": "{ams.space.sm}"
},
"gap": { "value": "{ams.space.sm}" },
"link": {
"color": {
"value": "{ams.link-appearance.color}"
},
"font-family": {
"value": "{ams.text.font-family}"
},
"font-size": {
"value": "{ams.text.level.5.font-size}"
},
"font-weight": {
"value": "{ams.text.font-weight.normal}"
},
"gap": {
"value": "{ams.space.sm}"
},
"line-height": {
"value": "{ams.text.level.5.line-height}"
},
"outline-offset": {
"value": "{ams.focus.outline-offset}"
},
"text-decoration-line": {
"value": "{ams.link-appearance.subtle.text-decoration-line}"
},
"text-decoration-thickness": {
"value": "{ams.link-appearance.text-decoration-thickness}"
},
"text-underline-offset": {
"value": "{ams.link-appearance.text-underline-offset}"
},
"color": { "value": "{ams.link-appearance.color}" },
"font-family": { "value": "{ams.text.font-family}" },
"font-size": { "value": "{ams.text.level.5.font-size}" },
"font-weight": { "value": "{ams.text.font-weight.normal}" },
"gap": { "value": "{ams.space.sm}" },
"line-height": { "value": "{ams.text.level.5.line-height}" },
"outline-offset": { "value": "{ams.focus.outline-offset}" },
"text-decoration-line": { "value": "{ams.link-appearance.subtle.text-decoration-line}" },
"text-decoration-thickness": { "value": "{ams.link-appearance.text-decoration-thickness}" },
"text-underline-offset": { "value": "{ams.link-appearance.text-underline-offset}" },
"small": {
"font-size": {
"value": "{ams.text.level.6.font-size}"
},
"line-height": {
"value": "{ams.text.level.6.line-height}"
}
"font-size": { "value": "{ams.text.level.6.font-size}" },
"line-height": { "value": "{ams.text.level.6.line-height}" }
},
"large": {
"font-size": {
"value": "{ams.text.level.4.font-size}"
},
"line-height": {
"value": "{ams.text.level.4.line-height}"
}
"font-size": { "value": "{ams.text.level.4.font-size}" },
"line-height": { "value": "{ams.text.level.4.line-height}" }
},
"hover": {
"color": {
"value": "{ams.link-appearance.hover.color}"
},
"text-decoration-line": {
"value": "{ams.link-appearance.subtle.hover.text-decoration-line}"
}
"color": { "value": "{ams.link-appearance.hover.color}" },
"text-decoration-line": { "value": "{ams.link-appearance.subtle.hover.text-decoration-line}" }
},
"contrast-color": {
"color": {
"value": "{ams.link-appearance.contrast.color}"
},
"color": { "value": "{ams.link-appearance.contrast.color}" },
"hover": {
"color": {
"value": "{ams.link-appearance.contrast.hover.color}"
}
"color": { "value": "{ams.link-appearance.contrast.hover.color}" }
}
},
"inverse-color": {
"color": {
"value": "{ams.link-appearance.inverse.color}"
},
"color": { "value": "{ams.link-appearance.inverse.color}" },
"hover": {
"color": {
"value": "{ams.link-appearance.inverse.hover.color}"
}
"color": { "value": "{ams.link-appearance.inverse.hover.color}" }
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
},
"input": {
"background-color": { "value": "{ams.color.primary-white}" },
"box-shadow": {
"value": "inset 0 0 0 {ams.border.width.sm} {ams.color.primary-black}"
},
"box-shadow": { "value": "inset 0 0 0 {ams.border.width.sm} {ams.color.primary-black}" },
"color": { "value": "{ams.color.primary-black}" },
"font-family": { "value": "{ams.text.font-family}" },
"font-size": { "value": "{ams.text.level.5.font-size}" },
Expand Down

0 comments on commit 65867a8

Please sign in to comment.