Skip to content

Commit

Permalink
docs: Add AI color tokens (#4104)
Browse files Browse the repository at this point in the history
* Update color-tokens.js

* Update ColorTokenTable.js

* Update color-tokens.js

---------

Co-authored-by: Alison Joseph <alison.joseph@us.ibm.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Jun 13, 2024
1 parent beed1d2 commit 510bf0d
Show file tree
Hide file tree
Showing 2 changed files with 792 additions and 0 deletions.
69 changes: 69 additions & 0 deletions src/components/ColorTokenTable/ColorTokenTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,75 @@ export default class ColorTokenTable extends React.Component {
</tbody>
</table>
</div>
<div className="cds--col-lg-7">
<h3 className="page-h3">AI</h3>
</div>
<div className="cds--col-lg-12 cds--no-gutter">
<table className="page-table">
<thead>
<tr>
<th>Token</th>
<th>Role</th>
<th>Value</th>
</tr>
</thead>
<tbody>
{Object.keys(colorTokens['ai']).map((token, i) =>
this.renderToken(
token,
colorTokens['ai'][token],
i
)
)}
</tbody>
</table>
</div>
<div className="cds--col-lg-7">
<h3 className="page-h3">Chat</h3>
</div>
<div className="cds--col-lg-12 cds--no-gutter">
<table className="page-table">
<thead>
<tr>
<th>Token</th>
<th>Role</th>
<th>Value</th>
</tr>
</thead>
<tbody>
{Object.keys(colorTokens['chat']).map((token, i) =>
this.renderToken(
token,
colorTokens['chat'][token],
i
)
)}
</tbody>
</table>
</div>
<div className="cds--col-lg-7">
<h3 className="page-h3">Chat button</h3>
</div>
<div className="cds--col-lg-12 cds--no-gutter">
<table className="page-table">
<thead>
<tr>
<th>Token</th>
<th>Role</th>
<th>Value</th>
</tr>
</thead>
<tbody>
{Object.keys(colorTokens['chat-button']).map((token, i) =>
this.renderToken(
token,
colorTokens['chat-button'][token],
i
)
)}
</tbody>
</table>
</div>
</section>
</div>
);
Expand Down
Loading

0 comments on commit 510bf0d

Please sign in to comment.