New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cssgram

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cssgram

Instagram filter library in Sass and CSS. (This is a WIP)

  • 0.1.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

CSSgram

Instagram filter library in Sass and CSS. (This is a WIP)

Usage

There are currently 2 ways to consume this library.

Use CSS classes

  1. Link to the cssgram library: <link rel="stylesheet" href="css/cssgram.min.css"> or any individual css file (i.e. <link rel="stylesheet" href="css/aden.min.css">)
  2. Add a class to your image element with the name of the filter you would like to use

For example:

<!-- HTML -->
<figure class="aden">
  <img src="../img.png" alt="">
</figure>

Use Sass @extends

  1. Include scss/cssgram.scss or any individual file (i.e. scss/aden.scss) into your Sass manifest
  2. Extend the silent placeholder selector @extend %aden; in your element.

For example:

<!-- HTML -->
<figure class="viz--beautiful">
  <img src="../img.png" alt="">
</figure>
// Sass
.viz--beautiful {
  @extend %aden;
}

Current Filters

  • Aden
  • Reyes
  • Perpetua
  • Inkwell
  • Earlybird
  • Toaster
  • Walden
  • Hudson
  • Gingham
  • Mayfair

Contributing

  1. Fork this repo
  2. Clone the fork onto your system
  3. npm install dependancies (must have Node installed)
  4. Run gulp to compile CSS and the site
  5. Make changes (see file structure outline below)
  6. Submit a PR with a smile :smile:

File Structure Outline

  • source/css/cssgram.css contains each of the css classes you can apply to your <img> to give it the filter. You should use source/css/cssgram.min.css for production if you want access to all of the
  • source/scss/ contains the source files for individual classes and placeholder selectors you can use to extend CSS classes in Sass
  • site is the public facing website

Note: this will also have mixin options and a PostCSS Component.

Keywords

FAQs

Package last updated on 25 Oct 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc