Skip to main content

CSS Reference

This document provides a reference for the CSS variables used in Ory Elements. You can use these variables to customize the look and feel of your application.

CSS Variables Reference

CSS VariableDescription
--ui-100Default: #f1f5f9
--ui-200Default: #e2e8f0
--ui-300Default: #cbd5e1
--ui-400Default: #94a3b8
--ui-50Default: #f8fafc
--ui-500Default: #64748b
--ui-600Default: #475569
--ui-700Default: #334155
--ui-800Default: #1e293b
--ui-900Default: #0f172a
--ui-950Default: #020617
--ui-blackDefault: #000000
--ui-dangerDefault: #dc2626
--ui-successDefault: #22c55e
--ui-transparentDefault: #ffffff00
--ui-warningDefault: #eab308
--ui-whiteDefault: #ffffff
--brand-100Default: ui-100
--brand-200Default: ui-300
--brand-300Default: ui-500
--brand-400Default: ui-700
--brand-50Default: ui-50
--brand-500Default: ui-900
--brand-600Default: ui-white
--brand-700Default: ui-200
--brand-800Default: ui-400
--brand-900Default: ui-600
--brand-950Default: ui-800
--button-identifier-background-defaultThe background color for the identifier button in its default state.
Default: interface-background-brand-secondary
--button-identifier-background-hoverThe background color for the identifier button when hovered.
Default: interface-background-brand-secondary-hover
--button-identifier-border-border-defaultThe border color for the identifier button in its default state.
Default: interface-border-brand-brand
--button-identifier-border-border-hoverThe border color for the identifier button when hovered.
Default: interface-border-brand-brand
--button-identifier-foreground-defaultThe text color for the identifier button in its default state.
Default: interface-foreground-brand-on-secondary
--button-identifier-foreground-hoverThe text color for the identifier button when hovered.
Default: interface-foreground-brand-on-secondary
--button-link-brand-brandThe text color for links that are styled in the brand color
Default: interface-foreground-brand-primary
--button-link-brand-brand-hoverThe text color for links that are styled in the brand color when hovered.
Default: interface-foreground-default-primary
--button-link-default-primaryThe text color for default primary links.
Default: interface-foreground-default-primary
--button-link-default-primary-hoverThe text color for default primary links when hovered.
Default: interface-foreground-brand-primary
--button-link-default-secondaryThe text color for default secondary links.
Default: interface-foreground-default-secondary
--button-link-default-secondary-hoverThe text color for default secondary links when hovered.
Default: interface-foreground-default-tertiary
--button-link-disabled-disabledThe text color for links that are disabled.
Default: interface-foreground-disabled-disabled
--button-primary-background-defaultThe background color for primary buttons in their default state.
Default: interface-background-brand-primary
--button-primary-background-disabledThe background color for primary buttons when disabled.
Default: interface-background-disabled-disabled
--button-primary-background-hoverThe background color for primary buttons when hovered.
Default: interface-background-brand-primary-hover
--button-primary-border-defaultThe border color for primary buttons in their default state.
Default: interface-border-default-none
--button-primary-border-disabledThe border color for primary buttons when disabled.
Default: interface-border-disabled-disabled
--button-primary-border-hoverThe border color for primary buttons when hovered.
Default: interface-border-default-none
--button-primary-foreground-defaultThe text color for primary buttons in their default state.
Default: interface-foreground-brand-on-primary
--button-primary-foreground-disabledThe text color for primary buttons when disabled.
Default: interface-foreground-disabled-on-disabled
--button-primary-foreground-hoverThe text color for primary buttons when hovered.
Default: interface-foreground-brand-on-primary
--button-secondary-background-defaultThe background color for secondary buttons in their default state.
Default: interface-background-default-primary
--button-secondary-background-disabledThe background color for secondary buttons when disabled.
Default: interface-background-disabled-disabled
--button-secondary-background-hoverThe background color for secondary buttons when hovered.
Default: interface-background-default-primary-hover
--button-secondary-border-defaultThe border color for secondary buttons in their default state.
Default: interface-border-default-primary
--button-secondary-border-disabledThe border color for secondary buttons when disabled.
Default: interface-border-disabled-disabled
--button-secondary-border-hoverThe border color for secondary buttons when hovered.
Default: interface-border-default-primary
--button-secondary-foreground-defaultThe text color for secondary buttons in their default state.
Default: interface-foreground-default-primary
--button-secondary-foreground-disabledThe text color for secondary buttons when disabled.
Default: interface-foreground-disabled-on-disabled
--button-secondary-foreground-hoverThe text color for secondary buttons when hovered.
Default: interface-foreground-default-secondary
--button-social-background-defaultThe background color for social buttons in their default state.
Default: interface-background-default-primary
--button-social-background-disabledThe background color for social buttons when disabled.
Default: interface-background-disabled-disabled
--button-social-background-generic-providerThe background color for social buttons for generic providers.
Default: interface-background-default-inverted
--button-social-background-hoverThe background color for social buttons when hovered.
Default: interface-background-default-primary-hover
--button-social-border-defaultThe border color for social buttons in their default state.
Default: interface-border-default-primary
--button-social-border-disabledThe border color for social buttons when disabled.
Default: interface-border-disabled-disabled
--button-social-border-generic-providerThe border color for social buttons for generic providers.
Default: interface-border-default-none
--button-social-border-hoverThe border color for social buttons when hovered.
Default: interface-border-default-primary
--button-social-foreground-defaultThe text color for social buttons in their default state.
Default: interface-foreground-default-primary
--button-social-foreground-disabledThe text color for social buttons when disabled.
Default: interface-foreground-disabled-on-disabled
--button-social-foreground-generic-providerThe text color for social buttons for generic providers.
Default: interface-foreground-default-inverted
--button-social-foreground-hoverThe text color for social buttons when hovered.
Default: interface-foreground-default-secondary
--checkbox-background-checkedThe background color for checkboxes when checked.
Default: interface-background-brand-primary
--checkbox-background-defaultThe background color for checkboxes when unchecked.
Default: interface-background-default-secondary
--checkbox-border-checkbox-border-checkedThe border color for checkboxes when checked.
Default: interface-border-brand-brand
--checkbox-border-checkbox-border-defaultThe border color for checkboxes when unchecked.
Default: interface-border-default-primary
--checkbox-foreground-checkedThe color of the checkmark in checkboxes when checked.
Default: interface-foreground-brand-on-primary
--checkbox-foreground-defaultThe text color for checkboxes when unchecked.
Default: interface-foreground-default-primary
--form-background-defaultThe default background color for forms.
Default: interface-background-default-primary
--form-border-defaultThe default border color for forms.
Default: interface-border-default-primary
--input-background-defaultThe default background color for input fields.
Default: interface-background-default-primary
--input-background-disabledThe background color for input fields when disabled.
Default: interface-background-disabled-disabled
--input-background-hoverThe background color for input fields when hovered.
Default: interface-background-default-primary-hover
--input-border-defaultThe default border color for input fields.
Default: interface-border-default-primary
--input-border-disabledThe border color for input fields when disabled.
Default: interface-border-disabled-disabled
--input-border-focusThe border color for input fields when focused.
Default: interface-border-brand-brand
--input-border-hoverThe border color for input fields when hovered.
Default: interface-border-default-primary
--input-foreground-disabledThe text color for input fields when disabled.
Default: interface-foreground-disabled-on-disabled
--input-foreground-primaryThe primary text color for input fields.
Default: interface-foreground-default-primary
--input-foreground-secondaryThe secondary text color for input fields.
Default: interface-foreground-default-secondary
--input-foreground-tertiaryThe tertiary text color for input fields.
Default: interface-foreground-default-tertiary
--interface-background-brand-primaryThe background color for interface elements styled with the brand primary color.
Default: brand-500
--interface-background-brand-primary-hoverThe background color for interface elements styled with the brand primary color when hovered.
Default: brand-400
--interface-background-brand-secondaryThe background color for interface elements styled with the brand secondary color.
Default: brand-50
--interface-background-brand-secondary-hoverThe background color for interface elements styled with the brand secondary color when hovered.
Default: brand-100
--interface-background-default-invertedThe background color for interface elements in their default inverted state.
Default: ui-900
--interface-background-default-inverted-hoverThe background color for interface elements in their default inverted state when hovered.
Default: ui-800
--interface-background-default-noneUnused
Default: ui-transparent
--interface-background-default-primaryThe background color for primary interface elements in their default state.
Default: ui-white
--interface-background-default-primary-hoverThe background color for primary interface elements when hovered.
Default: ui-50
--interface-background-default-secondaryThe background color for secondary interface elements in their default state.
Default: ui-50
--interface-background-default-secondary-hoverThe background color for secondary interface elements when hovered.
Default: ui-200
--interface-background-default-tertiaryThe background color for tertiary interface elements in their default state.
Default: ui-200
--interface-background-default-tertiary-hoverThe background color for tertiary interface elements when hovered.
Default: ui-300
--interface-background-disabled-disabledThe background color for interface elements when disabled.
Default: ui-200
--interface-background-validation-dangerThe background color for interface elements indicating danger or error.
Default: ui-danger
--interface-background-validation-successThe background color for interface elements indicating success.
Default: ui-success
--interface-background-validation-warningThe background color for interface elements indicating a warning.
Default: ui-warning
--interface-border-brand-brandThe border color for interface elements styled with the brand color.
Default: brand-500
--interface-border-default-invertedThe border color for interface elements in their default inverted state.
Default: ui-700
--interface-border-default-noneUnused
Default: ui-transparent
--interface-border-default-primaryThe border color for primary interface elements in their default state.
Default: ui-300
--interface-border-disabled-disabledThe border color for interface elements when disabled.
Default: ui-300
--interface-border-validation-dangerThe border color for interface elements indicating danger or error.
Default: ui-danger
--interface-border-validation-successThe border color for interface elements indicating success.
Default: ui-success
--interface-border-validation-warningThe border color for interface elements indicating a warning.
Default: ui-warning
--interface-foreground-brand-on-primaryThe text color for interface elements styled with the brand primary color.
Default: brand-50
--interface-foreground-brand-on-secondaryThe text color for interface elements styled with the brand secondary color.
Default: brand-950
--interface-foreground-brand-primaryThe text color for brand colored interface elements in their primary state.
Default: brand-500
--interface-foreground-brand-secondaryThe text color for brand colored interface elements in their secondary state.
Default: brand-50
--interface-foreground-default-invertedThe text color for interface elements in their default inverted state.
Default: ui-white
--interface-foreground-default-primaryThe text color for primary interface elements in their default state.
Default: ui-900
--interface-foreground-default-secondaryThe text color for secondary interface elements in their default state.
Default: ui-700
--interface-foreground-default-tertiaryThe text color for tertiary interface elements in their default state.
Default: ui-500
--interface-foreground-disabled-disabledThe text color for interface elements when disabled.
Default: ui-300
--interface-foreground-disabled-on-disabledThe text color for interface elements when disabled, specifically for elements that are on a disabled background.
Default: ui-400
--interface-foreground-validation-dangerThe text color for interface elements indicating danger or error.
Default: ui-danger
--interface-foreground-validation-successThe text color for interface elements indicating success.
Default: ui-success
--interface-foreground-validation-warningThe text color for interface elements indicating a warning.
Default: ui-warning
--ory-background-defaultThe background color for the Ory badge.
Default: interface-background-default-primary
--ory-border-defaultThe border color for the Ory badge.
Default: interface-border-default-primary
--ory-foreground-defaultThe text color for the Ory badge.
Default: interface-foreground-default-primary
--radio-background-checkedUnused
Default: interface-background-brand-primary
--radio-background-defaultUnused
Default: interface-background-default-secondary
--radio-border-checkedUnused
Default: interface-border-brand-brand
--radio-border-defaultUnused
Default: interface-border-default-primary
--radio-foreground-checkedUnused
Default: interface-foreground-brand-on-primary
--radio-foreground-defaultUnused
Default: interface-foreground-default-primary
--toggle-background-checkedThe background color for toggles when checked.
Default: interface-background-brand-primary
--toggle-background-defaultThe background color for toggles when unchecked.
Default: interface-background-default-secondary
--toggle-border-checkedThe border color for toggles when checked.
Default: interface-border-default-none
--toggle-border-defaultThe border color for toggles when unchecked.
Default: interface-border-default-primary
--toggle-foreground-checkedThe text color for toggles when checked.
Default: interface-foreground-brand-on-primary
--toggle-foreground-defaultThe text color for toggles when unchecked.
Default: interface-foreground-brand-primary

Visualizing CSS Variables Dependencies