os-styles

0.0.3 • Public • Published

OS Styles

SCSS for the OpenSpending websites/web apps (WIP).

  • Built on Bootstrap, adapted from previous Bourbon version.
  • Generates four stylesheets, each using a different accent colour, acording to the sub-brand.

Example usage: https://github.com/smth/os-mockups

Usage

Install this package using npm (you can install the GitHub repository directly), and then you can @import the stylesheets you need. The caveat is that many stylesheets use external asset files (e.g. fonts or images), which need to be made available by your webserver.

To do so, you need to copy the contents of the src/assets folder somewhere your webserver can serve them, and change the $assets-path variable to where this folder is available relative to your stylesheets. For example, imagine we're in a project that has installed os-styles via npm, and we want to import its stylesheets. You'd do:

@import "node_modules/os-styles/src/variables";
 
$assets-path: "/assets";
 
@import "node_modules/os-styles/src/base";
 
// Continue with my custom styles...

This means that the stylesheets would expect the assets to be available on http://example.com/assets (considering the website lives in http://example.com). You have to make the contents of node_modules/os-styles/src/assets available at that location.

Package Sidebar

Install

npm i os-styles

Weekly Downloads

0

Version

0.0.3

License

MIT

Unpacked Size

4.28 MB

Total Files

225

Last publish

Collaborators

  • br3w
  • okibot
  • vitorbaptista