tailwindadmin / admin

admin panel template built on tailwind css :tada:
https://tailwindadmin.netlify.app
MIT License
466 stars 94 forks source link

Looking for the preprocessed Tailwind version. #2

Closed davidteren closed 5 years ago

davidteren commented 5 years ago

This is a really nice Admin Dashboard. Would really like to use this. However it looks like index.html was processed and can no longer be developed using preprocessed Tailwind?

Seems it happened in this commit. https://github.com/tailwindadmin/admin/commit/b14b669d1808ee178bd7828ae9a90a2beb2bdfa4

Is there a current preprocessed version available? Or am I missing something?

riteshsingh1 commented 5 years ago

This whole template is based on webpack, you can clone and make changes to tailwind.js for your configuration and then rebuild using, yarn dev or npm run dev.

Please tell me if that solves your issue.

davidteren commented 5 years ago

I'm using Tailwind in Ruby on Rails 6 via Webpacker (Rails Webpack Preprocessor) So in dev mode it expects the Tailwind classes. Bringing style.css into the mix kind messes with stuff unless I need to figure that out.

Here I use a pre https://github.com/tailwindadmin/admin/commit/b14b669d1808ee178bd7828ae9a90a2beb2bdfa4 commit index.html 01-pre_basic_layout_commit

And here I use the latest commits index.thml 002-latest

riteshsingh1 commented 5 years ago

You need to replace your app/javascript/css/tailwind.js with https://github.com/tailwindadmin/admin/blob/master/tailwind.js

because this one is having some color combinations and one plugin. Try this one revert if it works.

davidteren commented 5 years ago

Thanks it's working now. Well almost. I get a Error: Cannot find module 'tailwindcss-tables' I have installedyarn add tailwindcss-tables If I removerequire('tailwindcss-tables')(),` the page loads.

image

riteshsingh1 commented 5 years ago

try this instead require('tailwindcss-tables')() give full path to node_modules require('/node_modules/tailwindcss-tables')()

davidteren commented 5 years ago

It's working now. Thanks so much for your efforts.

riteshsingh1 commented 5 years ago

I am glad this issue is fixed, so closing the issue now...