0.12.2 • Published 7 years ago

cosmos-css v0.12.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

cosmos-css

The css framework for personal practice.

Installation

NPM

$ npm install cosmos-css

Configuration

SCSS

// In your style.scss file.
@import 'app-variables'; // Customize variables for application.
@import 'node_modules/cosmos-css/src/scss/cosmos';
...

JS

// In your script.js (webpack entry file)
import Cosmos from 'cosmos-css';

window.Cosmos = Cosmos;
const cosmos = Cosmos.load({ /* options */ });
// --- or ---
window.Cosmos = Cosmos;
const cosmos = new Cosmos({ /* options */ }).init();

HTML

In your index.html file

<!-- in <head> tag -->
<link rel="stylesheet" href="dist/css/style.css">
...

<!-- in the end of <body> tag -->
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-polyfill/6.23.0/polyfill.js"></script>
<script src="dist/js/script.js"></script>

Usage

CSS Components and JS Modules

See wiki page.

View demo

https://archco.github.io/cosmos-css/

Change Log

CHANGELOG.md

License

The MIT License.

0.12.2

7 years ago

0.12.1

7 years ago

0.12.0

7 years ago

0.11.1

7 years ago

0.11.0

7 years ago

0.10.2

7 years ago

0.10.1

7 years ago

0.10.0

7 years ago

0.9.1

7 years ago

0.9.0

7 years ago

0.8.4

7 years ago

0.8.3

7 years ago

0.8.2

7 years ago

0.8.1

7 years ago

0.8.0

7 years ago