Skip to content

Commit

Permalink
added variable for background color property to composer container
Browse files Browse the repository at this point in the history
  • Loading branch information
somebodyawesome-dev authored and salmenus committed Jul 7, 2024
1 parent 5525a04 commit d30dfc6
Show file tree
Hide file tree
Showing 9 changed files with 25 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/css/themes/src/common/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
--nlux-aiMsg--bgClr: var(--nlux-AiMessage--BackgroundColor);
--nlux-aiMsg--brdClr: var(--nlux-AiMessage--BorderColor);
--nlux-aiMsg--txtClr: var(--nlux-AiMessage--TextColor);
/** Prompt container */
--nlux-cmp-cnt--bgClr: var(--nlux-composer-container--BackgroundColor, transparent);

/** Prompt input colors */
--nlux-prmInp--bgClr: var(--nlux-PromptInput--BackgroundColor);
Expand Down
2 changes: 2 additions & 0 deletions packages/css/themes/src/common/structure.css
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@
flex-direction: row;
align-items: stretch;

background-color: var(--nlux-cmp-cnt--bgClr);

> .nlux-comp-composer {
width: 100%;
}
Expand Down
3 changes: 3 additions & 0 deletions packages/css/themes/src/dev/colors.css
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
/** 👇 Divider between composer and messages */
--nlux-ChatRoom-Divider--Color: red;

/** 👇 Prompt container */
--nlux-composer-container--BackgroundColor: transparent;

/** 👇 Prompt input colors */
--nlux-PromptInput--BackgroundColor: honeydew;
--nlux-PromptInput--BorderColor: mediumseagreen;
Expand Down
3 changes: 3 additions & 0 deletions packages/css/themes/src/luna/colors-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
--nlux-ChatRoom--BorderColor: transparent;
--nlux-ChatRoom--TextColor: #ffffff;

/** Prompt container */
--nlux-composer-container--BackgroundColor: transparent;

/** Participant info in chat */
--nlux-ChatItem-ParticipantName--Color: #E0E0E0;

Expand Down
3 changes: 3 additions & 0 deletions packages/css/themes/src/luna/colors-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@
--nlux-AiMessage--BorderColor: #dde5e2;
--nlux-AiMessage--TextColor: #18210c;

/** Prompt container */
--nlux-composer-container--BackgroundColor: transparent;

/** Prompt input colors */
--nlux-PromptInput--BackgroundColor: #ffffff;
--nlux-PromptInput--BorderColor: #c5d7c9;
Expand Down
3 changes: 3 additions & 0 deletions packages/css/themes/src/nova/colors-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
--nlux-AiMessage--BorderColor: transparent;
--nlux-AiMessage--TextColor: #ffffff;

/** Prompt container */
--nlux-composer-container--BackgroundColor: transparent;

/** Prompt input colors */
--nlux-PromptInput--BackgroundColor: transparent;
--nlux-PromptInput--BorderColor: transparent;
Expand Down
3 changes: 3 additions & 0 deletions packages/css/themes/src/nova/colors-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
--nlux-AiMessage--BorderColor: transparent;
--nlux-AiMessage--TextColor: #09090B;

/** Prompt container */
--nlux-composer-container--BackgroundColor: transparent;

/** Prompt input colors */
--nlux-PromptInput--BackgroundColor: transparent;
--nlux-PromptInput--BorderColor: transparent;
Expand Down
3 changes: 3 additions & 0 deletions packages/css/themes/src/openai/colors-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
--nlux-AiMessage--BorderColor: transparent;
--nlux-AiMessage--TextColor: #ffffff;

/** Prompt container */
--nlux-composer-container--BackgroundColor: transparent;

/** Prompt input colors */
--nlux-PromptInput--BackgroundColor: transparent;
--nlux-PromptInput--BorderColor: transparent;
Expand Down
3 changes: 3 additions & 0 deletions packages/css/themes/src/openai/colors-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
--nlux-AiMessage--BorderColor: transparent;
--nlux-AiMessage--TextColor: #09090B;

/** Prompt container */
--nlux-composer-container--BackgroundColor: transparent;

/** Prompt input colors */
--nlux-PromptInput--BackgroundColor: transparent;
--nlux-PromptInput--BorderColor: transparent;
Expand Down

0 comments on commit d30dfc6

Please sign in to comment.