File tree Expand file tree Collapse file tree 4 files changed +62
-11
lines changed Expand file tree Collapse file tree 4 files changed +62
-11
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ export const MlEphantConversationInput = (
74
74
return (
75
75
< div className = "flex flex-col p-4 gap-2" >
76
76
< div className = "text-sm text-chalkboard-60" > Enter a prompt</ div >
77
- < div className = "p-2 border flex flex-col gap-2" >
77
+ < div className = "p-2 border b-4 focus-within:b-default flex flex-col gap-2" >
78
78
{ /* eslint-disable-next-line jsx-a11y/no-static-element-interactions */ }
79
79
< div
80
80
contentEditable = { true }
@@ -104,7 +104,7 @@ export const MlEphantConversationInput = (
104
104
data-testid = "ml-ephant-conversation-input-button"
105
105
disabled = { props . disabled }
106
106
onClick = { onClick }
107
- className = "w-10 m-0 bg-ml-green p-2 flex justify-center"
107
+ className = "w-10 m-0 bg-ml-green text-chalkboard-100 hover:text-default p-2 flex justify-center"
108
108
>
109
109
< CustomIcon name = "arrowUp" className = "w-5 h-5 animate-bounce" />
110
110
</ button >
@@ -206,7 +206,7 @@ export const MlEphantConversation = (props: MlEphantConversationProps) => {
206
206
{ promptCards }
207
207
</ div >
208
208
</ div >
209
- < div className = "border-t" >
209
+ < div className = "border-t b-4 " >
210
210
< MlEphantConversationInput
211
211
disabled = { props . disabled || props . isLoading }
212
212
onProcess = { onProcess }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ export interface ConvoCardProps extends IResponseMlConversation {
13
13
}
14
14
15
15
export const ConvoCard = ( props : ConvoCardProps ) => {
16
- const cssCard = `flex flex-col border rounded-md p-2 gap-2 justify-between`
16
+ const cssCard = `flex flex-col border b-4 rounded-md p-2 gap-2 justify-between`
17
17
return (
18
18
< div className = { cssCard } >
19
19
< div className = "flex flex-row justify-between gap-2" >
@@ -97,7 +97,7 @@ export const PromptCardActionButton = (props: {
97
97
} ) => {
98
98
return (
99
99
< button
100
- className = "rounded-full bg-gray-100 "
100
+ className = "rounded-full bg-2 hover:bg-6 text-default hover:text-5 "
101
101
onClick = { props . onClick }
102
102
disabled = {
103
103
props . disabled ||
@@ -194,8 +194,8 @@ export const PromptCard = (props: PromptCardProps) => {
194
194
195
195
const cssPrompt =
196
196
props . status !== 'failed'
197
- ? 'break-all shadow-sm bg-chalkboard-20 text-chalkboard-100 border rounded-t-md rounded-bl-md pl-4 pr-4 pt-2 pb-2'
198
- : 'break-all shadow-sm bg-chalkboard-20 text-chalkboard-60 border rounded-t-md rounded-bl-md pl-4 pr-4 pt-2 pb-2'
197
+ ? 'break-all shadow-sm bg-2 text-default border b-4 rounded-t-md rounded-bl-md pl-4 pr-4 pt-2 pb-2'
198
+ : 'break-all shadow-sm bg-2 text-2 border b-4 rounded-t-md rounded-bl-md pl-4 pr-4 pt-2 pb-2'
199
199
200
200
return (
201
201
< div className = { cssCard } >
Original file line number Diff line number Diff line change @@ -363,6 +363,58 @@ code,
363
363
}
364
364
365
365
@layer utilities {
366
+ /** "Foreground" utilities */
367
+ .text-default {
368
+ @apply text-chalkboard-100 dark:text-chalkboard-10;
369
+ }
370
+ .text-2 {
371
+ @apply text-chalkboard-70 dark:text-chalkboard-30;
372
+ }
373
+ .text-3 {
374
+ @apply text-chalkboard-50;
375
+ }
376
+ .text-4 {
377
+ @apply text-chalkboard-30 dark:text-chalkboard-70;
378
+ }
379
+ .text-5 {
380
+ @apply text-chalkboard-20 dark:text-chalkboard-90;
381
+ }
382
+
383
+ .b-default {
384
+ @apply border-chalkboard-100 dark:border-chalkboard-10;
385
+ }
386
+ .b-2 {
387
+ @apply border-chalkboard-70 dark:border-chalkboard-30;
388
+ }
389
+ .b-3 {
390
+ @apply border-chalkboard-50;
391
+ }
392
+ .b-4 {
393
+ @apply border-chalkboard-30 dark:border-chalkboard-80;
394
+ }
395
+ .b-5 {
396
+ @apply border-chalkboard-20 dark:border-chalkboard-90;
397
+ }
398
+
399
+ .bg-default {
400
+ @apply bg-chalkboard-10 dark:bg-chalkboard-100;
401
+ }
402
+ .bg-2 {
403
+ @apply bg-chalkboard-20 dark:bg-chalkboard-90;
404
+ }
405
+ .bg-3 {
406
+ @apply bg-chalkboard-30 dark:bg-chalkboard-70;
407
+ }
408
+ .bg-4 {
409
+ @apply bg-chalkboard-70 dark:bg-chalkboard-30;
410
+ }
411
+ .bg-5 {
412
+ @apply bg-chalkboard-90 dark:bg-chalkboard-20;
413
+ }
414
+ .bg-6 {
415
+ @apply bg-chalkboard-100 dark:bg-chalkboard-10;
416
+ }
417
+
366
418
/*
367
419
This is where your own custom Tailwind utility classes can go,
368
420
which lets you use them with @apply in your CSS, and get
Original file line number Diff line number Diff line change @@ -463,9 +463,9 @@ function HomeTab(props: HomeTabProps) {
463
463
{ name : 'Prompts' , key : HomeTabKeys . Prompts } ,
464
464
]
465
465
466
- const cssTab = 'cursor-pointer border rounded-t text-lg text-center'
467
- const cssActive = `${ cssTab } p-2 border-chalkboard-70 border-b-transparent`
468
- const cssInactive = `${ cssTab } pl-2 pr-2 pt-2 mt-1 border text-chalkboard-90 border-chalkboard-50 bg-chalkboard-20 `
466
+ const cssTab = 'cursor-pointer py-2 px-5 border rounded-t text-lg text-center'
467
+ const cssActive = `${ cssTab } border-chalkboard-50 border-b-transparent`
468
+ const cssInactive = `${ cssTab } text-chalkboard-50 border border-transparent border-b- chalkboard-50 hover:text-default hover: bg-primary/10 `
469
469
470
470
const onClickTab = ( key : HomeTabKeys ) => ( ) => {
471
471
setSelected ( key )
@@ -478,7 +478,6 @@ function HomeTab(props: HomeTabProps) {
478
478
< div
479
479
key = { el . key }
480
480
className = { el . key === selected ? cssActive : cssInactive }
481
- style = { { width : '130px' } }
482
481
onClick = { onClickTab ( el . key ) }
483
482
role = "tab"
484
483
tabIndex = { 0 }
You can’t perform that action at this time.
0 commit comments