diff --git a/apps/landing/devup.json b/apps/landing/devup.json index df27821b..ccb80380 100644 --- a/apps/landing/devup.json +++ b/apps/landing/devup.json @@ -8,6 +8,7 @@ "text": "#2F2F2F", "background": "#FFF", "containerBackground": "#FFF", + "codeBackground": "#F5F5F5", "border": "#E0E0E0", "success": "#4CAF50", "warning": "#FF9800", @@ -53,6 +54,7 @@ "text": "#EDEDED", "background": "#131313", "containerBackground": "#373639", + "codeBackground": "#2E2E2E", "border": "#333", "success": "#4CAF50", "warning": "#FF9800", diff --git a/apps/landing/src/components/PropsTable.tsx b/apps/landing/src/components/PropsTable.tsx index 0847e7f8..8bd3e9ff 100644 --- a/apps/landing/src/components/PropsTable.tsx +++ b/apps/landing/src/components/PropsTable.tsx @@ -1,4 +1,4 @@ -import { Text, VStack } from '@devup-ui/react' +import { Box, Text, VStack } from '@devup-ui/react' import Markdown from 'react-markdown' import { _components } from '@/mdx-components' @@ -41,50 +41,52 @@ export const PropsTable = async (props: PropTableProps) => { const { componentProps } = props return ( - - - - Prop - description - Type - Default - - - - {componentProps.length === 0 && ( + +
+ - - No props to display - + Prop + description + Type + Default - )} - {componentProps.map( - ({ property, description, type, default: defaultValue }) => ( - - - {property} + + + {componentProps.length === 0 && ( + + + No props to display - - - {description} - - - - + + )} + {componentProps.map( + ({ property, description, type, default: defaultValue }) => ( + + + {property} + + - {type?.replaceAll('"', "'")} + {description} - - - - - {defaultValue} - - - - ), - )} - -
+ + + + + {type?.replaceAll('"', "'")} + + + + + + {defaultValue} + + + + ), + )} + + + ) } diff --git a/apps/landing/src/components/mdx/components/CustomCodeBlock.tsx b/apps/landing/src/components/mdx/components/CustomCodeBlock.tsx index 429ae342..0fa1957d 100644 --- a/apps/landing/src/components/mdx/components/CustomCodeBlock.tsx +++ b/apps/landing/src/components/mdx/components/CustomCodeBlock.tsx @@ -4,7 +4,7 @@ export function CustomCodeBlock({ children }: { children: string }) { return ( ) => { return ( - + ) diff --git a/packages/components/devup.json b/packages/components/devup.json index ab553df7..888d6348 100644 --- a/packages/components/devup.json +++ b/packages/components/devup.json @@ -11,6 +11,7 @@ "text": "#272727", "background": "#F5F5F5", "containerBackground": "#FFFFFF", + "codeBackground": "#F5F5F5", "border": "#E4E4E4", "success": "#2CA353", "warning": "#FF9800", @@ -74,6 +75,7 @@ "text": "#F6F6F6", "background": "#202020", "containerBackground": "#1E1E1E", + "codeBackground": "#2E2E2E", "border": "#434343", "success": "#4CAF50", "warning": "#FF9800",