Replies: 1 comment 1 reply
-
Hi, this changes a little. You need to use the import { defineConfig, css, apply } from "@twind/core"
import presetAutoprefix from "@twind/preset-autoprefix"
import presetTailwind from "@twind/preset-tailwind"
export default defineConfig({
presets: [
presetAutoprefix(),
presetTailwind(/* options */),
],
preflight: css`
html {
@apply h-full w-full;
}
`,
// preflight: css({
// html: {
// '@apply': 'h-full w-full'
// }
// }),
}) You can use the Links:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
Stack:
"@twind/core": "^1.1.3",
"vue": "^3.2.41",
"vite": "^3.2.1",
"typescript": "^4.6.4",
I am using
"@twind/core": "^1.1.3"
, and in setting up my config I have a question how should I apply theapply()
method.If earlier (
"twind": "^0.16.17",
) I could use it like this:then now when using:
i'm not getting the desired result.
I can certainly use it like this:
but I would like to get the desired effect from apply for more complex tasks.
Tell me what I'm doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions