kt474 / tailwind-converter Goto Github PK
View Code? Open in Web Editor NEWConvert plain HTML/CSS into tailwind
Home Page: https://tailwindconverter.app
License: MIT License
Convert plain HTML/CSS into tailwind
Home Page: https://tailwindconverter.app
License: MIT License
Issue Description:
The Tailwind Converter project aims to facilitate the seamless transition from plain HTML/CSS to a single HTML file with Tailwind CSS classes. However, a critical bug has been identified in the conversion process specifically related to the <header>
tag.
Bug Details:
Currently, the <header>
tag's conversion process is resulting in incorrect and unintended Tailwind CSS class assignments. For instance, the following code:
<header class="header header-transparent header-layout1">
... etc
</header>
Is being erroneously converted to:
<relative z-50 class="relative z-50 relative z-50-transparent relative z-50-layout1">
... etc
</relative z-50>
This incorrect conversion not only leads to a broken HTML structure but also generates inappropriate Tailwind CSS class combinations that have no functional or semantic relevance.
Expected Behavior:
The expected behavior is for the <header>
tag to be accurately converted into appropriate Tailwind CSS classes, adhering to the project's intended purpose and maintaining the correct HTML structure. The conversion should reflect the original classes specified for the <header>
tag without introducing irrelevant or redundant classes.
Steps to Reproduce:
<header>
tag with multiple classes.Proposed Solution:
To address this bug, it's crucial to review and rectify the conversion logic associated with the <header>
tag. The Tailwind Converter should accurately translate the specified classes without introducing extraneous or conflicting classes.
The site is great in terms of UI but I feel like the UX can be not so great as the site is not full responsive.
mobile phone
and also 2 scrollbars horizontal & vertical
when I use my PC.How to reproduce:
Open website https://tailwindconverter.app/
Expected result
Page is loaded
Actual result
Alerts is shown. Clicking on "OK" another alert is shown. And it happens a lot of times before you can access the website.
Example of alert: Invalid Color: Error: "var(--bs-body-color)" is not a valid color
Issue Title: Support Opacity Conversion for rgba
and hsla
to Tailwind CSS Classes
Feature Request:
The primary enhancement proposed is the ability to convert rgba
and hsla
color declarations into appropriate Tailwind CSS classes that control the opacity of an element's background color. This feature would greatly improve the convenience and efficiency of the conversion process, allowing developers to seamlessly translate existing rgba
and hsla
values into Tailwind's class naming conventions.
Example:
Currently, an rgba
color value such as rgba(14, 165, 233, 0.5)
could be converted to a Tailwind CSS class like bg-sky-500
. With this proposed enhancement, the conversion could generate a more specific class, accommodating the opacity setting, such as bg-sky-500/50
.
Implementation Details:
The suggested implementation involves analyzing the opacity value of the rgba
or hsla
declaration and generating a corresponding Tailwind CSS class that combines the base color class with the appropriate opacity modifier.
For instance, given the following buttons and their respective opacity settings:
Button A: <button class="bg-sky-500 ..."></button>
Button B: <button class="bg-sky-500/75 ..."></button>
Button C: <button class="bg-sky-500/50 ..."></button>
The Tailwind Converter should produce the expected output with proper opacity classes attached to the base color class.
Note:
It's important to emphasize that this feature request aims to enhance the Tailwind Converter's functionality and should be implemented with careful consideration for code efficiency and maintainability.
Expected Outcome:
Upon successful implementation, developers using the Tailwind Converter will be able to seamlessly convert rgba
and hsla
color values, along with opacity settings, into specific Tailwind CSS classes, simplifying the process of transitioning to the Tailwind framework.
Note to Developers:
Please keep this issue thread updated with any progress, discussions, or insights related to the implementation of opacity support for rgba
and hsla
color values in the Tailwind Converter.
Let's work together to enhance the Tailwind Converter's capabilities and make the transition to Tailwind CSS even smoother for developers!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.