• Stars
    star
    429
  • Rank 101,271 (Top 2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created almost 5 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sort tailwind classes in HTML with Prettier.
⚠️ WARNING: this package is no longer maintained. ⚠️
Please use the official prettier-plugin-tailwindcss package instead.

It was a pleasure developing this package and I hope it served you all well (:


npm version

Prettier Plugin Tailwind

Sort tailwind classes with Prettier.

Supports

  • HTML
  • CSS (@apply directive)
  • ReactJS (JSX, TSX)
  • VueJS
  • twin.macro

Go from this:

<div class="z-50 z-10 container  text-left md:text-center justify-center">
	...
</div>

To this:

<div class="container justify-center text-left z-10 z-50 md:text-center">
	...
</div>

This plugin reads your tailwind.config.js to sort tailwind classes in your project.

Installation VSCode

Install Prettier and the plugin into your project locally:

yarn add --dev prettier prettier-plugin-tailwind

Other IDE's are supported.

Note: Prettier 2.0.0 or greater is required as a peer dependency.

Prettier Options

These options can be set in your .prettierrc file to change the behavious of this plugin.

More details can be found in OPTIONS.md

Contributing 🙌

Contributions are more than welcome. If you see any changes fit, go ahead and open an issue or PR.


Any support is a huge motivation, thank you very much!

Buy Me A Coffee

More Repositories

1

kameo

Fault-tolerant Async Actors Built on Tokio
Rust
137
star
2

leptos_server_signal

Leptos server signals synced through websockets
Rust
52
star
3

emotion-solid

Emotion JS support for Solid JS projects
TypeScript
42
star
4

solid-urql

Urql support for Solid JS projects.
TypeScript
35
star
5

tailwind-classes-sorter

Sort a tailwind classlist by plugin name.
TypeScript
20
star
6

concurrently

Run multiple processes concurrently, with support for cargo.
Rust
10
star
7

steam

Steam is a package for Go to login through the web, invite Steam users to a Steam group, send & receive messages along with a whole range of other functions.
Go
7
star
8

leptos_golden_layout

Leptos integration with Golden Layout.
Rust
6
star
9

nx-next-server

Utility for creating a custom Next.js server with Nx in a separate app.
TypeScript
5
star
10

bevy-editor

Bevy editor with Tauri
Rust
4
star
11

bevy_controller_2d

Character controller plugin for Bevy.
Rust
4
star
12

go-akinator

A Golang package to play the Akinator.
Go
4
star
13

rust-actix-shopify

Utility for Shopify Actix web app
Rust
3
star
14

betterdiscord-typescript-template

A starter template for creating plugins for BetterDiscord in Typescript.
TypeScript
3
star
15

bevy-editor-2

Bevy editor attempt 2 with Tauri
Rust
3
star
16

tqwewe.github.io

Personal blog website
SCSS
2
star
17

live-view-graphs

Rust
2
star
18

submillisecond-starter

Starter template for Submillisecond apps.
HTML
2
star
19

go-steam

A golang package for Steam.
Go
2
star
20

super-mario

TypeScript supermario game
TypeScript
1
star
21

rust-shopify-app

Rust
1
star
22

leptos-altview

Rust
1
star
23

lunatic_tasks

Utilities for working with tasks in Lunatic.
Rust
1
star
24

dioxus-ssr-axum

Dioxus SSR with hydration template
Rust
1
star
25

kameo_es

Event sourcing library built on kameo
Rust
1
star
26

lunatic-flake

NixOS flake for lunatic runtime
Nix
1
star
27

gmodfastdl

100% automatic Garry's Mod server fastdl generator
Go
1
star
28

ctx-provider

React hooks and context utils
TypeScript
1
star
29

ProcessHacking

Process hacking in C#
C#
1
star
30

lunatic-cached-process

Cached process lookups with lunatic.
Rust
1
star
31

shopify-app

Shopify app development utility
TypeScript
1
star
32

react-slim-carousel

Minimal but feature-rich react carousel made using hooks.
TypeScript
1
star
33

protosql

Validate Postgres databases with your Protobuf files.
Rust
1
star
34

simpl_actor

Simple tokio actors
Rust
1
star