0

I would like to have the ability to haven different themes in my Spine application. These themes consists of a set of colors and fonts. These colors and fonts can be edited in a CMS.

I would like to know if it is possible to define variables in Stylus within Spine with the loaded data from the database. Or maybe create a dynamic stylesheet.

I tried requiring stylus inside Spine:

require('stylus')

This resulted in the following error:

uncaught exception: module stylus not found
http://localhost:9294/application.js
Line 4191

Is is possible to define Stylus variables in Spine? And how do i require Stylus?

Nina
  • 23
  • 4

1 Answers1

1

I'd recommend spine.app.
It has build in stylus support and lets you serve node packages to the browser.

LnL7
  • 388
  • 2
  • 4