Saltearse al contenido

Colors

Todos los colores de Orbit salen de un único JSON en design-tokens — nunca se hardcodean hex sueltos en un componente. Desde ahí se generan automáticamente las CSS custom properties (web) y las constantes de DesignTokens (Kotlin). OrbitColor es la capa semántica sobre esas constantes de Kotlin — mismo espíritu que OrbitIcon para íconos: nombres con significado en vez de valores crudos.

Button Primary

background#E8FF00
background-hover#121622
background-disabled#F3FF6B
text#171717
text-hover#E8FF00

Button Secondary

background#1B2132
background-hover#121622
background-disabled#55658C
text#FFFFFF
text-hover#E8FF00

Button Light

background#FFFFFF
background-hover#121622
background-disabled#E5E7EB
text#121622
text-hover#FFFFFF

Button Ghost

backgroundtransparent
background-hover#2B3550
text#FFFFFF
text-hover#E8FF00
text-disabled#6B7280

Button Destructive

background#DC2626
background-hover#B91C1C
background-disabled#FCA5A5
text#FFFFFF

Surface

Fondos para superficies (page background, cards, paneles) fuera de los botones — lo aplican las plataformas consumidoras (landing, docs, db-builder), no es algo que un componente de Orbit pinte por sí solo. Dark-mode-only por ahora, no hay equivalente para light theme todavía.

background es el fondo principal de contenido; background-secondary es para nav, sidebar y paneles laterales — un tono distinto para separarlos visualmente del contenido.

background#101928
background-secondary#2B3550

Uso

.card {
background: var(--color-surface-background);
}

Referencia

Token (JSON)CSS varKotlin (OrbitColor)Hex
color.button-primary.background--color-button-primary-backgroundButtonPrimaryBackground#E8FF00
color.button-primary.background-hover--color-button-primary-background-hoverButtonPrimaryBackgroundHover#121622
color.button-primary.background-disabled--color-button-primary-background-disabledButtonPrimaryBackgroundDisabled#F3FF6B
color.button-primary.text--color-button-primary-textButtonPrimaryText#171717
color.button-primary.text-hover--color-button-primary-text-hoverButtonPrimaryTextHover#E8FF00
color.button-primary.text-disabled--color-button-primary-text-disabledButtonPrimaryTextDisabled#171717
color.button-secondary.background--color-button-secondary-backgroundButtonSecondaryBackground#1B2132
color.button-secondary.background-hover--color-button-secondary-background-hoverButtonSecondaryBackgroundHover#121622
color.button-secondary.background-disabled--color-button-secondary-background-disabledButtonSecondaryBackgroundDisabled#55658C
color.button-secondary.text--color-button-secondary-textButtonSecondaryText#FFFFFF
color.button-secondary.text-hover--color-button-secondary-text-hoverButtonSecondaryTextHover#E8FF00
color.button-secondary.text-disabled--color-button-secondary-text-disabledButtonSecondaryTextDisabled#FFFFFF
color.button-light.background--color-button-light-backgroundButtonLightBackground#FFFFFF
color.button-light.background-hover--color-button-light-background-hoverButtonLightBackgroundHover#121622
color.button-light.background-disabled--color-button-light-background-disabledButtonLightBackgroundDisabled#E5E7EB
color.button-light.text--color-button-light-textButtonLightText#121622
color.button-light.text-hover--color-button-light-text-hoverButtonLightTextHover#FFFFFF
color.button-light.text-disabled--color-button-light-text-disabledButtonLightTextDisabled#121622
color.button-ghost.background--color-button-ghost-backgroundButtonGhostBackgroundtransparent
color.button-ghost.background-hover--color-button-ghost-background-hoverButtonGhostBackgroundHover#2B3550
color.button-ghost.background-disabled--color-button-ghost-background-disabledButtonGhostBackgroundDisabledtransparent
color.button-ghost.text--color-button-ghost-textButtonGhostText#FFFFFF
color.button-ghost.text-hover--color-button-ghost-text-hoverButtonGhostTextHover#E8FF00
color.button-ghost.text-disabled--color-button-ghost-text-disabledButtonGhostTextDisabled#6B7280
color.button-destructive.background--color-button-destructive-backgroundButtonDestructiveBackground#DC2626
color.button-destructive.background-hover--color-button-destructive-background-hoverButtonDestructiveBackgroundHover#B91C1C
color.button-destructive.background-disabled--color-button-destructive-background-disabledButtonDestructiveBackgroundDisabled#FCA5A5
color.button-destructive.text--color-button-destructive-textButtonDestructiveText#FFFFFF
color.button-destructive.text-hover--color-button-destructive-text-hoverButtonDestructiveTextHover#FFFFFF
color.button-destructive.text-disabled--color-button-destructive-text-disabledButtonDestructiveTextDisabled#7F1D1D
color.surface.background--color-surface-backgroundSurfaceBackground#101928
color.surface.background-secondary--color-surface-background-secondarySurfaceBackgroundSecondary#2B3550