Toggle theme

Overview
API
Theme
Examples

NbToggleComponent

NameTheme VariableDefault ValueDescription
toggle-height1.875rem
toggle-width3.125rem
toggle-border-width1px
toggle-border-radius100px
toggle-outline-widthoutline-width0.375rem
toggle-outline-coloroutline-colorrgba(143, 155, 179, 0.16)
toggle-switcher-size1.75rem
toggle-switcher-icon-size0.75rem
toggle-text-font-familytext-subtitle-2-font-familyOpen Sans, sans-serif
toggle-text-font-sizetext-subtitle-2-font-size0.8125rem
toggle-text-font-weighttext-subtitle-2-font-weight600
toggle-text-line-heighttext-subtitle-2-line-height1.5rem
toggle-cursorpointer
toggle-disabled-cursordefault
toggle-basic-text-colortext-basic-color#222b45
toggle-basic-background-colorcolor-basic-transparent-defaultrgba(143, 155, 179, 0.08)
toggle-basic-border-colorcolor-basic-transparent-default-border#8f9bb3
toggle-basic-checked-background-colorcolor-primary-default#3366ff
toggle-basic-checked-border-colorcolor-primary-default-border#3366ff
toggle-basic-checked-switcher-background-colorbackground-basic-color-1#ffffff
toggle-basic-checked-switcher-checkmark-colorcolor-primary-default#3366ff
toggle-basic-focus-background-colorcolor-primary-transparent-focusrgba(51, 102, 255, 0.24)
toggle-basic-focus-border-colorcolor-primary-transparent-focus-border#3366ff
toggle-basic-focus-checked-background-colorcolor-primary-focus#274bdb
toggle-basic-focus-checked-border-colorcolor-primary-focus-border#1a34b8
toggle-basic-hover-background-colorcolor-primary-transparent-hoverrgba(51, 102, 255, 0.16)
toggle-basic-hover-border-colorcolor-primary-transparent-hover-border#3366ff
toggle-basic-hover-checked-background-colorcolor-primary-hover#598bff
toggle-basic-hover-checked-border-colorcolor-primary-hover-border#598bff
toggle-basic-active-background-colorcolor-primary-transparent-activergba(51, 102, 255, 0.24)
toggle-basic-active-border-colorcolor-primary-transparent-active-border#3366ff
toggle-basic-active-checked-background-colorcolor-primary-active#274bdb
toggle-basic-active-checked-border-colorcolor-primary-active-border#274bdb
toggle-basic-disabled-background-colorcolor-basic-transparent-disabledrgba(143, 155, 179, 0.16)
toggle-basic-disabled-border-colorcolor-basic-transparent-disabled-borderrgba(143, 155, 179, 0.24)
toggle-basic-disabled-switcher-background-colorcolor-basic-disabledrgba(143, 155, 179, 0.24)
toggle-basic-disabled-checked-switcher-checkmark-colortext-control-color#ffffff
toggle-basic-disabled-text-colortext-disabled-colorrgba(143, 155, 179, 0.48)
toggle-primary-text-colortext-basic-color#222b45
toggle-primary-background-colorcolor-primary-transparent-defaultrgba(51, 102, 255, 0.08)
toggle-primary-border-colorcolor-primary-transparent-default-border#3366ff
toggle-primary-checked-background-colorcolor-primary-default#3366ff
toggle-primary-checked-border-colorcolor-primary-default-border#3366ff
toggle-primary-checked-switcher-background-colorbackground-basic-color-1#ffffff
toggle-primary-checked-switcher-checkmark-colorcolor-primary-default#3366ff
toggle-primary-focus-background-colorcolor-primary-transparent-focusrgba(51, 102, 255, 0.24)
toggle-primary-focus-border-colorcolor-primary-transparent-focus-border#3366ff
toggle-primary-focus-checked-background-colorcolor-primary-focus#274bdb
toggle-primary-focus-checked-border-colorcolor-primary-focus-border#1a34b8
toggle-primary-hover-background-colorcolor-primary-transparent-hoverrgba(51, 102, 255, 0.16)
toggle-primary-hover-border-colorcolor-primary-transparent-hover-border#3366ff
toggle-primary-hover-checked-background-colorcolor-primary-hover#598bff
toggle-primary-hover-checked-border-colorcolor-primary-hover-border#598bff
toggle-primary-active-background-colorcolor-primary-transparent-activergba(51, 102, 255, 0.24)
toggle-primary-active-border-colorcolor-primary-transparent-active-border#3366ff
toggle-primary-active-checked-background-colorcolor-primary-active#274bdb
toggle-primary-active-checked-border-colorcolor-primary-active-border#274bdb
toggle-primary-disabled-background-colorcolor-basic-transparent-disabledrgba(143, 155, 179, 0.16)
toggle-primary-disabled-border-colorcolor-basic-transparent-disabled-borderrgba(143, 155, 179, 0.24)
toggle-primary-disabled-switcher-background-colorcolor-basic-disabledrgba(143, 155, 179, 0.24)
toggle-primary-disabled-checked-switcher-checkmark-colortext-control-color#ffffff
toggle-primary-disabled-text-colortext-disabled-colorrgba(143, 155, 179, 0.48)
toggle-success-text-colortext-basic-color#222b45
toggle-success-background-colorcolor-success-transparent-defaultrgba(0, 214, 143, 0.08)
toggle-success-border-colorcolor-success-transparent-default-border#00d68f
toggle-success-checked-background-colorcolor-success-default#00d68f
toggle-success-checked-border-colorcolor-success-default-border#00d68f
toggle-success-checked-switcher-background-colorbackground-basic-color-1#ffffff
toggle-success-checked-switcher-checkmark-colorcolor-success-default#00d68f
toggle-success-focus-background-colorcolor-success-transparent-focusrgba(0, 214, 143, 0.24)
toggle-success-focus-border-colorcolor-success-transparent-focus-border#00d68f
toggle-success-focus-checked-background-colorcolor-success-focus#00b887
toggle-success-focus-checked-border-colorcolor-success-focus-border#00997a
toggle-success-hover-background-colorcolor-success-transparent-hoverrgba(0, 214, 143, 0.16)
toggle-success-hover-border-colorcolor-success-transparent-hover-border#00d68f
toggle-success-hover-checked-background-colorcolor-success-hover#2ce69b
toggle-success-hover-checked-border-colorcolor-success-hover-border#2ce69b
toggle-success-active-background-colorcolor-success-transparent-activergba(0, 214, 143, 0.24)
toggle-success-active-border-colorcolor-success-transparent-active-border#00d68f
toggle-success-active-checked-background-colorcolor-success-active#00b887
toggle-success-active-checked-border-colorcolor-success-active-border#00b887
toggle-success-disabled-background-colorcolor-basic-transparent-disabledrgba(143, 155, 179, 0.16)
toggle-success-disabled-border-colorcolor-basic-transparent-disabled-borderrgba(143, 155, 179, 0.24)
toggle-success-disabled-switcher-background-colorcolor-basic-disabledrgba(143, 155, 179, 0.24)
toggle-success-disabled-checked-switcher-checkmark-colortext-control-color#ffffff
toggle-success-disabled-text-colortext-disabled-colorrgba(143, 155, 179, 0.48)
toggle-info-text-colortext-basic-color#222b45
toggle-info-background-colorcolor-info-transparent-defaultrgba(0, 149, 255, 0.08)
toggle-info-border-colorcolor-info-transparent-default-border#0095ff
toggle-info-checked-background-colorcolor-info-default#0095ff
toggle-info-checked-border-colorcolor-info-default-border#0095ff
toggle-info-checked-switcher-background-colorbackground-basic-color-1#ffffff
toggle-info-checked-switcher-checkmark-colorcolor-info-default#0095ff
toggle-info-focus-background-colorcolor-info-transparent-focusrgba(0, 149, 255, 0.24)
toggle-info-focus-border-colorcolor-info-transparent-focus-border#0095ff
toggle-info-focus-checked-background-colorcolor-info-focus#006fd6
toggle-info-focus-checked-border-colorcolor-info-focus-border#0057c2
toggle-info-hover-background-colorcolor-info-transparent-hoverrgba(0, 149, 255, 0.16)
toggle-info-hover-border-colorcolor-info-transparent-hover-border#0095ff
toggle-info-hover-checked-background-colorcolor-info-hover#42aaff
toggle-info-hover-checked-border-colorcolor-info-hover-border#42aaff
toggle-info-active-background-colorcolor-info-transparent-activergba(0, 149, 255, 0.24)
toggle-info-active-border-colorcolor-info-transparent-active-border#0095ff
toggle-info-active-checked-background-colorcolor-info-active#006fd6
toggle-info-active-checked-border-colorcolor-info-active-border#006fd6
toggle-info-disabled-background-colorcolor-basic-transparent-disabledrgba(143, 155, 179, 0.16)
toggle-info-disabled-border-colorcolor-basic-transparent-disabled-borderrgba(143, 155, 179, 0.24)
toggle-info-disabled-switcher-background-colorcolor-basic-disabledrgba(143, 155, 179, 0.24)
toggle-info-disabled-checked-switcher-checkmark-colortext-control-color#ffffff
toggle-info-disabled-text-colortext-disabled-colorrgba(143, 155, 179, 0.48)
toggle-warning-text-colortext-basic-color#222b45
toggle-warning-background-colorcolor-warning-transparent-defaultrgba(255, 170, 0, 0.08)
toggle-warning-border-colorcolor-warning-transparent-default-border#ffaa00
toggle-warning-checked-background-colorcolor-warning-default#ffaa00
toggle-warning-checked-border-colorcolor-warning-default-border#ffaa00
toggle-warning-checked-switcher-background-colorbackground-basic-color-1#ffffff
toggle-warning-checked-switcher-checkmark-colorcolor-warning-default#ffaa00
toggle-warning-focus-background-colorcolor-warning-transparent-focusrgba(255, 170, 0, 0.24)
toggle-warning-focus-border-colorcolor-warning-transparent-focus-border#ffaa00
toggle-warning-focus-checked-background-colorcolor-warning-focus#db8b00
toggle-warning-focus-checked-border-colorcolor-warning-focus-border#b86e00
toggle-warning-hover-background-colorcolor-warning-transparent-hoverrgba(255, 170, 0, 0.16)
toggle-warning-hover-border-colorcolor-warning-transparent-hover-border#ffaa00
toggle-warning-hover-checked-background-colorcolor-warning-hover#ffc94d
toggle-warning-hover-checked-border-colorcolor-warning-hover-border#ffc94d
toggle-warning-active-background-colorcolor-warning-transparent-activergba(255, 170, 0, 0.24)
toggle-warning-active-border-colorcolor-warning-transparent-active-border#ffaa00
toggle-warning-active-checked-background-colorcolor-warning-active#db8b00
toggle-warning-active-checked-border-colorcolor-warning-active-border#db8b00
toggle-warning-disabled-background-colorcolor-basic-transparent-disabledrgba(143, 155, 179, 0.16)
toggle-warning-disabled-border-colorcolor-basic-transparent-disabled-borderrgba(143, 155, 179, 0.24)
toggle-warning-disabled-switcher-background-colorcolor-basic-disabledrgba(143, 155, 179, 0.24)
toggle-warning-disabled-checked-switcher-checkmark-colortext-control-color#ffffff
toggle-warning-disabled-text-colortext-disabled-colorrgba(143, 155, 179, 0.48)
toggle-danger-text-colortext-basic-color#222b45
toggle-danger-background-colorcolor-danger-transparent-defaultrgba(255, 61, 113, 0.08)
toggle-danger-border-colorcolor-danger-transparent-default-border#ff3d71
toggle-danger-checked-background-colorcolor-danger-default#ff3d71
toggle-danger-checked-border-colorcolor-danger-default-border#ff3d71
toggle-danger-checked-switcher-background-colorbackground-basic-color-1#ffffff
toggle-danger-checked-switcher-checkmark-colorcolor-danger-default#ff3d71
toggle-danger-focus-background-colorcolor-danger-transparent-focusrgba(255, 61, 113, 0.24)
toggle-danger-focus-border-colorcolor-danger-transparent-focus-border#ff3d71
toggle-danger-focus-checked-background-colorcolor-danger-focus#db2c66
toggle-danger-focus-checked-border-colorcolor-danger-focus-border#b81d5b
toggle-danger-hover-background-colorcolor-danger-transparent-hoverrgba(255, 61, 113, 0.16)
toggle-danger-hover-border-colorcolor-danger-transparent-hover-border#ff3d71
toggle-danger-hover-checked-background-colorcolor-danger-hover#ff708d
toggle-danger-hover-checked-border-colorcolor-danger-hover-border#ff708d
toggle-danger-active-background-colorcolor-danger-transparent-activergba(255, 61, 113, 0.24)
toggle-danger-active-border-colorcolor-danger-transparent-active-border#ff3d71
toggle-danger-active-checked-background-colorcolor-danger-active#db2c66
toggle-danger-active-checked-border-colorcolor-danger-active-border#db2c66
toggle-danger-disabled-background-colorcolor-basic-transparent-disabledrgba(143, 155, 179, 0.16)
toggle-danger-disabled-border-colorcolor-basic-transparent-disabled-borderrgba(143, 155, 179, 0.24)
toggle-danger-disabled-switcher-background-colorcolor-basic-disabledrgba(143, 155, 179, 0.24)
toggle-danger-disabled-checked-switcher-checkmark-colortext-control-color#ffffff
toggle-danger-disabled-text-colortext-disabled-colorrgba(143, 155, 179, 0.48)
toggle-control-text-colorcolor-basic-100#ffffff
toggle-control-background-colorcolor-control-transparent-defaultrgba(255, 255, 255, 0.08)
toggle-control-border-colorcolor-control-transparent-default-border#ffffff
toggle-control-checked-background-colorcolor-control-transparent-defaultrgba(255, 255, 255, 0.08)
toggle-control-checked-border-colorcolor-control-transparent-default-border#ffffff
toggle-control-checked-switcher-background-colorcolor-control-default#ffffff
toggle-control-checked-switcher-checkmark-colorcolor-basic-800#222b45
toggle-control-focus-background-colorcolor-control-transparent-focusrgba(255, 255, 255, 0.24)
toggle-control-focus-border-colorcolor-control-transparent-focus-border#ffffff
toggle-control-focus-checked-background-colorcolor-control-transparent-focusrgba(255, 255, 255, 0.24)
toggle-control-focus-checked-border-colorcolor-control-transparent-focus-border#ffffff
toggle-control-hover-background-colorcolor-control-transparent-hoverrgba(255, 255, 255, 0.16)
toggle-control-hover-border-colorcolor-control-transparent-hover-border#ffffff
toggle-control-hover-checked-background-colorcolor-control-transparent-hoverrgba(255, 255, 255, 0.16)
toggle-control-hover-checked-border-colorcolor-control-transparent-hover-border#ffffff
toggle-control-active-background-colorcolor-control-transparent-activergba(255, 255, 255, 0.24)
toggle-control-active-border-colorcolor-control-transparent-active-border#ffffff
toggle-control-active-checked-background-colorcolor-control-transparent-activergba(255, 255, 255, 0.24)
toggle-control-active-checked-border-colorcolor-control-transparent-active-border#ffffff
toggle-control-disabled-background-colorcolor-control-transparent-disabledrgba(143, 155, 179, 0.16)
toggle-control-disabled-border-colorcolor-control-transparent-disabled-borderrgba(143, 155, 179, 0.24)
toggle-control-disabled-switcher-background-colorcolor-basic-transparent-600rgba(143, 155, 179, 0.48)
toggle-control-disabled-checked-switcher-checkmark-colorcolor-basic-100#ffffff
toggle-control-disabled-text-colortext-control-color#ffffff
Checkbox
Previous page
Radio
Next page

Need some help or found an issue?

Ask on Stack Overflow with tag `nebular` or post an issue on GitHub.