gbr/ui/theme/lustre/tailwind/token
UI Lustre Tailwind Module
Types
Values
pub fn absolute_to_layout_token(
absolute: theme.UIAbsolute,
) -> List(lustre.UILustre)
Processa o modelo de posicionamento absoluto, já injetando a classe ‘absolute’
pub fn alignment_to_content_token(
align: theme.UIAlignment,
) -> lustre.UILustre
A intenção de alinhamento no eixo transversal (align-content)
pub fn alignment_to_content_tokens(
align: theme.UIAlignment,
) -> List(lustre.UILustre)
pub fn alignment_to_items_token(
align: theme.UIAlignment,
) -> lustre.UILustre
Alinhamento dos itens no eixo transversal (align-items)
pub fn alignment_to_items_tokens(
align: theme.UIAlignment,
) -> List(lustre.UILustre)
pub fn alignment_to_justify_token(
align: theme.UIAlignment,
) -> lustre.UILustre
A intenção de alinhamento no eixo principal (justify-content)
pub fn alignment_to_justify_tokens(
align: theme.UIAlignment,
) -> List(lustre.UILustre)
pub fn aria_expanded(expand: Bool) -> lustre.UILustre
Indica se o componente está expandido ou não, útil para sidebar menu.
pub fn aria_hidden() -> lustre.UILustre
Ocultar elementos visuais (ex: ícones decorativos) de leitores de tela.
pub fn aria_label(label: String) -> lustre.UILustre
Descrever elementos visuais (ex: imagens) em leitores de tela.
pub fn aria_labelledby(id: String) -> lustre.UILustre
Descrever elementos usando ref. a outro elemento, exemplo <h2 id="..." />.
pub fn block_hidden_classes(is_block: Bool) -> lustre.UILustre
pub fn elevation_to_shadow_border_tokens(
elevation: theme.UIElevation,
) -> List(lustre.UILustre)
Converte a elevação do tema em bordas tailwind.
pub fn elevation_to_text_shadow_tokens(
elevation: theme.UIElevation,
) -> List(lustre.UILustre)
pub fn horizontal_to_layout_token(
x: theme.UIAlignment,
) -> lustre.UILustre
Processa o eixo X absoluto.
- Nota: Center usa o translate para centralização.
pub fn layout_flex_class() -> lustre.UILustre
pub fn layout_flex_col_class() -> lustre.UILustre
pub fn layout_flex_inline_class() -> lustre.UILustre
pub fn layout_flex_row_class() -> lustre.UILustre
pub fn layout_flex_tokens(
layout: theme.UILayout,
) -> List(lustre.UILustre)
pub fn layout_flow_to_tokens(
layout: theme.UIFlow,
) -> List(lustre.UILustre)
Tema de layout para tokens tailwind.
pub fn layout_grid_class() -> lustre.UILustre
pub fn layout_grid_tokens(
layout: theme.UILayout,
) -> List(lustre.UILustre)
pub fn layout_sticky_class() -> lustre.UILustre
pub fn layout_to_tokens(
layout: theme.UILayout,
) -> List(lustre.UILustre)
pub fn new_layout_absolute_x(
x: theme.UIAlignment,
) -> theme.UILayout
pub fn new_layout_absolute_x_bottom() -> theme.UILayout
pub fn new_layout_absolute_x_top() -> theme.UILayout
pub fn new_layout_absolute_y(
y: theme.UIAlignment,
) -> theme.UILayout
pub fn new_layout_absolute_y_left() -> theme.UILayout
pub fn new_layout_absolute_y_right() -> theme.UILayout
pub fn rotate_classes(is_rotate: Bool) -> lustre.UILustre
pub fn shape_rounded_to_tokens(
shape: theme.UIShape,
) -> List(lustre.UILustre)
Retorna o token da superfície do tema em arredondamento do tailwind.
pub fn size_absolute_to_border_tokens(
size: theme.UISize,
absolute: theme.UIAbsolute,
) -> List(lustre.UILustre)
pub fn size_absolute_to_rounded_tokens(
size: theme.UISize,
absolute: theme.UIAbsolute,
) -> List(lustre.UILustre)
pub fn size_alignment_to_border_token(
size: theme.UISize,
alignment: theme.UIAlignment,
) -> lustre.UILustre
pub fn size_alignment_to_rounded_token(
size: theme.UISize,
alignment: theme.UIAlignment,
) -> lustre.UILustre
pub fn size_border_end_end(size: theme.UISize) -> lustre.UILustre
pub fn size_icon_height_class(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_icon_max_height_class(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_icon_max_width_class(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_icon_width_class(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_layout_flow_to_border_token(
size: theme.UISize,
layout: theme.UIFlow,
) -> lustre.UILustre
pub fn size_layout_flow_to_rounded_token(
size: theme.UISize,
layout: theme.UIFlow,
) -> lustre.UILustre
pub fn size_layout_to_border_tokens(
size: theme.UISize,
layout: theme.UILayout,
) -> List(lustre.UILustre)
pub fn size_layout_to_rounded_tokens(
size: theme.UISize,
layout: theme.UILayout,
) -> List(lustre.UILustre)
pub fn size_text_to_class(size: theme.UISize) -> lustre.UILustre
Retona o tamanho do tema em tamanho de texto do tailwind.
pub fn size_text_to_classes(
text_token: TextToken,
) -> fn(theme.UISize) -> lustre.UILustre
pub fn size_to_border_all(size: theme.UISize) -> lustre.UILustre
pub fn size_to_border_bottom(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_border_bottom_left(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_border_bottom_right(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_border_end(size: theme.UISize) -> lustre.UILustre
pub fn size_to_border_end_start(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_border_left(size: theme.UISize) -> lustre.UILustre
pub fn size_to_border_right(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_border_start(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_border_start_end(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_border_start_start(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_border_top(size: theme.UISize) -> lustre.UILustre
pub fn size_to_border_top_left(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_border_top_right(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_rounded_all(size: theme.UISize) -> lustre.UILustre
pub fn size_to_rounded_bottom(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_rounded_bottom_left(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_rounded_bottom_right(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_rounded_end(size: theme.UISize) -> lustre.UILustre
pub fn size_to_rounded_end_end(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_rounded_end_start(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_rounded_left(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_rounded_right(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_rounded_start(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_rounded_start_end(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_rounded_start_start(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_rounded_top(size: theme.UISize) -> lustre.UILustre
pub fn size_to_rounded_top_left(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_rounded_top_right(
size: theme.UISize,
) -> lustre.UILustre
pub fn size_to_shadown_token(
size: theme.UISize,
) -> lustre.UILustre
pub fn stack_to_zindex_token(
stacking: theme.UIStacking,
) -> lustre.UILustre
pub fn stack_to_zindex_tokens(
stacking: theme.UIStacking,
) -> List(lustre.UILustre)
Converte o empilhamento do tema no ‘z-index’ do tailwind.
pub fn vertical_to_layout_token(
y: theme.UIAlignment,
) -> lustre.UILustre
Processa o eixo Y absoluto.