Socket
Socket
Sign inDemoInstall

lib-theme-contructor

Package Overview
Dependencies
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lib-theme-contructor - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0

LICENSE

4

lib/index.js

@@ -14,2 +14,6 @@ const fs = require('fs-extra');

async function createTheme(opts) {
if (!opts.out) {
throw new Error('out option can\'t be empty');
}
opts.options.palette = Object.assign({}, palette, opts.options.palette);

@@ -16,0 +20,0 @@ opts.options.variables = Object.assign({}, variables, opts.options.variables);

20

package.json
{
"name": "lib-theme-contructor",
"version": "0.1.0",
"description": "Theme constructor",
"version": "0.2.0",
"private": false,
"description": "Theme constructor for lib-react-components",
"keywords": [

@@ -18,10 +19,8 @@ "postcss",

"type": "git",
"url": "git+https://github.com/pentatonica/lib-theme-contructor.git"
"url": "git+https://github.com/PeculiarVentures/react-components.git"
},
"author": "Pentatonica.co",
"license": "MIT",
"bugs": {
"url": "https://github.com/pentatonica/lib-theme-contructor/issues"
"url": "https://github.com/PeculiarVentures/react-components/issues"
},
"homepage": "https://github.com/pentatonica/lib-theme-contructor#readme",
"homepage": "https://PeculiarVentures.github.io/react-components/",
"devDependencies": {

@@ -51,6 +50,7 @@ "assert": "^1.4.1",

"files": [
"README.md",
"LICENSE.md",
"lib/"
]
],
"author": "PeculiarVentures Team",
"license": "AGPL-3.0",
"gitHead": "7587bba68162bb492be64a3d8690b6baa7ee0de0"
}

@@ -1,13 +0,16 @@

# Lib theme constructor
# `lib-theme-constructor`
Theme constructor for [react components](https://www.npmjs.com/package/lib-react-components)
This package contains a code for generate theme for the lib-react-components package.
## Installation
## Install
```bash
npm install lib-theme-contructor --D
npm install --save-dev lib-theme-contructor
```
## Configure
## Usage
### Prepare theme file
```js

@@ -22,4 +25,4 @@ // index.js

name: 'theme-name',
entry: path.join(__dirname, '../entry/path/to/index.sss'),
out: path.join(__dirname, '../output/dir/name'),
entry: path.join(__dirname, './entry/path/to/index.sss'),
out: path.join(__dirname, './output/dir/name'),
options: {

@@ -58,3 +61,4 @@ palette: {

## Run
### Run theme file
```bash

@@ -64,7 +68,2 @@ node index.js

Now in your `../output/dir/name` you have `theme-name.css` file with new theme.
### Run test
```bash
npm run test
```
Now in your `./output/dir/name` you have `theme-name.css` file with new CSS theme.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc