Skip to content

can you add support for arbitrary color? #12

Description

@Dylan-aidkr
iex(3)> Twix.tw(["text-white", "text-green-500"])
"text-green-500"
iex(4)> Twix.tw(["text-white", "text-[#00ff00]"])
** (ArgumentError) errors were found at the given arguments:

  * 1st argument: not an already existing atom

    (erts 14.0) :erlang.binary_to_existing_atom("text-[#00ff00]", :utf8)
    (twix 0.3.0) lib/twix.ex:53: Twix.get_conflicting_class_group_ids/1
    (twix 0.3.0) lib/twix.ex:44: anonymous fn/2 in Twix.handle_conflicts/1
    (elixir 1.15.5) lib/enum.ex:2510: Enum."-reduce/3-lists^foldl/2-0-"/3
    (twix 0.3.0) lib/twix.ex:33: Twix.handle_conflicts/1
    (twix 0.3.0) lib/twix.ex:17: Twix.tw/1
    iex:4: (file)

seems there is no code for arbitrary color value validation

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions