VladyslavH commited on
Commit
c9eb033
·
1 Parent(s): 1045102

Change of fonts

Browse files
Files changed (1) hide show
  1. static/style.css +60 -6
static/style.css CHANGED
@@ -1,6 +1,17 @@
 
 
 
 
 
 
 
 
1
  /* Background - Light Ukrainian sky with warm golden undertones */
2
  .gradio-container {
3
  background: radial-gradient(1200px 600px at 20% 0%, #f1f5f9 0%, #e2e8f0 45%, #cbd5e1 100%);
 
 
 
4
  }
5
 
6
  /* Header - Transparent background, only text visible */
@@ -12,11 +23,21 @@
12
  border-bottom: none;
13
  }
14
  #app-header .app-title {
15
- font-weight: 800; letter-spacing: -0.02em; font-size: 40px;
 
 
 
16
  background: linear-gradient(120deg, #60a5fa 0%, #fbbf24 20%, #3b82f6 40%);
17
  -webkit-background-clip: text; background-clip: text; color: transparent;
18
  }
19
- #app-header .app-subtitle { color: #64748b; margin-top: 4px; }
 
 
 
 
 
 
 
20
 
21
  /* Chat card */
22
  #chat-card .gr-chatbot {
@@ -27,14 +48,36 @@
27
  border-radius: 18px;
28
  }
29
 
30
- /* Code blocks */
31
  #chat-card .prose pre {
 
32
  border: 1px solid rgba(59,130,246,0.2);
33
  background: #f8fafc !important;
 
 
 
34
  }
35
  #chat-card .prose code {
 
36
  background: rgba(59,130,246,0.1);
37
- border-radius: 6px; padding: 0.1rem 0.35rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  }
39
 
40
  /* ChatGPT-style input */
@@ -54,8 +97,11 @@
54
  background: rgba(255,255,255,0.9) !important;
55
  color: #334155 !important;
56
  padding: 12px 16px !important;
 
57
  font-size: 15px !important;
58
- line-height: 1.4 !important;
 
 
59
  resize: none !important;
60
  transition: all 0.2s ease !important;
61
  }
@@ -151,7 +197,15 @@
151
  padding: 8px 10px;
152
  }
153
 
154
- .footer-tip { color: #64748b; font-size: 12.5px; text-align:center; margin-top: 6px; }
 
 
 
 
 
 
 
 
155
 
156
  /* Hidden buttons row - make invisible without using visibility */
157
  #hidden-buttons {
 
1
+ /* Import Google Fonts for better typography */
2
+ @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Source+Sans+Pro:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');
3
+
4
+ /* Root font styles - Applied to entire page */
5
+ * {
6
+ font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
7
+ }
8
+
9
  /* Background - Light Ukrainian sky with warm golden undertones */
10
  .gradio-container {
11
  background: radial-gradient(1200px 600px at 20% 0%, #f1f5f9 0%, #e2e8f0 45%, #cbd5e1 100%);
12
+ font-family: 'Source Sans Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
13
+ -webkit-font-smoothing: antialiased;
14
+ -moz-osx-font-smoothing: grayscale;
15
  }
16
 
17
  /* Header - Transparent background, only text visible */
 
23
  border-bottom: none;
24
  }
25
  #app-header .app-title {
26
+ font-family: 'Poppins', sans-serif;
27
+ font-weight: 700;
28
+ letter-spacing: -0.02em;
29
+ font-size: 40px;
30
  background: linear-gradient(120deg, #60a5fa 0%, #fbbf24 20%, #3b82f6 40%);
31
  -webkit-background-clip: text; background-clip: text; color: transparent;
32
  }
33
+ #app-header .app-subtitle {
34
+ font-family: 'Source Sans Pro', sans-serif;
35
+ color: #64748b;
36
+ margin-top: 4px;
37
+ font-weight: 400;
38
+ font-size: 16px;
39
+ letter-spacing: 0.01em;
40
+ }
41
 
42
  /* Chat card */
43
  #chat-card .gr-chatbot {
 
48
  border-radius: 18px;
49
  }
50
 
51
+ /* Code blocks - Using JetBrains Mono for better readability */
52
  #chat-card .prose pre {
53
+ font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Cascadia Code', 'SF Mono', 'Consolas', 'DejaVu Sans Mono', monospace !important;
54
  border: 1px solid rgba(59,130,246,0.2);
55
  background: #f8fafc !important;
56
+ font-size: 13px;
57
+ line-height: 1.5;
58
+ font-weight: 400;
59
  }
60
  #chat-card .prose code {
61
+ font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Cascadia Code', 'SF Mono', 'Consolas', 'DejaVu Sans Mono', monospace !important;
62
  background: rgba(59,130,246,0.1);
63
+ border-radius: 6px;
64
+ padding: 0.1rem 0.35rem;
65
+ font-size: 13px;
66
+ font-weight: 500;
67
+ }
68
+
69
+ /* Chat message text styling */
70
+ .gr-chatbot .message {
71
+ font-family: 'Source Sans Pro', sans-serif;
72
+ font-size: 15px;
73
+ line-height: 1.65;
74
+ font-weight: 400;
75
+ letter-spacing: 0.01em;
76
+ }
77
+
78
+ .gr-chatbot .message p {
79
+ font-family: 'Source Sans Pro', sans-serif;
80
+ margin-bottom: 0.75em;
81
  }
82
 
83
  /* ChatGPT-style input */
 
97
  background: rgba(255,255,255,0.9) !important;
98
  color: #334155 !important;
99
  padding: 12px 16px !important;
100
+ font-family: 'Source Sans Pro', sans-serif !important;
101
  font-size: 15px !important;
102
+ line-height: 1.5 !important;
103
+ font-weight: 400 !important;
104
+ letter-spacing: 0.01em !important;
105
  resize: none !important;
106
  transition: all 0.2s ease !important;
107
  }
 
197
  padding: 8px 10px;
198
  }
199
 
200
+ .footer-tip {
201
+ font-family: 'Source Sans Pro', sans-serif;
202
+ color: #64748b;
203
+ font-size: 12.5px;
204
+ text-align: center;
205
+ margin-top: 6px;
206
+ font-weight: 400;
207
+ letter-spacing: 0.02em;
208
+ }
209
 
210
  /* Hidden buttons row - make invisible without using visibility */
211
  #hidden-buttons {