To use CSS in an SAPUI5 environment, you must associate your controls with a specific CSS class. You can do it as follows:
var myButton = new sap.m.Button();
myButton.addStyleClass("myButtonStyle");
And your CSS might look like this:
@CHARSET "ISO-8859-1";
.myButtonStyle {
color:#FFCCDD;
}
Make sure you upload the CSS file to your application, for example, in your html file:
<link href="css/style.css" type="text/css" rel="stylesheet" />
, . App, , .