Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
js
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

POLITICO

politico-style npm version

Web fashions by POLITICO Interatives.

See the docs.

Using in your project

Install the module.

$ yarn add politico-style
Styles

Include an entire theme:

@import "../../node_modules/politico-style/scss/base/theme";

Include parts of a theme:

@import "../../node_modules/politico-style/scss/base/components/header";
@import "../../node_modules/politico-style/scss/base/components/footer";

Import a theme using Webpack's sass-loader:

import 'politico-style/scss/base/main.scss';
Components
import { Sketch } from "politico-style";

const { Nav } = Sketch;

const MyComponent = <Nav appName="My new app" />;

Developing

$ yarn install
$ npm start

Once you're done:

$ npm run build

To publish: Update the version number in package.json

$ npm publish

Cf.

About

Web fashions by POLITICO Interactives.

Resources

Releases

No releases published

Packages

No packages published