I
I
Isaac Clark2014-09-19 18:05:51
JSON
Isaac Clark, 2014-09-19 18:05:51

How to include json in sass?

Hello, tell me please.
There is json:
{"color": "red"}
Which needs to be passed to .sass and then use color as a variable, for example:

@include 'config.json'
$color:  get(color)

background:  $color

How can such a thing be implemented? VERY desirable, at least a minimal example of working code.
Thanks for your help and your time.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question