Skip to content

Tailwind CSSΒ #94

Closed
Closed
@nelsonic

Description

As noted by @SimonLab in #74 Tailwind is similar to Tachyons 😍
However it appears to have more traction, some might say it has a tailwind propelling it ... 🌬️

https://tailwindcss.com/
image

My reading of the Tailwind landing page is that it doesn't offer much new over Tachyons, πŸ€·β€β™‚οΈ
but the packaging seems far more polished ... πŸ’„

From Chris' recent post: https://fly.io/phoenix-files/tailwind-standalone/ [ 2021-12-22 ]
It's clear that Tailwind will be included as the default CSS Framework in Phoenix quite soon: πŸ”œ
image

https://github.com/phoenixframework/tailwind

Since v1.4 all Phoenix Apps include the Milligram CSS Framework https://milligram.io
e.g: assets/css/phoenix.css
all of our v1.6.x Apps have it ... and it's been a pain to override with Tachyons! πŸ™„

It appears as though Milligram hasn't been updated in a while ... https://github.com/milligram/milligram
image

Pull Requests ignored: https://github.com/milligram/milligram/pulls
image

The creator of Milligram appears to be taking a break from GitHub: https://github.com/cjpatoilo
image

Makes perfect sense. There's (a lot) more to life than GitHub/Code. β˜€οΈ

Anyway, back to Tailwind.
The writing is on the wall: Phoenix will include it (prob v.1.7+) so we should consider adopting it. πŸ’­

Overview

https://tailwindcss.com/docs/utility-first
image

Context

https://podcast.thinkingelixir.com/21
image

https://changelog.com/jsparty/155
image

Note: skip the first 4 mins of "sponsors" and intros to the actual interview. Play at 1.5x Speed.

Tailwind UI looks good but has restrictive license: https://tailwindui.com/license

"In simple terms, use Tailwind UI for anything you like as long as it doesn't compete with Tailwind UI."

"Creating an admin panel tool (like Laravel Nova or ActiveAdmin) that is made available either for sale or for free"

DaisyUI appears to be a viable MIT license alternative: https://github.com/saadeghi/daisyui

Todo

  • Read the docs and see how it differs / improves upon the utility class model in Tachyons.
    (is it just packaging/presentation or something genuinely different/better...?)
  • Try it in a sample project e.g. one of the recent Demo apps: Advanced Example > RT ColabΒ gitea-demo#12

See: https://pragmaticstudio.com/tutorials/adding-tailwind-css-to-phoenix

  • Evaluate if the Hype is justified and we should just learn+use it!

Activity

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

Metadata

Labels

T1dTime Estimate 1 DaydiscussShare your constructive thoughts on how to make progress with this issueenhancementNew feature or enhancement of existing functionalitypriority-2Second highest priority, should be worked on as soon as the Priority-1 issues are finishedtechnicalA technical issue that requires understanding of the code, infrastructure or dependencies

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions