Theming
Theming modifies the shared visual design system across your Web Viewer app, including colors, typography, border radius, shadows, chart palettes, and dark mode. Because ADK projects use Tailwind CSS and shadcn/ui, theme settings are configured directly in project CSS and configuration files.
What a shadcn/ui theme controls
shadcn/ui components use semantic design tokens instead of hard-coded color values. For example, buttons reference primary and primary-foreground, pages reference background and foreground, and form inputs reference border, input, and ring.
Updating token definitions updates every component that references them without requiring changes to component JSX markup. The official shadcn/ui theming guide details token naming, dark mode variants, chart colors, and border radius scales.
A theme definition specifies:
-
Light and dark color tokens for surfaces, text, borders, form controls, and status indicators.
-
Chart color palettes.
-
Heading and body font families.
-
Border radius scales.
-
Elevation shadows and complementary visual styling.
Choose a visual theme editor
shadcn/ui Create
shadcn/ui Create is a visual builder for previewing colors, fonts, border radius, and component styling before applying settings to a project.
shadcn/ui Create produces a configuration preset code that your coding agent can import directly into your project.
TweakCN
TweakCN is an open-source visual theme editor for Tailwind CSS and shadcn/ui. You can customize an existing design visually, fine-tune token values, and export the resulting CSS into your project.
Note Icon libraries: Visual editors may bundle icon choices with theme presets. Unlike color and font tokens, modifying an icon library can require updating import paths in existing components. Retain the current icon library unless you intend to update component imports.
Apply a theme with your agent
Copy the configuration code from shadcn/ui Create or the exported CSS from TweakCN, then instruct your coding agent to apply it.
To apply a shadcn/ui Create preset code:
Apply the theme from this shadcn/ui Create code to the existing project: <code>
Apply its colors, typography, radius, and other theme values.
Keep the current icon library unless I explicitly ask to change it.
Preserve the app's routes, FileMaker integration, and ADK configuration.
Run the project checks and inspect the result in light and dark mode.
To apply exported theme CSS:
Apply these shadcn/ui theme values to the project: <theme-css>
Merge the light values into :root and the dark values into .dark.
Preserve non-theme CSS and the app's existing behavior.
Run the project checks and inspect the result in light and dark mode.
Warning Commit before modifying themes: Commit your Git repository before modifying themes. This allows you to inspect the theme diff or revert changes cleanly if necessary.
Verify theme styling
Preview screens across diverse UI states rather than checking the initial route alone:
-
Light and dark mode rendering.
-
Hover, focus, disabled, active, and destructive component states.
-
Color contrast ratios for text and icons across all background surfaces.
-
Dialog boxes, popovers, dropdown menus, tables, and chart components.
-
Rendering within the FileMaker Web Viewer layout object.