Styles, Themes, and Templates
This tutorial will walk you through an introduction to styling and themes by using an KitCloud template as a base.
KitCloud Templates provide you with a complete application flow, allowing you to start from a pre-built app and make customizations as you see it fit.
Check out this tutorial if you want to learn more about:
Working with and customizing KitCloud templates
Creating custom UI components
Styling
Uploading and working with custom assets, such as pictures or fonts
Adding headers
Here are the parts of the Airkit platform that you will be working with:
App Preview: Preview the application flow from the perspective of a user.
AirData Builder: View data collected from users.
Web Flows Builder: Create and modify the UI.
Media Library: Manage assets, including pictures and custom fonts, for use within the application.
Theme Builder: Make stylistic changes that apply throughout your entire application.
Working with a Template
From the Console, click on Create App.
Select the Digital Form for Terms and Conditions template.
Click on Use Template.
The template will open up in Studio.
Click on Preview at the top right corner in order to take a look at the preset application flow.
Previewing the app
Clicking on the Preview button opens the App Preview App Preview Window. This allows you to go through an emulated application Session from a user's perspective. You can also choose the device you want to emulate a Session on, by selecting it on the dropdown list located on the top of the Preview page.
Since this is a web app, click on the web icon to start.
You’ll land on the first Web Page, so click on Sign me up! to move forward.
Enter some dummy information and click on Continue.
You’ll be then directed to the Terms and conditions page, where you will have access to the Terms and Conditions.
Click on the link for the Modal to pop up. You'll see a paragraph of Lorem Ipsum text. This is intended to serve as a placeholder for your own terms and conditions.
Close the Modal to go back to the Web Page.
Select the box to agree to the T&C and click on Submit.
You’ll get a personalized thank you message.
Now, let’s go back to Studio to see how the information entered in App Preview was saved.
Go to AirData Builder and find the information in the
terms_table
App Object:
Editing the Modal
Once a KitCloud template has been used to create an application, it can be edited in the same way that any other application can.
We're going to change the terms and conditions from Lorem Ipsum text to our own custom message.
Go to Web Flows Builder and select the T&C copy Label Control.
In the Properties tab of the Inspector, the text can be changed from General > Text.
You can expand the Expression Editor and type a more appropriate text. Bear in mind that the Expression Editor expects an Airscript expression, therefore the introduced text must be between quotes to designate it a string.
We can also take advantage of the Markdown Web Control to replace the Text Web Control with something more enriched. Delete the Text Web Control called T&C copy by using the bin icon next to its name in the Tree.
Create a new Markdown Control by clicking the '+' Controls button in the toolbar and then selecting the Markdown Web Control from the options that appear.
Rename the Markdown Control " T&C copy" by double clicking on it where it appears in the Tree:
[block:image] { "images": [ { "image": [ "./assets/styles-themes-and-templates-v184-15.GIF", null, "" ], "align": "center", "sizing": "500px" } ] } [/block]
In the Properties tab of the Inspector, enter the following Airscript into the text box under General> Text:
Notice how we formatted each title as Header 2 and Header Header 3 by using Markdown notation. We also assigned a Hyperlink to each of them.
Save the app and go to Preview again to go through the flow one more time and see the changes in the Modal:
Last updated