Customization
Theming & Design Tokens
antd-dynamic-ui seamlessly inherits your Ant Design 5.x Design Tokens and custom brand palettes.
Configuring Warm Cream & Toast Design Tokens
Use Ant Design's ConfigProvider together withDynamicUIProvider to customize global colors, border radius, and typography across all tables, forms, and cards simultaneously:
AppThemeProvider.tsxtsx
1import React from "react";2import { ConfigProvider, theme as antdTheme, App } from "antd";3import { DynamicUIProvider } from "antd-dynamic-ui";45export default function AppThemeProvider({ children }: { children: React.ReactNode }) {6 return (7 <ConfigProvider8 theme={{9 algorithm: antdTheme.defaultAlgorithm,10 token: {11 colorPrimary: "#e05d44", // Warm terracotta coral accent12 colorBgBase: "#fbf8f2", // Soft warm cream page background13 colorBgContainer: "#ffffff", // Pure white card & container background14 colorText: "#362117", // Deep warm espresso text15 colorTextSecondary: "#785c4b", // Warm cocoa subtitle text16 colorBorder: "#ede5d8", // Subtle warm border17 borderRadius: 12, // Soft rounded corner radius18 fontFamily: "-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif",19 },20 components: {21 Button: {22 borderRadius: 10,23 primaryColor: "#ffffff",24 },25 Table: {26 headerBg: "#f7f2ea",27 headerColor: "#362117",28 rowHoverBg: "#f9f5ee",29 borderColor: "#ede5d8",30 },31 Card: {32 headerBg: "#fbf8f2",33 },34 },35 }}36 >37 <App>38 <DynamicUIProvider39 theme={{40 primaryColor: "#e05d44",41 mode: "light",42 borderRadius: 12,43 }}44 >45 {children}46 </DynamicUIProvider>47 </App>48 </ConfigProvider>49 );50}
Artisanal Warm Palette
Uses soft cream base (#fbf8f2), warm toast text (#362117), and terracotta accents (#e05d44) for a welcoming, craft-first UI experience.
Full Token Inheritance
Every component automatically adapts to your token overrides: table header backgrounds, row hover highlights, input borders, and button radiuses without manual CSS classes.