diff --git a/packages/nc-gui/utils/colorsUtils.ts b/packages/nc-gui/utils/colorsUtils.ts index 9c90aa719a..6aa792e32d 100644 --- a/packages/nc-gui/utils/colorsUtils.ts +++ b/packages/nc-gui/utils/colorsUtils.ts @@ -370,9 +370,66 @@ export function getEnumColorByIndex(i: number, mode: 'light' | 'dark' = 'light') return enumColor[mode][i % enumColor[mode].length] } +/** + * ### Light Theme Configuration + * In this project, we've integrated a custom WindiCSS configuration that aligns with our Figma design system. + * This setup introduces shorthand class names for various UI elements like text color, border color, + * background color, and more. The goal is to ensure design consistency and streamline the development + * process by directly reflecting Figma styles in our codebase. + * + * #### Why We Introduced This + * + * The light theme was introduced to: + * - **Maintain Consistency**: Ensures that the color scheme used in the design (Figma) is reflected accurately in the codebase. + * - **Ease of Use**: Simplifies the application of colors by using intuitive, design-referenced class names. + * + * #### Usage + * + * The configuration extends WindiCSS with custom screens, font sizes, font weights, colors, and other utilities. + * These can be used directly in files through class names. + * + * ###### Text Color + * To apply a text color, you can use: + * ```html + *
This is subtle grey text.
+ * ``` + * + * ###### Border Color + * To apply a border color, you can use: + * ```html + *...
+ * ``` + * - **Border Color**: + * ```html + *