javascript - Variables in CSS, is that possible? -
this question has answer here:
is there way make css dynamic? want set variable in css file. this:
var basecolour = #000; body{ background-colour: basecolour; }
i want let user choose colour. want set variable in css user input javascript.
is possible? or @ least 1 variable?
no css can't default, may want use sass this.
Comments
Post a Comment