Skip to content

Commit

Permalink
Add activity-feed colors to the tailwinds safelist
Browse files Browse the repository at this point in the history
  • Loading branch information
pfrazee committed Mar 26, 2021
1 parent b44a681 commit bfaf7ae
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
1 change: 0 additions & 1 deletion static/js/com/activity-feed.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const CHECK_NEW_ITEMS_INTERVAL = 15e3

const METHOD_COLORS = {
'ctzn.network/create-item-method': 'green-700',

'ctzn.network/transfer-item-method': 'blue-700',
'ctzn.network/community-remove-member-method': 'red-700',
'ctzn.network/community-put-ban-method': 'red-700',
Expand Down
13 changes: 12 additions & 1 deletion tailwind.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,18 @@ module.exports = {
'./static/**/*.js'
],
options: {
safelist: ['bg-red-50', 'bg-pink-600', 'hover:bg-pink-700', 'border-pink-800']
safelist: [
'bg-red-50',
'bg-pink-600',
'hover:bg-pink-700',
'border-pink-800',
'text-green-700',
'text-blue-700',
'text-red-700',
'bg-green-50',
'bg-blue-50',
'bg-red-50'
]
}
},
darkMode: 'media',
Expand Down

1 comment on commit bfaf7ae

@vercel
Copy link

@vercel vercel bot commented on bfaf7ae Mar 26, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.