Skip to content
Open
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing

exports[`Public API should only change with a semver change 1`] = `
[
Expand Down Expand Up @@ -76,18 +76,22 @@ exports[`Public API should only change with a semver change 1`] = `
"chatAvatarBot",
"chatAvatarUser",
"chatBubbleAgent",
"chatBubbleAgentText",
"chatBubbleBorder",
"chatBubbleUser",
"chatBubbleUserText",
"chatButton",
"chatButtonActive",
"chatButtonHover",
"chatButtonSelected",
"chatButtonTextHover",
"chatButtonTextSelected",
"chatHeaderBackground",
"chatHeaderText",
"chatPromptBackground",
"chatPromptBorderEnd",
"chatPromptBorderStart",
"chatPromptText",
"chatShellBackground",
"code01",
"code02",
Expand Down
4 changes: 4 additions & 0 deletions packages/styles/scss/__tests__/theme-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,14 +155,18 @@ describe('@carbon/styles/scss/theme', () => {
"chat-prompt-background",
"chat-prompt-border-start",
"chat-prompt-border-end",
"chat-prompt-text",
"chat-bubble-user",
"chat-bubble-user-text",
"chat-bubble-agent",
"chat-bubble-agent-text",
"chat-bubble-border",
"chat-avatar-bot",
"chat-avatar-agent",
"chat-avatar-user",
"chat-shell-background",
"chat-header-background",
"chat-header-text",
"chat-button",
"chat-button-hover",
"chat-button-text-hover",
Expand Down
4 changes: 4 additions & 0 deletions packages/themes/src/g10.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,18 @@ export const aiPopoverCaretBottomBackground = '#EAF1FF';
export const chatPromptBackground = white;
export const chatPromptBorderStart = gray10;
export const chatPromptBorderEnd = rgba(gray10, 0);
export const chatPromptText = textPrimary;
export const chatBubbleUser = gray20;
export const chatBubbleUserText = textPrimary;
export const chatBubbleAgent = white;
export const chatBubbleAgentText = textPrimary;
export const chatBubbleBorder = gray20;
export const chatAvatarBot = gray60;
export const chatAvatarAgent = gray80;
export const chatAvatarUser = blue60;
export const chatShellBackground = white;
export const chatHeaderBackground = white;
export const chatHeaderText = textPrimary;

// Chat button tokens
export const chatButton = linkPrimary;
Expand Down
4 changes: 4 additions & 0 deletions packages/themes/src/g100.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,14 +249,18 @@ export const aiPopoverCaretBottomBackground = '#202D45';
export const chatPromptBackground = gray100;
export const chatPromptBorderStart = gray90;
export const chatPromptBorderEnd = rgba(gray90, 0);
export const chatPromptText = textPrimary;
export const chatBubbleUser = gray80;
export const chatBubbleUserText = textPrimary;
export const chatBubbleAgent = gray90;
export const chatBubbleAgentText = textPrimary;
export const chatBubbleBorder = gray70;
export const chatAvatarBot = gray50;
export const chatAvatarAgent = gray30;
export const chatAvatarUser = blue50;
export const chatShellBackground = gray90;
export const chatHeaderBackground = gray90;
export const chatHeaderText = textPrimary;

// Chat button tokens
export const chatButton = linkPrimary;
Expand Down
4 changes: 4 additions & 0 deletions packages/themes/src/g90.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,14 +250,18 @@ export const aiPopoverCaretBottomBackground = '#202D45';
export const chatPromptBackground = gray100;
export const chatPromptBorderStart = gray90;
export const chatPromptBorderEnd = rgba(gray90, 0);
export const chatPromptText = textPrimary;
export const chatBubbleUser = gray80;
export const chatBubbleUserText = textPrimary;
export const chatBubbleAgent = gray90;
export const chatBubbleAgentText = textPrimary;
export const chatBubbleBorder = gray70;
export const chatAvatarBot = gray50;
export const chatAvatarAgent = gray30;
export const chatAvatarUser = blue50;
export const chatShellBackground = gray90;
export const chatHeaderBackground = gray90;
export const chatHeaderText = textPrimary;

// Chat button tokens
export const chatButton = linkPrimary;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -270,14 +270,18 @@ exports[`v11 v11 token group 1`] = `
"chat-prompt-background",
"chat-prompt-border-start",
"chat-prompt-border-end",
"chat-prompt-text",
"chat-bubble-user",
"chat-bubble-user-text",
"chat-bubble-agent",
"chat-bubble-agent-text",
"chat-bubble-border",
"chat-avatar-bot",
"chat-avatar-agent",
"chat-avatar-user",
"chat-shell-background",
"chat-header-background",
"chat-header-text",
"chat-button",
"chat-button-hover",
"chat-button-text-hover",
Expand Down
16 changes: 16 additions & 0 deletions packages/themes/src/tokens/__tests__/metadata-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1037,14 +1037,26 @@ test('metadata', () => {
"name": "chat-prompt-border-end",
"type": "color",
},
{
"name": "chat-prompt-text",
"type": "color",
},
{
"name": "chat-bubble-user",
"type": "color",
},
{
"name": "chat-bubble-user-text",
"type": "color",
},
{
"name": "chat-bubble-agent",
"type": "color",
},
{
"name": "chat-bubble-agent-text",
"type": "color",
},
{
"name": "chat-bubble-border",
"type": "color",
Expand All @@ -1069,6 +1081,10 @@ test('metadata', () => {
"name": "chat-header-background",
"type": "color",
},
{
"name": "chat-header-text",
"type": "color",
},
{
"name": "chat-button",
"type": "color",
Expand Down
4 changes: 4 additions & 0 deletions packages/themes/src/tokens/v11TokenGroup.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,14 +383,18 @@ export const ai = TokenGroup.create({
'chat-prompt-background',
'chat-prompt-border-start',
'chat-prompt-border-end',
'chat-prompt-text',
'chat-bubble-user',
'chat-bubble-user-text',
'chat-bubble-agent',
'chat-bubble-agent-text',
'chat-bubble-border',
'chat-avatar-bot',
'chat-avatar-agent',
'chat-avatar-user',
'chat-shell-background',
'chat-header-background',
'chat-header-text',
// Chat button tokens
'chat-button',
'chat-button-hover',
Expand Down
4 changes: 4 additions & 0 deletions packages/themes/src/white.js
Original file line number Diff line number Diff line change
Expand Up @@ -246,14 +246,18 @@ export const aiPopoverCaretBottomBackground = '#EAF1FF';
export const chatPromptBackground = white;
export const chatPromptBorderStart = gray10;
export const chatPromptBorderEnd = rgba(gray10, 0);
export const chatPromptText = textPrimary;
export const chatBubbleUser = gray20;
export const chatBubbleUserText = textPrimary;
export const chatBubbleAgent = white;
export const chatBubbleAgentText = textPrimary;
export const chatBubbleBorder = gray20;
export const chatAvatarBot = gray60;
export const chatAvatarAgent = gray80;
export const chatAvatarUser = blue60;
export const chatShellBackground = white;
export const chatHeaderBackground = white;
export const chatHeaderText = textPrimary;

// Chat button tokens
export const chatButton = linkPrimary;
Expand Down
Loading