GPUI.Tailwind (gpui v0.2.0-rc.1)

Copy Markdown View Source

Small Tailwind-compatible class normalizer for GPUI element styles.

This intentionally starts with a constrained subset that maps cleanly to GPUI. Unknown classes are preserved under :class by callers for future handling.

Summary

Types

result()

@type result() :: %{style: keyword(), unknown: [String.t()]}

Functions

normalize(classes)

@spec normalize(String.t() | [String.t()] | nil) :: result()