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

ads-scss-tokens-node

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ads-scss-tokens-node - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

src/transformers/colors.js

2

package.json
{
"name": "ads-scss-tokens-node",
"version": "0.0.3",
"version": "0.0.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "tokens.scss",

@@ -8,9 +8,6 @@ # js-tokens-to-scss

1. Need to look at namespacing vars:
1. Dictionary
- Extract concept out of this repo; this should just be focused on converting tokens to scss ones.
eg. $primary is too vague in a SCSS context; probably need $ads-primary
2. Dictionary - figure out a good workflow
3. Other tokens
2. Other tokens
- [ ] Colors

@@ -17,0 +14,0 @@ - [ ] Fonts

var fs = require('fs');
var tokens = require('@adapt-design-system/tokens');
var convertToScssVars = require('./transformers.js');
var convertColors = require('./transformers/colors');
var convertFontSizes = require('./transformers/font-sizes');
var sassVars = convertToScssVars(tokens.ThemeColors);
var sassVars = '';
sassVars += convertColors();
sassVars += convertFontSizes();
var comment = `/*

@@ -8,0 +11,0 @@ CAUTION: DO NOT EDIT THIS FILE - It is automatically generated.

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