mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 08:23:35 +00:00
Add TailwindCSS @apply guidelines
- Document prohibition of @apply at-rule in AGENTS.md - Add explanatory comment in index.css about @apply policy - Promote component-driven styling approach over @apply usage - Note exceptions for shadcn/ui base layer styles
This commit is contained in:
2 files changed
+49
No files matched your search
@@ -2,6 +2,17 @@
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
/*
|
||||
* IMPORTANT: The use of @apply is generally 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.
|
||||
*
|
||||
* The only exceptions are the base layer styles below, which are necessary for
|
||||
* the shadcn/ui design system and global element defaults.
|
||||
*/
|
||||
|
||||
@layer base {
|
||||
:root {
|
||||
--background: 0 0% 100%;
|
||||
|
||||
Reference in new issue
Block a user