Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions website/docs/foundations/colors/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class Colors extends Component {
colors['semantic'][context] = [];
}
const tokenObj = {
colorName: `${token.path[1]}-${token.path[2]}`,
colorName: token.path.slice(1).join('-'),
cssVariable: `--${token.name}`,
// note: we prefix `value` with `$` because we're using the DTCG format
value: token.$value,
Expand All @@ -52,7 +52,7 @@ export default class Colors extends Component {
colors['branding'][brand] = [];
}
colors['branding'][brand].push({
colorName: `${token.path[1]}-${token.path[2]}`,
colorName: token.path.slice(1).join('-'),
cssVariable: `--${token.name}`,
// note: we prefix `value` with `$` because we're using the DTCG format
value: token.$value,
Expand Down