r/tailwindcss

Made a free iOS app to open and read raw Markdown (.md) files on iPhone/iPad — handy for peeking at Logseq pages outside the app
▲ 32 r/tailwindcss+39 crossposts

Made a free iOS app to open and read raw Markdown (.md) files on iPhone/iPad — handy for peeking at Logseq pages outside the app

Logseq stores everything as plain .md files, but if you ever open one of those files directly on iOS (from Files, iCloud, Dropbox, a backup, etc.) you just get raw text. I built a small viewer to read them rendered on a phone.

Md Preview:

• Renders GitHub-Flavored Markdown — headings, tables, task lists, footnotes

• Code blocks with syntax highlighting, plus LaTeX math and Mermaid diagrams

• Opens .md / .markdown / .mdx / .rmd / .qmd from Files or the Share Sheet

• 100% on-device — no account, no uploads, no ads, no subscriptions

Free on the App Store: https://apps.apple.com/app/id6760341080

Details: https://markdown.cybergame.ai/

Not a Logseq replacement at all — just a quick way to read loose .md files when you're away from the desktop app. Curious how you all read your graph on the go.

u/Fujima4Kenji — 5 days ago
▲ 4 r/tailwindcss+3 crossposts

What do you use to redesign an app that's already coded? (React/Vite + Tailwind + Supabase)

Hello , I have been building a web + mobile app and I'm at the point where I would like to rethink the design cause it is only code with Claude and the ui is rough.

So the app is already built and I don t want to break the existing logic . My stack is react+vite, tailwind css.

I ve looked into tools like Lovable, v0, Magic Patterns, Superdesign, etc., but I'm a bit lost on which one actually makes sense when you already have a working codebase. A lot of them seem built to generate apps from zero, and I'm worried about an AI agent wandering into my business logic and wrecking stuff I spent ages stabilizing

So do you have advice or could you tell me about your experience to redesign anexisting app?

Which tools play nice with this stack ?

Is it any way to keep the redesign strictly on the ui layer without touching the logic?

Thanks for your responses and hope you ll understand , i m a french man. Have a nice day

reddit.com
u/Status-Database6099 — 8 days ago

Tailwind flaws I don't understand

I really love Tailwind. I started using it since v3 and immediately migrated to it wherever it was possible. All perfect about it and I like the new v4 approach.

But there are few things that ruin DX and Tailwind official reply to this is often: find a way to use it.

I have code like:

.box {
  @apply bg-f-orange rounded-default p-4 flex flex-col;

  @media (min-width: theme(--breakpoint-w840)) {
    @apply p-7.5;
  }

  > h2 {
    @apply mb-5;

    @media (min-width: theme(--breakpoint-w840)) {
      @apply mb-7.5;
    }
  }
}

Class name bloat

What Tailwind-native approaches I see:

  1. flex flex-col bg-f-orange rounded-default p-4 w840:p-7.5 [&>h2]:mb-5 w840:[&>h2]:mb-7.5 on each box – it is not readable. You can try to convince me that it's my eyes or grouping issue. In this case I have just two nested classes and two breakpoint classes and it's already ugly. I have classes that do more complex rules and more classes under breakpoint. I don't see how it can be replaced in a Tailwind native way.
  2. defining custom @layer components component – but then local component become global and I need to solve unique class name issue

Modules

CSS modules are beautiful feature. Tailwind solves reuse of the classes, but class like w840:[&>h2]:mb-7.5, trust me, will never be reused but in this particular component because this class is strictly tied to the component's structure and style. I want to use .module.scss, but without switching to @tailwindcss/postcss seems like there is no way. Btw switching to PostCSS breaks vite aliases and other DX features – so Tailwind way is to suffer one way or another?

Grouping

I want to be able to do something like w840:(absolute flex mb-5 ...) instead of bloated classes. Switching to SCSS is the way – looks more clean, but then we come to inability to use SCSS.


All GH issues I found for all my points are closed with "migrate to Tailwind as preprocessor", but Tailwind clearly doesn't serve as preprocessor well. This reply from Tailwind just feels evil. Much better would say: we couldn't come up to any solution which will serve these needs with compatibility with all we wanted to implement.

I usually don't ask for help online and try to find solution myself. I really tried to find workarounds and get used to "Tailwind way", but I can't. The Tailwind way for this points feels wrong on many levels. The code I write with Tailwind in such cases is not good code. I might be wrong. Please point me if it actually can be solved in other ways which make the code readable and maintainable.

Thinking about switching from Tailwind.

reddit.com
u/phfaster — 10 days ago

Editing Tailwind classes in devtools was driving me nuts so I built this

I've been using Tailwind CSS a lot lately in React and Next.js projects. One thing that always slows me down is the trial-and-error way of adjusting Tailwind classes, especially for layout and spacing.

You see a long chain like flex flex-col items-center gap-6, but spacing still looks off. You're not sure which class gives just a bit more space, so you switch tabs, change gap-6 to gap-8, come back, and realize it's too much.

With Tailwind Lens, you can instantly try gap-5, gap-7, or suggestions like gap-x-6, space-y-4, or p-4 right in the browser. Make all your changes, preview them live, and copy the final class list back into your code.

I've seen a few tools in this space, but many miss a key detail. If you add a class like mt-[23px] and it wasn't already in the HTML, it won't work. That's because Tailwind's JIT engine only includes classes already used on the page.

I solved this in my tool, Tailwind Lens, by generating and injecting missing classes on the fly so you can preview any utility class instantly. Yes, you can inspect any Tailwind site and copy the utility classes of any element.

If this gets good traction, I'm planning to add a feature where you can inspect any site and convert styles into Tailwind classes, like a "copy as Tailwind" mode. I'm also working on showing exactly which classes are overridden by others, so it's easier to understand what's actually affecting the layout.

Try it out: https://www.taillens.io

I built this for myself but figured others might find it helpful too.

u/LawStreet2433 — 14 days ago
▲ 6 r/tailwindcss+1 crossposts

tw-fade - a plugin for scroll-driven edge masking, no JS

hey all, just released a plugin to scratch an itch. i'd been lazily adding linear gradients on the edges of scrollviews and animating them with JS based on scroll position. turns out you can do a lot better with pure CSS now by leveraging masking + the new CSS scroll animations API.

works in pretty much all browers excepting firefox which doesn't have CSS scroll animations yet, but the nightly version does, so it should be generally available soon.

demo site: https://pete.design/tw-fade

github: https://github.com/petekp/tw-fade

npmjs: https://www.npmjs.com/package/tw-fade

if you use it i'd love to hear how it goes and if you have any feedback.

u/petekp — 13 days ago