Simplify and optimize your CSS workflow with the CSS Converter! This web-based tool provides a user-friendly interface to effortlessly transform between common CSS formats and units, making your styling process more efficient and manageable.
- Color Conversion: Seamlessly convert colors between:
- HEX (
#rrggbb,#rrggbbaa) - RGBA (
Not implemented yet) - CSS Variables: Generate and apply CSS variables for consistent theming.
- HEX (
- Unit Conversion: Easily convert CSS length units:
- Pixels (px) to Root EMs (rem)
- Root EMs (rem) to Pixels (px)
- Customizable Conversion:
- Specify the base
remsize for accurate unit conversions. - Control the precision (number of decimal places) for converted values.
- Exclude specific CSS properties from unit conversion.
- Specify the base
- File and URL Input: Load CSS directly by pasting code, uploading a
.cssfile, or fetching from a remote URL. - Real-time Output: See the converted CSS instantly as you adjust settings.
- Easy Download: Download the converted CSS as a
.cssfile. - Clipboard Integration: Quickly copy the converted CSS to your clipboard.
- Intuitive User Interface: A clean and straightforward design for ease of use.
- HTML
- CSS (Tailwind CSS for styling)
- JavaScript
- Clone the repository:
git clone https://github.com/jeffoliveira977/css-converter
- Navigate to the project directory:
cd CSS-Converter - Open the
index.htmlfile in your web browser or visit the live page: https://jeffoliveira977.github.io/css-converter/
That's it! You can now start using the CSS Converter.
- Select the desired conversion type using the tabs (Unit Converter or Color Converter).
- Input your CSS by:
- Pasting it into the input textarea.
- Uploading a
.cssfile using the "Choose File" button. - Entering a CSS file URL and clicking "Fetch URL".
- Adjust the conversion settings as needed (e.g., conversion direction, base rem size, precision, color conversion mode, variable prefix).
- Click the "Convert" button.
- View the converted CSS in the output textarea.
- Copy the result to your clipboard using the "Copy" button or download it as a
.cssfile using the "Download" button.
This project is licensed under the MIT License. See the LICENSE file for more details.
Jeff Oliveira