Skip to content

Commit 557a8a3

Browse files
committed
Add missing vars, fix hyperlink, remove unnecessary style import in index.astro
1 parent 48f8dbe commit 557a8a3

File tree

1 file changed

+54
-21
lines changed

1 file changed

+54
-21
lines changed

src/styles/global.css

Lines changed: 54 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,43 @@
11
@import "tailwindcss";
22

3+
/* Primary and Secondary Colors */
34
@theme {
45
--color-primary: #151f38;
56
--color-primary-hover: #7a7ebd;
67
--color-primary-active: #7a7ebd;
7-
--color-button: #ee714b;
8-
--color-button-hover: #fabc1b;
8+
99
--color-secondary: #151f38;
1010
--color-secondary-dark: #f5e5d6;
1111
--color-secondary-darkest: white;
1212
--color-secondary-light: #7a7ebd;
13+
14+
--color-button: #ee714b;
15+
--color-button-hover: #fabc1b;
16+
17+
--color-body-background: #f5e5d6;
18+
--color-body-inverted: #001c13;
19+
--color-body-light: #888;
20+
}
21+
22+
/* Text & Hero Colors */
23+
@theme {
1324
--color-text: #151f38;
1425
--color-text-inverted: white;
15-
--color-body-background: #f5e5d6;
1626
--color-hero-primary: #151f38;
1727
--color-hero-secondary: #fabc1b;
18-
28+
}
29+
30+
/* Session Colors */
31+
@theme {
1932
--color-session-neutral: #f5e5d6;
20-
--color-session-beginner: #63d452;
33+
--color-session-beginner: #63d451;
2134
--color-session-intermediate: #ffcd45;
22-
--color-session-advanced: #d34847;
23-
35+
--color-session-advanced: #d34848;
36+
--color-session-none: var(--color-secondary-light);
37+
}
38+
39+
/* Sponsor Colors */
40+
@theme {
2441
--color-sponsor-keystone: #5c9f92;
2542
--color-sponsor-diamond: #568497;
2643
--color-sponsor-platinum: #6b6c6e;
@@ -30,6 +47,18 @@
3047
--color-sponsor-patron: #a11217;
3148
}
3249

50+
/* Extra Colors */
51+
@theme {
52+
--color-red: #ce3333;
53+
--color-keynoter-info: hsla(0, 0%, 100%, 0.85);
54+
}
55+
56+
/* Aspect Ratios */
57+
@theme {
58+
--aspect-ratio-hero: 2.4380530973;
59+
}
60+
61+
/* Fonts */
3362
@theme {
3463
--font-system: system-ui, sans-serif;
3564
--font-title: "Inter Variable", -apple-system, BlinkMacSystemFont, Segoe UI,
@@ -40,10 +69,7 @@
4069
Segoe UI Emoji, Segoe UI Symbol;
4170
}
4271

43-
@theme {
44-
--aspect-ratio-hero: 2.4380530973;
45-
}
46-
72+
/* Typography */
4773
@theme {
4874
--tw-prose-headings: var(--color-text-inverted);
4975
}
@@ -57,10 +83,7 @@ body {
5783

5884
.layout-wrapper {
5985
display: grid;
60-
grid-template-columns:
61-
1fr
62-
min(1150px, 100%)
63-
1fr;
86+
grid-template-columns: 1fr min(1150px, 100%) 1fr;
6487
}
6588

6689
.layout-wrapper > * {
@@ -72,6 +95,7 @@ body {
7295
grid-column: 1 / 4;
7396
}
7497

98+
/* Typography */
7599
.prose {
76100
color: var(--color-text);
77101
}
@@ -84,6 +108,20 @@ body {
84108
text-decoration: none !important;
85109
}
86110

111+
.prose p a,
112+
.prose li a,
113+
.prose blockquote a,
114+
.prose span a {
115+
color: var(--color-primary);
116+
}
117+
118+
.prose p a:hover,
119+
.prose li a:hover,
120+
.prose blockquote a:hover,
121+
.prose span a:hover {
122+
color: var(--color-primary-hover);
123+
}
124+
87125
ul.milestone-done li {
88126
position: relative;
89127
list-style: none;
@@ -207,12 +245,7 @@ p.cross::after {
207245
word-break: break-word;
208246
}
209247

210-
h1,
211-
h2,
212-
h3,
213-
h4,
214-
h5,
215-
h6 {
248+
h1, h2, h3, h4, h5, h6 {
216249
font-weight: bold;
217250
font-family: var(--font-display);
218251
line-height: 1.25;

0 commit comments

Comments
 (0)