Skip to content

Commit

Permalink
adjusted tailwind config with radix specific settings
Browse files Browse the repository at this point in the history
  • Loading branch information
iamfj committed Aug 2, 2023
1 parent bc37820 commit dac3c62
Showing 1 changed file with 22 additions and 5 deletions.
27 changes: 22 additions & 5 deletions tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
const { violet, blackA, mauve, green } = require('@radix-ui/colors');

/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
Expand All @@ -7,12 +9,27 @@ module.exports = {
],
theme: {
extend: {
backgroundImage: {
'gradient-radial': 'radial-gradient(var(--tw-gradient-stops))',
'gradient-conic':
'conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))',
colors: {
...mauve,
...violet,
...green,
...blackA,
},
keyframes: {
overlayShow: {
from: { opacity: 0 },
to: { opacity: 1 },
},
contentShow: {
from: { opacity: 0, transform: 'translate(-50%, -48%) scale(0.96)' },
to: { opacity: 1, transform: 'translate(-50%, -50%) scale(1)' },
},
},
animation: {
overlayShow: 'overlayShow 150ms cubic-bezier(0.16, 1, 0.3, 1)',
contentShow: 'contentShow 150ms cubic-bezier(0.16, 1, 0.3, 1)',
},
},
},
plugins: [],
}
};

0 comments on commit dac3c62

Please sign in to comment.