Skip to content
This repository was archived by the owner on Jun 28, 2025. It is now read-only.

Commit a03a289

Browse files
author
Manuel Proß
committed
wip(FE): add heading classes for css styling
1 parent 0e11bc0 commit a03a289

File tree

2 files changed

+73
-21
lines changed

2 files changed

+73
-21
lines changed

web/src/styles/_text.css

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
.h1 {
2+
font-size: clamp(3rem, 5vw, 5rem);
3+
@apply font-[400];
4+
}
5+
6+
.h2 {
7+
font-size: clamp(2rem, 4vw, 4rem);
8+
}
9+
10+
.h3 {
11+
font-size: clamp(1.75rem, 3.5vw, 3rem);
12+
}
13+
14+
.h4 {
15+
font-size: clamp(1.5rem, 3vw, 2.5rem);
16+
}
17+
18+
.h5 {
19+
font-size: clamp(1.5rem, 2.5vw, 1.75rem);
20+
}
21+
22+
.h6 {
23+
font-size: clamp(1.5rem, 2vw, 1.25rem);
24+
}

web/src/styles/globals.css

Lines changed: 49 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,61 @@
1-
@import "./components.css";
1+
@import './components.css';
22
@tailwind base;
33
@tailwind components;
44
@tailwind utilities;
55

66
:root {
7-
--foreground-rgb: 0, 0, 0;
8-
--background-start-rgb: 214, 219, 220;
9-
--background-end-rgb: 255, 255, 255;
10-
--color-primary: #3498db;
11-
--color-secondary: #2ecc71;
12-
--color-tertiary: #e74c3c;
13-
--primary-text: #333;
14-
--secondary-text: #555;
7+
--foreground-rgb: 0, 0, 0;
8+
--background-start-rgb: 214, 219, 220;
9+
--background-end-rgb: 255, 255, 255;
10+
--color-primary: #3498db;
11+
--color-secondary: #2ecc71;
12+
--color-tertiary: #e74c3c;
13+
--primary-text: #333;
14+
--secondary-text: #555;
1515
}
1616

1717
@media (prefers-color-scheme: dark) {
18-
:root {
19-
--foreground-rgb: 255, 255, 255;
20-
--background-start-rgb: 0, 0, 0;
21-
--background-end-rgb: 0, 0, 0;
22-
}
18+
:root {
19+
--foreground-rgb: 255, 255, 255;
20+
--background-start-rgb: 0, 0, 0;
21+
--background-end-rgb: 0, 0, 0;
22+
}
2323
}
2424

2525
body {
26-
color: rgb(var(--foreground-rgb));
27-
background: linear-gradient(
28-
to bottom,
29-
transparent,
30-
rgb(var(--background-end-rgb))
31-
)
32-
rgb(var(--background-start-rgb));
26+
color: rgb(var(--foreground-rgb));
27+
background: linear-gradient(to bottom, transparent, rgb(var(--background-end-rgb))) rgb(var(--background-start-rgb));
28+
}
29+
30+
.heading {
31+
@apply text-secondary ml-2;
32+
33+
&::before {
34+
content: '>_ ';
35+
}
36+
}
37+
38+
.h1 {
39+
font-size: clamp(3rem, 5vw, 5rem);
40+
@apply font-[400];
41+
}
42+
43+
.h2 {
44+
font-size: clamp(2rem, 4vw, 4rem);
45+
}
46+
47+
.h3 {
48+
font-size: clamp(1.75rem, 3.5vw, 3rem);
49+
}
50+
51+
.h4 {
52+
font-size: clamp(1.5rem, 3vw, 2.5rem);
53+
}
54+
55+
.h5 {
56+
font-size: clamp(1.5rem, 2.5vw, 1.75rem);
57+
}
58+
59+
.h6 {
60+
font-size: clamp(1.5rem, 2vw, 1.25rem);
3361
}

0 commit comments

Comments
 (0)