@pod-point/ui-toolkit

3.2.2 • Public • Published

ui-toolkit

The POD Point frontend framework is a library of base styles and components designed for rapid prototyping.

View demo

Installation

Install via npm:

npm install @pod-point/ui-toolkit

Then either link to the production ready files:

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Document</title>
    <link rel="stylesheet" href="/path/to/node_modules/pod-point/ui-toolkit/dist/css/style.min.css">
</head>
<body>
    <script src="/path/to/node_modules/pod-point/ui-toolkit/dist/js/script.js"></script>
</body>
</html>

Or import the entry points into your project. For Sass, this is done by:

@import 'path/to/node_modules/pod-point/ui-toolkit/src/scss/style.scss';

And for the JavaScripts:

import modal from '/path/to/node_modules/pod-point/ui-toolkit/dist/js/modal';

Development

First, install all of the Node modules needed:

git clone git@github.com:Pod-Point/ui-toolkit.git
cd ui-toolkit
npm install

Then run the following command:

gulp watch

This will spin up a new development server at http://localhost:3000 with /dist as the document root.

Icons

We're using Fontello for the icon fonts. If you need a new icon, head to the Fontello site, hit 'Import' and upload src/fonts/config.json so that any existing settings aren't overridden. Then add your icon(s) to the package, download, extract and replace the font files in src/fonts and the config.json to complete your changes.

Documentation

The gh-pages branch is a snapshot of /dist, hence why it is important to copy the build folder across. To generate new documentation online, run the following anywhere within the project:

git subtree push --prefix="dist" origin gh-pages

Readme

Keywords

none

Package Sidebar

Install

npm i @pod-point/ui-toolkit

Weekly Downloads

66

Version

3.2.2

License

Apache-2.0

Last publish

Collaborators

  • pod-point