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 write some unusual styles #3973

Closed
ghost opened this issue Apr 5, 2021 · 2 comments
Closed

How to write some unusual styles #3973

ghost opened this issue Apr 5, 2021 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Apr 5, 2021

What version of @tailwindcss/jit are you using?

0.1.18

What version of Node.js are you using?

14.16.0

What build tool (or framework if it abstracts the build tool) are you using?

postcss-cli 8.3.1

What browser are you using?

Chrome

What operating system are you using?

macOS

Reproduction repository

https://github.com/awnawnawn/awnawnawn.github.io

I want to give it to div style to transform-style: preserve-3d and transition-delay: 0ms

<div class="mt-[123px] transform-style-[preserve-3d] delay-[0] mb-[321px]"></div>

After compilation

.mt-\[123px\] {
	margin-top: 123px;
}
.mb-\[321px\] {
	margin-bottom: 321px;
}

How should I write it ?

@jrmajor
Copy link

jrmajor commented Apr 5, 2021

Tailwind doesn't have transform-style utilities, so transform-style-[preserve-3d] won't work. You can write a custom utility class for that.

Arbitrary values are not supported for delay utility yet. Also, the syntax would probably be delay-[0ms].

@jrmajor
Copy link

jrmajor commented Apr 5, 2021

Update: I've created a PR with support for delay-[0ms] (tailwindlabs/tailwindcss-jit#209).

I think this issue can be closed.

@adamwathan adamwathan transferred this issue from tailwindlabs/tailwindcss-jit Apr 5, 2021
@adamwathan adamwathan added the jit label Apr 5, 2021
@ghost ghost closed this as completed Apr 18, 2021
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants