In SP/O365 online, I need to add colors to list items in an announcement webpart according to the date. I have been looking at the following article: Color custom list items based on Status using OOTB which is coming close to what I need, but I lack the knowledge to change this script to my needs.
New list items should show in a different color (not the background, but item itself) and it needs to change to default after a specific amount of time, like f.e. a month after the created date.
Thanks in advance.