Skip to content

Trail

Tags

WC

attachShadow

Open Shadow DOM and inject markup + CSS.

  • shadow-dom
WC

Basic slot

Project light DOM into the shadow with <slot>.

  • slot
  • composicao
HTML

Button types

submit, button, and reset with clear intent.

  • form
  • button
WC

CE in React

Use the tag in JSX after registering the element.

  • react
  • host
WC

CE in Vue

Side-effect import + tag in a Vue template.

  • vue
  • host
CSS

Center with Flex

Absolute center of a child in the container.

  • centralizar
  • flexbox
CSS

Chip list

Compact tag group with automatic wrap.

  • chip
  • ui
  • flexbox
JS

Class toggle

Toggle visual state via classList.

  • dom
  • classList
CSS

CSS-only tooltip

Hint on hover/focus using attr() and a pseudo-element.

  • tooltip
  • ui
  • acessibilidade
CSS

Custom checkbox

Custom look while keeping the native input accessible.

  • formulario
  • checkbox
  • acessibilidade
CSS

Custom radio

Option group with consistent look and visible focus.

  • formulario
  • radio
  • acessibilidade
JS

dataset

Read data-* as camelCase.

  • dom
  • data
WC

define guard

Avoid errors if the module is imported twice.

  • register
  • define
WC

Dual export

Named class + register() + auto-register.

  • export
  • api
JS

fetch JSON

async/await with an ok check.

  • fetch
  • async
CSS

Gradient text

Fill text with linear-gradient via clip.

  • gradiente
  • tipografia
CSS

Hide on print

Hide nav, buttons, and ads with @media print.

  • print
  • media-query
  • utilitario
HTML

Label + input

Explicit for/id association.

  • form
  • label
  • acessibilidade
HTML

Meta viewport

Essential viewport for mobile layout.

  • meta
  • mobile
  • viewport
CSS

Minimal reset

A clean start without wiping the whole UA stylesheet.

  • reset
  • fundamentos
CSS

Pill badge

Rounded label for status and tags.

  • badge
  • ui
  • tipografia
HTML

Skip link

Skip navigation and jump to content.

  • a11y
  • nav
  • skip
CSS

Smooth scroll

Anchors with native animated scrolling.

  • scroll
  • navegacao
CSS

Spacing with gap

Replace manual margins with gap in flex/grid.

  • flexbox
  • espacamento
CSS

Sticky footer

Footer at the bottom of the viewport even with little content.

  • layout
  • footer
  • flexbox
HTML

time + datetime

Human-readable date with machine-readable value.

  • time
  • semantica
CSS

Visible focus ring

:focus-visible state without removing accessibility.

  • acessibilidade
  • focus