Skip to content

Commit

Permalink
Fix the ring colors for swag-shop
Browse files Browse the repository at this point in the history
  • Loading branch information
Starefossen committed Jun 6, 2023
1 parent f67c1ce commit 5d69871
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion swag-shop/pages/api/swag.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export const swags: Swag[] = [
],
colors: [
{ name: 'White', class: 'bg-white', selectedClass: 'ring-gray-400' },
{ name: 'Blue', class: 'bg-blue-900', selectedClass: 'ringeblue-950' },
{ name: 'Blue', class: 'bg-blue-900', selectedClass: 'ring-blue-950' },
{ name: 'Black', class: 'bg-gray-900', selectedClass: 'ring-gray-900' },
],
sizes: [
Expand Down
4 changes: 4 additions & 0 deletions swag-shop/tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,18 @@ const colors = require('tailwindcss/colors')
// doesn't know about dynamic classes and will purge them by default
const colorClasses = [
'red-900',
'red-950',
'blue-900',
'blue-950',
'gray-400',
'gray-900',
];

module.exports = {
content: ["./pages/**/*.{tsx,jsx}", "./components/**/*.{tsx,jsx}"],
safelist: [
...colorClasses.map(color => `bg-${color}`),
...colorClasses.map(color => `ring-${color}`),
],
theme: {
extend: {
Expand Down

0 comments on commit 5d69871

Please sign in to comment.