Skip to content

Commit 2fadb33

Browse files
committed
make tailwind.css the first customCss file
1 parent e3b1e35 commit 2fadb33

File tree

2 files changed

+2
-19
lines changed

2 files changed

+2
-19
lines changed

astro.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ async function autogenStyles() {
4444
})
4545
)
4646
.filter((x) => x.isFile())
47-
.map((x) => x.parentPath + x.name);
47+
.map((x) => x.parentPath + x.name)
48+
.sort((a) => (a === "./src/styles/tailwind.css" ? -1 : 1));
4849

4950
return styles;
5051
}

src/styles/tailwind.css

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -143,24 +143,6 @@
143143
--color-cl1-brand-orange: #f6821f;
144144
}
145145

146-
/*
147-
The default border color has changed to `currentcolor` in Tailwind CSS v4,
148-
so we've added these compatibility styles to make sure everything still
149-
looks the same as it did with Tailwind CSS v3.
150-
151-
If we ever want to remove these styles, we need to add an explicit border
152-
color utility to any element that depends on these defaults.
153-
*/
154-
@layer base {
155-
*,
156-
::after,
157-
::before,
158-
::backdrop,
159-
::file-selector-button {
160-
border-color: var(--color-gray-200, currentcolor);
161-
}
162-
}
163-
164146
@layer base {
165147
:root {
166148
--blue-accent-200: rgb(15, 0, 107);

0 commit comments

Comments
 (0)