Skip to main content

Theming Default Hosted pages

Theming is an essential design strategy for hosted pages like login, registration, and profile pages, which are key touchpoints in user interactions. By implementing a cohesive theme, organizations can strengthen their visual identity, ensuring that every page feels secure, trustworthy, and familiar to users.

Motivation​

Brand Recognition

Consistent theming across pages makes a brand instantly recognizable. Users feel more comfortable and secure when they see familiar colors, fonts, and logos, which is especially important on login and registration pages where trust is key.

User Experience (UX)

A unified theme improves usability by reducing cognitive load. Familiar design elements help users intuitively navigate and interact with pages, creating a seamless and predictable journey through the site.

Customizability and Flexibility

A well-structured theme allows for easy updates without requiring a complete redesign. Changes to brand colors, typography, or other design elements can be applied across all themed pages effortlessly. For example, a change in brand colors or typography can be applied easily across the theme, instantly updating all themed pages.

Reinforcing Brand Values

Theming offers an opportunity to communicate brand values through design elements. A brand that values simplicity, for instance, can opt for a minimalist theme with ample white space, whereas a brand focused on creativity may choose vibrant colors and dynamic visuals.

To give you an easy start with our default hosted pages, the theming feature will support you

Theming Options: Flexibility to Customize the Default Hosted Pages​

These properties follow a consistent naming convention prefixed with --cid-, which stands for Custom Interface Design. They are designed to support a flexible, responsive, and themeable UI system.

Each variable plays a role in customizing the visual appearance of the user interface across different devices (mobile, tablet, desktop). These variables control key design aspects such as typography, color schemes, spacing, layout boundaries, and visual effects like shadows and borders.

By using these CSS variables:

  • You ensure consistency across components and pages.
  • You enable easy theming by changing a few central values.
  • You support responsive design by tailoring values per device type.
  • You improve maintainability and scalability of the codebase.

The documentation is organized into categories (e.g., Typography, Headings, Boundary Box, etc.), with each section detailing the purpose and usage of specific variables. Where applicable, variables are listed per device breakpoint to help you fine-tune the appearance of your application on various screen sizes.

πŸ“š Typography​


Font Family​

Defines the primary font used throughout the UI.

VariableDescription
--cid-font-familyBase font family used throughout the application.

Base Font Size​

Controls the root font size based on the device type.

DeviceVariableDescription
Mobile--cid-base-font-size-mobileBase font size for mobile devices.
Tablet--cid-base-font-size-tabletBase font size for tablets.
Desktop--cid-base-font-size-desktopBase font size for desktops.

Base Font Color​

Sets the base text color for different screen sizes.

DeviceVariableDescription
Mobile--cid-base-font-color-mobileText color on mobile devices.
Tablet--cid-base-font-color-tabletText color on tablets.
Desktop--cid-base-font-color-desktopText color on desktops.

🧩 Headings​

Font Size​

Specifies the font size for headings across devices.

DeviceVariableDescription
Mobile--cid-font-size-heading-mobileHeading font size on mobile.
Tablet--cid-font-size-heading-tabletHeading font size on tablet.
Desktop--cid-font-size-heading-desktopHeading font size on desktop.

Margin​

Controls the space around headings

DeviceVariableDescription
Mobile--cid-margin-heading-mobileHeading margin on mobile.
Tablet--cid-margin-heading-tabletHeading margin on tablet.
Desktop--cid-margin-heading-desktopHeading margin on desktop.

Color​

Controls the text color of headings.

DeviceVariableDescription
Mobile--cid-color-heading-mobileHeading color on mobile.
Tablet--cid-color-heading-tabletHeading color on tablet.
Desktop--cid-color-heading-desktopHeading color on desktop.

🧩 Sub-headings​

Font Size​

Specifies the font size for sub-headings across devices.

DeviceVariableDescription
Mobile--cid-font-size-sub-heading-mobileSub-heading font size on mobile.
Tablet--cid-font-size-sub-heading-tabletSub-heading font size on tablet.
Desktop--cid-font-size-sub-heading-desktopSub-heading font size on desktop.

Margin​

Controls the space around sub-headings across devices.

DeviceVariableDescription
Mobile--cid-margin-sub-heading-mobileSub-heading margin on mobile.
Tablet--cid-margin-sub-heading-tabletSub-heading margin on tablet.
Desktop--cid-margin-sub-heading-desktopSub-heading margin on desktop.

Color​

Controls the text color of headings or sub-headings.

DeviceVariableDescription
Mobile--cid-color-sub-heading-mobileSub-heading color on mobile.
Tablet--cid-color-sub-heading-tabletSub-heading color on tablet.
Desktop--cid-color-sub-heading-desktopSub-heading color on desktop.

Boundary Box​

Width​

Determines the width of the boundary box depending on device.

DeviceVariableDescription
Mobile--cid-boundary-box-width-mobileBox width on mobile.
Tablet--cid-boundary-box-width-tabletBox width on tablet.
Desktop--cid-boundary-box-width-desktopBox width on desktop.

Padding​

Sets the internal spacing within the boundary box.

DeviceVariableDescription
Mobile--cid-boundary-box-padding-mobilePadding inside box (mobile).
Tablet--cid-boundary-box-padding-tabletPadding inside box (tablet).
Desktop--cid-boundary-box-padding-desktopPadding inside box (desktop).

Border Width​

Specifies the thickness of the boundary box border.

DeviceVariableDescription
Mobile--cid-boundary-box-border-width-mobileBorder width (mobile).
Tablet--cid-boundary-box-border-width-tabletBorder width (tablet).
Desktop--cid-boundary-box-border-width-desktopBorder width (desktop).

