https://github.com/srid/tailwind-haskell
A No-JavaScript Tailwind runner in Haskell
https://github.com/srid/tailwind-haskell
Last synced: about 1 year ago
JSON representation
A No-JavaScript Tailwind runner in Haskell
- Host: GitHub
- URL: https://github.com/srid/tailwind-haskell
- Owner: srid
- License: mit
- Created: 2022-01-08T16:40:57.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-02-18T18:47:21.000Z (over 1 year ago)
- Last Synced: 2025-03-18T15:48:41.532Z (over 1 year ago)
- Language: Haskell
- Homepage:
- Size: 69.3 KB
- Stars: 17
- Watchers: 2
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# tailwind
Run TailwindCSS CLI [without needing](https://srid.ca/nojs) to touch anything JavaScript. No `input.css` or `tailwind.config.js` is necessary.
```sh-session
nix run github:srid/tailwind-haskell -- 'src/**/*.hs' -o output.css
```
Compiles CSS classes in the input file paths or patterns, and writes to the output CSS file. Pass `-w` to run in JIT watcher mode.
## How to use as Haskell dependency via Nix
[`pkgs.haskellPackages.tailwind`](https://nixpkgs.haskell.page/p/tailwind) already wraps the necessary runtime dependencies (tailwind with plugins). You may use it along with [the static `which` library](https://github.com/obsidiansystems/which).
## Use cases
This package is used in [Emanote](https://github.com/srid/emanote) to compile the CSS file on the generated website, as well as in other [Ema apps](https://github.com/EmaApps).