Corpointa’s visual styling is built on TailwindCSS v4 and a CSS variable system that separates color tokens from layout defaults. Every color used across the UI resolves through a CSS custom property, meaning you can retheme the entire application by overriding a small set of variables in a single stylesheet — no Tailwind config rebuild required.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/EricMartinez758/corpointa-frontend/llms.txt
Use this file to discover all available pages before exploring further.
Theme Modes
Corpointa ships with two theme modes available in Settings → Appearance: light and dark.- Light — uses the default
:rootvariable values defined intheme.css - Dark — overrides those variables with the
.darkclass ruleset
vite-ui-theme cookie (with a 1-year expiry) so it is restored on every subsequent page load before the first render — no flash of the wrong theme.
Theme changes in Settings apply immediately to the entire UI without a page reload.
CSS Variable System
All color values are defined as CSS custom properties (CSS variables) and organized into two modular files undersrc/styles/:
theme.css— the primary color token file. Defines all design tokens under:rootfor light mode and under.darkfor dark mode. Also contains the@theme inlineblock that maps Tailwind utility classes to these variables, plus extended color palettes for primary, secondary, tertiary, and neutral scales.index.css— the base stylesheet. Imports Tailwind,tw-animate-css, andtheme.css. Contains@layer baseresets, global defaults (body font, scrollbar styles, mobile input sizing), and custom utility classes likeno-scrollbarandfaded-bottom.
theme.css covers the full shadcn/ui color surface:
theme.css
@theme inline, so utility classes like bg-primary or text-muted-foreground automatically reflect whichever set of values is active.
Dark Mode
Dark mode is toggled by adding or removing thedark class on the <html> element. The ThemeProvider context handles this via a useEffect that listens to the current theme value:
index.css as:
index.css
dark: utility class activates whenever an ancestor element carries the dark class — which is the <html> element in practice. Shadcn/ui components use this variant internally for their dark-mode styles, and you can use dark: prefixes freely in your own component overrides.
RTL Support
Corpointa supports right-to-left layouts for Arabic, Hebrew, and other RTL languages. The text direction is managed byDirectionProvider and stored in the dir cookie (1-year expiry).
When RTL is activated, dir="rtl" is set on the <html> element:
@radix-ui/react-direction’s DirectionProvider, so popover positions, dropdown alignments, and sidebar chevron directions all flip automatically with zero extra configuration.
shadcn/ui Components
All UI primitives in Corpointa are sourced from shadcn/ui, which is built on Radix UI (for accessible, unstyled primitives) and TailwindCSS (for styling). The project uses thenew-york style variant with CSS variables enabled.
The components.json file in the project root controls how the shadcn CLI generates components:
components.json
"cssVariables": true— all component colors are driven by CSS variables, not hard-coded Tailwind values"baseColor": "slate"— the neutral palette baseline used when generating new components"css": "src/styles/index.css"— the stylesheet the CLI will update when adding components
Overriding Colors
To change the primary brand color across the entire application, override the--primary and --primary-foreground CSS variables in a stylesheet that loads after theme.css:
index.css after the theme.css import:
src/styles/index.css
--secondary, --accent, --destructive, --radius, sidebar tokens, and chart colors.