How do I get the badge in a custom panel to be the same color as a standard badge in Sales in the Redwood User Experience?

From panel card layout, create a template and use the following code to format the badge component:

<template id="Status_cBaseTemplate1">

   <span class="oj-badge oj-form-control-default"><oj-bind-text value="[[ $value() ]]"></oj-bind-text></span>

</template>