Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to setup @apply Tailwind #177

Open
Forestvov opened this issue Jun 19, 2023 · 1 comment
Open

How to setup @apply Tailwind #177

Forestvov opened this issue Jun 19, 2023 · 1 comment

Comments

@Forestvov
Copy link

I have this code, and i need to push @apply to the top

background: rgb(20 36 163 / 0.8);
border-radius: 8px;
display: block;
line-height: 55px;

@apply text-white text-[15px] font-semibold text-center;

this config:

"order/order": [
	"declarations",
	{
		"type": "at-rule",
		"name": "apply"
	},
	{
		"type": "at-rule",
		"name": "media"
	},
	{
		"type": "rule",
		"selector": "^&::(before|after)"
	},
	{
		"type": "rule",
		"selector": "^&:\\w"
	},
	{
		"type": "rule",
		"selector": "^&_"
	},
	{
		"type": "rule",
		"selector": "^."
	}
		]
@hudochenkov
Copy link
Owner

Put apply object after "declarations":

"order/order": [
	{
		"type": "at-rule",
		"name": "apply"
	},
	"declarations",
	{
		"type": "at-rule",
		"name": "media"
	},
	{
		"type": "rule",
		"selector": "^&::(before|after)"
	},
	{
		"type": "rule",
		"selector": "^&:\\w"
	},
	{
		"type": "rule",
		"selector": "^&_"
	},
	{
		"type": "rule",
		"selector": "^."
	}
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants