@copilotkit/react-ui 1.8.0-next.3 → 1.8.0-next.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/{chunk-KG6DW6R2.mjs → chunk-AIR3MXUU.mjs} +7 -7
  3. package/dist/{chunk-LKCAF2HG.mjs → chunk-CZUP2N4J.mjs} +2 -2
  4. package/dist/{chunk-GDJAAFIK.mjs → chunk-GIPO7UB2.mjs} +4 -4
  5. package/dist/{chunk-5GNYGURH.mjs → chunk-H24B7QWO.mjs} +5 -5
  6. package/dist/{chunk-2LRE4W6A.mjs → chunk-LYHZXHTJ.mjs} +3 -2
  7. package/dist/{chunk-2LRE4W6A.mjs.map → chunk-LYHZXHTJ.mjs.map} +1 -1
  8. package/dist/{chunk-QGK5GOSC.mjs → chunk-QQ4FBIGN.mjs} +7 -7
  9. package/dist/{chunk-LXCH2BIB.mjs → chunk-TFIQA2P5.mjs} +2 -2
  10. package/dist/components/chat/Chat.js +2 -1
  11. package/dist/components/chat/Chat.js.map +1 -1
  12. package/dist/components/chat/Chat.mjs +4 -4
  13. package/dist/components/chat/Header.mjs +5 -5
  14. package/dist/components/chat/Input.js +2 -1
  15. package/dist/components/chat/Input.js.map +1 -1
  16. package/dist/components/chat/Input.mjs +1 -1
  17. package/dist/components/chat/Modal.js +2 -1
  18. package/dist/components/chat/Modal.js.map +1 -1
  19. package/dist/components/chat/Modal.mjs +13 -13
  20. package/dist/components/chat/Popup.js +2 -1
  21. package/dist/components/chat/Popup.js.map +1 -1
  22. package/dist/components/chat/Popup.mjs +14 -14
  23. package/dist/components/chat/Sidebar.js +2 -1
  24. package/dist/components/chat/Sidebar.js.map +1 -1
  25. package/dist/components/chat/Sidebar.mjs +14 -14
  26. package/dist/components/chat/index.js +2 -1
  27. package/dist/components/chat/index.js.map +1 -1
  28. package/dist/components/chat/index.mjs +15 -15
  29. package/dist/components/chat/messages/AssistantMessage.mjs +1 -1
  30. package/dist/components/crew/index.mjs +1 -1
  31. package/dist/components/dev-console/console.mjs +3 -3
  32. package/dist/components/dev-console/index.mjs +3 -3
  33. package/dist/components/index.js +2 -1
  34. package/dist/components/index.js.map +1 -1
  35. package/dist/components/index.mjs +24 -24
  36. package/dist/index.css +45 -41
  37. package/dist/index.css.map +1 -1
  38. package/dist/index.js +2 -1
  39. package/dist/index.js.map +1 -1
  40. package/dist/index.mjs +24 -24
  41. package/dist/types/css.d.ts +4 -9
  42. package/dist/types/css.js.map +1 -1
  43. package/package.json +4 -4
  44. package/src/components/chat/Input.tsx +6 -1
  45. package/src/css/button.css +1 -1
  46. package/src/css/colors.css +48 -23
  47. package/src/css/console.css +1 -1
  48. package/src/css/header.css +2 -2
  49. package/src/css/input.css +19 -10
  50. package/src/css/messages.css +2 -2
  51. package/src/css/suggestions.css +2 -2
  52. package/src/types/css.ts +4 -9
  53. /package/dist/{chunk-KG6DW6R2.mjs.map → chunk-AIR3MXUU.mjs.map} +0 -0
  54. /package/dist/{chunk-LKCAF2HG.mjs.map → chunk-CZUP2N4J.mjs.map} +0 -0
  55. /package/dist/{chunk-GDJAAFIK.mjs.map → chunk-GIPO7UB2.mjs.map} +0 -0
  56. /package/dist/{chunk-5GNYGURH.mjs.map → chunk-H24B7QWO.mjs.map} +0 -0
  57. /package/dist/{chunk-QGK5GOSC.mjs.map → chunk-QQ4FBIGN.mjs.map} +0 -0
  58. /package/dist/{chunk-LXCH2BIB.mjs.map → chunk-TFIQA2P5.mjs.map} +0 -0
package/dist/index.mjs CHANGED
@@ -1,13 +1,18 @@
1
1
  "use client";
2
2
  import "./chunk-EFZPSZWO.mjs";
3
3
  import "./chunk-MWC5OV7Z.mjs";
4
- import "./chunk-UCVCAGU7.mjs";
5
- import "./chunk-N7LTE54T.mjs";
6
4
  import "./chunk-SQMEPWVT.mjs";
7
5
  import {
8
6
  CopilotSidebar
9
- } from "./chunk-LKCAF2HG.mjs";
7
+ } from "./chunk-CZUP2N4J.mjs";
10
8
  import "./chunk-WB3YULQ4.mjs";
9
+ import {
10
+ CopilotPopup
11
+ } from "./chunk-TFIQA2P5.mjs";
12
+ import "./chunk-AIR3MXUU.mjs";
13
+ import "./chunk-CGVOCLHN.mjs";
14
+ import "./chunk-GIPO7UB2.mjs";
15
+ import "./chunk-UCVCAGU7.mjs";
11
16
  import {
12
17
  DefaultResponseRenderer,
13
18
  createResponseCache
@@ -15,27 +20,11 @@ import {
15
20
  import {
16
21
  DefaultStateRenderer
17
22
  } from "./chunk-MCO235PS.mjs";
18
- import {
19
- CopilotPopup
20
- } from "./chunk-LXCH2BIB.mjs";
21
- import "./chunk-KG6DW6R2.mjs";
22
- import "./chunk-CGVOCLHN.mjs";
23
- import "./chunk-GDJAAFIK.mjs";
24
- import "./chunk-V7W6IM2V.mjs";
25
- import {
26
- CopilotDevConsole
27
- } from "./chunk-QGK5GOSC.mjs";
28
- import "./chunk-KXE2JCUH.mjs";
29
- import "./chunk-YC4NBUGE.mjs";
30
- import "./chunk-OTPAZXVR.mjs";
31
- import {
32
- shouldShowDevConsole
33
- } from "./chunk-6TCUJ3B7.mjs";
34
- import "./chunk-BH6PCAAL.mjs";
23
+ import "./chunk-N7LTE54T.mjs";
35
24
  import "./chunk-VC4NO5QZ.mjs";
36
25
  import {
37
26
  CopilotChat
38
- } from "./chunk-5GNYGURH.mjs";
27
+ } from "./chunk-H24B7QWO.mjs";
39
28
  import {
40
29
  AssistantMessage
41
30
  } from "./chunk-FBYETUFL.mjs";
@@ -46,19 +35,30 @@ import "./chunk-7RIBDD4K.mjs";
46
35
  import {
47
36
  UserMessage
48
37
  } from "./chunk-HEIDCT7I.mjs";
38
+ import "./chunk-UZTZXMYS.mjs";
49
39
  import "./chunk-TOQ7P4DO.mjs";
50
- import "./chunk-2LRE4W6A.mjs";
40
+ import "./chunk-LYHZXHTJ.mjs";
51
41
  import "./chunk-YQFVRDNC.mjs";
52
42
  import {
53
43
  Markdown
54
44
  } from "./chunk-XNQO5AZZ.mjs";
45
+ import "./chunk-PCTCOQK2.mjs";
55
46
  import "./chunk-GJME6MK4.mjs";
56
- import "./chunk-UZTZXMYS.mjs";
57
47
  import {
58
48
  useChatContext
59
49
  } from "./chunk-5JY5QJ2W.mjs";
60
- import "./chunk-PCTCOQK2.mjs";
50
+ import "./chunk-V7W6IM2V.mjs";
51
+ import {
52
+ CopilotDevConsole
53
+ } from "./chunk-QQ4FBIGN.mjs";
54
+ import "./chunk-KXE2JCUH.mjs";
55
+ import "./chunk-YC4NBUGE.mjs";
56
+ import "./chunk-BH6PCAAL.mjs";
57
+ import {
58
+ shouldShowDevConsole
59
+ } from "./chunk-6TCUJ3B7.mjs";
61
60
  import "./chunk-ORSMX3SE.mjs";
61
+ import "./chunk-OTPAZXVR.mjs";
62
62
  import "./chunk-IU3WTXLQ.mjs";
63
63
  import "./chunk-T26KLXLH.mjs";
64
64
  import {
@@ -3,20 +3,15 @@ import { CSSProperties } from 'react';
3
3
  interface CopilotKitCSSProperties extends CSSProperties {
4
4
  "--copilot-kit-primary-color"?: string;
5
5
  "--copilot-kit-contrast-color"?: string;
6
- "--copilot-kit-secondary-color"?: string;
7
6
  "--copilot-kit-background-color"?: string;
8
- "--copilot-kit-muted-color"?: string;
9
- "--copilot-kit-text-light-color"?: string;
10
- "--copilot-kit-text-dark-color"?: string;
7
+ "--copilot-kit-input-background-color"?: string;
8
+ "--copilot-kit-secondary-color"?: string;
9
+ "--copilot-kit-secondary-contrast-color"?: string;
11
10
  "--copilot-kit-separator-color"?: string;
12
- "--copilot-kit-scrollbar-color"?: string;
13
- "--copilot-kit-header-color"?: string;
14
- "--copilot-kit-response-button-color"?: string;
15
- "--copilot-kit-response-button-background-color"?: string;
11
+ "--copilot-kit-muted-color"?: string;
16
12
  "--copilot-kit-shadow-sm"?: string;
17
13
  "--copilot-kit-shadow-md"?: string;
18
14
  "--copilot-kit-shadow-lg"?: string;
19
- "--copilot-kit-text-color"?: string;
20
15
  }
21
16
 
22
17
  export { CopilotKitCSSProperties };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/types/css.ts"],"sourcesContent":["// autogenerated (see postcss.config.js) - do not edit\nimport { CSSProperties } from \"react\";\n\nexport interface CopilotKitCSSProperties extends CSSProperties {\n \"--copilot-kit-primary-color\"?: string;\n \"--copilot-kit-contrast-color\"?: string;\n \"--copilot-kit-secondary-color\"?: string;\n \"--copilot-kit-background-color\"?: string;\n \"--copilot-kit-muted-color\"?: string;\n \"--copilot-kit-text-color\"?: string;\n \"--copilot-kit-separator-color\"?: string;\n \"--copilot-kit-scrollbar-color\"?: string;\n \"--copilot-kit-response-button-color\"?: string;\n \"--copilot-kit-response-button-background-color\"?: string;\n \"--copilot-kit-shadow-sm\"?: string;\n \"--copilot-kit-shadow-md\"?: string;\n \"--copilot-kit-shadow-lg\"?: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
1
+ {"version":3,"sources":["../../src/types/css.ts"],"sourcesContent":["// autogenerated (see postcss.config.js) - do not edit\nimport { CSSProperties } from \"react\";\n\nexport interface CopilotKitCSSProperties extends CSSProperties {\n \"--copilot-kit-primary-color\"?: string;\n \"--copilot-kit-contrast-color\"?: string;\n \"--copilot-kit-secondary-color\"?: string;\n \"--copilot-kit-background-color\"?: string;\n \"--copilot-kit-muted-color\"?: string;\n \"--copilot-kit-text-light-color\"?: string;\n \"--copilot-kit-text-dark-color\"?: string;\n \"--copilot-kit-separator-color\"?: string;\n \"--copilot-kit-scrollbar-color\"?: string;\n \"--copilot-kit-header-color\"?: string;\n \"--copilot-kit-response-button-color\"?: string;\n \"--copilot-kit-response-button-background-color\"?: string;\n \"--copilot-kit-shadow-sm\"?: string;\n \"--copilot-kit-shadow-md\"?: string;\n \"--copilot-kit-shadow-lg\"?: string;\n \"--copilot-kit-text-color\"?: string;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "publishConfig": {
10
10
  "access": "public"
11
11
  },
12
- "version": "1.8.0-next.3",
12
+ "version": "1.8.0-next.4",
13
13
  "sideEffects": [
14
14
  "**/*.css"
15
15
  ],
@@ -50,9 +50,9 @@
50
50
  "react-syntax-highlighter": "^15.5.0",
51
51
  "remark-gfm": "^3.0.1",
52
52
  "remark-math": "^5.1.1",
53
- "@copilotkit/react-core": "1.8.0-next.3",
54
- "@copilotkit/runtime-client-gql": "1.8.0-next.3",
55
- "@copilotkit/shared": "1.8.0-next.3"
53
+ "@copilotkit/react-core": "1.8.0-next.4",
54
+ "@copilotkit/runtime-client-gql": "1.8.0-next.4",
55
+ "@copilotkit/shared": "1.8.0-next.4"
56
56
  },
57
57
  "keywords": [
58
58
  "copilotkit",
@@ -89,7 +89,11 @@ export const Input = ({ inProgress, onSend, isVisible = false, onStop }: InputPr
89
89
  onClick={() =>
90
90
  setPushToTalkState(pushToTalkState === "idle" ? "recording" : "transcribing")
91
91
  }
92
- className={pushToTalkState === "recording" ? "copilotKitPushToTalkRecording" : ""}
92
+ className={
93
+ pushToTalkState === "recording"
94
+ ? "copilotKitInputControlButton copilotKitPushToTalkRecording"
95
+ : "copilotKitInputControlButton"
96
+ }
93
97
  >
94
98
  {context.icons.pushToTalkIcon}
95
99
  </button>
@@ -99,6 +103,7 @@ export const Input = ({ inProgress, onSend, isVisible = false, onStop }: InputPr
99
103
  onClick={isInProgress ? onStop : send}
100
104
  data-copilotkit-in-progress={inProgress}
101
105
  data-test-id={inProgress ? "copilot-chat-request-in-progress" : "copilot-chat-ready"}
106
+ className="copilotKitInputControlButton"
102
107
  >
103
108
  {buttonIcon}
104
109
  </button>
@@ -5,7 +5,7 @@
5
5
  align-items: center;
6
6
  justify-content: center;
7
7
  border-radius: 50%;
8
- border: 1px solid var(--copilot-kit-contrast-color);
8
+ border: 1px solid var(--copilot-kit-primary-color);
9
9
  outline: none;
10
10
  position: relative;
11
11
  transform: scale(1);
@@ -1,33 +1,58 @@
1
- html {
1
+ /* Base theme variables (light mode) */
2
+ :root {
3
+ /* Semantic color tokens */
4
+ /* Main brand/action color - used for buttons, interactive elements */
2
5
  --copilot-kit-primary-color: rgb(28, 28, 28);
6
+ /* Color that contrasts with primary - used for text on primary elements */
3
7
  --copilot-kit-contrast-color: rgb(255, 255, 255);
4
- --copilot-kit-secondary-color: rgb(83, 83, 83);
8
+ /* Main page/container background color */
5
9
  --copilot-kit-background-color: rgb(255 255 255);
6
- --copilot-kit-muted-color: rgb(200 200 200);
7
- --copilot-kit-text-light-color: rgb(255 255 255);
8
- --copilot-kit-text-dark-color: rgb(28, 28, 28);
10
+ /* Input box background color */
11
+ --copilot-kit-input-background-color: #fbfbfb;
12
+ /* Secondary background - used for cards, panels, elevated surfaces */
13
+ --copilot-kit-secondary-color: rgb(255 255 255);
14
+ /* Primary text color for main content */
15
+ --copilot-kit-secondary-contrast-color: rgb(28, 28, 28);
16
+ /* Border color for dividers and containers */
9
17
  --copilot-kit-separator-color: rgb(200 200 200);
10
- --copilot-kit-scrollbar-color: rgba(0, 0, 0, 0.2);
11
- --copilot-kit-header-color: rgb(255 255 255);
12
- --copilot-kit-response-button-color: #333;
13
- --copilot-kit-response-button-background-color: #fff;
18
+ /* Muted color for disabled/inactive states */
19
+ --copilot-kit-muted-color: rgb(200 200 200);
20
+
21
+ /* Shadow tokens */
22
+ /* Small shadow for subtle elevation */
14
23
  --copilot-kit-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
24
+ /* Medium shadow for cards */
15
25
  --copilot-kit-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
26
+ /* Large shadow for modals */
16
27
  --copilot-kit-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
28
+ }
29
+
30
+ /* Dark theme - based on system preference */
31
+ @media (prefers-color-scheme: dark) {
32
+ :root {
33
+ /* Main brand/action color - used for buttons, interactive elements */
34
+ --copilot-kit-primary-color: rgb(255, 255, 255);
35
+ /* Color that contrasts with primary - used for text on primary elements */
36
+ --copilot-kit-contrast-color: rgb(28, 28, 28);
37
+ /* Main page/container background color */
38
+ --copilot-kit-background-color: rgb(17, 17, 17);
39
+ /* Input box background color */
40
+ --copilot-kit-input-background-color: #2c2c2c;
41
+ /* Secondary background - used for cards, panels, elevated surfaces */
42
+ --copilot-kit-secondary-color: rgb(28, 28, 28);
43
+ /* Primary text color for main content */
44
+ --copilot-kit-secondary-contrast-color: rgb(255, 255, 255);
45
+ /* Border color for dividers and containers */
46
+ --copilot-kit-separator-color: rgb(45, 45, 45);
47
+ /* Muted color for disabled/inactive states */
48
+ --copilot-kit-muted-color: rgb(45, 45, 45);
17
49
 
18
- .variant-blue {
19
- --copilot-kit-primary-color: rgb(59 130 246);
20
- --copilot-kit-contrast-color: rgb(255 255 255);
21
- --copilot-kit-secondary-color: rgb(243 244 246);
22
- --copilot-kit-background-color: rgb(255 255 255);
23
- --copilot-kit-muted-color: rgb(200 200 200);
24
- --copilot-kit-text-color: rgb(106 106 106);
25
- --copilot-kit-separator-color: rgb(200 200 200);
26
- --copilot-kit-scrollbar-color: rgba(0, 0, 0, 0.2);
27
- --copilot-kit-response-button-color: #333;
28
- --copilot-kit-response-button-background-color: #fff;
29
- --copilot-kit-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
30
- --copilot-kit-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
31
- --copilot-kit-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
50
+ /* Small shadow for subtle elevation */
51
+ --copilot-kit-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
52
+ /* Medium shadow for cards */
53
+ --copilot-kit-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
54
+ /* Large shadow for modals */
55
+ --copilot-kit-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
32
56
  }
33
57
  }
58
+
@@ -132,7 +132,7 @@
132
132
  border-radius: 15px;
133
133
  font-size: 0.8rem;
134
134
  border: 1px solid var(--copilot-kit-muted-color);
135
- color: var(--copilot-kit-text-color);
135
+ color: var(--copilot-kit-secondary-contrast-color);
136
136
  box-shadow: 0 5px 5px 0px rgba(0,0,0,.01),0 2px 3px 0px rgba(0,0,0,.02);
137
137
  background-color: var(--copilot-kit-dev-console-bg);
138
138
  }
@@ -4,12 +4,12 @@
4
4
  display: flex;
5
5
  align-items: center;
6
6
  position: relative;
7
- color: var(--copilot-kit-contrast-color);
7
+ color: var(--copilot-kit-primary-color);
8
8
  border-top-left-radius: 0;
9
9
  border-top-right-radius: 0;
10
10
  border-bottom: 1px solid var(--copilot-kit-separator-color);
11
11
  padding-left: 1.5rem;
12
- background-color: var(--copilot-kit-header-color); /* Adjust opacity to your preference */
12
+ background-color: var(--copilot-kit-contrast-color);
13
13
  justify-content: space-between;
14
14
  z-index: 2;
15
15
  }
package/src/css/input.css CHANGED
@@ -3,20 +3,29 @@
3
3
  flex-direction: column;
4
4
  cursor: text;
5
5
  position: relative;
6
- background-color: #fbfbfb;
6
+ background-color: var(--copilot-kit-input-background-color);
7
7
  border-radius: 20px;
8
8
  border: 1px solid var(--copilot-kit-separator-color);
9
9
  padding: 12px 14px;
10
10
  height: 75px;
11
+ margin: 0 auto;
12
+ width: 95%;
11
13
  }
12
14
 
13
15
  .copilotKitInputContainer {
14
- width: 95%;
15
- margin: 0 auto;
16
+ width: 100%;
16
17
  padding: 0 0 15px 0;
18
+ background: var(--copilot-kit-background-color);
19
+ border-bottom-left-radius: 0.75rem;
20
+ border-bottom-right-radius: 0.75rem;
21
+ }
22
+
23
+ .copilotKitSidebar .copilotKitInputContainer {
24
+ border-bottom-left-radius: 0;
25
+ border-bottom-right-radius: 0;
17
26
  }
18
27
 
19
- .copilotKitInput > .copilotKitInputControls > button {
28
+ .copilotKitInputControlButton {
20
29
  padding: 0;
21
30
  cursor: pointer;
22
31
  transition-property: transform;
@@ -43,16 +52,16 @@
43
52
  height: 24px;
44
53
  }
45
54
 
46
- .copilotKitInput > .copilotKitInputControls > button:not([disabled]) {
55
+ .copilotKitInputControlButton:not([disabled]) {
47
56
  color: var(--copilot-kit-primary-color);
48
57
  }
49
58
 
50
- .copilotKitInput > .copilotKitInputControls > button:not([disabled]):hover {
59
+ .copilotKitInputControlButton:not([disabled]):hover {
51
60
  color: color-mix(in srgb, var(--copilot-kit-primary-color) 80%, black);
52
61
  transform: scale(1.05);
53
62
  }
54
63
 
55
- .copilotKitInput > .copilotKitInputControls > button[disabled] {
64
+ .copilotKitInputControlButton[disabled] {
56
65
  color: var(--copilot-kit-muted-color);
57
66
  cursor: default;
58
67
  }
@@ -78,9 +87,9 @@
78
87
  padding: 0;
79
88
  font-family: inherit;
80
89
  font-weight: inherit;
81
- color: var(--copilot-kit-text-color);
90
+ color: var(--copilot-kit-secondary-contrast-color);
82
91
  border: 0px;
83
- background-color: #fbfbfb;
92
+ background-color: var(--copilot-kit-input-background-color);
84
93
  }
85
94
 
86
95
  .copilotKitInput > textarea::placeholder {
@@ -88,7 +97,7 @@
88
97
  opacity: 1;
89
98
  }
90
99
 
91
- .copilotKitInput > .copilotKitInputControls > button.copilotKitPushToTalkRecording {
100
+ .copilotKitInputControlButton.copilotKitPushToTalkRecording {
92
101
  background-color: #ec0000;
93
102
  color: white;
94
103
  border-radius: 50%;
@@ -30,7 +30,7 @@
30
30
  }
31
31
 
32
32
  .copilotKitMessages::-webkit-scrollbar-thumb {
33
- background-color: var(--copilot-kit-scrollbar-color);
33
+ background-color: var(--copilot-kit-separator-color);
34
34
  border-radius: 10rem;
35
35
  border: 2px solid var(--copilot-kit-background-color);
36
36
  }
@@ -51,7 +51,6 @@
51
51
  overflow-wrap: break-word;
52
52
  max-width: 80%;
53
53
  margin-bottom: 0.5rem;
54
- color: var(--copilot-kit-text-color);
55
54
  }
56
55
 
57
56
  .copilotKitMessage.copilotKitUserMessage {
@@ -69,6 +68,7 @@
69
68
  padding-left: 0;
70
69
  position: relative;
71
70
  max-width: 100%;
71
+ color: var(--copilot-kit-secondary-contrast-color);
72
72
  }
73
73
 
74
74
  .copilotKitMessage.copilotKitAssistantMessage .copilotKitMessageControls {
@@ -15,7 +15,7 @@
15
15
  font-size: 0.7rem;
16
16
  border-radius: 15px;
17
17
  border: 1px solid var(--copilot-kit-muted-color);
18
- color: var(--copilot-kit-text-color);
18
+ color: var(--copilot-kit-secondary-contrast-color);
19
19
  box-shadow: 0 5px 5px 0px rgba(0,0,0,.01),0 2px 3px 0px rgba(0,0,0,.02);
20
20
  }
21
21
 
@@ -23,7 +23,7 @@
23
23
  padding: 0;
24
24
  font-size: 0.7rem;
25
25
  border: none;
26
- color: var(--copilot-kit-text-color);
26
+ color: var(--copilot-kit-secondary-contrast-color);
27
27
  }
28
28
 
29
29
  .copilotKitMessages footer .suggestions button {
package/src/types/css.ts CHANGED
@@ -4,18 +4,13 @@ import { CSSProperties } from "react";
4
4
  export interface CopilotKitCSSProperties extends CSSProperties {
5
5
  "--copilot-kit-primary-color"?: string;
6
6
  "--copilot-kit-contrast-color"?: string;
7
- "--copilot-kit-secondary-color"?: string;
8
7
  "--copilot-kit-background-color"?: string;
9
- "--copilot-kit-muted-color"?: string;
10
- "--copilot-kit-text-light-color"?: string;
11
- "--copilot-kit-text-dark-color"?: string;
8
+ "--copilot-kit-input-background-color"?: string;
9
+ "--copilot-kit-secondary-color"?: string;
10
+ "--copilot-kit-secondary-contrast-color"?: string;
12
11
  "--copilot-kit-separator-color"?: string;
13
- "--copilot-kit-scrollbar-color"?: string;
14
- "--copilot-kit-header-color"?: string;
15
- "--copilot-kit-response-button-color"?: string;
16
- "--copilot-kit-response-button-background-color"?: string;
12
+ "--copilot-kit-muted-color"?: string;
17
13
  "--copilot-kit-shadow-sm"?: string;
18
14
  "--copilot-kit-shadow-md"?: string;
19
15
  "--copilot-kit-shadow-lg"?: string;
20
- "--copilot-kit-text-color"?: string;
21
16
  }