I am experimenting with CSS files in Python to assist colour blind people. I need to get inside every selector block and change the 'background:' and 'color:'. I tried using CSS parsers like tinycss but they are not concentrating on getting selectors.
Example input:
body {background:#fff; color:#ccc}
And output:
body {background:#000; color:#aaa}
inputand waht you want theoutputlike