Giter VIP home page Giter VIP logo

bootrails_blocks's Introduction

README

Bootrails Blocks is a Bootstrap v5 theme for Ruby-on-Rails.

Motivation

There are tons of Bootstrap theme, but not much are V5, and not much are pre-integrated with Rails.

What's inside

It relies on Webpack(er), and standard, last-version of Bootstrap v5.

The core SCSS of Bootstrap is left "as-is" in order to support version upgrade, and to stick with Bootstrap awesome productivity.

Customization is achieved through :

  • One global SCSS file, whose primary goal is to set up Bootstrap's SCSS variables,
  • One tiny SCSS file per "block"

It includes :

  • Beautiful, modern, elegant theme
  • Integration with Hotwire and Turbo for forms
  • Integration with Toasts messages

Philosophy

Bootstrap is perfect when you have to ship quickly and you have no designer. Tailwind is awesome. I'm aware the Rails community is now using Tailwind a lot, however it comes with many limitations, notably the lack of dynamic UI components.

The good news is : the very last version of Bootstrap (v5) is heavily inspired from Tailwind, so you can have the best of both world.

Inspiration comes from

  • Froala design blocks : combine blocks to get things done
  • Clean and elegant atmosphere from nextjs.org and panelbear.com

Installation

1. Clone the repository

Then copy/paste any section you want

2. From a fresh new Rails app

Start by following this guide : https://bootrails.com/blog/rails-bootstrap-tutorial

Then

add gem 'hotwire-rails' to Gemfile

$> bin/rails bundle:install

$> bin/rails hotwire:install

Then copy paste app/frontend/packs/application.scss from this repository,

And all app/frontend/css/components/* from this repository also.

License

License detail : free for any non-commercial project. There is a fee for other projects, please contact me on Twitter @bdavidxyz

bootrails_blocks's People

Contributors

bdavidxyz avatar

Stargazers

Shaiju Edakulangara avatar

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.