This file contains hidden or 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
| // To be added into .vscode/settings.json | |
| { | |
| "tailwindCSS.rootFontSize": 17, | |
| "tailwindCSS.experimental.classRegex": ["_tw`([^`]*)"] | |
| } |
This file contains hidden or 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
| import clsx, { type ClassValue } from "clsx"; | |
| import { extendTailwindMerge } from "tailwind-merge"; | |
| const customTailwindMerge = extendTailwindMerge({ | |
| extend: { | |
| classGroups: { | |
| "font-size": [ | |
| { | |
| text: [(part: string) => /^\d{1,3}px$/.test(part)], | |
| }, |
This file contains hidden or 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
| import { type ReactNode } from "react"; | |
| import { tw } from "~/styling/clsxAndTWMerge"; | |
| type Props = { | |
| children: ReactNode; | |
| outerClassName?: string; | |
| innerClassName?: string; | |
| before?: ReactNode; | |
| after?: ReactNode; | |
| id?: string; |
This file contains hidden or 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
| "use client"; | |
| import Lenis from "@studio-freight/lenis"; | |
| import { usePathname } from "next/navigation"; | |
| import { useEffect } from "react"; | |
| const SmoothScroll = () => { | |
| const pathname = usePathname(); | |
| useEffect(() => { |