Hi Andrew Bernhardt,
In java script snippet, data source is used to put string in between the java script code.
For your requirement , you can use dynamic class like
if $currentObject/boolean
then 'class1' else 'class2'
You can add styles to class1 and class2 with your color.
Hope this helps!