Border Gap​

Defines the space between the borders on top and bottom.

DeviceVariableDescription
Mobile--cid-boundary-box-border-gap-mobileBorder gap (mobile).
Tablet--cid-boundary-box-border-gap-tabletBorder gap (tablet).
Desktop--cid-boundary-box-border-gap-desktopBorder gap (desktop).

Border Color​

Controls the color of the boundary box border for different devices.

DeviceVariableDescription
Mobile--cid-boundary-box-border-color-mobileBorder color (mobile).
Tablet--cid-boundary-box-border-color-tabletBorder color (tablet).
Desktop--cid-boundary-box-border-color-desktopBorder color (desktop).

Background​

Applies background color to boundary boxes.

DeviceVariableDescription
Mobile--cid-boundary-box-background-mobileBackground (mobile).
Tablet--cid-boundary-box-background-tabletBackground (tablet).
Desktop--cid-boundary-box-background-desktopBackground (desktop).

Shadow​

Adds shadow effects to the boundary box for depth.

DeviceVariableDescription
Tablet--cid-boundary-box-shadow-tabletShadow style (tablet).
Desktop--cid-boundary-box-shadow-desktopShadow style (desktop).

πŸ–ΌοΈ Background Image​

Position​

Specifies the placement of background images.

DeviceVariableDescription
Tablet--cid-bg-image-position-tabletBackground image alignment on tablet.
Desktop--cid-bg-image-position-desktopBackground image alignment on desktop.

Rounded​

Indicates if the background image should have rounded corners.

VariableDescription
--cid-bg-image-roundedWhether the image has rounded borders.

Box Shadow​

Applies a shadow to background images for visual layering.

VariableDescription
--cid-bg-image-box-shadow-desktopBox shadow for image on desktop.

Border​

Defines the border applied to background images.

VariableDescription
--cid-bg-image-border-desktopImage border on desktop.

Border Radius​

Specifies how rounded the corners of the image are.

VariableDescription
--cid-bg-image-border-radius-desktopBorder radius of image on desktop.

Margin​

Controls the space around background images.

VariableDescription
--cid-bg-image-margin-desktopMargin around image on desktop.

πŸ–ŒοΈ Miscellaneous​

Logo Height​

Sets the logo's height per device breakpoint.

DeviceVariableDescription
Mobile--cid-logo-height-mobileLogo height on mobile.
Tablet--cid-logo-height-tabletLogo height on tablet.
Desktop--cid-logo-height-desktopLogo height on desktop.

Button Border Radius​

Determines how rounded the buttons appear.

DeviceVariableDescription
Mobile--cid-button-border-radius-mobileBorder radius on buttons (mobile).
Tablet--cid-button-border-radius-tabletBorder radius on buttons (tablet).
Desktop--cid-button-border-radius-desktopBorder radius on buttons (desktop).

Background Color​

Controls the overall page background color.

DeviceVariableDescription
Mobile--cid-background-color-mobilePage background color on mobile.
Tablet--cid-background-color-tabletPage background color on tablet.
Desktop--cid-background-color-desktopPage background color on desktop.

Apply Your Theme in Apps​

Theming allows you to style multiple elements consistently across different pages, such as the login, registration, and progressive profiling pages.

Each theme defines styling elements, which collectively create a unified visual experience:

A theme includes settings for:

Color Palette

Includes primary and accent colors that reflect the brand’s identity, providing a cohesive look across all pages.

Typography

Specifies fonts, sizes, and text styles, ensuring text readability and stylistic consistency.

Button and Input Styles

Standardizes button shapes, hover effects, and input fields, making interactions predictable and reinforcing a professional look.

Spacing, Borders, and Layout:

Defines padding, margins, and alignment, creating an organized structure and ensuring a uniform page layout.

How it would look​

Here are some elegant design examples with their respective code for your new theming style. There are many more for you to explore.

Borderless Bliss​


:root{
--cid-boundary-box-border-width-mobile: 0;
--cid-boundary-box-border-width-tablet: 0;
--cid-boundary-box-border-width-desktop: 0;
}

theming-borderless-bliss

Framed Elegance​


:root{
--cid-boundary-box-border-width-mobile: 3px;
--cid-boundary-box-border-width-tablet: 3px;
--cid-boundary-box-border-width-desktop: 3px;
}

theming-borderless-bliss

Create new Hosted pages themes​

  1. Log in to the cidaas admin dashboard

  2. Click on the Hosted pages > Theming > Create theme.

  3. Edit the required changes (code) that you need on the right editing screen with a suitable custom name.

    hosted-pages-manage

  4. Click on Save.

Mapping themes to the App​

How to create a new app​

  1. Go to the Apps > App settings.

  2. Search for your desired app that you want to map and click on the edit icon.

  3. Select App details > select the theme.

  4. Your theme is mapped to the App.

hosted-pages-theme-selection

This flow allows managing themes for customization purposes. The APIs enable retrieving available themes, accessing specific theme files, and uploading new themes to customize the look and feel of hosted pages.

APIDescriptionLink
Retrieve All Available ThemesThis API is used to display or manage available themes in an interface or configuration pageLink
Retrieve a Specific Theme by FilenameThis endpoint retrieves a specific theme file by filename, allowing direct access to a particular theme fileLink
Upload a New ThemeThis API is used for dynamically updating or adding new custom themes by uploading CSS files to the server.Link

Need Support?​

Please contact us directly on our support page