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.
Last updated
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.
Last updated
These CSS classes are available on Homey Cloud, and on Homey Pro since v8.1.0
For custom pairing screens and app settings you might want to use our default header with title and an optional subtitle.
CSS class | HTML |
---|---|
Start a new form by using the homey-form
CSS class.
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.
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.
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 |
---|---|
CSS class | HTML |
---|---|
CSS class | HTML |
---|---|
CSS class | HTML |
---|---|
CSS class | HTML |
---|---|
CSS class | HTML |
---|---|
CSS class | HTML |
---|---|
CSS class | HTML |
---|---|
CSS class | HTML |
---|---|
CSS class | HTML |
---|---|
CSS class | HTML |
---|---|
CSS class | HTML |
---|---|
CSS class | HTML |
---|---|
.homey-form
.homey-form-fieldset
.homey-form-legend
.homey-form-group
.homey-form-label
.homey-form-input
Can be used for the input types: text
, number
, password
and url
.
.homey-form-radio-set
.homey-form-radio-set-title
.homey-form-radio
.homey-form-radio-input
.homey-form-radio-checkmark
.homey-form-radio-text
.homey-form-checkbox-set
.homey-form-checkbox-set-title
.homey-form-checkbox
.homey-form-checkbox-input
.homey-form-checkbox-checkmark
.homey-form-checkbox-text
.homey-form-select
.homey-form-textarea
.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
.homey-button-
{variant}.is-disabled
.homey-button-{variant}[disabled=disabled]
.homey-button-primary-{variant}.is-loading
.homey-header
.homey-title
.homey-subtitle