Creating Configuration Files In Stylus

It’s super simple to create a configuration file for instance that would manage your media query break points. You could also use a configuration file for managing colors, font sizes, and other variables such as gutter spacing and more.

For this example, we’ll look at creating 2 json configuration files to store our variables.

JSON File: media-query-break-points.json

JSON File: colors.json

Now we can include our 2 json files, and reference the variables we created within.

Stylus Code