Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate Codeblock component to tailwind, update colors #13801

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

wackerow
Copy link
Member

@wackerow wackerow commented Sep 4, 2024

Extends homepage branch found in:

Description

  • Updates Codeblock component to use tailwind
  • Updates the main color/bgColor for light/dark modes, utilizing latest color scheme
  • Uses primary for color, and background-highlight for background
image image

Related Issue

Tailwind and Homepage upates

Copy link
Member

@pettinarip pettinarip left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍🏼

@@ -6,34 +6,32 @@ import Highlight, {
PrismTheme,
} from "prism-react-renderer"
import Prism from "prism-react-renderer/prism"
import { Box, BoxProps, Flex, useColorModeValue } from "@chakra-ui/react"

// https://github.com/FormidableLabs/prism-react-renderer/tree/master#custom-language-support
import CopyToClipboard from "@/components/CopyToClipboard"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wackerow lmk if you have in mind migrating this component as well. If not, I could add it to the shadcn epic.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adding it to the shadcn epic to track it.

@pettinarip pettinarip merged commit 7cc5953 into homepage Sep 6, 2024
5 of 6 checks passed
@pettinarip pettinarip deleted the homepage-codeblock branch September 6, 2024 09:01
This was referenced Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants