Skip to content

Commit 8b5dd9c

Browse files
committed
refactor: split chat styles
1 parent f830966 commit 8b5dd9c

8 files changed

Lines changed: 2944 additions & 2937 deletions

File tree

apps/web/src/styles.css

Lines changed: 7 additions & 2937 deletions
Large diffs are not rendered by default.

apps/web/src/styles/base.css

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
:root {
2+
color-scheme: light dark;
3+
font-family:
4+
"Inter",
5+
"SF Pro Text",
6+
ui-sans-serif,
7+
system-ui,
8+
-apple-system,
9+
BlinkMacSystemFont,
10+
"Segoe UI",
11+
sans-serif;
12+
font-feature-settings: "ss01", "cv11";
13+
--rail: #e9e1d7;
14+
--bg: #f7f3ed;
15+
--panel: #fffaf2;
16+
--panel-2: #efe7dc;
17+
--panel-3: #e4dbcf;
18+
--hover: rgba(16, 32, 39, 0.05);
19+
--hover-strong: rgba(16, 32, 39, 0.08);
20+
--line: rgba(16, 32, 39, 0.1);
21+
--line-strong: rgba(16, 32, 39, 0.16);
22+
--text: #22201d;
23+
--text-strong: #11100e;
24+
--muted: #6f675f;
25+
--muted-2: #958b80;
26+
--accent: #dd5d45;
27+
--accent-2: #006d77;
28+
--accent-soft: rgba(221, 93, 69, 0.16);
29+
--accent-glow: 0 0 0 1px rgba(221, 93, 69, 0.28), 0 8px 30px -12px rgba(221, 93, 69, 0.45);
30+
--success: #168b51;
31+
--warn: #f5b050;
32+
--danger: #c84343;
33+
--shadow: 0 24px 60px -24px rgba(16, 32, 39, 0.32);
34+
--radius-sm: 6px;
35+
--radius: 8px;
36+
--radius-lg: 14px;
37+
--radius-xl: 18px;
38+
background: var(--bg);
39+
color: var(--text);
40+
}
41+
42+
@media (prefers-color-scheme: dark) {
43+
:root {
44+
--rail: #0d0e12;
45+
--bg: #131419;
46+
--panel: #1a1b22;
47+
--panel-2: #20222b;
48+
--panel-3: #272a35;
49+
--hover: rgba(255, 255, 255, 0.04);
50+
--hover-strong: rgba(255, 255, 255, 0.07);
51+
--line: rgba(255, 255, 255, 0.07);
52+
--line-strong: rgba(255, 255, 255, 0.12);
53+
--text: #e7e9ee;
54+
--text-strong: #ffffff;
55+
--muted: #8a8f9c;
56+
--muted-2: #5d626d;
57+
--accent: #6f7eff;
58+
--accent-2: #5666ee;
59+
--accent-soft: rgba(111, 126, 255, 0.18);
60+
--accent-glow: 0 0 0 1px rgba(111, 126, 255, 0.4), 0 8px 30px -12px rgba(111, 126, 255, 0.6);
61+
--success: #2ecc71;
62+
--warn: #f5b050;
63+
--danger: #ff6b6b;
64+
--shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
65+
}
66+
}
67+
68+
* {
69+
box-sizing: border-box;
70+
}
71+
72+
html,
73+
body {
74+
margin: 0;
75+
padding: 0;
76+
height: 100%;
77+
}
78+
79+
body {
80+
background:
81+
radial-gradient(1000px 600px at 0% 0%, rgba(111, 126, 255, 0.08), transparent 60%),
82+
radial-gradient(900px 700px at 100% 100%, rgba(255, 130, 200, 0.05), transparent 60%), var(--bg);
83+
-webkit-font-smoothing: antialiased;
84+
-moz-osx-font-smoothing: grayscale;
85+
}
86+
87+
button,
88+
input,
89+
textarea {
90+
font: inherit;
91+
color: inherit;
92+
}
93+
94+
button {
95+
cursor: pointer;
96+
}
97+
98+
input,
99+
textarea {
100+
background: transparent;
101+
border: 0;
102+
outline: 0;
103+
}
104+
105+
::-webkit-scrollbar {
106+
width: 10px;
107+
height: 10px;
108+
}
109+
110+
::-webkit-scrollbar-thumb {
111+
background: rgba(255, 255, 255, 0.06);
112+
border-radius: 999px;
113+
border: 2px solid transparent;
114+
background-clip: content-box;
115+
}
116+
117+
::-webkit-scrollbar-thumb:hover {
118+
background: rgba(255, 255, 255, 0.12);
119+
background-clip: content-box;
120+
}
121+

0 commit comments

Comments
 (0)