CSS isn't messy 🙁
Actually, CSS would be the way to go here, but I'd say you do something like:
<?php
/** So we know it's a CSS document **/
header('Content-type: text/css');
?>
.some {
declarations: here;
for-whatever: colors or styles;
you: choose;
}
.menu {
/** And this will give you your random color from black to white **/
color: rgb(<?php echo rand(0,255).','.rand(0,255).','.rand(0,255); ?>);
}
That would be the easiest way.....
Of course in your document you could use an inline stylesheet to declare it which would override the imported or remote stylesheet as well. Same tactic to generate the random color though 🙂