Artificial intelligent assistant

Rails4 で Sass に定義した変数の値を Javascript から変更できますか? Rails4 Sass Sass Sass Javascript Sass : $theme-color: #FF0000 body color: $theme-color .box background: $theme-color color: white .message border: solid 1px $theme-color &:after content 'message:' color: $theme-color `$theme-color` Javascript `#0000FF`

`$theme-color` JavaScript
WEBSassCSS

SassJavaScript…


$theme-color: #FF0000
$theme2-color: #0000FF

body
color: $theme-color
&.theme2
color: $theme2-color

.box
background: $theme-color
color: white
&.theme2
background: $theme2-color

.message
border: solid 1px $theme-color
&:after
content 'message:'
color: $theme-color
&.theme2
border
color: $theme2-color

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 48cf17e35af2ea9c67ae3f147d33719f