-
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.
Merge pull request #805 from oBusk/styling/shadcn-ui
Use shadcn/ui for styling (Tailwind)
- Loading branch information
Showing
98 changed files
with
3,703 additions
and
4,008 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"recommendations": ["bradlc.vscode-tailwindcss"] | ||
} |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module.exports = { | ||
plugins: { | ||
tailwindcss: {}, | ||
autoprefixer: {}, | ||
}, | ||
}; |
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,20 +1,20 @@ | ||
import { Code, forwardRef, VStack } from "@chakra-ui/react"; | ||
import BorderBox, { type BorderBoxProps } from "^/components/BorderBox"; | ||
import { type ElementRef, forwardRef } from "react"; | ||
import BorderBox, { type BorderBoxProps } from "^/components/ui/BorderBox"; | ||
import { cx } from "^/lib/cva"; | ||
|
||
export interface ErrorBoxProps extends BorderBoxProps {} | ||
|
||
const ErrorBox = forwardRef<ErrorBoxProps, typeof BorderBox>((props, ref) => { | ||
return ( | ||
<BorderBox | ||
as={VStack} | ||
backgroundColor="red.200" | ||
_dark={{ | ||
backgroundColor: "red.700", | ||
}} | ||
{...props} | ||
ref={ref} | ||
/> | ||
); | ||
}); | ||
const ErrorBox = forwardRef<ElementRef<typeof BorderBox>, ErrorBoxProps>( | ||
({ className, ...props }, ref) => { | ||
return ( | ||
<BorderBox | ||
className={cx("bg-red-200 dark:bg-red-700", className)} | ||
{...props} | ||
ref={ref} | ||
/> | ||
); | ||
}, | ||
); | ||
ErrorBox.displayName = "ErrorBox"; | ||
|
||
export default ErrorBox; |
Oops, something went wrong.
0cf911c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
npm-diff – ./
package-diff.vercel.app
npm-diff.vercel.app
npm-diff-obusk.vercel.app
npm-diff-git-main-obusk.vercel.app
www.npm-diff.app
www.npm-diff.com
shadcn.npm-diff.app
npm-diff.app
npm-diff.com