1.0.0-rc.1 • Published 23 days ago

flex-layout-to-tailwind v1.0.0-rc.1

Weekly downloads
-
License
MIT
Repository
github
Last release
23 days ago

FLTT (Flex-Layout to Tailwind)

This CLI helps you to migrate projects from the deprecated Angular Flex-Layout library to tailwindcss utility classes. This package has for goal to cover all cases seen in the Angular Flex-Layout library.

:construction: This project is still under development. Use it at your own risks. :construction:

Installation

Install the package globally using npm:

npm i -g flex-layout-to-tailwind

Usage

You can use the CLI using:

fltt

Or you can directly provide the input of your project as an option:

fltt --input ./path/to/your/project

You can also add debug option:

fltt --input ./path/to/your/project --debug

You can also install dependencies by force if dependencies are not matching (by default this flag is false):

fltt --input ./path/to/your/project --forceInstallDependencies

Status

Flex-Layout has two APIs: a static and a responsive one. The first one is used to handle fixed values, the second one adds breakpoints to handle responsiveness.

This following tables show all attributes covered by the migration from this CLI.

API for DOM containers

Flex-Layout AttributeStatic APIResponsive API
fxLayout:white_check_mark::white_check_mark:
fxLayoutAlign:white_check_mark::white_check_mark:
fxLayoutGap:white_check_mark::white_check_mark:
gdAlignColumns:x::x:
gdAlignRows:x::x:
gdAreas:x::x:
gdAuto:x::x:
gdColumns:x::x:
gdGap:x::x:
gdGridAlign:x::x:
gdRows:x::x:

API for DOM elements

Flex-Layout AttributeStatic APIResponsive API
fxFlex, fxGrow, fxShrink:white_check_mark::white_check_mark:
fxFlexOrder:white_check_mark::white_check_mark:
fxFlexOffset:white_check_mark::white_check_mark:
fxFlexAlign:white_check_mark::white_check_mark:
fxFlexFill, fxFill:white_check_mark:No API
gdArea:x::x:
gdColumn:x::x:
gdRow:x::x:
gdGridAlign:x::x:

API for any element

Flex-Layout AttributeStatic APIResponsive API
fxHide:white_check_mark::white_check_mark:
fxShow:white_check_mark::white_check_mark:
ngClass:x::x:
ngStyle:x::x:
imgSrc:x::x:

Contributing

Want to report a bug or contribute some code? Amazing! Please read up on our guidelines for contributing.

Code of Conduct

Please read and follow our Code of Conduct.

License

This project is licensed under the MIT License.