Color customization & Tailwind
What is Tailwind CSS?
Accessing Tailwind CSS Classes
Example Configuration
Config.dbPage = { -- dashboardpage
topplayersorderby = "playtime", -- money, playtime, level, xp
topplayerslimit = 5,
jobColors = {
[1] = {
label = "CAS WORKER",
bg = "bg-blue-50", -- Light blue background
text = "text-blue-600", -- Medium blue text
border = "border-blue-200" -- Light blue border
},
},
rankBadge = {
[1] = {
className = "bg-gradient-to-r from-yellow-400 to-yellow-600 text-white", -- Gold gradient badge with white text
},
[2] = {
className = "bg-gradient-to-r from-gray-300 to-gray-500 text-white", -- Silver gradient badge with white text
},
[3] = {
className = "bg-gradient-to-r from-orange-400 to-orange-600 text-white", -- Bronze gradient badge with white text
},
},
defaultRankBadgeClass = "bg-gradient-to-r from-blue-400 to-blue-600 text-white", -- Default blue gradient badge with white text
}Explanation of the Configuration
How to Customize Styles
Example: Adding a New Rank Badge
Tips for Using Tailwind CSS
Last updated