mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 08:23:35 +00:00
Revert tailwindcss changes, @apply is fine actually
Revert "Remove all @apply usage from index.css" This reverts commit81fae13219. Revert "Add TailwindCSS @apply guidelines" This reverts commit3aedc574d7.
This commit is contained in:
2 files changed
+2
-51
No files matched your search
+2
-13
@@ -2,16 +2,6 @@
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
/*
|
||||
* IMPORTANT: The use of @apply is forbidden in this project.
|
||||
*
|
||||
* @apply is non-standard CSS and goes against the component-driven design philosophy
|
||||
* of Tailwind. Instead of using @apply, create custom React components with the
|
||||
* desired className and wrap elements where that style should be applied.
|
||||
*
|
||||
* All styles in this file use pure CSS with CSS custom properties for theming.
|
||||
*/
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
--background: 0 0% 100%;
|
||||
@@ -102,11 +92,10 @@
|
||||
|
||||
@layer base {
|
||||
* {
|
||||
border-color: hsl(var(--border));
|
||||
@apply border-border;
|
||||
}
|
||||
|
||||
body {
|
||||
background-color: hsl(var(--background));
|
||||
color: hsl(var(--foreground));
|
||||
@apply bg-background text-foreground;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user