Links

HTML & CSS Styling

The Homey Style Library is the key to a consistent user experience across all Homey Apps. We recommend to use this library above custom styling.
These CSS classes are available on Homey Cloud, and on Homey Pro since v8.1.0

Header and Titles

For custom pairing screens and app settings you might want to use our default header with title and an optional subtitle.
CSS class
HTML
.homey-header
<header class="homey-header"></header>
.homey-title
<h1 class="homey-title"></h1>
.homey-subtitle
<p class="homey-subtitle"></p>

Example

By using the homey-header class you create spacing and a line between your settings and title(s).
1
<header class="homey-header">
2
<h1 class="homey-title" data-i18n="settings.title">
3
<!-- This will be filled with the translated string with key 'settings.title'. -->
4
</h1>
5
<p class="homey-subtitle" data-i18n="settings.subtitle">
6
<!-- This will be filled with the translated string with key 'settings.subtitle'. -->
7
</p>
8
</header>

Forms

Start a new form by using the homey-form CSS class.
CSS class
HTML
.homey-form
<form class="homey-form"></form>

Example

<form class="homey-form">
<!-- Your form html here -->
</form>

Fieldset and legend

With <fieldset class="homey-form-fieldset"> you can create a new fieldset in your form. A fieldset is useful to create larger sections in your forms. Make sure your always use a <legend class="homey-form-legend"> to give the fieldset a title.
CSS class
HTML
.homey-form-fieldset
<fieldset class="homey-form-fieldset"></fieldset>
.homey-form-legend
<legend class="homey-form-legend"></legend>

Example

Use a homey-form-legend to create headings between form elements.
1
<fieldset class="homey-form-fieldset">
2
<legend class="homey-form-legend"></legend>
3
<!-- ... -->
4
</fieldset>

Groups

Use <div class="homey-form-group"> to create a group combining a label with an input field. Use the homey-form-group class to create equal vertical spacing between all inputs.
CSS class
HTML
.homey-form-group
<div class="homey-form-group"></div>

Example

The yellow space marks the spacing above and below each .homey-form-group class
1
<div class="homey-form-group">
2
<label class="homey-form-label" for="target">label</label>
3
<input class="homey-form-input" id="target" type="text" value=""/>
4
</div>

Basic input & label

CSS class
HTML
.homey-form-label
<label class="homey-form-label" for="target"></label>
.homey-form-input
<input class="homey-form-input" id="target" type="text" value=""/>
Can be used for the input types: text, number, password and url .

Example

Basic label + input example
1
<form class="homey-form">
2
<fieldset class="homey-form-fieldset">
3
<legend class="homey-form-legend">Login data</legend>
4
5
<div class="homey-form-group">
6
<label class="homey-form-label" for="username">Username</label>
7
<input class="homey-form-input" id="username" type="text" value=""/>
8
</div>
9
<div class="homey-form-group">
10
<label class="homey-form-label" for="password">Password</label>
11
<input class="homey-form-input" id="password" type="password" value=""/>
12
</div>
13
<!-- ... -->

Radio input

Radio set

CSS class
HTML
.homey-form-radio-set
<fieldset class="homey-form-radio-set"></fieldset>
.homey-form-radio-set-title
<legend class="homey-form-radio-set-title"></legend>

Radio buttons

CSS class
HTML
.homey-form-radio
<label class="homey-form-radio"></label>
.homey-form-radio-input
<input class="homey-form-radio-input"></input>
.homey-form-radio-checkmark
<span class="homey-form-radio-checkmark"></span>
.homey-form-radio-text
<span class="homey-form-radio-text"></span>

Example

