curl --request PATCH \
--url https://{subdomain}.nudj.cx/api/v2/admin/themes \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '
{
"themeAssets": {
"light": {
"logo": "<string>",
"navbarLogo": "<string>",
"favicon": "<string>",
"appleTouchIcon": "<string>"
},
"dark": {
"logo": "<string>",
"navbarLogo": "<string>",
"favicon": "<string>",
"appleTouchIcon": "<string>"
}
},
"theme": {
"font": {
"family": "<string>",
"sizes": {
"xs": "<string>",
"sm": "<string>",
"base": "<string>",
"lg": "<string>",
"xl": "<string>",
"2xl": "<string>",
"3xl": "<string>",
"4xl": "<string>",
"5xl": "<string>",
"6xl": "<string>"
}
},
"borderRadius": "<string>",
"colors": {
"light": {
"background": "<string>",
"card": "<string>",
"cardForeground": "<string>",
"foreground": "<string>",
"popover": "<string>",
"popoverForeground": "<string>",
"primary": "<string>",
"primaryForeground": "<string>",
"secondary": "<string>",
"secondaryForeground": "<string>",
"muted": "<string>",
"mutedForeground": "<string>",
"accent": "<string>",
"accentForeground": "<string>",
"destructive": "<string>",
"destructiveForeground": "<string>",
"border": "<string>",
"input": "<string>",
"ring": "<string>",
"success": "<string>",
"successForeground": "<string>"
},
"dark": {
"background": "<string>",
"card": "<string>",
"cardForeground": "<string>",
"foreground": "<string>",
"popover": "<string>",
"popoverForeground": "<string>",
"primary": "<string>",
"primaryForeground": "<string>",
"secondary": "<string>",
"secondaryForeground": "<string>",
"muted": "<string>",
"mutedForeground": "<string>",
"accent": "<string>",
"accentForeground": "<string>",
"destructive": "<string>",
"destructiveForeground": "<string>",
"border": "<string>",
"input": "<string>",
"ring": "<string>",
"success": "<string>",
"successForeground": "<string>"
}
},
"forcedTheme": "light",
"disableCardGradients": true,
"rewardCardVersion": "textual",
"hideCommunityDetailsOnCards": true,
"postCardVersion": "<string>",
"achievementCardVersion": "<string>",
"challengeCardVersion": "<string>",
"rewardDetailsVersion": "grid",
"postDetailsVersion": "grid",
"achievementDetailsVersion": "grid",
"challengeDetailsVersion": "grid",
"mobileNav": {
"iconOnly": true,
"fontSize": "<string>"
},
"homeButtonOverrideUrl": "<string>",
"orgLogoOverrideUrl": "<string>",
"icons": {},
"backgroundImage": "<string>"
}
}
'{
"themeAssets": {
"light": {
"logo": "<string>",
"navbarLogo": "<string>",
"favicon": "<string>",
"appleTouchIcon": "<string>"
},
"dark": {
"logo": "<string>",
"navbarLogo": "<string>",
"favicon": "<string>",
"appleTouchIcon": "<string>"
}
},
"theme": {
"font": {
"family": "<string>",
"sizes": {
"xs": "<string>",
"sm": "<string>",
"base": "<string>",
"lg": "<string>",
"xl": "<string>",
"2xl": "<string>",
"3xl": "<string>",
"4xl": "<string>",
"5xl": "<string>",
"6xl": "<string>"
}
},
"borderRadius": "<string>",
"colors": {
"light": {},
"dark": {}
},
"forcedTheme": "light",
"disableCardGradients": true,
"rewardCardVersion": "textual",
"hideCommunityDetailsOnCards": true,
"postCardVersion": "<string>",
"achievementCardVersion": "<string>",
"challengeCardVersion": "<string>",
"rewardDetailsVersion": "grid",
"postDetailsVersion": "grid",
"achievementDetailsVersion": "grid",
"challengeDetailsVersion": "grid",
"mobileNav": {
"iconOnly": true,
"fontSize": "<string>"
},
"homeButtonOverrideUrl": "<string>",
"orgLogoOverrideUrl": "<string>",
"icons": {},
"backgroundImage": "<string>"
}
}Update the theme and styling configuration.
curl --request PATCH \
--url https://{subdomain}.nudj.cx/api/v2/admin/themes \
--header 'Content-Type: application/json' \
--header 'x-api-token: <api-key>' \
--data '
{
"themeAssets": {
"light": {
"logo": "<string>",
"navbarLogo": "<string>",
"favicon": "<string>",
"appleTouchIcon": "<string>"
},
"dark": {
"logo": "<string>",
"navbarLogo": "<string>",
"favicon": "<string>",
"appleTouchIcon": "<string>"
}
},
"theme": {
"font": {
"family": "<string>",
"sizes": {
"xs": "<string>",
"sm": "<string>",
"base": "<string>",
"lg": "<string>",
"xl": "<string>",
"2xl": "<string>",
"3xl": "<string>",
"4xl": "<string>",
"5xl": "<string>",
"6xl": "<string>"
}
},
"borderRadius": "<string>",
"colors": {
"light": {
"background": "<string>",
"card": "<string>",
"cardForeground": "<string>",
"foreground": "<string>",
"popover": "<string>",
"popoverForeground": "<string>",
"primary": "<string>",
"primaryForeground": "<string>",
"secondary": "<string>",
"secondaryForeground": "<string>",
"muted": "<string>",
"mutedForeground": "<string>",
"accent": "<string>",
"accentForeground": "<string>",
"destructive": "<string>",
"destructiveForeground": "<string>",
"border": "<string>",
"input": "<string>",
"ring": "<string>",
"success": "<string>",
"successForeground": "<string>"
},
"dark": {
"background": "<string>",
"card": "<string>",
"cardForeground": "<string>",
"foreground": "<string>",
"popover": "<string>",
"popoverForeground": "<string>",
"primary": "<string>",
"primaryForeground": "<string>",
"secondary": "<string>",
"secondaryForeground": "<string>",
"muted": "<string>",
"mutedForeground": "<string>",
"accent": "<string>",
"accentForeground": "<string>",
"destructive": "<string>",
"destructiveForeground": "<string>",
"border": "<string>",
"input": "<string>",
"ring": "<string>",
"success": "<string>",
"successForeground": "<string>"
}
},
"forcedTheme": "light",
"disableCardGradients": true,
"rewardCardVersion": "textual",
"hideCommunityDetailsOnCards": true,
"postCardVersion": "<string>",
"achievementCardVersion": "<string>",
"challengeCardVersion": "<string>",
"rewardDetailsVersion": "grid",
"postDetailsVersion": "grid",
"achievementDetailsVersion": "grid",
"challengeDetailsVersion": "grid",
"mobileNav": {
"iconOnly": true,
"fontSize": "<string>"
},
"homeButtonOverrideUrl": "<string>",
"orgLogoOverrideUrl": "<string>",
"icons": {},
"backgroundImage": "<string>"
}
}
'{
"themeAssets": {
"light": {
"logo": "<string>",
"navbarLogo": "<string>",
"favicon": "<string>",
"appleTouchIcon": "<string>"
},
"dark": {
"logo": "<string>",
"navbarLogo": "<string>",
"favicon": "<string>",
"appleTouchIcon": "<string>"
}
},
"theme": {
"font": {
"family": "<string>",
"sizes": {
"xs": "<string>",
"sm": "<string>",
"base": "<string>",
"lg": "<string>",
"xl": "<string>",
"2xl": "<string>",
"3xl": "<string>",
"4xl": "<string>",
"5xl": "<string>",
"6xl": "<string>"
}
},
"borderRadius": "<string>",
"colors": {
"light": {},
"dark": {}
},
"forcedTheme": "light",
"disableCardGradients": true,
"rewardCardVersion": "textual",
"hideCommunityDetailsOnCards": true,
"postCardVersion": "<string>",
"achievementCardVersion": "<string>",
"challengeCardVersion": "<string>",
"rewardDetailsVersion": "grid",
"postDetailsVersion": "grid",
"achievementDetailsVersion": "grid",
"challengeDetailsVersion": "grid",
"mobileNav": {
"iconOnly": true,
"fontSize": "<string>"
},
"homeButtonOverrideUrl": "<string>",
"orgLogoOverrideUrl": "<string>",
"icons": {},
"backgroundImage": "<string>"
}
}The input required to update the style configuration
Theme assets configuration
Show child attributes
Light mode assets
Show child attributes
Dark mode assets
Show child attributes
Show child attributes
Show child attributes
Font family
Font size configuration for different text sizes following Tailwind CSS naming convention
Show child attributes
Extra small font size (e.g., '12px', '0.75rem')
Small font size (e.g., '14px', '0.875rem')
Base font size (e.g., '16px', '1rem')
Large font size (e.g., '18px', '1.125rem')
Extra large font size (e.g., '20px', '1.25rem')
2x large font size (e.g., '24px', '1.5rem')
3x large font size (e.g., '30px', '1.875rem')
4x large font size (e.g., '36px', '2.25rem')
5x large font size (e.g., '48px', '3rem')
6x large font size (e.g., '60px', '3.75rem')
Border radius value
Show child attributes
Show child attributes
Background color
Card background color
Card text color
Text color
Popover color
Popover text color
Primary color
Primary text color
Secondary color
Secondary text color
Muted color
Muted text color
Accent color
Accent text color
Destructive color
Destructive text color
Border color
Input color
Ring color
Success color
Success text color
Show child attributes
Background color
Card background color
Card text color
Text color
Popover color
Popover text color
Primary color
Primary text color
Secondary color
Secondary text color
Muted color
Muted text color
Accent color
Accent text color
Destructive color
Destructive text color
Border color
Input color
Ring color
Success color
Success text color
Forces theme to light or dark mode
light, dark Disable gradient on reward card, scheduled challenges card and post card
Choose which version of the reward card to use. If not specified, the latest version will be used
textual, iconic When enabled, hides community details on all cards at org level
Choose which version of the post card to use. If not specified, the latest version will be used
Choose which version of the achievement card to use. If not specified, the latest version will be used
Choose which version of the challenge card to use. If not specified, the latest version will be used
Choose which version of the reward details to use. If not specified, the latest version will be used
grid, modern Choose which version of the post details to use. If not specified, the latest version will be used
grid, modern Choose which version of the achievement details to use. If not specified, the latest version will be used
grid, modern Choose which version of the challenge details to use. If not specified, the latest version will be used
grid, modern Configuration options for mobile navigation bar appearance and behavior
Override the default home button URL. If not specified, the default home button URL will be used.
Override the default organization logo URL. If not specified, the default organization logo will be used.
Custom icon mappings to override default platform icons. Each key represents an icon identifier, and the value specifies either a Lucide icon name or custom SVG content
Background image URL for the application. Recommended size: 1920x1080px (laptop screen size) or larger for optimal display across devices
Successful response
Configuration for UI styling and theming
Theme assets configuration
Show child attributes
Light mode assets
Show child attributes
Dark mode assets
Show child attributes
Theme configuration
Show child attributes
Font configuration
Show child attributes
Font family
Font size configuration for different text sizes following Tailwind CSS naming convention
Show child attributes
Extra small font size (e.g., '12px', '0.75rem')
Small font size (e.g., '14px', '0.875rem')
Base font size (e.g., '16px', '1rem')
Large font size (e.g., '18px', '1.125rem')
Extra large font size (e.g., '20px', '1.25rem')
2x large font size (e.g., '24px', '1.5rem')
3x large font size (e.g., '30px', '1.875rem')
4x large font size (e.g., '36px', '2.25rem')
5x large font size (e.g., '48px', '3rem')
6x large font size (e.g., '60px', '3.75rem')
Border radius value
Forces theme to light or dark mode
light, dark Disable gradient on reward card, scheduled challenges card and post card
Choose which version of the reward card to use. If not specified, the latest version will be used
textual, iconic When enabled, hides community details on all cards at org level
Choose which version of the post card to use. If not specified, the latest version will be used
Choose which version of the achievement card to use. If not specified, the latest version will be used
Choose which version of the challenge card to use. If not specified, the latest version will be used
Choose which version of the reward details to use. If not specified, the latest version will be used
grid, modern Choose which version of the post details to use. If not specified, the latest version will be used
grid, modern Choose which version of the achievement details to use. If not specified, the latest version will be used
grid, modern Choose which version of the challenge details to use. If not specified, the latest version will be used
grid, modern Configuration options for mobile navigation bar appearance and behavior
Override the default home button URL. If not specified, the default home button URL will be used.
Override the default organization logo URL. If not specified, the default organization logo will be used.
Custom icon mappings to override default platform icons. Each key represents an icon identifier, and the value specifies either a Lucide icon name or custom SVG content
Background image URL for the application. Recommended size: 1920x1080px (laptop screen size) or larger for optimal display across devices
Was this page helpful?