Saltar al contenido principal

Lista de tokens de diseño

Tokens​

Los tokens de diseño son la única fuente de información que utilizamos para nombrar y almacenar las decisiones de diseño, como el color, la tipografía, el espaciado, la altura de la línea y la opacidad. El Jutro Design System contiene más de 1000 decisiones sobre los elementos y la composición y disposición de la interfaz de usuario. Los tokens de diseño son la forma en que registramos estas decisiones.

Niveles de tokens de diseño​

Hay tres niveles de tokens de diseño:

  • Tokens globales: Representan las opciones a las que hacen referencia los tokens en otros niveles.**** Un ejemplo son los colores de marca.
  • Tokens semánticos: Tienen un significado semántico.**** Por ejemplo, definen el color de los mensajes de error.
  • Tokens de componentes: Son específicos de los componentes de Jutro Design System.**** Un ejemplo es un token que determina el color del borde para el estado activo de los botones secundarios.

Las siguientes tablas contienen una lista seleccionada de tokens de diseño estratégico. Esta lista se centra principalmente en el nivel semántico para ayudarle a comprender e implementar los temas de la manera más sencilla. Cada token de este subconjunto incluye su nombre y una descripción de uso para ayudarle a encontrar el token adecuado para su situación.

Color​

Texto​

Token and descriptionIntroduced
jds.color.text.regular
Text color
10.0
jds.color.text.subtle
Subtle text color
10.0
jds.color.text.inverse
Inverse text color
10.0
jds.color.text.brand
Brand color for text
10.0
jds.color.text.brand-hover
Brand color for hover state of text
10.0
jds.color.text.brand-active
Brand color for active state of text
10.0
jds.color.text.brand-accent-1
Brand accent 1 color for text
10.0
jds.color.text.brand-accent-2
Brand accent 2 color for text
10.0
jds.color.text.error
Error color for text
10.0
jds.color.text.information
Information color for text
10.0
jds.color.text.success
Success color for text
10.0
jds.color.text.warning
Warning color for text
10.0
jds.color.text.required
Color for indicating required action, an asterisk by default
10.0
jds.color.text.link.default
Color for link text
10.0
jds.color.text.link.hover
Color for hover state of link text
10.0
jds.color.text.link.active
Color for active state of link text
10.0
jds.color.text.link.visited
Color for visited state of link text
10.3
jds.color.text.link.visited-hover
Color for visited hover state of link text
10.3
jds.color.text.link.visited-active
Color for visited active state of link text
10.3
jds.color.text.link-default-inverse
Color for inverse link text
10.11
jds.color.text.link-inverse-hover
Color for hover state of inverse link text
10.11
jds.color.text.link-inverse-active
Color for active state of inverse link text
10.11

Ícono{#icon}​

Fondo​

Token and descriptionIntroduced
jds.color.background.zebra
Background color for alternate base layer
10.12
jds.color.background.blockquote
Background color for blockquote
10.11
jds.color.background.neutral
Neutral background color
10.0
jds.color.background.neutral-hover
Neutral background color hover state
10.0
jds.color.background.neutral-active
Neutral background color active state
10.0
jds.color.background.neutral-subtle
Light neutral background color
10.0
jds.color.background.neutral-subtle-hover
Light neutral background color hover state
10.0
jds.color.background.neutral-subtle-active
Light neutral background color active state
10.0
jds.color.background.neutral-inverse
Inverse neutral background color
10.0
jds.color.background.page
Background color for page
10.0
jds.color.background.progress
Background color for progress status
10.3
jds.color.background.track
Background color for track element
10.0
jds.color.background.brand
Brand color for background
10.0
jds.color.background.brand-hover
Brand color for hover state of background
10.0
jds.color.background.brand-active
Brand color for active state of background
10.0
jds.color.background.brand-subtle
Light brand color for background
10.0
jds.color.background.brand-subtle-hover
Light brand color for background hover
10.0
jds.color.background.brand-subtle-active
Light brand color for background active
10.0
jds.color.background.brand-accent-1
Brand accent 1 color for background
10.0
jds.color.background.brand-accent-1-hover
Brand accent 1 color for hover state of background
10.0
jds.color.background.brand-accent-1-active
Brand accent 1 color for active state of background
10.0
jds.color.background.brand-accent-1-subtle
Light brand accent 1 color
10.0
jds.color.background.brand-accent-1-subtle-hover
Light brand accent 1 color hover
10.0
jds.color.background.brand-accent-1-subtle-active
Light brand accent 1 color active
10.0
jds.color.background.brand-accent-2
Brand accent 2 color for background
10.0
jds.color.background.brand-accent-2-hover
Brand accent 2 color for hover state of background
10.0
jds.color.background.brand-accent-2-active
Brand accent 2 color for active state of background
10.0
jds.color.background.brand-accent-2-subtle
Light brand accent 2 color for background
10.0
jds.color.background.brand-accent-2-subtle-hover
Light brand accent 2 color for hover state of background
10.0
jds.color.background.brand-accent-2-subtle-active
Light brand accent 2 color for active state of background
10.0
jds.color.background.error
Background color for error
10.0
jds.color.background.information
Background color for information
10.0
jds.color.background.success
Background color for success
10.0
jds.color.background.warning
Background color for warning
10.0
jds.color.background.error-subtle
Light background color for error
10.0
jds.color.background.information-subtle
Light background color for information
10.0
jds.color.background.success-subtle
Light background color for success
10.0
jds.color.background.warning-subtle
Light background color for warning
10.0
jds.color.background.selected
Background color indicating a selected state
10.0
jds.color.background.selected-hover
Background color indicating a selected hover state
10.0
jds.color.background.selected-active
Background color indicating a selected active state
10.0
jds.color.background.selected-subtle
Light color indicating a selected state
10.0
jds.color.background.selected-subtle-hover
Light color indicating a selected hover state
10.0
jds.color.background.selected-subtle-active
Light color indicating a selected active state
10.0
jds.color.background.input
Background color for inputs
10.0
jds.color.background.input-hover
Background color for hover state of inputs
10.0
jds.color.background.input-active
Background color for active state of inputs
10.0
jds.color.background.input-read-only
Background color for read-only state of inputs
10.0

Borde​

Token and descriptionIntroduced
jds.color.border.blockquote
Border color for blockquote
10.11
jds.color.border.regular
Default border color for UI elements - Formerly Border
10.0
jds.color.border.inverse
Inverse border color for UI elements
10.0
jds.color.border.separator
Border color for separator
10.0
jds.color.border.selected
Border color indicating a selected state
10.0
jds.color.border.selected-hover
Border color indicating a selected hover state
10.0
jds.color.border.selected-active
Border color indicating a selected active state
10.0
jds.color.border.input
Border color for inputs
10.11
jds.color.border.brand
Brand color for border
10.0
jds.color.border.brand-hover
Brand color for hover state of border
10.0
jds.color.border.brand-active
Brand color for active state of border
10.0
jds.color.border.brand-accent-1
Brand accent 1 color for border
10.0
jds.color.border.brand-accent-1-hover
Brand accent 1 color for hover state of border
10.0
jds.color.border.brand-accent-1-active
Brand accent 1 color for active state of border
10.0
jds.color.border.brand-accent-2
Brand accent 2 color for border
10.0
jds.color.border.brand-accent-2-hover
Brand accent 2 color for hover state of border
10.0
jds.color.border.brand-accent-2-active
Brand accent 2 color for active state of border
10.0
jds.color.border.focus
Border color used to indicate focus state
10.0
jds.color.border.focus-inverse
Border inverse color used to indicate focus state over a dark background
10.0
jds.color.border.error
Border color for error
10.0
jds.color.border.success
Border color for success
10.0
jds.color.border.information
Border color for information
10.0
jds.color.border.warning
Border color for warning
10.0

Interacción​

Token and descriptionIntroduced
jds.color.interaction-overlay.hover
Overlay to indicate hover state when a background color cannot change, such as images
10.0
jds.color.interaction-overlay.active
Overlay to indicate active state when a background color cannot change, such as images
10.0

Tipografía​

Fuente​

Token and descriptionIntroduced
jds.font.hero.1
Font properties for hero 1 text
10.11
jds.font.hero.2
Font properties for hero 2 text
10.11
jds.font.hero.3
Font properties for hero 3 text
10.11
jds.font.display
Font properties for display text
10.11
jds.font.heading.1
Font properties for heading level 1
10.11
jds.font.heading.2
Font properties for heading level 2
10.11
jds.font.heading.3
Font properties for heading level 3
10.11
jds.font.heading.4
Font properties for heading level 4
10.11
jds.font.heading.5
Font properties for heading level 5
10.11
jds.font.heading.6
Font properties for heading level 6
10.11
jds.font.body.large
Font properties for large body text
10.11
jds.font.body.medium
Font properties for medium body text
10.11
jds.font.body.small
Font properties for small body text
10.11
jds.font.body.x-small
Font properties for extra-small body text
10.11
jds.font.link.default
Font properties for default link text
10.11
jds.font.link.hover
Font properties for link text hover state
10.11
jds.font.link.active
Font properties for link text active state
10.11
jds.font.link.visited
Font properties for visited link text
10.11
jds.font.eyebrow.1
Font properties for eyebrow 1 text
10.11
jds.font.eyebrow.2
Font properties for eyebrow 2 text
10.11
jds.font.eyebrow.3
Font properties for eyebrow 3 text
10.11
jds.font.label.large
Font properties for large label text
10.11
jds.font.label.large-strong
Font properties for large strong label text
10.11
jds.font.label.large-stronger
Font properties for large stronger label text
10.11
jds.font.label.medium
Font properties for medium label text
10.11
jds.font.label.medium-strong
Font properties for medium strong label text
10.11
jds.font.label.medium-stronger
Font properties for medium stronger label text
10.11
jds.font.label.small
Font properties for small label text
10.11
jds.font.label.small-strong
Font properties for small strong label text
10.11
jds.font.label.small-stronger
Font properties for small stronger label text
10.11
jds.font.label.x-small
Font properties for extra-small label text
10.11
jds.font.label.x-small-stronger
Font properties for extra-small stronger label text
10.11
jds.font.label.x-small-strong
Font properties for extra-small strong label text
10.11
jds.font.blockquote.large
Font properties for large blockquote text
10.11
jds.font.blockquote.medium
Font properties for medium blockquote text
10.11
jds.font.blockquote.small
Font properties for small blockquote text
10.11
jds.font.blockquote.x-small
Font properties for extra-small blockquote text
10.11
jds.font.figure-caption.large
Font properties for large figure caption text
10.11
jds.font.figure-caption.medium
Font properties for medium figure caption text
10.11
jds.font.figure-caption.small
Font properties for small figure caption text
10.11
jds.font.figure-caption.x-small
Font properties for extra-small figure caption text
10.11
jds.font.code.large
Font properties for large code text
10.11
jds.font.code.medium
Font properties for medium code text
10.11
jds.font.code.small
Font properties for small code text
10.11
jds.font.code.x-small
Font properties for extra-small code text
10.11

Familia tipográfica​

Token and descriptionIntroduced
jds.font-family.heading
Font family for heading text
10.11
jds.font-family.label
Font family for label text
10.11
jds.font-family.body
Font family for body text
10.11
jds.font-family.monospace
Font family for monospace/code text
10.11
jds.font-family.blockquote
Font family for blockquote
10.11
jds.font-family.figure-caption
Font family for figure caption
10.11

Altura de línea​

Token and descriptionIntroduced
jds.line-height.heading
Line height for heading text
10.11
jds.line-height.label
Line height for label text
10.11
jds.line-height.body
Line height for body text
10.11
jds.line-height.monospace
Line height for monospace/code text
10.11
jds.line-height.blockquote
Line height for blockquote text
10.11
jds.line-height.figure-caption
Line height for figure caption text
10.11

Elevación​

Superficie​

Token and descriptionIntroduced
jds.elevation.surface
Primary background for the UI
10.0
jds.elevation.surface-hover
Primary background hover state for the UI
10.0
jds.elevation.surface-active
Primary background active state for the UI
10.0
jds.elevation.surface-recessed
Secondary background for the UI often used for grouping items
10.0
jds.elevation.surface-raised
Primary background for cards that can be moved
10.0
jds.elevation.surface-raised-hover
Primary background hover state for cards that can be moved
10.0
jds.elevation.surface-raised-active
Primary background active state for cards that can be moved
10.0
jds.elevation.surface-overlay
Background for elements positioned above the UI such as modals, dropdown menus, and dialogs, as well as the background for cards that are in a dragged state
10.0
jds.elevation.surface-overlay-hover
Background hover state for elements positioned above the UI such as modals, dropdown menus, and dialogs, as well as the background for cards that are in a dragged state
10.0
jds.elevation.surface-overlay-active
Background active state for elements positioned above the UI such as modals, dropdown menus, and dialogs, as well as the background for cards that are in a dragged state
10.0

Sombra​

Token and descriptionIntroduced
jds.elevation.shadow.low
Shadow for lowest level
10.0
jds.elevation.shadow.raised
Default shadow used for most components
10.0
jds.elevation.shadow.overlay
Shadow for highest level
10.0
jds.elevation.shadow.overflow
Shadow used when content scrolls underneath a surface
10.0
jds.elevation.shadow.inset
Inset shadow
10.0
jds.elevation.shadow.none
Used to remove an existing shadow.
10.11
jds.focus.shadow.regular
Shadow for focus state on standard elements
10.10
jds.focus.shadow.inverse
Shadow for focus state on inverse elements
10.10
jds.focus.shadow.error
Shadow for focus state on elements with an error
10.10
jds.focus.shadow.error-inverse
Shadow for focus state on inverse elements with an error
10.10
jds.utility.color.shadow.focus.regular
Utility color for regular focus shadow
10.10
jds.utility.color.shadow.focus.inverse
Utility color for inverse focus shadow
10.10
jds.utility.color.shadow.focus.error
Utility color for error focus shadow
10.10
jds.utility.color.shadow.focus.error-inverse
Utility color for inverse error focus shadow
10.10

Opacidad​

Token and descriptionIntroduced
jds.opacity.disabled
Opacity for disabled state
10.0

Espacios​

Los tokens de diseño para el espaciado se nombran según el porcentaje de la unidad de cuadrícula base, que es de 8 píxeles de forma predeterminada. Por ejemplo, el token de diseño jds.space.x150 contendría el valor de 12 píxeles (1,50 multiplicado por la unidad de cuadrícula base de 8 píxeles).

Token and descriptionIntroduced
jds.padding.blockquote
Padding for blockquote
10.11
jds.space.x0
Space for resetting default spacing styles
10.11
jds.space.x025
Spacing used for small and compact elements of UI
10.11
jds.space.x050
Spacing used for small and compact elements of UI
10.11
jds.space.x075
Spacing used for small and compact elements of UI
10.11
jds.space.x100
Spacing used for small and compact elements of UI
10.11
jds.space.x125
Spacing used for small and compact elements of UI
10.11
jds.space.x150
Spacing used for larger and less dense elements of UI
10.11
jds.space.x200
Spacing used for larger and less dense elements of UI
10.11
jds.space.x250
Spacing used for larger and less dense elements of UI
10.11
jds.space.x300
Spacing used for larger and less dense elements of UI
10.11
jds.space.x400
Spacing used for the largest elements of UI and for layout elements
10.11
jds.space.x450
Spacing used for the largest elements of UI and for layout elements
10.11
jds.space.x500
Spacing used for the largest elements of UI and for layout elements
10.11
jds.space.x600
Spacing used for the largest elements of UI and for layout elements
10.11
jds.space.x800
Spacing used for the largest elements of UI and for layout elements
10.11
jds.space.x1000
Spacing used for the largest elements of UI and for layout elements
10.11
jds.space.x1200
Spacing used for the largest elements of UI and for layout elements
10.11
jds.space.negative.x0125
Use to negate parent whitespace or overlap small pieces of UI
10.11

Tamaño​

Los tokens de diseño para el tamaño se nombran según el porcentaje de la unidad de cuadrícula base, que es de 8 píxeles de forma predeterminada. Por ejemplo, el token de diseño jds.size.x025 contendría el valor de 2 píxeles (0,25 multiplicado por la unidad de cuadrícula base de 8 píxeles).

Token and descriptionIntroduced
jds.size.input-height
Default height for input components
10.11
jds.size.x0
Space for resetting default sizing styles
10.11
jds.size.x0125
Size used for small and compact elements of UI
10.11
jds.size.x025
Size used for small and compact elements of UI
10.11
jds.size.x050
Size used for small and compact elements of UI
10.11
jds.size.x100
Size used for small and compact elements of UI
10.11
jds.size.x150
Size used for small and compact elements of UI
10.11
jds.size.x175
Size used for small and compact elements of UI
10.11
jds.size.x200
Size used for small and compact elements of UI
10.11
jds.size.x250
Size used for small and compact elements of UI
10.11
jds.size.x300
Size used for small and compact elements of UI
10.11
jds.size.x350
Size used for small and compact elements of UI
10.11
jds.size.x400
Size used for small and compact elements of UI
10.11
jds.size.x450
Size used for small and compact elements of UI
10.11
jds.size.x500
Size used for larger elements of UI
10.11
jds.size.x600
Size used for larger elements of UI
10.11
jds.size.x700
Size used for larger elements of UI
10.11
jds.size.x800
Size used for larger elements of UI
10.11
jds.size.x1000
Size used for larger elements of UI
10.11

Borde redondeado​

Token and descriptionIntroduced
jds.border-radius.blockquote
Border radius for blockquote
10.11
jds.border-radius.regular
Border radius used by default across the UI
10.0
jds.border-radius.round
Border radius for fully rounded
10.0

Ancho del borde​

Token and descriptionIntroduced
jds.border-width.regular
Regular border width
10.0
jds.border-width.thick
Thick border width
10.0

Otras propiedades de bloques de citas​

Token and descriptionIntroduced
jds.border.blockquote.top
Top border for blockquote
10.11
jds.border.blockquote.right
Right border for blockquote
10.11
jds.border.blockquote.bottom
Bottom border for blockquote
10.11
jds.border.blockquote.left
Left border for blockquote
10.11