feat: styling with tailwind
This commit is contained in:
52
frontend/styles-input.css
Normal file
52
frontend/styles-input.css
Normal file
@@ -0,0 +1,52 @@
|
||||
@import "tailwindcss";
|
||||
|
||||
@custom-variant dark (&:where(.dark, .dark *));
|
||||
|
||||
@layer components {
|
||||
.msg {
|
||||
@apply rounded-lg px-3 py-2 dark:bg-gray-800 max-w-[75%];
|
||||
}
|
||||
|
||||
.msg-model {
|
||||
@apply self-start bg-blue-200 dark:bg-slate-800;
|
||||
}
|
||||
|
||||
.msg-user {
|
||||
@apply self-end bg-slate-200 dark:bg-zinc-800;
|
||||
}
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: transparent !important;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.dark-input {
|
||||
padding: 12px 20px;
|
||||
margin: 8px 0;
|
||||
|
||||
/* Colors & Background */
|
||||
background-color: #1e1e1e;
|
||||
color: #ffffff;
|
||||
border: 1px solid #333333;
|
||||
border-radius: 8px; /* Soft rounded corners */
|
||||
|
||||
/* Typography */
|
||||
font-family: "Inter", sans-serif;
|
||||
font-size: 16px;
|
||||
|
||||
/* Smooth Transition */
|
||||
transition: all 0.3s ease;
|
||||
outline: none;
|
||||
}
|
||||
|
||||
@keyframes slideIn {
|
||||
from {
|
||||
opacity: 0;
|
||||
transform: translateY(10px) scale(0.95);
|
||||
}
|
||||
to {
|
||||
opacity: 1;
|
||||
transform: translateY(0) scale(1);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user