Comments (7)
This is a useful feature, but I suggest enabling this setting by default.
I initially treid to use the tool and was confused why the output included classes like
border-[2px]
. It took me a while to realise that I needed to check theuseAllDefaultValues
box for conversions to work correctly.
Now, useAllDefaultValues
defaults to true, and users who have modified the configuration before will not be affected, localStorage will remember the configuration
from css-to-tailwind.
Hey, the new version provides the useAllDefaultValues
option, which can basically convert all default values
https://github.com/hymhub/css-to-tailwind#configuration
from css-to-tailwind.
Thanks for the suggestion, I will consider adding the preset writing method in the future #1 (comment)
from css-to-tailwind.
@hymhub Thanks, it would be useful in many projects.
from css-to-tailwind.
This is a useful feature, but I suggest enabling this setting by default.
I initially treid to use the tool and was confused why the output included classes like border-[2px]
. It took me a while to realise that I needed to check the useAllDefaultValues
box for conversions to work correctly.
from css-to-tailwind.
Should we close this issue now that the requested changes have been implemented?
from css-to-tailwind.
I think it doesn't works for font-size.
font-size: 3rem => text-[3rem] instead of text-5xl
from css-to-tailwind.
Related Issues (9)
- box-shadow wrong convertion HOT 3
- Support output with prefix HOT 3
- css attributes using `css-variables` fails to convert HOT 2
- `height` not using default values HOT 1
- Typography configuration HOT 2
- Inconsistencies found when converting Tailwind-based CSS HOT 3
- font-size doesn't use default value
- Unable to Convert Nested Classes and Selectors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from css-to-tailwind.