feat: add next-themes package and update styles
- Added `next-themes` package for theme management. - Updated various components to use `hsl(var(--foreground))` for color consistency. - Changed background colors from `bg-white` to `bg-card` in multiple components for better theming support. Made-with: Cursor
This commit is contained in:
@@ -63,7 +63,7 @@ export const TextDisplayComponent: React.FC<TextDisplayComponentProps> = ({
|
||||
const textStyle: React.CSSProperties = {
|
||||
fontSize: customStyle.fontSize || componentConfig.fontSize || "14px",
|
||||
fontWeight: customStyle.fontWeight || componentConfig.fontWeight || "normal",
|
||||
color: customStyle.color || componentConfig.color || "#212121",
|
||||
color: customStyle.color || componentConfig.color || "hsl(var(--foreground))",
|
||||
textAlign: (customStyle.textAlign || componentConfig.textAlign || "left") as React.CSSProperties["textAlign"],
|
||||
backgroundColor: customStyle.backgroundColor || componentConfig.backgroundColor || "transparent",
|
||||
padding: componentConfig.padding || "0",
|
||||
|
||||
Reference in New Issue
Block a user