Skip to content

Commit

Permalink
Merge pull request #78 from Siumauricio/feat/standalone-cli
Browse files Browse the repository at this point in the history
Feat/standalone cli
  • Loading branch information
Siumauricio committed Mar 1, 2023
2 parents 9eb7dd1 + 2019a8b commit 30f898a
Show file tree
Hide file tree
Showing 15 changed files with 13,059 additions and 0 deletions.
2 changes: 2 additions & 0 deletions standalone-cli/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
/dist
25 changes: 25 additions & 0 deletions standalone-cli/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Tailwind Standalone CLI

> Standalone version of [Tailwind CLI](https://tailwindcss.com/docs/installation#using-tailwind-cli)
## Installation

Download the appropriate platform-specific version of the `tailwindcss` with `rippleui` cli from the [latest release](https://github.com/Siumauricio/rippleui/releases).

## Usage

```bash
# Let's say you have a want to use the executable for new MacOS architecture, with the following command we can rename the executable to tailwindcss
mv tailwindcss-macos-arm64 tailwindcss

# Then you can use the executable as you would use the Tailwind CLI

# Create new Tailwind config file
./tailwindcss init
```

## Example

You can see a example of how to use the `tailwindcss` cli with `rippleui` in the `example` folder.

Check out the [Tailwind CLI documentation](https://tailwindcss.com/docs/installation#using-tailwind-cli) for details on the available options.
22 changes: 22 additions & 0 deletions standalone-cli/example/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<link href="output.css" rel="stylesheet" />
</head>
<body>
<button class="bg-blue-800">Hola Mundo</button>
<button class="btn btn-primary">Hola Mundo</button>
<input type="email" class="form-input px-4 py-3 rounded-full" />

<select class="form-select px-4 py-3 rounded-full">
<!-- ... -->
</select>
<div class="@container @md:bg-teal-600">2 222222</div>

<input type="checkbox" class="form-checkbox rounded text-pink-500" />
</body>
</html>
3 changes: 3 additions & 0 deletions standalone-cli/example/input.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@tailwind base;
@tailwind components;
@tailwind utilities;
Loading

1 comment on commit 30f898a

@vercel
Copy link

@vercel vercel bot commented on 30f898a Mar 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.