Giter VIP home page Giter VIP logo

tfl-colours's Introduction

TFL Colours

A simple snippet of CSS which can brighten up your website when giving complex travel instructions or direction when using public transport in London.

Installation

Via a CDN

Just add this line of code into your <head>.

<link rel="stylesheet" href="//cdn.jsdelivr.net/gh/fredbradley/tfl-colours/build/css/style.css" />

Via NPM

npm install @fredbradley/tfl-colours

Then in your main JS: require('@fredbradley/tfl-colours') This method is still a work in progress. See Issue #1 for more info.

Copy the code

Alternatively you can just copy the contents of build/css/style.css (it's only small). However, you won't have the benefit of any updates being automatically applied.

Usage / Examples

<span class="tfl tfl-jubilee">Jubilee Line</span>

For example, please checkout the examples page.

example

License

MIT

Queries, comments, suggestions

I'm open to ideas, and improvements. You can find me on @fredbradley on Twitter and GitHub.

tfl-colours's People

Contributors

fredbradley avatar

Watchers

 avatar  avatar  avatar

tfl-colours's Issues

Need help with instructions for NPM / webpack addition

This is my first NPM package I've ever written.

I'd like to offer people an intuitive way to install the package using npm install, and it just works.

However I couldn't work out how to add the CSS when everyone's path to node_modules will be different.

At the moment, I'm cheating, by just loading the CDN version. See: index.js

Any help appreciated.

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.