Currently developing themes for my express app, I am exploring new possibilities that I am uncertain about. Seeking expert advice on the best ways or methods to achieve this.
This is the structure of my schema...
var colorSchema = new Schema({
primaryColor: {
type: String
},
secondaryColor: {
type: String
}
});
module.exports = mongoose.model('Color', colorSchema);
For instance, suppose I input hex colors for primaryColor and secondaryColor when creating a new schema. How can I utilize color.primaryColor as a value in my css or stylus similar to how it's done in jade?