update styles for api default templates
use less variables