gsouf / UForm

php form library
Other
0 stars 2 forks source link

Implement standard color #22

Open gsouf opened 9 years ago

gsouf commented 9 years ago

Implement standard colors for text, panel, buttons, etc..

We would take example on bootstrap colors:

Some first though examples:

Per element construction

$builder->submit("Send", "send", "success");
$builder->submit("Delete", "delete", "danger");

Universal but needs more implementation in render engine

$builder->submit("Send", "send")->isSuccess(); 
$builder->submit("Delete", "delete")->isDanger();
gsouf commented 8 years ago

Also allow raw colors

$builder->submit("Delete", "delete", "#FFA256");