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

.homey-title

.homey-subtitle

Example

By using the homey-header class you create spacing and a line between your settings and title(s).

Forms

Start a new form by using the homey-form CSS class.

CSS class
HTML

.homey-form

Example

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

.homey-form-legend

Example

Use a homey-form-legend to create headings between form elements.

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

Example

The yellow space marks the spacing above and below each .homey-form-group class

Basic input & label

CSS class
HTML

.homey-form-label

.homey-form-input

Can be used for the input types: text, number, password and url .

Example

Basic label + input example

Radio input

Radio set

CSS class
HTML

.homey-form-radio-set

.homey-form-radio-set-title

Radio buttons

CSS class
HTML

.homey-form-radio

.homey-form-radio-input

.homey-form-radio-checkmark

.homey-form-radio-text

Example

Radio buttons should be grouped in fieldsets. You can use multiple levels of fieldsets with different classes.

Checkbox input

Checkbox set

CSS class
HTML

.homey-form-checkbox-set

.homey-form-checkbox-set-title

Checkboxes

CSS class
HTML

.homey-form-checkbox

.homey-form-checkbox-input

.homey-form-checkbox-checkmark

.homey-form-checkbox-text

Example

Select

CSS class
HTML

.homey-form-select

Example

Textarea

CSS class
HTML

.homey-form-textarea

Example

Buttons

Button variants

Using multiple button variants: Each button class starts with .homey-button this you can follow up with color variants such as: -primary ,-secondary, -danger. You can further adjust the button style by adding -full, -shadow, -small parameters. This way you end up having a class such as .homey-button-primary-shadow-full.

CSS class
HTML

.homey-button-primary

.homey-button-primary-full

.homey-button-primary-shadow

.homey-button-primary-shadow-full

.homey-button-transparent

v8.1.1

.homey-button-secondary-shadow

v8.1.1

.homey-button-danger-shadow

v8.1.1

.homey-button-small

Example

.homey-button-primary-full
.homey-button-secondary-shadow
.homey-button-danger-shadow

Disabled state

CSS class
HTML

.homey-button-{variant}.is-disabled

.homey-button-{variant}[disabled=disabled]

Example

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

Loading state

CSS class
HTML

.homey-button-primary-{variant}.is-loading

Example

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

Last updated

Was this helpful?