Radio buttons should be grouped in fieldsets. You can use multiple levels of fieldsets with different classes.
1
<form class="homey-form">
2
<!-- ... -->
3
<fieldset class="homey-form-fieldset">
4
<legend class="homey-form-legend">Multiple choice questions</legend>
5
6
<div class="homey-form-group">
7
<fieldset class="homey-form-radio-set">
8
<legend class="homey-form-radio-set-title">Group of radio buttons</legend>
9
10
<label class="homey-form-radio">
11
<input class="homey-form-radio-input" type="radio" name="radio-example"/>
12
<span class="homey-form-radio-checkmark"></span>
13
<span class="homey-form-radio-text">Radio label 1</span>
14
</label>
15
16
<label class="homey-form-radio">
17
<input class="homey-form-radio-input" type="radio" name="radio-example"/>
18
<span class="homey-form-radio-checkmark"></span>
19
<span class="homey-form-radio-text">Radio label 2</span>
20
</label>
21
22
<label class="homey-form-radio">
23
<input class="homey-form-radio-input" type="radio" name="radio-example"/>
24
<span class="homey-form-radio-checkmark"></span>
25
<span class="homey-form-radio-text">Radio label 3</span>
26
</label>
27
</fieldset>
28
</div>
29
<!-- ... -->

Checkbox input

Checkbox set

CSS class
HTML
.homey-form-checkbox-set
<fieldset class="homey-form-checkbox-set"></fieldset>
.homey-form-checkbox-set-title
<legend class="homey-form-radio-checkbox-set-title"></legend>

Checkboxes

CSS class
HTML
.homey-form-checkbox
<label class="homey-form-checkbox"></label>
.homey-form-checkbox-input
<input class="homey-form-checkbox-input"></input>
.homey-form-checkbox-checkmark
<span class="homey-form-checkbox-checkmark"></span>
.homey-form-checkbox-text
<span class="homey-form-checkbox-text"></span>

Example

1
<div class="homey-form-group">
2
<fieldset class="homey-form-checkbox-set">
3
<legend class="homey-form-checkbox-set-title">Group of checkbox buttons</legend>
4
5
<label class="homey-form-checkbox">
6
<input class="homey-form-checkbox-input" type="checkbox" name="checkbox-example"/>
7
<span class="homey-form-checkbox-checkmark"></span>
8
<span class="homey-form-checkbox-text">Checkbox label 1</span>
9
</label>
10
11
<label class="homey-form-checkbox">
12
<input class="homey-form-checkbox-input" type="checkbox" name="checkbox-example"/>
13
<span class="homey-form-checkbox-checkmark"></span>
14
<span class="homey-form-checkbox-text">Checkbox label 2</span>
15
</label>
16
17
<label class="homey-form-checkbox">
18
<input class="homey-form-checkbox-input" type="checkbox" name="checkbox-example"/>
19
<span class="homey-form-checkbox-checkmark"></span>
20
<span class="homey-form-checkbox-text">Checkbox label 3</span>
21
</label>
22
</fieldset>
23
</div>

Select

CSS class
HTML
.homey-form-select
<select class="homey-form-select">
<option value="1">Option 1</option>
</select>

Example

1
<div class="homey-form-group">
2
<label class="homey-form-label" for="select-example">Select your option</label>
3
<select class="homey-form-select" name="select-example" id="select-example">
4
<option value="1">Option 1</option>
5
<option value="2">Option 2</option>
6
<option value="3">Option 3</option>
7
</select>
8
</div>

Textarea

CSS class
HTML
.homey-form-textarea
<textarea class="homey-form-textarea"></textarea>

Example

1
<div class="homey-form-group">
2
<label for="textarea-example-1" class="homey-form-label">Label for textarea</label>
3
<textarea class="homey-form-textarea" name="textarea-example-1" id="textarea-example-1" rows="10"
4
placeholder="type here your text"></textarea>
5
</div>

Buttons

Button variants

CSS class
HTML
.homey-button-primary
<button class="homey-button-primary"></button>
.homey-button-primary-full
<button class="homey-button-primary-full"></button>
.homey-button-primary-shadow
<button class="homey-button-primary-shadow"></button>
.homey-button-primary-shadow-full
<button class="homey-button-primary-shadow-full"></button>
.homey-button-transparent
<button class="homey-button-transparent"></button>

Example

.homey-button-primary-full

Disabled state

CSS class
HTML
.homey-button-{variant}.is-disabled
<button class="homey-button-primary is-disabled"></button>
.homey-button-{variant}[disabled=disabled]
<button class="homey-button-primary" disabled="disabled"></button>

Example

.homey-button-primary-full.is-disabled

Loading state

CSS class
HTML
.homey-button-primary-full.is-loading
<button class="homey-button-primary-full is-loading"></button>

Example

.homey-button-primary-full.is-loading