Giter Site home page Giter Site logo

jsontosass-loader's Introduction

Design technologist specializing in design systems and Front-End Architecture

Hi there ๐Ÿ‘‹

  • ๐Ÿ”ญ Iโ€™m currently working on Plaited, a design system first framework for rapidly designing & developing interfaces.

  • ๐ŸŒฑ Iโ€™m currently learning:

    • To exercise regularly again ๐Ÿ˜‚
    • ...

jsontosass-loader's People

Contributors

rafaeleyng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jsontosass-loader's Issues

font-family variables not working when using commas

In my vars.json when I try to setup variables for font-family using commas to separate the values I end up with a Module build failed error.

vars.json

{
  "fonts": {
    "montserrat": "montserrat, helvetica, arial, sans-serif",
    "opensans": "opensans, helvetica, arial, sans-serif"
  }
}

Am I doing something wrong? Or is there a bug parsing strings with commas?

Update to allow for a js vars file

Need to add a feature that allows the use of a var file that is a .js file like below

 modules.exports={
   "variable-1":"50px"
   "variable-map":{
       "sub-variable-1":"20px"
   }
}

No quotes around strings

Hey. I am passing options from my NodeJS environment to my Sass stuff, only to find out that my E-Mail address breaks things. In other words, by checking back, it seems that no quotation is applied to the strings. Cam you fix that? Using the very code you linked for the JsonToSass() function returns the output with the strings being quoted.

Error with file paths as arguments

When I put this in my json:

{
  "background-url": "'some/image.jpg'"
}

I get the following error:
Invalid CSS after "...background-url:": expected expression (e.g. 1px, bold), was "some/image.jp"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.