Skip to content

Commit 8b0fe56

Browse files
committed
1 parent 112540f commit 8b0fe56

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

package-lock.json

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
},
2424
"dependencies": {
2525
"@astrojs/starlight": "^0.34.0",
26+
"@astrojs/starlight-tailwind": "^4.0.1",
2627
"@tailwindcss/vite": "^4.0.3",
2728
"astro": "^5.7.4",
2829
"starlight-openapi": "^0.16.0",

src/components/PokeNav.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ const graphql = baseUrl + 'graphql/'
99
<nav>
1010
<ul
1111
class="
12-
flex gap-6
13-
text-(--sl-color-white) pr-4
12+
flex gap-6 pr-4
13+
[&_a]:text-(--sl-color-white)
1414
[&_a]:hover:text-(--sl-color-accent-high)
1515
[&_a]:hover:font-bold
1616
[&_a]:hover:underline
1717
[&_a]:font-semibold
1818
[&_span]:opacity-50
1919
[&_span]:cursor-default
2020
[&_span]:select-none
21+
list-none
2122
"
2223
>
2324
<li>

src/styles/global.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
@import "tailwindcss";
1+
@layer base, starlight, theme, components, utilities;
2+
3+
@import "@astrojs/starlight-tailwind";
4+
@import "tailwindcss/theme.css" layer(theme);
5+
@import "tailwindcss/utilities.css" layer(utilities);
26

37
/* Dark mode colors. */
48
:root {
@@ -14,6 +18,7 @@
1418
--sl-color-gray-6: #24272f;
1519
--sl-color-black: #17181c;
1620
}
21+
1722
/* Light mode colors. */
1823
:root[data-theme="light"] {
1924
--sl-color-accent-low: #f8cbc0;

0 commit comments

Comments
 (0)