Giter Club home page Giter Club logo

devise-tailwindcssed's Introduction

Table of Contents

Devise Tailwindcssed

This gem tries to give you a nicer place to start with your views for your Devise model when you are using Tailwind CSS 1.0.

You can find usage information below, but the gist of it is you'll run rails g devise:views:tailwindcssed instead of the normal devise:views.

If you want to switch back to what Devise gives you no problem! Just remove the devise views folder and run the normal Devise generator command.

NOTE:

  • This gem is meant to be run with Rails 6 which includes asset packing tools like Webpacker. Your main project must be set up to include TailwindCSS. For details see incomparable Chris Oliver's tutorial from Gorails.

  • This gem does not use any Tailwind CSS template. The markup is included the ERB templates.

Prerequisites

  • This gem is meant to be run with Rails 6 which includes Webpacker.
  • Your project needs to be be already set up to include Tailwind CSS (see Chris Oliver's tutorial)

Installation

Add this line to your application's Gemfile:

gem 'devise-tailwindcssed'

And then execute:

$ bundle

Or install it yourself as:

$ gem install devise-tailwindcssed

Usage

To use the Tailwind views generator you'll want to have Devise and Tailwindcss installed per normal installation. When you have installed Devise and generated your user model you can copy over the views with:

rails generate devise:views:tailwindcssed

If you've already generated the Devise views you can use the -f argument to force an override. That will erase any of the changes you've made!

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/posiczko/devise-tailwindcssed. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Devise::Tailwindcssed project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

devise-tailwindcssed's People

Contributors

dallasgoldswain avatar danieldenis01 avatar dependabot[bot] avatar eclectic-coding avatar pabloc avatar posiczko avatar ramyatrouny avatar scottrobertson avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

devise-tailwindcssed's Issues

Unable to use With Ruby 3

gem install devise-tailwindcssed
devise-tailwindcssed-0.1.3 requires Ruby version ~> 2.6. The current ruby version is

error messages

Hi, really great, saved hours. Let me buy you a coffee.

I think devise moved to a error message template. Instead of the helper.
Easier to customize.

And i found myself putting a flex.justify-center around all templates. But that's maybe just me, my layout yields in the body.

Still, great, thanks

Issues with layouts/devise.html.erb

This gem is great for kickstarting the css for tailwind and devise!
I had an issue that my devise forms would be showing up correctly, but without my default application layout.
When I deleted layouts/devise.html.erb which this gem generates, the issue was fixed.
Has anyone had the same issue?

I suggest removing the layout file from the gem.

Unable to use with Rails 7

Wonder if we could bump the dependency and if it'd work with Rails 7, especially given the new -c tailwind option for new rails apps.

The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "rails":
  In snapshot (Gemfile.lock):
    rails (= 7.1.0.alpha)

  In Gemfile:
    rails

    devise-tailwindcssed was resolved to 0.1.0, which depends on
      rails (<= 6.0, ~> 5.2.3)

Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.