Coder Social home page Coder Social logo

layout-scout's Introduction

#Layout Scout

Layout Scout is a visual aid for building responsive layouts.

See the demo here

Layout Scout will sniff out the content blocks in your markup and inject random background colours to those blocks. Simply toggle the button on and off to apply/remove the colours. No more hunting through your stylesheet (or dev tools) to apply temporary background colours to your content selectors.

Getting Started

  1. Files needed:
	layoutscout.js
	main.js
  1. Call jQuery and add the .js files to your document before your closing body tag (the order is important):
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
	<script src="layoutscout.js"></script>
	<script src="main.js"></script>

Options

Not all designs follow the pattern of dark text on a light background. As such Layoutscout comes with 4 colour palettes to choose from:

  • Light Colours - Ideal for dark text / light backgrounds (the default)
  • Dark Colours - Ideal for light text / dark backgrounds
  • Light Mono - Colour blocks are based on shades of grey up to 50% (if you prefer to have your content highlighted without colour)
  • Dark Mono - Colour blocks are based on shades of grey from 50% to 100% (if you prefer to have your content highlighted without colour)

To choose your colours simply uncomment the one you want:

$(function() {	
	// Uncomment your chosen color option
	$().layoutScout({
 		color: 'lightColours'
 		// color: 'darkColours'
 		// color: 'lightMono'
 		// color: 'darkMono'
 	});
});

layout-scout's People

Contributors

luclemo avatar

Stargazers

Patrick Cameron avatar Fares Marek Basmadji avatar samuvuo avatar

Watchers

James Cloos avatar

Forkers

andrewsmyk

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.