An open API service indexing awesome lists of open source software.

https://github.com/jhordyess/css-units

React application that converts absolute units used in CSS.
https://github.com/jhordyess/css-units

css css-units react tailwindcss typescript

Last synced: 3 months ago
JSON representation

React application that converts absolute units used in CSS.

Awesome Lists containing this project

README

          

# CSS units

React application that converts absolute units used in CSS.

## Description

Additionally, it includes a dynamic div element that adjusts the width, based on user input. The app also allows to customize the conversion factor from pixels to inches, enabling precise on-screen measurements.

### Technologies Used

- JS Libraries: [ReactJS](https://reactjs.org/), [Math.js](https://mathjs.org/)
- CSS Libraries: [TailwindCSS](https://tailwindcss.com/)
- Programming Language: [TypeScript](https://www.typescriptlang.org/)
- Build tool: [Vite](https://vitejs.dev/)
- Hosting: [GitHub Pages](https://pages.github.com/)
- Dev Environment: [VSCode](https://code.visualstudio.com/) with [dev containers](https://code.visualstudio.com/docs/remote/containers) in [Pop!\_OS](https://pop.system76.com/)

### Online

Visit the project at: .

### Screenshot

![Home](https://res.cloudinary.com/jhordyess/image/upload/v1688763609/css-units/home-page_ss9mfr.png)

## How to use

1. Clone the repository:

```bash
git clone git@github.com:jhordyess/css-units.git
```

2. Open the project folder:

```bash
cd css-units
```

3. Install the dependencies:

```bash
yarn
```

4. Run the project:

```bash
yarn dev
```

5. Open the browser at

## How to use with VSCode dev containers

You can use the VSCode dev containers to run the project in a containerized environment.

You need to have installed [Docker](https://www.docker.com/) and [VSCode](https://code.visualstudio.com/), and the [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) extension.

1. Clone the repository:

```bash
git clone git@github.com:jhordyess/css-units.git
```

2. Open the project with VSCode:

```bash
code css-units
```

3. Open the command palette and select the option `Dev Containers: Reopen in Container`.

4. Wait for the container to be built and the project to be started.

5. Open the terminal in VSCode and run the project:

```bash
yarn dev
```

6. Open the browser at

## To-Do

- Add resize event support.
- Add more features 🤔

## Contribution

If you would like to contribute to the project, open an issue or make a pull request on the repository.

## License

© 2023> [Jhordyess](https://github.com/jhordyess). Under the [MIT](https://choosealicense.com/licenses/mit/) license. See the [LICENSE](./LICENSE) file for more details.

---

Made with 💪 by [Jhordyess](https://www.jhordyess.com/)