Giter VIP home page Giter VIP logo

tailwind-converter's Introduction

tailwind-converter's People

Contributors

dependabot[bot] avatar kt474 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tailwind-converter's Issues

Incorrect Conversion of HTML <header> Tag in Tailwind Converter

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:

  1. Provide a sample HTML snippet containing a <header> tag with multiple classes.
  2. Run the current version of the Tailwind Converter on the provided HTML snippet.

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.

Responsiveness Issues

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.

  • There are scrollbars here and there when I view it using my mobile phone and also 2 scrollbars horizontal & vertical when I use my PC.

alerts with errors blocking website

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

Support Opacity TailWindCSS

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.