fix: migrate floem to git, expand Tailwind utilities, and fix compatibility#1
Open
elcoosp wants to merge 23 commits into
Open
fix: migrate floem to git, expand Tailwind utilities, and fix compatibility#1elcoosp wants to merge 23 commits into
elcoosp wants to merge 23 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR transitions the
floem-tailwinddependency from a local path to the upstreamfloemGit repository, adapts the codebase to the latest Floem API changes, and massively expands the set of available Tailwind‑style utility methods.Dependency Change
floem = { path = "../floem" }floem = { git = "https://github.com/lapce/floem" }This removes the local path dependency and pins to the latest Floem
HEAD.Adaptations for Upstream Floem Changes
penikodirect dependency withfloem::penikore‑exports.PxPctAuto→LengthAuto,Weight→FontWeight,SEMIBOLD→SEMI_BOLD.justify_content/align_items/align_selfno longer takeOption<…>.self_autono longer passesNonetoalign_self, just returnsself.m_auto,mx_auto, … now useLengthAuto::Auto.Stack::vertical,Label::derived,Button::new,Empty::new, etc.).New Tailwind Utility Modules
Added traits and their scope
flexbox(TailwindFlexboxExt)layout(TailwindLayoutExt)interactivity(TailwindInteractivityExt)gap(TailwindGapExt)border_side(TailwindBorderSideExt)opacity(TailwindOpacityExt)special_colors(TailwindSpecialColorExt)colors_ext(TailwindColorExt)leading(TailwindLeadingExt)inset(TailwindInsetExt)min_max_height(TailwindMinMaxHeightExt)number_font_size(TailwindNumberFontSizeExt)text_12…text_96)All new traits are publicly exported from
lib.rs.Colour families covered
The combination of the original
TailwindExt,TailwindSpecialColorExt, andTailwindColorExtnow includes:Backgrounds, text colours, and border colours for every Tailwind family (22 families, shades
50‑950):slate, gray, zinc, neutral, stone, red, orange, amber, yellow, lime, green, emerald, teal, cyan, sky, blue, indigo, violet, purple, fuchsia, pink, rose
Plus
white,black,transparentvia the special‑colours trait.Code Quality & Testing
font_weightreference from old code.mut selfin new modules.col_gap/row_gapinstead of genericgap.insetmodule and integration tests.tests/utilities.rs) covering every method of every new trait.Documentation
README.mdfor thefloem-tailwindcrate.justfilewithtestandwr(watch) recipes.Checklist
floemto public Git repositoryOption<…>, changed types)