Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add background elevation semantic tokens #33

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions tokens/$metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
"theme-dark",
"theme-light-hc",
"theme-dark-hc",
"theme-light-semantics",
"theme-dark-semantics",
"theme-light-hc-semantics",
"theme-dark-hc-semantics",
"theme-semantics"
]
}
1,534 changes: 769 additions & 765 deletions tokens/$themes.json

Large diffs are not rendered by default.

20 changes: 20 additions & 0 deletions tokens/theme-dark-hc-semantics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"color": {
"bg": {
"canvas": {
"elevation-1": {
"value": "{color.gray.300}",
"type": "color",
"description": "Default global background for the user interface.\nElevation: Level 1."
}
},
"secondary": {
"elevation-0": {
"value": "{color.theme.bg}",
"type": "color",
"description": "Lower contrast surfaces.\nElevation: Level 0."
}
}
}
}
}
20 changes: 20 additions & 0 deletions tokens/theme-dark-semantics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"color": {
"bg": {
"canvas": {
"elevation-1": {
"value": "{color.gray.300}",
"type": "color",
"description": "Default global background for the user interface.\nElevation: Level 1."
}
},
"secondary": {
"elevation-0": {
"value": "{color.theme.bg}",
"type": "color",
"description": "Lower contrast surfaces.\nElevation: Level 0."
}
}
}
}
}
20 changes: 20 additions & 0 deletions tokens/theme-light-hc-semantics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"color": {
"bg": {
"canvas": {
"elevation-1": {
"value": "{color.theme.bg}",
"type": "color",
"description": "Default global background for the user interface.\nElevation: Level 1."
}
},
"secondary": {
"elevation-0": {
"value": "{color.gray.300}",
"type": "color",
"description": "Lower contrast surfaces.\nElevation: Level 0."
}
}
}
}
}
20 changes: 20 additions & 0 deletions tokens/theme-light-semantics.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"color": {
"bg": {
"canvas": {
"elevation-1": {
"value": "{color.theme.bg}",
"type": "color",
"description": "Default global background for the user interface.\nElevation: Level 1."
}
},
"secondary": {
"elevation-0": {
"value": "{color.gray.300}",
"type": "color",
"description": "Lower contrast surfaces.\nElevation: Level 0."
}
}
}
}
}
6 changes: 3 additions & 3 deletions tokens/theme-semantics.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
"canvas": {
"value": "{color.theme.bg}",
"type": "color",
"description": "Default global background for the user interface."
"description": "Default global background for the user interface.\nElevation: Default (Level 0)."
},
"primary": {
"value": "{color.gray.400}",
"type": "color",
"description": "Medium contrast surfaces."
"description": "Medium contrast surfaces.\nElevation: Default (Level 2)."
},
"secondary": {
"value": "{color.gray.300}",
"type": "color",
"description": "Lower contrast surfaces."
"description": "Lower contrast surfaces.\nElevation: Default (Level 1)."
},
"action": {
"primary": {
Expand Down