Coder Social home page Coder Social logo

noisy-uris's Introduction

Noisy URIs

Ready-made noise images as data URIs. Available in Sass, LESS, and vanilla CSS flavours.

What is this?

Data URIs (unique resource identifiers) are resources (such as images) converted into text so that they can be used with webpages without referencing external files. A great explanation of data URIs can be found on CSS-Tricks.com

Repeating noise images are very useful for adding a little texture to all kinds on element on a web page. When you're designing in Photoshop it's simple to adjust the opacity and brightness of your noise textures, however within CSS it's not that easy. Noisy URIs was created to let people who 'design in the browser' a quick and flexible way to design with noise textures.

Example

Basic noise example. Light and dark noise images are also provided.

noisy URIs example

Usage

Sass

To use the noisy URIs with Sass first import one of the .scss files to your stylesheet with @import. You can then use the noisy URIs variables in your stylesheet. For example…

@import "_base_noise_uris.scss";

.noise{
  background-image: url($base-noise-050);
}

LESS

To use the noisy URIs with LESS first import one of the .less files to your stylesheet with @import. You can then use the noisy URIs variables in your stylesheet. For example…

@import "base_noise_uris.less";

.noise{
  background-image: url(@base-noise-050);
}

CSS

To use the noisy URIs in vanilla CSS simply copy and paste the class you require into your stylesheet.

Browser support

Data URIs are supported in all modern browsers and in IE8+. If you require IE7 support you can use one of the included images as a fallback.

File sizes

It is important to remember that data URIs have slightly larger files sizes than the original files, so use them sparingly. Be careful not to use the same data URI more than once in a stylesheet. Do not use data URIs with a Sass or LESS mixin that generates duplicate CSS for example mixins that handle vendor prefixing.

Creation

Raw data URI's were created with image2css.

Licence

Noisy URIs is licence under the WTFPL licence.

Author

Created by Mark Durrant during 10% time at pebble {code}

noisy-uris's People

Contributors

courcelan 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  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

noisy-uris's Issues

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.