railwind 0.0.11

Tailwind compiler for utility classes written in Rust
Documentation

Railwind

Tailwind compiler rewritten in Rust

Description

The main goal, is to decouple the original Tailwind project from Node and NPM and add warning messages with some recovery in specific situations with the side goal of possibly making it even faster and smaller (Tailwind already has a standalone version, but the binary size is a whooping 35 mb).

Getting started

Installation

To install with cargo, run cargo install railwind_cli to install the CLI.

Using railwind_cli

Run railwind_cli -i index.html to generate a railwind.css file. You can optionally specify a different output file with the -o flag.

Features

Warning messages

The CLI can write helpfull warning messages if you didn't pass the right value to a class or if you passed not enough or too many arguments.

Currently, not all Tailwind features are supported. At the moment, the following features are working:

Layout

  • Aspect Ratio
  • Container
  • Columns
  • Break After
  • Break Before
  • Break Inside
  • Box Decoration Break
  • Box Sizing
  • Display
  • Floats
  • Clear
  • Isolation
  • Object Fit
  • Object Position
  • Overflow
  • Overscroll Behavior
  • Position
  • Top / Right / Bottom / Left
  • Z-Index

Spacing

  • Padding
  • Margin
  • Space Between

Flexbox & Grid

  • Flex Basis
  • Flex Direction
  • Flex Wrap
  • Flex
  • Flex Grow
  • Flex Shrink
  • Order
  • Grid Template Columns
  • Grid Columns Start / End
  • Grid Template Rows
  • Grid Row Start / End
  • Grid Auto Flow
  • Grid Auto Columns
  • Grid Auto Rows
  • Gap
  • Justify Content
  • Justify Items
  • Justify Self
  • Align Content
  • Align Items
  • Align Self
  • Place Content
  • Place Items
  • Place Self

Sizing

  • Width
  • Min-Width
  • Max-Width
  • Height
  • Min-Height
  • Max-Height

Typography

  • Font Family
  • Font Size
  • Font Smoothing
  • Font Style
  • Font Weight
  • Font Variant Numeric
  • Letter Spacing
  • Line Height
  • List Style Type
  • List Style Position
  • Text Align
  • Text Color
  • Text Decoration
  • Text Decoration Color
  • Text Decoration Style
  • Text Decoration Thickness
  • Text Underline Offset
  • Text Transform
  • Text Overflow
  • Text Indent
  • Vertical Align
  • Whitespace
  • Word Break
  • Content

Background

  • Background Attachment
  • Background Clip
  • Background Color
  • Background Origin
  • Background Position
  • Background Repeat
  • Background Size
  • Background Image
  • Gradient Color Stops

Borders

  • Border Radius
  • Border Width
  • Border Color
  • Border Style
  • Divide Width
  • Divide Color
  • Divide Style
  • Outline Width
  • Outline Color
  • Outline Style
  • Outline Offset
  • Ring Width
  • Ring Color
  • Ring Offset Width
  • Ring Offset Color

Effects

  • Box Shadow
  • Box Shadow Color
  • Opacity
  • Mix Blend Mode
  • Background Blend Mode

Other

  • Pseudo-Classes
  • Pseudo-Elements
  • Media Queries

Authors

Contributors names and contact info

@pintariching

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Acknowledgments

Inspiration, code snippets, etc.