Skip to content

Commit

Permalink
Descriptions of alias tokens (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
davyd-akamai committed Jul 8, 2024
1 parent 6887adf commit aae15e0
Showing 1 changed file with 49 additions and 28 deletions.
77 changes: 49 additions & 28 deletions tokens/alias/light.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
"text": {
"base": {
"value": "{global.color.neutrals.white}",
"type": "color"
"type": "color",
"description": "Use as color for text on a dark surface"
},
"negative": {
"value": "{global.color.red.90}",
"type": "color"
"type": "color",
"description": "Use to indicate error messages"
},
"warning": {
"value": "{global.color.amber.70}",
Expand All @@ -26,87 +28,102 @@
"default": {
"value": "{global.color.neutrals.100}",
"type": "color",
"description": "Primary text color"
"description": "Primary color for text"
},
"disabled": {
"value": "{global.color.neutrals.50}",
"type": "color"
"type": "color",
"description": "Use only to indicate a disabled state of a primary text color"
}
},
"secondary": {
"default": {
"value": "{global.color.neutrals.70}",
"type": "color",
"description": "Placeholder text"
"description": "Secondary color for text (placeholders, hints)"
},
"disabled": {
"value": "{global.color.neutrals.50}",
"type": "color"
"type": "color",
"description": "Use only to indicate a disabled state of a secondary text color"
}
},
"link": {
"default": {
"value": "{global.color.brand.90}",
"type": "color"
"type": "color",
"description": "Use only for links"
},
"hover": {
"value": "{global.color.brand.70}",
"type": "color"
"type": "color",
"description": "Use only as a hover on links"
},
"disabled": {
"value": "{global.color.neutrals.50}",
"type": "color"
"type": "color",
"description": "Use only to indicate a disabled state for links"
}
}
},
"icon": {
"base": {
"value": "{global.color.neutrals.white}",
"type": "color"
"type": "color",
"description": "Use as color for icons on a dark surface"
},
"negative": {
"value": "{global.color.red.70}",
"type": "color"
"type": "color",
"description": "Use only for icons to indicate an error state"
},
"warning": {
"value": "{global.color.amber.70}",
"type": "color"
"type": "color",
"description": "Use only for icons to indicate a warning state"
},
"positive": {
"value": "{global.color.green.70}",
"type": "color"
"type": "color",
"description": "Use only for icons to indicate a success state"
},
"informative": {
"value": "{global.color.ultramarine.70}",
"type": "color"
"type": "color",
"description": "Use only for icons to indicate an info state"
},
"primary": {
"default": {
"value": "{global.color.neutrals.90}",
"type": "color",
"description": "Default icon color"
"description": "Default color for icons"
},
"hover": {
"value": "{global.color.brand.70}",
"type": "color"
"type": "color",
"description": "Use only as a hover state for icons"
},
"active": {
"value": "{global.color.brand.90}",
"type": "color"
"type": "color",
"description": "Use only as a selected/active state for icons"
},
"disabled": {
"value": "{global.color.neutrals.50}",
"type": "color"
"type": "color",
"description": "Use only as a disabled state for icons"
}
},
"secondary": {
"default": {
"value": "{global.color.neutrals.70}",
"type": "color"
"type": "color",
"description": "Secondary icon color (placeholder, etc)"
},
"disabled": {
"value": "{global.color.neutrals.50}",
"type": "color"
"type": "color",
"description": "Use only as a disabled state for a secondary icon color"
}
}
}
Expand All @@ -115,39 +132,43 @@
"normal": {
"value": "{global.color.neutrals.30}",
"type": "color",
"description": "Static component border"
"description": "Border color for static ui elements and components"
},
"neutral": {
"value": "{global.color.neutrals.100}",
"type": "color"
},
"negative": {
"value": "{global.color.red.70}",
"type": "color"
"type": "color",
"description": "Use only for borders to indicate an error state"
},
"warning": {
"value": "{global.color.amber.70}",
"type": "color"
"type": "color",
"description": "Use only for borders to indicate a warning state"
},
"positive": {
"value": "{global.color.green.70}",
"type": "color"
"type": "color",
"description": "Use only for borders to indicate a success state"
},
"informative": {
"value": "{global.color.ultramarine.70}",
"type": "color"
"type": "color",
"description": "Use only for borders to indicate an info state"
}
},
"background": {
"normal": {
"value": "{global.color.neutrals.white}",
"type": "color",
"description": "Default component background"
"description": "Primary background color"
},
"neutral": {
"value": "{global.color.neutrals.5}",
"type": "color",
"description": "Default page background"
"description": "Page background color"
},
"base": {
"value": "{global.color.neutrals.100}",
Expand All @@ -173,7 +194,7 @@
"black": {
"value": "{global.color.neutrals.black}",
"type": "color",
"description": "Global header and footer background"
"description": "Use only for a global header and global footer background"
},
"negativesubtle": {
"value": "{global.color.red.10}",
Expand Down

0 comments on commit aae15e0

Please sign in to comment.