bump (move to next@canary), use tailwindcss v4

This commit is contained in:
Aidan 2025-02-17 11:49:18 -05:00
parent 3e1c75f01f
commit ffe9419db1
21 changed files with 67 additions and 60 deletions

View file

@ -1,26 +1,47 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
@import 'tailwindcss';
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
@theme {
--color-background: var(--background);
--color-foreground: var(--foreground);
}
body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
/*
The default border color has changed to `currentColor` in Tailwind CSS v4,
so we've added these compatibility styles to make sure everything still
looks the same as it did with Tailwind CSS v3.
If we ever want to remove these styles, we need to add an explicit border
color utility to any element that depends on these defaults.
*/
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentColor);
}
}
@utility text-balance {
text-wrap: balance;
}
@layer utilities {
.text-balance {
text-wrap: balance;
:root {
--foreground-rgb: 255, 255, 255;
--background-start-rgb: 0, 0, 0;
--background-end-rgb: 0, 0, 0;
}
body {
color: rgb(var(--foreground-rgb));
background: linear-gradient(
to bottom,
transparent,
rgb(var(--background-end-rgb))
)
rgb(var(--background-start-rgb));
}
}