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

box-shadow wrong convertion #1

Open
TobiasLueger opened this issue Apr 25, 2023 · 3 comments
Open

box-shadow wrong convertion #1

TobiasLueger opened this issue Apr 25, 2023 · 3 comments

Comments

@TobiasLueger
Copy link

If you type a box-shadow in CSS. For example:
box-shadow: inset 0 2px 4px 0 rgb(0 0 0 / 0.05);

It turns into:
[box-shadow:inset_0_2px_4px_0_rgb(0_0_0_/_0.05)]

It should be:
shadow-inner

@hymhub
Copy link
Owner

hymhub commented Apr 25, 2023

The writing method of [box-shadow:inset_0_2px_4px_0_rgb(0_0_0_/_0.05)] can actually be used, and the preset content of tailwind is not used in the conversion of some attributes, so this conversion result appears, and the preset writing method of these attributes will be considered in the future.
image

@TobiasLueger
Copy link
Author

TobiasLueger commented Apr 25, 2023

Thanks, that would be useful. Same as this #2

@hymhub
Copy link
Owner

hymhub commented Apr 29, 2023

#2 (comment)

There are many possibilities for box-shadow in the tailwind default value. Considering some uncontrollable factors, it is not included in the preset, but the customTheme option is provided to set more free rules, for example
https://github.com/hymhub/css-to-tailwind#3customize-any-property-value-alias-in-customtheme
image

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