mirror of
https://gitlab.com/soapbox-pub/mkstack.git
synced 2026-12-05 16:33:36 +00:00
Remove all @apply usage from index.css
- Convert @apply border-border to pure CSS: border-color: hsl(var(--border)) - Convert @apply bg-background text-foreground to pure CSS equivalents - Update comment to reflect complete @apply removal - Update AGENTS.md to strengthen prohibition language - Maintain all theming functionality with pure CSS custom properties
This commit is contained in:
2 files changed
+7
-7
No files matched your search
@@ -1079,9 +1079,9 @@ When users specify color schemes:
|
||||
|
||||
### TailwindCSS Guidelines
|
||||
|
||||
**CRITICAL**: Avoid using the `@apply` at-rule in CSS files. Instead, create custom components with the desired className and wrap elements where that style should be applied.
|
||||
**CRITICAL**: The `@apply` at-rule is completely forbidden in this project. Instead, create custom components with the desired className and wrap elements where that style should be applied.
|
||||
|
||||
The `@apply` directive is non-standard CSS and goes against the component-driven design philosophy of Tailwind. It creates implicit dependencies and makes styles harder to trace and maintain.
|
||||
The `@apply` directive is non-standard CSS and goes against the component-driven design philosophy of Tailwind. It creates implicit dependencies and makes styles harder to trace and maintain. This project uses pure CSS with CSS custom properties for any global styles.
|
||||
|
||||
**✅ Correct - Component-based approach:**
|
||||
```tsx
|
||||
|
||||
Reference in new issue
Block a user