JSFiddle - React, Tailwind, and code Playground
JavaScript
(function($){ $.fn.xcss = function(opts){
$.each(['background', 'backgroundColor','background-color', 'color', 'borderColor','border-color'],function(i,v){
if(typeof opts[v] === 'number')
opts[v] = ('00000'+opts[v].toString(16)).replace(/.*([a-f\d]{6})$/,'#$1')
})
this.css(opts)
return this
} })(jQuery)
$('body').xcss({
'background-color': 0xffccFF,
color: 0xccffcc,
border: '3px solid red',
borderColor:0x0ccaa,
padding:50
}).html('<h1>This should be a funny color</h1>')