feat: update color handling for dark mode compatibility

- Updated various components to utilize `getAdaptiveLabelColor` for dynamic label color adjustments based on the current theme.
- Enhanced dark mode styles in `globals.css` for better visual consistency across components.

Made-with: Cursor
This commit is contained in:
DDD1542
2026-03-10 21:16:01 +09:00
parent fa6f76bff1
commit 58e958829c
23 changed files with 85 additions and 37 deletions

View File

@@ -3,6 +3,7 @@
import React from "react";
import { ComponentRendererProps } from "@/types/component";
import { DividerLineConfig } from "./types";
import { getAdaptiveLabelColor } from "@/lib/utils/darkModeColor";
export interface DividerLineComponentProps extends ComponentRendererProps {
config?: DividerLineConfig;
@@ -119,7 +120,7 @@ export const DividerLineComponent: React.FC<DividerLineComponentProps> = ({
top: "-25px",
left: "0px",
fontSize: component.style?.labelFontSize || "14px",
color: component.style?.labelColor || "#64748b",
color: getAdaptiveLabelColor(component.style?.labelColor),
fontWeight: "500",
}}
>