JSFiddle - React, Tailwind, and code Playground

HTML

<body>
	<p class="somi"> i am a good boy </p>
</body>

JavaScript

$(function() {
	$.fn.mystyle = function( options ) {
		// default value 
		var defaults={
			textColor : "red" ,
			textDeco : "underline",
			backColor : "black",
			fontSize : 40
		};
		
		// assigning to a variable 
		var setting = $.extend( {} , defaults , options );
		
		// returing the value 	
		return this.css({
			color : setting.textColor,
			backgroundColor : setting.backColor,
			textDecoration : setting.textDeco,
			fontSize : setting.fontSize
		});	
	};
});



$( document ).ready(function() {
   $(".somi").mystyle({
    	textColor: "orange",
	});
});