Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

theo

Package Overview
Dependencies
Maintainers
1
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

theo - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

lib/theo.js

@@ -98,3 +98,3 @@ /*

convert: function(type, variable){
var templateFile = './templates/' + type.toLowerCase() + '.hbs'
var templateFile = path.join(path.dirname(fs.realpathSync(__filename)), '../templates/' + type.toLowerCase() + '.hbs')
if(fs.existsSync(templateFile)){

@@ -101,0 +101,0 @@ var template = handlebars.compile(fs.readFileSync(templateFile).toString());

{
"name": "theo",
"version": "0.0.2",
"version": "0.0.3",
"description": "Theme tokenizer working with JSON input generating variables for Sass, Stylus, Less and Aura",

@@ -30,3 +30,2 @@ "keywords": [

"devDependencies": {
"coffee-script": "~1.7.1",
"mocha": "~1.17.1",

@@ -33,0 +32,0 @@ "should": "*"

@@ -16,2 +16,27 @@ theo

The input folder `./variables` in this examples should contain at least one JSON file with the following format:
{
"theme": {
"name": "Name of the theme",
"categories": [
{
"name": "Name of the category like colors",
"properties": [
{
"name":"COLOR_PRIMARY",
"value":"#2a94d6"
},
{
"name":"COLOR_LINK",
"value":"#006eb3"
}
]
}
]
}
}
You could also start by cloning one if the [mock files](test/mock/s1base.json).
## Test

@@ -18,0 +43,0 @@

Sorry, the diff of this file is not supported yet

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