You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I've come across a strange problem.
When I was trying to create a button I noticed that I cannot create a btn-outline style using @apply like so:
what I expected to happen was that the "green accent" button would behave the same way as "green_accent2"
the codes:
green accent: green_accent{ @apply btn btn-outline btn-accent btn-sm; }
green_accent2 : <button class="btn btn-outline btn-accent btn-sm">green_accent2</button>
any help would be appreciated, as I know next to nothing about CSS 🙂
The text was updated successfully, but these errors were encountered:
it won't use the correct order.
I suggest using daisyUI classes directly inside your HTML.
Yes, one class name is cleaner than 3 class names in HTML but I guess @apply won't work as intended in this scenario.
Hi, I've come across a strange problem.

When I was trying to create a button I noticed that I cannot create a btn-outline style using
@apply
like so:what I expected to happen was that the "green accent" button would behave the same way as "green_accent2"
the codes:
green accent:
green_accent{ @apply btn btn-outline btn-accent btn-sm; }
green_accent2 :
<button class="btn btn-outline btn-accent btn-sm">green_accent2</button>
any help would be appreciated, as I know next to nothing about CSS 🙂
The text was updated successfully, but these errors were encountered: