How to create Advanced Style Profile in Nintex K2 (Nintex Automation)

Style Profile in Nintex Automation (K2) provides an effective way to customise the look and feel of your Nintex K2 applications, resulting in a more seamless and personalised user experience. With Style Profiles, you can tailor the visual aspects of your applications to match your brand identity or meet specific design specifications. In this blog post, I will walk you through the process of creating a Basic, Intermediate and Advanced Style Profile that will enable you to easily customise the appearance of your applications.

Understanding Style Profiles

Before diving into the creation process, let’s briefly discuss what Style Profiles are in the context of Nintex K2. A Style Profile is a collection of settings that define the visual appearance of Nintex K2 applications. These settings encompass design for various elements such as colours, fonts, spacing, and other styling attributes. By configuring a Style Profile, you can achieve consistency across your applications and ensure a cohesive user experience.

There are 3 levels of creation of Style Profile:

  • Basic This functionality helps the form designer customize the colour palette of items such as hyperlinks, buttons, form and views backgrounds, etc.
  • Intermediate You will need advanced design skills to configure colours for each specific item in your form like titles, calendar’s background colour, dropdown menus, selected item background, etc.
  • Advanced Using the Developer tab, you can link your form to your external CSS and JavaScript files. This enables you to enhance the look and feel of your Style Profile, incorporate contemporary features, and improve web page performance.


Let’s dive in…

Steps to create a Basic Style Profile

Follow these steps to create a basic Style profile in Nintex K2 Five:

Under your project folder, create a folder and name it Style Profiles



advanced style profile k2

Right-click on the folder you created in step 1 and choose New Style Profile



Name your new Style Profile My Basic Style Profile (number 1 on below screenshot)


Main Accent Colour

This colour represents the company’s colour identity. By clicking on number 2, a colour palette will open so you can specify the main colour.



You can choose your preferred colour from the palette, change its transparency from slider (*), and change its brightness from slider (**). Or, you can directly put the colour name or its HEX, HEX8, RGB, RGBA, HSL, or HSLA value in the field below the colour wheel to specify a particular colour (***).

To check what controls are affected when changing the Main Accent Color, go to the Developer tab (only available from version K2 Five 5.6).




Now, we need to save the style profile and go to the form to add our newly created style.

From the form properties panel, you need to:

  • Add the style profile by clicking on the three dots (…)
  • Uncheck the Use Legacy Theme option
  • Save the form



Run the form to see the changes you made to your Style Profile.



Content Background Colour

Changing this colour will affect your form background colour. To follow the best practices, it is better to keep this colour white and it is optional to change its brightness and saturation to make it more intense and darker than the custom white.




Now, the form will appear as follows:


Panel Background Colour

In this section, we can customise the background colour of the views we have added to our form. To get a user-friendly look and feel, it is recommended to choose light colours.


After saving the changes, the form will be displayed as follows:



Now let’s move on to creating an Intermediate Style Profile.

Steps to create an Intermediate Style Profile

To create an Intermediate Style Profile, we need to configure colours for each control. I will guide you through the process of customising the colours of labels, buttons, date pickers, and dropdown menus. Firstly, go to the style profile we have created and click on the Advanced link.

This will open a sidebar of all the elements of all controls that can be customised.

Type the name of the control you need to customise in the search box to get all its properties. Also, you can at any time Reset All the properties to drop all changes.

Calendar Customisation

Type “Calendar” in the search box.



Now, we will apply the rgba colour code (4,58,74,1) to the properties: Calendar Background Color, Calendar Item Text Color, and Calendar Navigation Button Background Color. We will also set the Calendar Text Color to white.



This is how the calendar controls will look after saving the changes.



Buttons Customisation

Now, we are going to apply the colour code rgba(124, 44, 132, 1) to the Button Background Color property. Also, we will set the Button Border Color to rgba(4, 58, 74, 1).


The form final result is shown below:


Creating an Advanced Style Profile

For advanced form customisation, Nintex K2 Style Profiles enables the use of customised external resources. Cascading Style Sheets (CSS) and JavaScript (JS) can be used. This enhances the look and feel of your style profile, and the optimisation of your web page behaviour.

There are two ways to add external CSS and JS files:

i. Save the files on your server folders.

If you are using Nintex K2 Five (on-prem) and have server access, save CSS and JavaScript files in a custom folder.  This folder should be created in  K2 Smartforms Runtime.

Here are the JavaScript and CSS files that we have used for the AMO portal – (a centralised portal that we developed that offers employees access to all applications and data) that could be handy for you.

Download Files →

By adding CSS customisations, you can enhance and modify the layout of your web pages. Additionally, with Advanced Style Profile you can go beyond just changing the colours, you can manipulate various elements in your forms, such as borders, font types, and sizes, background colours, etc…

Moreover, including JS customisations allows you to control how your web page behaves. This feature lets you create the code once and subsequently reuse it in any Smartforms using the specified style profile.

As a best practice, add our external files in this order – JavaScript file comes first, then split CSS sheets into 3 files.

01. AMOStyleProfile.js: this file is responsible for rendering the page and applying the chosen theme on the portal page.
02. AMOStyleProfileVariables.css: In this file, define every single property related to any control, view, or list used in our forms. Usually, we build this file by extracting the CSS properties of any K2 form by inspecting the web page. Then change the properties in that CSS, save it as a style sheet, and add it to your style profile.

Style Profile


03. AMOStyleProfile.css: In this file, we create our themes and apply our variables to each theme. This allows us to apply a different theme each time we change the dropdown selected value.

Note: You must add the relative URLs of your external files. The relative URL will look like: /Runtime/Styles/StyleProfilesWorkshop/01_AMOStyleProfile.js


ii. Or you can post your CSS and JavaScript files to any online directory and paste their URLs as external files.



Now, let’s have a look at some examples where we have configured our style profile and applied it to our solutions.

Case: Dynamic Portal

In this project, we’ve developed a dynamic portal that empowers our customers with the flexibility to customise the appearance and functionality of their main portal. They can effortlessly adjust the color scheme from a predefined dropdown menu, allowing them to tailor their experience to their preferences.


advanced style profile k2


As you change the value of the dropdown, another style will be applied to your portal and forms. All these styles and render operations are defined in the style sheets (CSS and JavaScript files) you included in your style profile.


advanced style profile k2


With the Nintex K2 Style Profile, you can also manage the transition between the languages in your forms, reports, and portal.


advanced style profile k2

Final Note

In conclusion, creating a basic style profile in Nintex K2 Five is a straightforward process. It allows you to customise the visual appearance of your applications with ease. Furthermore, by defining colours, you can achieve consistency and coherence across your applications while reflecting your brand identity or design preferences with no need for any coding skills. With style profiles, you have the flexibility to tailor the user experience to meet the unique requirements of your organisation or project, enhancing usability and aesthetics in the process. Hence, start leveraging style profiles in Nintex K2 Five today to elevate the design of your applications and leave an amazing impression on your users.

Need any advice or help with using Style Profile? Get in touch with our team!

* Source

Try our FREE 30-day Proof of Concept

We take the reins to build you a POC mirroring the final app in under 30 days.
Your vision, Our speed.

Week 1

icon for web-01

Discovery Session

We gather information about your needs and objectives of your apps. Unsure about the app you need? We will carefully assess your top challenges and provide expert guidance on the perfect solution tailored to your success.

Week 2

icon for web-02

Prototype Validation

We create wireframes and an interactive prototype to visualise the app flow and make changes as per your feedback.

Week 3

icon for web-03

Scope, Estimation, and Planning

Estimation of the project deliverables including the resources, time, and costs involved.

Week 4

icon for web-04

Proof of Concept Demo

Showcasing POC to relevant stakeholders illustrating the functionalities and potential of the app to meet business objectives.