-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
27 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,4 +113,4 @@ export const InfiniteMovingCards = ({ | |
</ul> | ||
</div> | ||
); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -106,4 +106,4 @@ export const StickyScroll = ({ | |
</div> | ||
</motion.div> | ||
); | ||
}; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,60 +1,56 @@ | ||
// tailwind.config.js | ||
|
||
const defaultTheme = require("tailwindcss/defaultTheme"); | ||
const colors = require("tailwindcss/colors"); | ||
const { | ||
default: flattenColorPalette, | ||
} = require("tailwindcss/lib/util/flattenColorPalette"); | ||
import defaultTheme from 'tailwindcss/defaultTheme'; | ||
import colors from 'tailwindcss/colors'; | ||
import flattenColorPalette from 'tailwindcss/lib/util/flattenColorPalette'; | ||
|
||
const config = { | ||
content: [ | ||
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}", | ||
"./src/components/**/*.{js,ts,jsx,tsx,mdx}", | ||
"./src/app/**/*.{js,ts,jsx,tsx,mdx}", | ||
'./src/pages/**/*.{js,ts,jsx,tsx,mdx}', | ||
'./src/components/**/*.{js,ts,jsx,tsx,mdx}', | ||
'./src/app/**/*.{js,ts,jsx,tsx,mdx}', | ||
], | ||
theme: { | ||
extend: { | ||
animation: { | ||
"meteor-effect": "meteor 5s linear infinite", | ||
scroll: | ||
"scroll var(--animation-duration, 40s) var(--animation-direction, forwards) linear infinite", | ||
'meteor-effect': 'meteor 5s lineanr infinite', | ||
scroll: 'scroll var(--animation-duration, 40s) var(--animation-direction, forwards) linear infinite', | ||
}, | ||
keyframes: { | ||
meteor: { | ||
"0%": { transform: "rotate(215deg) translateX(0)", opacity: "1" }, | ||
"70%": { opacity: "1" }, | ||
"100%": { | ||
transform: "rotate(215deg) translateX(-500px)", | ||
opacity: "0", | ||
'0%': { transform: 'rotate(215deg) translateX(0)', opacity: '1' }, | ||
'70%': { opacity: '1' }, | ||
'100%': { | ||
transform: 'rotate(215deg) translateX(-500px)', | ||
opacity: '0', | ||
}, | ||
}, | ||
scroll: { | ||
to: { | ||
transform: "translate(calc(-50% - 0.5rem))", | ||
transform: 'translate(calc(-50% - 0.5rem))', | ||
}, | ||
}, | ||
}, | ||
colors: { | ||
spotify: { | ||
green: "#1DB954", | ||
black: "#191414", | ||
white: "#FFFFFF", | ||
grey: "#B3B3B3", | ||
green: '#1DB954', | ||
black: '#191414', | ||
white: '#FFFFFF', | ||
grey: '#B3B3B3', | ||
}, | ||
}, | ||
}, | ||
}, | ||
plugins: [addVariablesForColors], | ||
}; | ||
|
||
export default config; | ||
|
||
function addVariablesForColors({ addBase, theme }) { | ||
let allColors = flattenColorPalette(theme("colors")); | ||
let allColors = flattenColorPalette(theme('colors')); | ||
let newVars = Object.fromEntries( | ||
Object.entries(allColors).map(([key, val]) => [`--${key}`, val]) | ||
); | ||
|
||
addBase({ | ||
":root": newVars, | ||
':root': newVars, | ||
}); | ||
} |