auth-web/src/style/tailwind.css

47 lines
1.1 KiB
CSS
Raw Normal View History

2025-04-29 18:18:07 +08:00
@layer theme, base, components, utilities;
@import 'tailwindcss/theme.css' layer(theme);
@import 'tailwindcss/utilities.css' layer(utilities);
2024-09-26 09:38:02 +08:00
2025-04-29 18:18:07 +08:00
@custom-variant dark (&:is(.dark *));
2024-09-26 09:38:02 +08:00
2025-04-29 18:18:07 +08:00
@theme {
--color-bg_color: var(--el-bg-color);
--color-primary: var(--el-color-primary);
--color-text_color_primary: var(--el-text-color-primary);
--color-text_color_regular: var(--el-text-color-regular);
}
2024-09-26 09:38:02 +08:00
2025-04-29 18:18:07 +08:00
/*
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.
2024-09-26 09:38:02 +08:00
2025-04-29 18:18:07 +08:00
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);
2024-09-26 09:38:02 +08:00
}
}
2025-04-29 18:18:07 +08:00
@utility flex-c {
@apply flex justify-center items-center;
}
@utility flex-ac {
@apply flex justify-around items-center;
}
@utility flex-bc {
@apply flex justify-between items-center;
}
@utility navbar-bg-hover {
@apply dark:text-white dark:hover:bg-[#242424]!;
}