Skip to content

Commit ce05272

Browse files
committed
Use font-size from design system
1 parent 9ae2bea commit ce05272

5 files changed

Lines changed: 14 additions & 27 deletions

File tree

src/ui/preact/dashboard.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
}
2828

2929
.nav-logo {
30-
font-size: 1.25rem;
30+
font-size: var(--font-size-xl);
3131
font-weight: 600;
3232
color: var(--color-text-dark);
3333
display: flex;
@@ -81,7 +81,7 @@
8181
border: 1px solid var(--color-border);
8282
border-radius: var(--radius-button);
8383
cursor: pointer;
84-
font-size: 0.875rem;
84+
font-size: var(--font-size-s);
8585
color: var(--color-text-dark);
8686
transition: background-color var(--transition);
8787
-webkit-appearance: none;
@@ -113,7 +113,7 @@
113113
}
114114

115115
.system-config-title {
116-
font-size: 1.125rem;
116+
font-size: var(--font-size-l);
117117
font-weight: 600;
118118
color: var(--color-text-dark);
119119
margin: 0 0 var(--spacing) 0;
@@ -154,7 +154,7 @@
154154
}
155155

156156
.dashboard-card-title {
157-
font-size: 1.125rem;
157+
font-size: var(--font-size-l);
158158
font-weight: 600;
159159
color: var(--color-text-dark);
160160
margin: 0 0 var(--spacing) 0;

src/ui/preact/form_config_component.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
.config-title {
2727
margin: 0 0 1.25rem 0;
2828
color: var(--color-text);
29-
font-size: 1rem;
29+
font-size: var(--font-size-m);
3030
font-weight: 600;
3131
}
3232

@@ -64,7 +64,7 @@
6464
}
6565

6666
.form-label {
67-
font-size: 0.875rem;
67+
font-size: var(--font-size-s);
6868
font-weight: 600;
6969
color: var(--color-text-dark);
7070
text-align: right;
@@ -75,7 +75,7 @@
7575
padding: var(--spacing-small) 0.75rem;
7676
border: 2px solid var(--config-border-input);
7777
border-radius: var(--radius-small);
78-
font-size: 0.875rem;
78+
font-size: var(--font-size-s);
7979
background-color: var(--color-white);
8080
transition: all var(--transition);
8181
font-family: inherit;
@@ -107,7 +107,7 @@
107107
border: none;
108108
border-radius: var(--radius-button);
109109
cursor: pointer;
110-
font-size: 0.875rem;
110+
font-size: var(--font-size-s);
111111
font-weight: 600;
112112
transition: all var(--transition);
113113
min-width: 5rem;

src/ui/preact/index.css

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,18 +53,12 @@ a:hover {
5353
color: var(--color-link-hover);
5454
}
5555

56-
/* Typography */
57-
h1 {
58-
font-size: 3.2rem;
59-
line-height: 1.1;
60-
}
61-
6256
/* Buttons */
6357
button {
6458
border-radius: var(--radius-small);
6559
border: 1px solid var(--color-border-transparent);
6660
padding: var(--spacing-button);
67-
font-size: 1rem;
61+
font-size: var(--font-size-m);
6862
font-weight: var(--font-weight-medium);
6963
font-family: inherit;
7064
background-color: var(--color-button-bg);
@@ -80,10 +74,3 @@ button:focus,
8074
button:focus-visible {
8175
outline: var(--outline-width) auto -webkit-focus-ring-color;
8276
}
83-
84-
/* Mobile Responsive */
85-
@media (max-width: 768px) {
86-
h1 {
87-
font-size: 2rem;
88-
}
89-
}

src/ui/preact/markdown_component.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
right: var(--spacing);
3131
background: none;
3232
border: none;
33-
font-size: 1.5rem;
33+
font-size: var(--font-size-2xl);
3434
cursor: pointer;
3535
color: var(--color-text-secondary);
3636
z-index: 1001;
@@ -52,7 +52,7 @@
5252
overflow-y: auto;
5353
line-height: 1.6;
5454
text-align: left;
55-
font-size: 1.25rem;
55+
font-size: var(--font-size-xl);
5656
}
5757

5858
.markdown-content h1, .markdown-content h2, .markdown-content h3 {
@@ -88,6 +88,6 @@
8888

8989
.markdown-content {
9090
padding: var(--spacing);
91-
font-size: 1rem;
91+
font-size: var(--font-size-m);
9292
}
9393
}

src/ui/preact/notification_component.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@
7777
}
7878

7979
.notification-message {
80-
font-size: 0.9375rem;
80+
font-size: var(--font-size-m);
8181
color: var(--notification-text);
8282
font-weight: 500;
8383
line-height: 1.4;
@@ -129,7 +129,7 @@
129129
border: none;
130130
border-radius: var(--radius-small);
131131
cursor: pointer;
132-
font-size: 0.875rem;
132+
font-size: var(--font-size-s);
133133
font-weight: 500;
134134
transition: all var(--transition);
135135
min-width: 4.5rem;

0 commit comments

Comments
 (0)