Skip to content

Commit

Permalink
feat(Tokens): add in new chat tokens (#15880)
Browse files Browse the repository at this point in the history
  • Loading branch information
tw15egan committed Mar 5, 2024
1 parent 5e191bb commit 70d64b6
Show file tree
Hide file tree
Showing 9 changed files with 24 additions and 0 deletions.
Expand Up @@ -74,9 +74,11 @@ Array [
"chatBubbleAgent",
"chatBubbleAgentBorder",
"chatBubbleUser",
"chatHeaderBackground",
"chatPromptBackground",
"chatPromptBorderEnd",
"chatPromptBorderStart",
"chatShellBackground",
"code01",
"code02",
"colors",
Expand Down
2 changes: 2 additions & 0 deletions packages/styles/scss/__tests__/theme-test.js
Expand Up @@ -178,6 +178,8 @@ describe('@carbon/styles/scss/theme', () => {
"chat-avatar-bot",
"chat-avatar-agent",
"chat-avatar-user",
"chat-shell-background",
"chat-header-background",
"highlight",
"overlay",
"toggle-off",
Expand Down
2 changes: 2 additions & 0 deletions packages/themes/src/g10.js
Expand Up @@ -276,6 +276,8 @@ export const chatBubbleAgentBorder = gray20;
export const chatAvatarBot = gray60;
export const chatAvatarAgent = gray80;
export const chatAvatarUser = blue60;
export const chatShellBackground = white;
export const chatHeaderBackground = white;

export {
// Type
Expand Down
2 changes: 2 additions & 0 deletions packages/themes/src/g100.js
Expand Up @@ -281,6 +281,8 @@ export const chatBubbleAgentBorder = gray70;
export const chatAvatarBot = gray50;
export const chatAvatarAgent = gray30;
export const chatAvatarUser = blue50;
export const chatShellBackground = gray90;
export const chatHeaderBackground = gray90;

export {
// Type
Expand Down
2 changes: 2 additions & 0 deletions packages/themes/src/g90.js
Expand Up @@ -282,6 +282,8 @@ export const chatBubbleAgentBorder = gray70;
export const chatAvatarBot = gray50;
export const chatAvatarAgent = gray30;
export const chatAvatarUser = blue50;
export const chatShellBackground = gray90;
export const chatHeaderBackground = gray90;

export {
// Type
Expand Down
Expand Up @@ -289,6 +289,8 @@ Array [
"chat-avatar-bot",
"chat-avatar-agent",
"chat-avatar-user",
"chat-shell-background",
"chat-header-background",
"highlight",
"overlay",
"toggle-off",
Expand Down
8 changes: 8 additions & 0 deletions packages/themes/src/tokens/__tests__/metadata-test.js
Expand Up @@ -1129,6 +1129,14 @@ test('metadata', () => {
"name": "chat-avatar-user",
"type": "color",
},
Object {
"name": "chat-shell-background",
"type": "color",
},
Object {
"name": "chat-header-background",
"type": "color",
},
Object {
"name": "highlight",
"type": "color",
Expand Down
2 changes: 2 additions & 0 deletions packages/themes/src/tokens/v11TokenGroup.js
Expand Up @@ -400,6 +400,8 @@ export const ai = TokenGroup.create({
'chat-avatar-bot',
'chat-avatar-agent',
'chat-avatar-user',
'chat-shell-background',
'chat-header-background',
],
});

Expand Down
2 changes: 2 additions & 0 deletions packages/themes/src/white.js
Expand Up @@ -276,6 +276,8 @@ export const chatBubbleAgentBorder = gray20;
export const chatAvatarBot = gray60;
export const chatAvatarAgent = gray80;
export const chatAvatarUser = blue60;
export const chatShellBackground = white;
export const chatHeaderBackground = white;

// Type
export {
Expand Down

0 comments on commit 70d64b6

Please sign in to comment.