Proposal: Migrate from @angular/flex-layout to Tailwind CSS or CSS #2259
sinh117801
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Problem Statement
The current project uses
@angular/flex-layout
, which has been deprecated and is no longer actively maintained. This poses several risks:Proposed Solution
Replace
@angular/flex-layout
with Tailwind CSS (primary) or plain CSS for layout management.Why Tailwind CSS?
flex
,gap-4
,justify-center
).md:flex-row
,lg:w-1/2
) simplify responsive layouts.@angular/flex-layout
dependency (~50kB savings).Implementation Plan
1. Audit Current Usage
fxLayout
,fxFlex
, and related directives in templates.2. Incremental Refactoring
@angular/flex-layout
directives with Tailwind classes or CSS in small, testable chunks.3. Responsive Design Migration
fxLayout.xs
,fxFlex.md
, etc., with Tailwind’s responsive prefixes (e.g.,sm:flex-col
).Benefits
@angular/flex-layout
.Beta Was this translation helpful? Give feedback.
All reactions