Skip to content

Commit ba1eb0a

Browse files
committed
daisy: use --color-primary for primary color
1 parent 6871876 commit ba1eb0a

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

src/components/Footer/FooterSection.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const { title, links } = Astro.props;
1616
<li class="align-middle">
1717
<a
1818
href={link.to}
19-
class="link motion-reduce:hover:underline"
19+
class="link link-uncolor motion-reduce:hover:underline"
2020
target={link.to.startsWith("/") ? "" : "_blank"}
2121
rel={link.to.startsWith("/") ? "" : "noreferrer"}
2222
>

src/components/Header.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const { focus } = Astro.props;
2828
id="banner"
2929
class:list={[
3030
"flex items-center justify-center gap-4 px-1 py-2",
31-
banner.kind === "error" ? "bg-red-300/70" : "bg-green-300",
31+
banner.kind === "error" ? "bg-red-300" : "bg-green-300",
3232
]}
3333
>
3434
<span class="hidden md:inline">{banner.long}</span>

src/global.css

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
@plugin "@tailwindcss/typography";
33
@plugin "daisyui";
44

5-
/* do we need this? */
6-
:root {
7-
--color-primary-main: #00d372;
5+
@plugin "daisyui/theme" {
6+
/* biome-ignore lint/correctness/noUnknownProperty: daisyui */
7+
name: "light";
8+
--color-primary: #00d372;
9+
}
10+
11+
.link:not(.link-uncolor) {
12+
color: var(--color-blue-500);
813
}

src/pages/index.astro

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,16 +189,11 @@ articles.splice(3);
189189
<li class="flex gap-4 border-b border-gray-400 px-6 py-3">
190190
<div class="w-24">{title}</div>
191191
{link ? (
192-
<a
193-
href={link}
194-
target="_blank"
195-
rel="noreferrer"
196-
class="flex-1 text-blue-500 underline"
197-
>
192+
<a href={link} target="_blank" rel="noreferrer" class="link">
198193
{content}
199194
</a>
200195
) : (
201-
<div class="flex-1">{content}</div>
196+
<div>{content}</div>
202197
)}
203198
</li>
204199
))

src/pages/join.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import { Icon } from "astro-icon/components";
2424
>
2525
<Icon name="feather:info" />
2626
<span>新歓イベントを行っています</span>
27-
<a class="link" href="/welcome-events">
27+
<a class="link link-uncolor" href="/welcome-events">
2828
詳細<Icon class="mx-1 inline" name="feather:arrow-right" />
2929
</a>
3030
</p>

src/pages/welcome-events.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ import { Focus } from "+/schema";
8282
<li>場所: 確定し次第お知らせします。(学生会館予定)</li>
8383
<li>
8484
詳細: <a
85-
class="link link-primary"
85+
class="link link-uncolor"
8686
href="/articles/2025/03-24_joint-welcome-session"
8787
>
8888
合同新歓を開催します | 記事</a
@@ -91,7 +91,7 @@ import { Focus } from "+/schema";
9191
<li>
9292
参加フォーム:
9393
<Link
94-
class="link link-primary"
94+
class="link"
9595
href="https://forms.gle/sAU7A9uMVerQPpUb6"
9696
_blank
9797
/>
@@ -114,7 +114,7 @@ import { Focus } from "+/schema";
114114
<li>
115115
参加フォーム:
116116
<Link
117-
class="link link-primary"
117+
class="link"
118118
href="https://forms.gle/Bo5gHDgz12XtA4NW8"
119119
_blank
120120
/>

0 commit comments

Comments
 (0)