Coder Social home page Coder Social logo

gellish / undraw Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mkhairi/undraw

0.0 1.0 0.0 4.85 MB

unDraw rubygem, MIT licensed illustrations by unDraw for your rails projects

Home Page: https://undraw.co/illustrations

License: MIT License

Ruby 97.47% Shell 2.53%

undraw's Introduction

unDraw rubygem Gem Version

Embed SVG illustrations by unDraw.io for your rails projects

screenshot

Installation

Add this line to your application's Gemfile:

gem 'undraw'

And then execute:

$ bundle

Or install it yourself as:

$ gem install undraw

Usage

Browse to find the images that fit your needs. Take advantage of the on-the-fly color image generation to match your brand identity.

**hint: downcase the svg title and replace space with underscore. eg: Features Overview to features_overview

# default color
<%= undraw("features_overview") %>
# set size 
<%= undraw("features_overview", color: "#3f51b5", size: "350*150") %>
# set id
<%= undraw("building", color: "#ff6347", id: "undraw-building") %>
# set class
<%= undraw("designer_life", color: "#ff6347", class: "undraw-designer-life") %>

Update

Run bundle update to latest gem released

$ bundle update undraw

Due the license issue, any new illustrations released are no longer added to this gems and existing assets might be removed in a future release. You need to manually download preferred svg file and put on:

\vendor\images\undraw\<asset_name>.svg

# default color
<%= undraw("<asset_name>") %>

Development

DEMO: http://materialize.labs.my/undraw

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/mkhairi/undraw. 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 Undraw project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

undraw's People

Contributors

mkhairi avatar dependabot[bot] avatar

Watchers

James Cloos 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.