Skip to content

Commit 6300744

Browse files
feat: Source Serif 4 font with typing animation
1 parent 487834a commit 6300744

1 file changed

Lines changed: 33 additions & 4 deletions

File tree

docs/src/app/globals.css

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Roboto+Serif:wght@400;500;600;700&display=swap');
1+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Source+Serif+4:ital,wght@0,400;0,500;0,600;1,400&display=swap');
22
@import "tailwindcss";
33

44
@theme {
@@ -103,12 +103,41 @@ code {
103103

104104
/* Agent response content */
105105
.response-content {
106-
font-family: "Roboto Serif", Georgia, serif;
107-
font-size: 16px;
108-
line-height: 1.7;
106+
font-family: "Source Serif 4", Georgia, serif;
107+
font-size: 17px;
108+
line-height: 1.75;
109109
color: #1e293b;
110110
-webkit-font-smoothing: antialiased;
111111
}
112+
113+
/* Typing animation */
114+
@keyframes typeIn {
115+
from {
116+
opacity: 0;
117+
transform: translateY(4px);
118+
}
119+
to {
120+
opacity: 1;
121+
transform: translateY(0);
122+
}
123+
}
124+
125+
.response-content > * {
126+
animation: typeIn 0.3s ease-out forwards;
127+
opacity: 0;
128+
}
129+
130+
.response-content > *:nth-child(1) { animation-delay: 0ms; }
131+
.response-content > *:nth-child(2) { animation-delay: 50ms; }
132+
.response-content > *:nth-child(3) { animation-delay: 100ms; }
133+
.response-content > *:nth-child(4) { animation-delay: 150ms; }
134+
.response-content > *:nth-child(5) { animation-delay: 200ms; }
135+
.response-content > *:nth-child(6) { animation-delay: 250ms; }
136+
.response-content > *:nth-child(7) { animation-delay: 300ms; }
137+
.response-content > *:nth-child(8) { animation-delay: 350ms; }
138+
.response-content > *:nth-child(9) { animation-delay: 400ms; }
139+
.response-content > *:nth-child(10) { animation-delay: 450ms; }
140+
.response-content > *:nth-child(n+11) { animation-delay: 500ms; }
112141
.response-content p {
113142
margin: 0.875em 0;
114143
}

0 commit comments

Comments
 (0)