Ultra-simple CSS parser.
gem install csstree
tree = CSSTree.parse("body { background-color: #FFFFFF; color: #000000; }")
# => #<CSSTree:0x123456>
tree.find("body")
# => #<OpenStruct background_color="#FFFFFF" color="#000000">
tree.find("body").color
# => "#000000"
tree.find("body").background_color
# => "#FFFFFF"
tree.find("body").color = "#A3A3A3"
# => "#A3A3A3"
tree.render
# => "body { background-color: #FFFFFF; color: #A3A3A3; }