Collection of CSS tools
Array with tagName
, property
, value
[
["html", "margin", "0"],
["html", "padding", "0"],
["html", "height", "100%"],
["body", "margin", "0"],
["body", "padding", "0"],
["body", "height", "100%"],
["h1", "font-family", "Arial"]
]
CSS
html,
body {
margin: 0;
padding: 0;
height: 0;
}
h1 {
font-family: Arial;
}
CSS
html,
body {
margin: 0;
padding: 0;
height: 0;
}
h1 {
font-family: Arial;
}
Array with tagName
, property
, value
[
["html", "margin", "0"],
["html", "padding", "0"],
["html", "height", "100%"],
["body", "margin", "0"],
["body", "padding", "0"],
["body", "height", "100%"],
["h1", "font-family", "Arial"]
]
Under development
Array with tagName
, string
where string is the list of tailwind classes
[
["p", "text-left"],
["p", "p-2"],
["p", "m-4"],
];
CSS
p {
margin: 1rem;
padding: 0.5rem;
text-align: "left";
}
Under development
CSS
html,
body {
margin: none;
padding: none;
}
Array with tagName
, string
where string is the list of tailwind classes
[
["html", "m-none p-none"],
["body", "m-none p-none"],
];
This is the method from nanocss
, I'm also using it to merge same property/value styles like:
html {
margin: 0;
padding: 0;
}
body {
margin: 0;
padding: 0;
}
html,
body {
margin: 0;
padding: 0;
}
As I've seen after releasing there was many downloads. Thank you.
Every contribution is very appreciated.
- Create issue or feature request
- After we agree to the change either I or a volunteer gets the task assigned
- The coder opens a Pull Request which I will review as fast as I can
- The version containing the change will be released
- convertTailwindToCss() support: padding & margin (e.g. 'm-2 p-4')
- Usage of 'node:test' testing library (available: Node 18+)
- convertTailwindToCss() support: text align (e.g. 'text-center')
- convertCssToArray() tested & functional
- convertArrayToCss() tested & functional
- optimizeCss() integrated from
nanocss
Deprecated, it was the first try and only one of the converters was supported. Please update.