From d91c6b733f2aba05bb8302f7c0bfafb32324d6cb Mon Sep 17 00:00:00 2001 From: Claas Date: Tue, 18 Jun 2024 23:04:00 +0200 Subject: [PATCH] Start styling the chat screen --- chat/index.html | 2 +- chat/src/index.css | 7 +++++ chat/src/routes/Chat.tsx | 56 ++++++++++++++++++++++++++++------------ 3 files changed, 47 insertions(+), 18 deletions(-) diff --git a/chat/index.html b/chat/index.html index 306d6b2..6f89d7c 100644 --- a/chat/index.html +++ b/chat/index.html @@ -8,7 +8,7 @@ Vite + Solid + TS - + diff --git a/chat/src/index.css b/chat/src/index.css index b5c61c9..100df0a 100644 --- a/chat/src/index.css +++ b/chat/src/index.css @@ -1,3 +1,10 @@ @tailwind base; @tailwind components; @tailwind utilities; + +@layer base { + /* Some fun opinionated base styles */ + :root { + @apply bg-slate-100 text-slate-900 caret-orange-600 selection:bg-orange-600 selection:text-slate-100 accent-orange-600; + } +} diff --git a/chat/src/routes/Chat.tsx b/chat/src/routes/Chat.tsx index 7ddd17d..309fb90 100644 --- a/chat/src/routes/Chat.tsx +++ b/chat/src/routes/Chat.tsx @@ -80,21 +80,42 @@ export default function Chat() { createEffect(() => console.debug(messages())); return ( -
-

Chat with {contactName}

- 0}> -
    - {(message) =>
  1. {message.text}
  2. }
    -
-
-
-
+ ); } -- 2.51.2