Skip to content

Theme CSS reference ​

The stable classes (hooks) and variables of linkable.id pages, for custom CSS on a layout theme or a widget theme. How to write and save custom CSS, and what is allowed, is in Custom CSS.

Generated from the code with php artisan themes:css-contract; do not edit by hand.

For AI tools, the same reference in one page: Theme CSS reference for AI.

Layout themes: the page ​

Rules ​

  • Layout theme CSS applies to every page using the theme. Selectors are used as written, page-wide.
  • Variables are set on :root. Redefine one in a :root rule to change it everywhere it is used, for example :root { --lk-header-background-color: #1f2937; }. Prefer this over overriding the property it drives.
  • The theme's own rules are wrapped in :where(), with zero specificity, so a plain rule of yours wins without !important.
  • Theme settings < layout theme CSS < widget theme CSS for its own widgets. Within one stylesheet, the later rule wins at equal specificity.
  • Business card pages add the lk-card-* hooks. Their colors and corner radius come from the page's Contact widget theme as --lk-card-radius, --lk-card-button-radius (the theme's button shape, else the corner radius), --lk-card-primary-background, --lk-card-primary-color, --lk-card-primary-border, --lk-card-hover-background, --lk-card-surface, --lk-card-text, --lk-card-muted and --lk-card-border, set on .lk-card-ui; redefine one in a .lk-card-ui rule.
  • Only the lk-* classes and --lk-* variables are stable. Other classes in the page (utilities such as flex or px-5) can change at any time.

How the page is built ​

Branded Page

text
lk-page
  lk-layout lk-layout--entry
    lk-header
      lk-header-inner
        lk-header-logo
        lk-header-links > lk-header-link > lk-header-link-icon, lk-header-link-text, lk-header-icon
        lk-header-icon (the menu button on phones)
      lk-header-drawer (the phone menu) > lk-header-icon, lk-header-drawer-link
    lk-submenu (smaller screens)
      lk-submenu-button
      lk-outline-dropdown > lk-outline-dropdown-top > lk-outline-top-link; lk-outline-link, lk-outline-sublink
    lk-content
      lk-widgets > lk-widget lk-widget--{type} (see the widget outlines)
      lk-widgets > lk-group > lk-group-item > lk-widget (grouped contact rows)
      lk-outline > lk-outline-nav > lk-outline-link, lk-outline-sublink

Page in a Branded Site

text
lk-page
  lk-layout lk-layout--site
    lk-header
      lk-header-inner
        lk-header-logo
        lk-header-links > lk-header-link > lk-header-link-icon, lk-header-link-text, lk-header-icon
        lk-header-icon (the menu button on phones)
      lk-header-drawer (the phone menu) > lk-header-icon, lk-header-drawer-link
    lk-submenu (smaller screens)
      lk-submenu-button
      lk-sidebar-dropdown > lk-sidebar-category, lk-sidebar-entry, lk-sidebar-entry--active
      lk-outline-dropdown > lk-outline-dropdown-top > lk-outline-top-link; lk-outline-link, lk-outline-sublink
    lk-content
      lk-sidebar-rail > lk-sidebar
        lk-sidebar-title > lk-sidebar-title-text
        lk-sidebar-category
        lk-sidebar-entry, lk-sidebar-entry--active
      lk-widgets > lk-widget lk-widget--{type}
      lk-pagination-link > lk-pagination-label, lk-pagination-title
      lk-outline > lk-outline-nav > lk-outline-link, lk-outline-sublink

Full-screen page

text
lk-page
  lk-layout lk-layout--fullscreen
    lk-header
      lk-header-inner
        lk-header-logo
        lk-header-links > lk-header-link > lk-header-link-icon, lk-header-link-text, lk-header-icon
        lk-header-icon (the menu button on phones)
      lk-header-drawer (the phone menu) > lk-header-icon, lk-header-drawer-link
    lk-widget lk-widget--{type} (one widget filling the page)

Business card page

text
lk-page (a Branded Page or a site page, plus:)
  lk-card-ui
    lk-card-show (opened from the Home Screen)
      lk-card-qr
      lk-card-name
      lk-card-title
      lk-card-actions > lk-card-button lk-card-button--primary, lk-card-button lk-card-button--secondary
      lk-card-status
      lk-card-offline
    lk-card-install (the install steps) > lk-card-install-title, lk-card-actions
    lk-card-chips > lk-card-button lk-card-chip--qr, lk-card-button lk-card-button--primary

The page ​

HookWhat it isInsideStatesVariables
lk-pageThe page's <body>. It also carries data-lk-layout-theme.
lk-layoutThe page wrapper, under <body>.lk-pagelk-layout--entry, lk-layout--site, lk-layout--fullscreen
lk-layout--entryThe wrapper of a Branded Page.lk-page
lk-layout--siteThe wrapper of a page inside a Branded Site.lk-page
lk-layout--fullscreenThe wrapper of a full-screen page (one widget filling the page).lk-page

Top bar ​

HookWhat it isInsideStatesVariables
lk-headerThe top bar.lk-layout--lk-header-background-color, --lk-header-border-bottom-color
lk-header-innerThe top bar's centered content row.lk-header--lk-content-max-width
lk-header-logoThe logo box in the top bar.lk-header-inner--lk-header-logo-height
lk-header-linksThe group of links in the top bar.lk-header-inner
lk-header-linkOne link in the top bar.lk-header-links--lk-header-link-font-size, --lk-header-link-font-weight, --lk-header-color
lk-header-link-textA top bar link's text.lk-header-link--lk-header-color
lk-header-link-iconA top bar link's leading icon.lk-header-link--lk-header-color
lk-header-iconThe top bar's other icons: a link's trailing icon, and the menu and close buttons on phones.lk-header-inner--lk-header-color
lk-header-drawerThe menu panel that opens on phones.lk-header--lk-header-background-color
lk-header-drawer-linkA link in the phone menu panel.lk-header-drawer--lk-header-color

Smaller screens ​

HookWhat it isInsideStatesVariables
lk-submenuThe bar under the top bar on smaller screens, with the menu and "On this page" buttons.lk-layout--lk-header-submenu-background-color, --lk-header-submenu-border-color
lk-submenu-buttonA button in that bar.lk-submenu--lk-header-submenu-color
lk-sidebar-dropdownA site's page menu as a dropdown on smaller screens.lk-submenu--lk-sidebar-background-color, --lk-sidebar-border-color, --lk-sidebar-border-top-left-radius, --lk-sidebar-border-top-right-radius, --lk-sidebar-border-bottom-right-radius, --lk-sidebar-border-bottom-left-radius
lk-outline-dropdown"On this page" as a dropdown on smaller screens.lk-submenu--lk-outline-background-color, --lk-outline-border-color, --lk-outline-border-top-left-radius, --lk-outline-border-top-right-radius, --lk-outline-border-bottom-right-radius, --lk-outline-border-bottom-left-radius
lk-outline-dropdown-topThe top row of that dropdown.lk-outline-dropdown--lk-outline-color
lk-outline-top-linkThe "Return to top" link in that row.lk-outline-dropdown-top--lk-outline-color

Content column ​

HookWhat it isInsideStatesVariables
lk-contentThe content column.lk-layout--lk-content-max-width
lk-widgetsThe stack of widgets in the content column.lk-content--lk-content-gap
lk-groupGrouped contact rows: consecutive Email, Phone and WhatsApp widgets with one widget theme, joined into one card. Only on a layout theme with Group contact rows on. It carries the widgets' data-lk-widget-theme, so it reads their frame variables.lk-widgets
lk-group-itemOne widget's wrapper inside a contact row group. Inner corners are square, and the line between rows is the widget's own border.lk-group

Site page menu ​

HookWhat it isInsideStatesVariables
lk-sidebar-railThe column that holds a site's page menu on larger screens.lk-content
lk-sidebarA site's page menu.lk-sidebar-rail--lk-sidebar-background-color, --lk-sidebar-border-color, --lk-sidebar-border-top-left-radius, --lk-sidebar-border-top-right-radius, --lk-sidebar-border-bottom-right-radius, --lk-sidebar-border-bottom-left-radius, --lk-sidebar-height
lk-sidebar-titleThe menu's title box.lk-sidebar--lk-sidebar-title-background-color, --lk-sidebar-title-border-color
lk-sidebar-title-textThe menu's title text.lk-sidebar-title--lk-sidebar-title-font-size, --lk-sidebar-title-font-weight, --lk-sidebar-title-color
lk-sidebar-categoryA category heading in the menu.lk-sidebar--lk-sidebar-site-categories-color, --lk-sidebar-category-font-size, --lk-sidebar-category-font-weight
lk-sidebar-entryA page link in the menu.lk-sidebarlk-sidebar-entry--active--lk-sidebar-entries-color, --lk-sidebar-entry-font-size, --lk-sidebar-entry-font-weight
lk-sidebar-entry--activeThe link to the page being viewed.lk-sidebar--lk-sidebar-active-entry-color

On this page ​

HookWhat it isInsideStatesVariables
lk-outlineThe "On this page" box on larger screens.lk-content--lk-outline-background-color, --lk-outline-border-color, --lk-outline-color, --lk-outline-border-top-left-radius, --lk-outline-border-top-right-radius, --lk-outline-border-bottom-right-radius, --lk-outline-border-bottom-left-radius, --lk-outline-height
lk-outline-navThe list of links inside it.lk-outline--lk-outline-color
lk-outline-linkA link to a widget on the page.lk-outline-nav--lk-outline-color, --lk-outline-font-size, --lk-outline-font-weight
lk-outline-sublinkA link to a heading inside a widget.lk-outline-nav--lk-outline-color, --lk-outline-font-size, --lk-outline-font-weight

Previous and next ​

HookWhat it isInsideStatesVariables
lk-pagination-linkA "Previous" or "Next" card at the bottom of a site page.lk-content--lk-pagination-background-color, --lk-pagination-border-width, --lk-pagination-border-color, --lk-pagination-border-top-left-radius, --lk-pagination-border-top-right-radius, --lk-pagination-border-bottom-right-radius, --lk-pagination-border-bottom-left-radius
lk-pagination-labelIts small label ("Previous", "Next").lk-pagination-link--lk-pagination-label-color, --lk-pagination-label-font-size, --lk-pagination-label-font-weight
lk-pagination-titleThe title of the page it leads to.lk-pagination-link--lk-pagination-title-color, --lk-pagination-title-font-size, --lk-pagination-title-font-weight

Business card pages ​

HookWhat it isInsideStatesVariables
lk-card-uiEverything a business card page adds. Its colors are the --lk-card-* variables set on it.lk-page
lk-card-showThe view a card opens on from the Home Screen.lk-card-ui
lk-card-qrThe card's QR code in that view.lk-card-show
lk-card-nameThe person's name in that view.lk-card-show
lk-card-titleThe person's job title in that view.lk-card-show
lk-card-actionsA row of card buttons.lk-card-show
lk-card-buttonA card button (Share, Add to contacts, Copy link, Install).lk-card-actionslk-card-button--primary, lk-card-button--secondary, lk-card-chip--qr
lk-card-button--primaryThe main button of a row.lk-card-actions
lk-card-button--secondaryThe other buttons of a row.lk-card-actions
lk-card-statusA short message after an action, such as "Link copied".lk-card-show
lk-card-offlineThe note shown when the card opens without a connection.lk-card-show
lk-card-installThe steps to put the card on a phone.lk-card-ui
lk-card-install-titleThe title of those steps.lk-card-install
lk-card-chipsThe floating Share chip on the page.lk-card-ui
lk-card-chip--qrThe QR button next to it.lk-card-chips

Variables by group ​

  • The page's text size and line height, and its background color. --lk-body-font-size, --lk-body-line-height, --lk-body-background-color
  • The page's background image: position, size and attachment, and the overlay color over it; and the gradient or pattern layer under the image (--lk-background-layer, with its size and repeat), set only when the theme has one. --lk-background-position, --lk-background-size, --lk-background-attachment, --lk-background-overlay-color, --lk-background-layer, --lk-background-layer-size, --lk-background-layer-repeat
  • The content column: width, alignment, maximum width, the gap between widgets and the side padding. --lk-content-width, --lk-content-justify-content, --lk-content-gap, --lk-content-padding-x, --lk-content-max-width
  • The top bar: background, bottom border, text color, logo height, and link size and weight. --lk-header-background-color, --lk-header-border-bottom-color, --lk-header-color, --lk-header-logo-height, --lk-header-link-font-size, --lk-header-link-font-weight
  • The bar under the top bar on smaller screens: background, border and text color. --lk-header-submenu-background-color, --lk-header-submenu-border-color, --lk-header-submenu-color
  • A site's page menu: background, border and corners, the title, page links, the current page, categories, and its height. --lk-sidebar-title-background-color, --lk-sidebar-title-border-color, --lk-sidebar-title-font-size, --lk-sidebar-title-font-weight, --lk-sidebar-title-color, --lk-sidebar-entry-font-size, --lk-sidebar-entry-font-weight, --lk-sidebar-entries-color, --lk-sidebar-active-entry-color, --lk-sidebar-category-font-size, --lk-sidebar-category-font-weight, --lk-sidebar-site-categories-color, --lk-sidebar-background-color, --lk-sidebar-border-color, --lk-sidebar-border-top-left-radius, --lk-sidebar-border-top-right-radius, --lk-sidebar-border-bottom-right-radius, --lk-sidebar-border-bottom-left-radius, --lk-sidebar-height
  • "On this page": background, border and corners, text color, link size and weight, and its height. --lk-outline-background-color, --lk-outline-border-color, --lk-outline-color, --lk-outline-font-size, --lk-outline-font-weight, --lk-outline-border-top-left-radius, --lk-outline-border-top-right-radius, --lk-outline-border-bottom-right-radius, --lk-outline-border-bottom-left-radius, --lk-outline-height
  • The Previous and Next cards: background, border width, color and corners, and the label and title text. --lk-pagination-background-color, --lk-pagination-border-color, --lk-pagination-border-width, --lk-pagination-border-top-left-radius, --lk-pagination-border-top-right-radius, --lk-pagination-border-bottom-right-radius, --lk-pagination-border-bottom-left-radius, --lk-pagination-label-color, --lk-pagination-label-font-size, --lk-pagination-label-font-weight, --lk-pagination-title-color, --lk-pagination-title-font-size, --lk-pagination-title-font-weight
  • The entrance motion's stagger between widgets, set only when the theme has one. Widgets carry data-reveal (fade up) or data-reveal="fade" / data-reveal="scale" and get the revealed class as they enter the screen. --lk-entrance-stagger

Widget themes: the widget ​

Rules ​

  • Widget theme CSS is confined to the widgets using the theme: every selector is prefixed with the theme scope on the server. Use :scope for the widget itself (lk-widget), for example :scope:hover .lk-widget-title.
  • The scope is the widget's data-lk-widget-theme attribute, so a :scope rule reaches every widget using the theme on the page; target lk-* hooks inside it for anything narrower.
  • Variables are set on the widget. Redefine one in a :scope rule, for example :scope { --lk-w-title-color: #b45064; }. Prefer this over overriding the property it drives.
  • The theme's own rules are wrapped in :where(), with zero specificity, so a plain rule of yours wins without !important.
  • Exceptions: the Markdown widget's typography and the code snippets' syntax colors use more specific selectors, such as [data-lk-widget-theme] .lk-markdown h1. Match that specificity, or redefine their variables (--lk-w-h1-color and so on).
  • Theme settings < layout theme CSS < widget theme CSS for its own widgets. Within one stylesheet, the later rule wins at equal specificity.
  • @keyframes names are made unique per theme automatically; refer to them by the name you wrote.
  • CSS nesting with & is not accepted.
  • The PDF viewer's afb__* classes and --afb-* variables are internal and may change; use the lk-pdf-* hooks and --lk-pdf-* variables.
  • Only the lk-* classes and --lk-* variables are stable. Other classes in the widget (utilities such as flex or px-5) can change at any time.

Every widget ​

text
lk-widget lk-widget--{type} (:scope in a widget theme)
  lk-widget-header
    lk-widget-icon (lk-widget-icon--offset) > lk-widget-icon-glyph
    lk-widget-title
    lk-widget-header-spacer
    lk-widget-action (lk-widget-action--clipboard, lk-widget-action--redirect, lk-widget-action--download, lk-widget-action--asset-download) > lk-widget-action-glyph
  lk-widget-body
    lk-widget-content (lk-widget-content--padded)
      lk-widget-subtitle
      lk-widget-brief
      lk-widget-custom (the type's own hooks)
HookWhat it isInsideStatesVariables
lk-widgetA widget's card. In a widget theme this is :scope.lk-widget--{type}--lk-w-border-width, --lk-w-border-color, --lk-w-border-top-left-radius, --lk-w-border-top-right-radius, --lk-w-border-bottom-right-radius, --lk-w-border-bottom-left-radius, --lk-w-shadow, --lk-w-surface-blur, --lk-w-hover-shadow, --lk-w-hover-transform, --lk-w-hover-transition
lk-widget--{type}The same card, by widget type: lk-widget--email, lk-widget--pdf and so on.
lk-widget-headerThe card's header bar.lk-widget--lk-w-header-padding, --lk-w-header-background-color
lk-widget-iconThe leading icon's box.lk-widget-headerlk-widget-icon--offset--lk-w-icon-size, --lk-w-icon-border-radius, --lk-w-icon-background-color
lk-widget-icon--offsetThe leading icon when the title is centered and there is no action button.lk-widget-header--lk-w-icon-size
lk-widget-icon-glyphThe leading icon itself.lk-widget-icon--lk-w-icon-glyph-size, --lk-w-icon-color
lk-widget-titleThe widget's title.lk-widget-header--lk-w-title-color, --lk-w-title-font-size, --lk-w-title-font-weight, --lk-w-title-transform, --lk-w-title-letter-spacing
lk-widget-header-spacerThe space that keeps a centered title centered when there is an icon.lk-widget-header--lk-w-icon-size
lk-widget-actionEvery action button in the header (copy, open, download). Its corners follow the theme's button shape.lk-widget-header--lk-w-hover-transition, --lk-w-hover-action-transform
lk-widget-action--clipboardThe copy button in the header.lk-widget-header--lk-w-icon-size, --lk-w-button-radius, --lk-w-icon-border-radius, --lk-w-icon-clipboard-styles-background-color, --lk-w-icon-action-hover-background-color, --lk-w-icon-redirect-styles-background-color, --lk-w-icon-clipboard-styles-border-color
lk-widget-action--redirectThe open button in the header.lk-widget-header--lk-w-icon-size, --lk-w-button-radius, --lk-w-icon-border-radius, --lk-w-icon-redirect-styles-background-color, --lk-w-icon-action-hover-background-color, --lk-w-icon-redirect-styles-border-color
lk-widget-action--downloadThe download button in the header.lk-widget-header--lk-w-icon-size, --lk-w-button-radius, --lk-w-icon-border-radius, --lk-w-icon-download-styles-background-color, --lk-w-icon-action-hover-background-color, --lk-w-icon-redirect-styles-background-color, --lk-w-icon-download-styles-border-color
lk-widget-action--asset-downloadThe asset download widget's download button.lk-widget-header--lk-w-icon-size, --lk-w-button-radius, --lk-w-icon-border-radius, --lk-w-icon-redirect-styles-background-color, --lk-w-icon-action-hover-background-color, --lk-w-icon-redirect-styles-border-color
lk-widget-action-glyphThe icon inside an action button.lk-widget-header--lk-w-icon-glyph-size, --lk-w-icon-clipboard-styles-color, --lk-w-icon-redirect-styles-color, --lk-w-icon-download-styles-color
lk-widget-bodyThe card's body, under the header (its background color and image).lk-widget--lk-w-background-image, --lk-w-background-color
lk-widget-contentThe body's padded content.lk-widget-bodylk-widget-content--padded--lk-w-body-padding-x
lk-widget-content--paddedThe content when it has a subtitle, description or the type's own content, with top and bottom padding.lk-widget-body--lk-w-body-padding-y
lk-widget-subtitleThe widget's subtitle.lk-widget-content--lk-w-subtitle-color, --lk-w-subtitle-font-size, --lk-w-subtitle-font-weight, --lk-w-secondary-opacity
lk-widget-briefThe widget's description.lk-widget-content--lk-w-brief-color, --lk-w-brief-font-size, --lk-w-brief-font-weight, --lk-w-secondary-opacity
lk-widget-customThe type's own content (an email, a gallery, a PDF viewer and so on).lk-widget-content

Email widget ​

text
lk-widget-custom > lk-email-value
HookWhat it isInsideStatesVariables
lk-email-valueThe email address.lk-widget-custom--lk-w-email-color, --lk-w-email-font-size, --lk-w-email-font-weight

Phone widget ​

text
lk-widget-custom > lk-phone-value
HookWhat it isInsideStatesVariables
lk-phone-valueThe phone number.lk-widget-custom--lk-w-phone-color, --lk-w-phone-font-size, --lk-w-phone-font-weight

WhatsApp widget ​

text
lk-widget-custom > lk-whatsapp-value
HookWhat it isInsideStatesVariables
lk-whatsapp-valueThe WhatsApp number.lk-widget-custom--lk-w-whatsapp-color, --lk-w-whatsapp-font-size, --lk-w-whatsapp-font-weight

Schedule widget ​

text
lk-widget-custom > lk-schedule-row > lk-schedule-day, lk-schedule-hours
HookWhat it isInsideStatesVariables
lk-schedule-rowOne day of the schedule.lk-widget-custom--lk-w-schedule-color
lk-schedule-dayThe day's name.lk-schedule-row--lk-w-schedule-font-size
lk-schedule-hoursThe day's hours.lk-schedule-row--lk-w-schedule-font-size, --lk-w-schedule-font-weight

Header widget ​

text
banner: the image above the subtitle and brief (the shell)
profile: lk-widget lk-widget--{type} lk-profile
  lk-profile-cover
  lk-widget-body > lk-widget-content
    lk-profile-avatar lk-profile-avatar--circle, lk-profile-avatar--rounded or lk-profile-avatar--organic
    lk-widget-title lk-profile-name
    lk-widget-subtitle lk-profile-role
    lk-widget-brief lk-profile-bio
HookWhat it isInsideStatesVariables
lk-profileA Header widget in the profile layout: the widget's frame, with the cover, the photo and the texts inside.lk-widget
lk-profile-coverThe band at the top of the profile: the header's background color, under the cover image when there is one (--lk-profile-cover).lk-profile--lk-w-header-background-color
lk-profile-avatarThe profile photo, overlapping the cover, framed in the ring color (--lk-profile-ring) or the card's background color.lk-widget-content--lk-w-background-color
lk-profile-avatar--circleA round profile photo.lk-widget-content
lk-profile-avatar--roundedA profile photo with rounded corners.lk-widget-content
lk-profile-avatar--organicA profile photo in a soft, irregular shape.lk-widget-content
lk-profile-nameThe profile's name: the widget's title, centered.lk-widget-content
lk-profile-roleThe profile's role: the widget's subtitle, in the subtitle color.lk-widget-content
lk-profile-bioThe profile's bio: the widget's brief.lk-widget-content

Contact widget ​

text
card: lk-widget-action--download in the header
quick actions: lk-widget-custom
  lk-contact-actions
    lk-contact-action (call, email, whatsapp, save, share)
      lk-contact-action-icon
      lk-contact-action-label
  lk-contact-save (optional)
HookWhat it isInsideStatesVariables
lk-contact-actionsThe row of quick actions when a Contact widget shows quick actions.lk-widget-custom
lk-contact-actionOne quick action (call, email, WhatsApp, save, share): its icon over its label.lk-contact-actions
lk-contact-action-iconA quick action's round button. It takes the theme's open-button colors and button shape.lk-contact-action--lk-w-icon-redirect-styles-background-color, --lk-w-icon-redirect-styles-color, --lk-w-icon-redirect-styles-border-color, --lk-w-button-radius
lk-contact-action-labelA quick action's label, in the subtitle color.lk-contact-action--lk-w-subtitle-color
lk-contact-saveThe full-width Save my contact button under the quick actions.lk-widget-custom--lk-w-icon-redirect-styles-background-color, --lk-w-icon-redirect-styles-color, --lk-w-icon-redirect-styles-border-color, --lk-w-button-radius, --lk-w-icon-border-radius
text
lk-widget-custom
  icons: lk-links-item (lk-links-item--featured) > lk-links-item-glyph
  buttons, thumbnails, pills: lk-links
    lk-links-item lk-links-item--button or lk-links-item--pill (lk-links-item--featured)
      lk-links-item-glyph or lk-links-item-thumb
      lk-links-item-label
      lk-links-item-arrow (buttons)
HookWhat it isInsideStatesVariables
lk-linksThe list of links when the widget shows buttons, buttons with thumbnails or pills.lk-widget-custom
lk-links-itemOne link. Its colors come from the link's own settings (--lk-link-background-color, --lk-link-color, --lk-link-border).lk-widget-custom--lk-w-icon-redirect-styles-background-color, --lk-w-icon-redirect-styles-border-color
lk-links-item--buttonA link shown as a full-width button. Its corners follow the theme's button shape.lk-links--lk-w-button-radius, --lk-w-icon-border-radius
lk-links-item--pillA link shown as a round pill.lk-links
lk-links-item--featuredA featured link: it takes the theme's primary button colors and the theme's featured effect (pulse or shine).lk-widget-custom--lk-w-icon-redirect-styles-background-color, --lk-w-icon-redirect-styles-color, --lk-w-icon-redirect-styles-border-color
lk-links-item-glyphThe link's icon.lk-links-item--lk-w-icon-redirect-styles-color
lk-links-item-thumbThe link's own image, as a thumbnail on buttons with thumbnails.lk-links-item--lk-w-icon-border-radius
lk-links-item-labelThe link's label on buttons and pills.lk-links-item--lk-w-icon-redirect-styles-color
lk-links-item-arrowThe arrow at the end of a button.lk-links-item--lk-w-icon-redirect-styles-color
text
lk-widget-custom > lk-gallery
  lk-gallery-slide (lk-gallery-slide--fullscreen)
  lk-gallery-nav
  lk-gallery-dot (lk-gallery-dot--active)
HookWhat it isInsideStatesVariables
lk-galleryThe gallery frame.lk-widget-custom
lk-gallery-slideOne image.lk-gallerylk-gallery-slide--fullscreen--lk-w-gallery-slide-border-radius, --lk-w-gallery-transition-ms
lk-gallery-slide--fullscreenAn image while the gallery is full screen.lk-gallery
lk-gallery-navThe previous and next arrows.lk-gallery--lk-w-gallery-nav-background-color, --lk-w-gallery-nav-hover-background-color, --lk-w-gallery-nav-icon-color, --lk-w-gallery-transition-ms
lk-gallery-dotA position dot under the gallery.lk-gallerylk-gallery-dot--active--lk-w-gallery-dot-inactive-color
lk-gallery-dot--activeThe dot of the image being shown.lk-gallery--lk-w-gallery-dot-active-color

Markdown widget ​

text
lk-widget-custom > lk-markdown (also .markdown-body) > h1 to h6, p, li, a, pre, code, table, blockquote, img
HookWhat it isInsideStatesVariables
lk-markdownThe Markdown text (also .markdown-body); style its h1 to h6, p, li, a, pre, code, table, blockquote and img.lk-widget-custom--lk-w-markdown-background-color, --lk-w-markdown-pre-font-color, --lk-w-markdown-pre-background-color, --lk-w-markdown-code-font-color, --lk-w-markdown-code-background-color, --lk-w-markdown-table-header-background-color, --lk-w-markdown-table-header-font-color, --lk-w-markdown-table-row-background-color, --lk-w-markdown-table-row-font-color, --lk-w-markdown-table-stripe-background-color, --lk-w-markdown-table-border-color, --lk-w-markdown-blockquote-border-color, --lk-w-markdown-blockquote-text-color, --lk-w-markdown-hr-color, --lk-w-markdown-table-border-radius-top-left, --lk-w-markdown-table-border-radius-top-right, --lk-w-markdown-table-border-radius-bottom-right, --lk-w-markdown-table-border-radius-bottom-left, --lk-w-markdown-pre-border-radius-top-left, --lk-w-markdown-pre-border-radius-top-right, --lk-w-markdown-pre-border-radius-bottom-right, --lk-w-markdown-pre-border-radius-bottom-left, --lk-w-markdown-image-border-radius-top-left, --lk-w-markdown-image-border-radius-top-right, --lk-w-markdown-image-border-radius-bottom-right, --lk-w-markdown-image-border-radius-bottom-left, --lk-w-h1-font-size, --lk-w-h1-font-weight, --lk-w-h1-color, --lk-w-h2-font-size, --lk-w-h2-font-weight, --lk-w-h2-color, --lk-w-h3-font-size, --lk-w-h3-font-weight, --lk-w-h3-color, --lk-w-h4-font-size, --lk-w-h4-font-weight, --lk-w-h4-color, --lk-w-h5-font-size, --lk-w-h5-font-weight, --lk-w-h5-color, --lk-w-h6-font-size, --lk-w-h6-font-weight, --lk-w-h6-color, --lk-w-paragraph-font-size, --lk-w-paragraph-font-weight, --lk-w-paragraph-color, --lk-w-link-color

Embed widget ​

text
lk-widget-custom > lk-embed
HookWhat it isInsideStatesVariables
lk-embedThe embedded frame (video, map, form and so on).lk-widget-custom

PDF widget ​

text
lk-widget-custom > lk-pdf (lk-pdf--fullscreen)
  lk-pdf-toolbar > lk-pdf-counter, lk-pdf-button
  lk-pdf-stage
    lk-pdf-page
    lk-pdf-arrow lk-pdf-arrow--prev, lk-pdf-arrow lk-pdf-arrow--next
    lk-pdf-loader
  lk-pdf-panel (lk-pdf-panel--open)
    lk-pdf-thumbs > lk-pdf-thumb (lk-pdf-thumb--current)
    lk-pdf-toc-item
    lk-pdf-search > lk-pdf-search-result
  lk-pdf-error
HookWhat it isInsideStatesVariables
lk-pdfThe whole PDF viewer.lk-widget-customlk-pdf--fullscreen
lk-pdf--fullscreenThe viewer while it is full screen.lk-widget-custom
lk-pdf-toolbarThe viewer's toolbar.lk-pdf
lk-pdf-counterThe page counter in the toolbar.lk-pdf-toolbar
lk-pdf-buttonA toolbar button.lk-pdf-toolbar
lk-pdf-stageThe area around the pages.lk-pdf
lk-pdf-pageOne page.lk-pdf-stage
lk-pdf-arrowA large previous or next arrow.lk-pdf-stagelk-pdf-arrow--prev, lk-pdf-arrow--next
lk-pdf-arrow--prevThe previous arrow.lk-pdf-stage
lk-pdf-arrow--nextThe next arrow.lk-pdf-stage
lk-pdf-loaderThe loading indicator.lk-pdf-stage
lk-pdf-errorThe message shown when the PDF cannot be opened.lk-pdf
lk-pdf-panelThe Pages, Contents and Search panels.lk-pdflk-pdf-panel--open
lk-pdf-panel--openThe panel that is open.lk-pdf
lk-pdf-thumbsThe list of page thumbnails.lk-pdf-panel
lk-pdf-thumbA page thumbnail.lk-pdf-thumbslk-pdf-thumb--current
lk-pdf-thumb--currentThe thumbnail of the current page.lk-pdf-thumbs
lk-pdf-toc-itemAn entry of the table of contents.lk-pdf-panel
lk-pdf-searchThe search box.lk-pdf-panel
lk-pdf-search-resultA search result.lk-pdf-panel

Asset download widget ​

text
lk-widget-custom > lk-asset-download-name, lk-asset-download-description, lk-asset-download-type, lk-asset-download-size
HookWhat it isInsideStatesVariables
lk-asset-download-nameThe file's name.lk-widget-custom--lk-w-asset-download-name-color, --lk-w-asset-download-name-font-size, --lk-w-asset-download-name-font-weight
lk-asset-download-descriptionThe file's description.lk-widget-custom--lk-w-asset-download-description-color, --lk-w-asset-download-description-font-size, --lk-w-asset-download-description-font-weight
lk-asset-download-typeThe file type badge (PDF, PNG and so on).lk-widget-custom--lk-w-asset-download-mime-type-bg-color, --lk-w-asset-download-mime-type-border-color, --lk-w-asset-download-mime-type-color, --lk-w-asset-download-mime-type-font-size, --lk-w-asset-download-mime-type-font-weight
lk-asset-download-sizeThe file's size.lk-widget-custom--lk-w-asset-download-size-color, --lk-w-asset-download-size-font-size, --lk-w-asset-download-size-font-weight

Color palette widget ​

text
lk-widget-custom (one per color)
  lk-palette-swatch
  lk-palette-name
  lk-palette-description
  lk-palette-code-label, lk-palette-code
  lk-palette-copy > lk-palette-copy-glyph
HookWhat it isInsideStatesVariables
lk-palette-swatchA color's swatch. Its color is the inline --lk-palette-swatch-color.lk-widget-custom--lk-w-border-top-left-radius, --lk-w-border-top-right-radius, --lk-w-border-bottom-right-radius, --lk-w-border-bottom-left-radius
lk-palette-nameA color's name.lk-widget-custom--lk-w-palette-name-color, --lk-w-palette-name-font-size, --lk-w-palette-name-font-weight
lk-palette-descriptionA color's description.lk-widget-custom--lk-w-palette-description-color, --lk-w-palette-description-font-size, --lk-w-palette-description-font-weight
lk-palette-code-labelA color code's label (HEX, RGB, CMYK).lk-widget-custom--lk-w-palette-color-type-color, --lk-w-palette-color-type-font-size, --lk-w-palette-color-type-font-weight
lk-palette-codeA color code.lk-widget-custom--lk-w-palette-color-code-color, --lk-w-palette-color-code-font-size, --lk-w-palette-color-code-font-weight
lk-palette-copyThe button that copies a code.lk-widget-custom--lk-w-palette-icon-clipboard-styles-background-color, --lk-w-palette-icon-clipboard-styles-border-color
lk-palette-copy-glyphThat button's icon.lk-palette-copy--lk-w-palette-icon-clipboard-styles-color

Asset showcase widget ​

text
lk-widget-custom > lk-showcase-tile--light | lk-showcase-tile--dark
HookWhat it isInsideStatesVariables
lk-showcase-tile--lightAn asset tile on a light background.lk-widget-custom--lk-w-asset-showcase-light-background-color, --lk-w-asset-showcase-light-border-color, --lk-w-asset-showcase-light-text-color, --lk-w-asset-showcase-tile-border-radius
lk-showcase-tile--darkAn asset tile on a dark background.lk-widget-custom--lk-w-asset-showcase-dark-background-color, --lk-w-asset-showcase-dark-border-color, --lk-w-asset-showcase-dark-text-color, --lk-w-asset-showcase-tile-border-radius

Typography widget ​

text
lk-widget-custom > lk-typography > lk-typography-sample
HookWhat it isInsideStatesVariables
lk-typographyThe typography specimen.lk-widget-custom--lk-w-typography-color
lk-typography-sampleA sample line of text.lk-typography--lk-w-typography-sample-font-size

Design tokens widget ​

text
lk-widget-custom > lk-tokens
  lk-tokens-table > lk-tokens-row > lk-tokens-label
  lk-tokens-specimen
HookWhat it isInsideStatesVariables
lk-tokensThe design tokens list.lk-widget-custom--lk-w-design-tokens-value-color
lk-tokens-tableA table of tokens.lk-tokens--lk-w-design-tokens-specimen-border-color
lk-tokens-rowA row of that table.lk-tokens-table--lk-w-design-tokens-specimen-border-color
lk-tokens-labelA token's name.lk-tokens-row--lk-w-design-tokens-label-color
lk-tokens-specimenA token's visual sample (a color, a radius, a shadow).lk-tokens--lk-w-design-tokens-specimen-background-color, --lk-w-design-tokens-specimen-border-color, --lk-w-design-tokens-specimen-border-radius

Code snippets widget ​

text
lk-widget-custom > lk-snippets
  lk-snippets-badge (the language filter)
  lk-snippets-card
    lk-snippets-title
    lk-snippets-desc
    lk-snippets-usage (also .markdown-body)
    lk-snippets-code
    lk-snippets-props
HookWhat it isInsideStatesVariables
lk-snippetsThe code snippets list.lk-widget-custom--lk-w-code-snippets-code-background-color, --lk-w-code-snippets-code-text-color, --lk-w-code-snippets-comment-color, --lk-w-code-snippets-keyword-color, --lk-w-code-snippets-string-color, --lk-w-code-snippets-number-color, --lk-w-code-snippets-tag-color, --lk-w-code-snippets-attribute-color, --lk-w-code-snippets-title-color, --lk-w-code-snippets-description-color, --lk-w-code-snippets-badge-color, --lk-w-code-snippets-card-background-color, --lk-w-code-snippets-card-border-color, --lk-w-code-snippets-card-border-radius
lk-snippets-badgeA language filter button.lk-snippets--lk-w-code-snippets-card-border-color, --lk-w-code-snippets-badge-color
lk-snippets-cardOne snippet.lk-snippets--lk-w-code-snippets-card-border-color, --lk-w-code-snippets-card-border-radius, --lk-w-code-snippets-card-background-color
lk-snippets-titleThe snippet's title.lk-snippets-card--lk-w-code-snippets-title-color
lk-snippets-descThe snippet's description.lk-snippets-card--lk-w-code-snippets-description-color
lk-snippets-usageThe snippet's usage notes (also .markdown-body).lk-snippets-card--lk-w-code-snippets-description-color
lk-snippets-codeThe code block.lk-snippets-card--lk-w-code-snippets-code-background-color, --lk-w-code-snippets-code-text-color
lk-snippets-propsThe table of properties.lk-snippets-card--lk-w-code-snippets-card-border-color

Variables by group ​

  • The widget's card: border color, width and corners, shadow and shadow color, the frosted glass blur, the body's background color and image, and the body's padding. --lk-w-border-color, --lk-w-border-width, --lk-w-body-padding-x, --lk-w-body-padding-y, --lk-w-border-top-left-radius, --lk-w-border-top-right-radius, --lk-w-border-bottom-right-radius, --lk-w-border-bottom-left-radius, --lk-w-background-color, --lk-w-shadow-color, --lk-w-shadow, --lk-w-background-image, --lk-w-surface-blur
  • The header bar: padding, background and title alignment, and the title's color, size, weight, case and letter spacing. --lk-w-header-padding, --lk-w-title-color, --lk-w-title-font-size, --lk-w-title-font-weight, --lk-w-header-text-align, --lk-w-header-background-color, --lk-w-title-letter-spacing, --lk-w-title-transform
  • The subtitle and description: color, size and weight, the content's alignment, and the secondary text strength (an opacity). --lk-w-subtitle-color, --lk-w-subtitle-font-size, --lk-w-subtitle-font-weight, --lk-w-brief-color, --lk-w-brief-font-size, --lk-w-brief-font-weight, --lk-w-content-text-align, --lk-w-secondary-text-opacity, --lk-w-secondary-opacity
  • The Markdown text: background, headings h1 to h6, paragraphs, links, inline code and code blocks, tables, quotes, rules and image corners. --lk-w-h1-font-size, --lk-w-h1-font-weight, --lk-w-h1-color, --lk-w-h2-font-size, --lk-w-h2-font-weight, --lk-w-h2-color, --lk-w-h3-font-size, --lk-w-h3-font-weight, --lk-w-h3-color, --lk-w-h4-font-size, --lk-w-h4-font-weight, --lk-w-h4-color, --lk-w-h5-font-size, --lk-w-h5-font-weight, --lk-w-h5-color, --lk-w-h6-font-size, --lk-w-h6-font-weight, --lk-w-h6-color, --lk-w-paragraph-font-size, --lk-w-paragraph-font-weight, --lk-w-paragraph-color, --lk-w-link-color, --lk-w-markdown-background-color, --lk-w-markdown-pre-background-color, --lk-w-markdown-pre-font-color, --lk-w-markdown-code-background-color, --lk-w-markdown-code-font-color, --lk-w-markdown-table-header-background-color, --lk-w-markdown-table-header-font-color, --lk-w-markdown-table-row-background-color, --lk-w-markdown-table-row-font-color, --lk-w-markdown-table-stripe-background-color, --lk-w-markdown-table-border-color, --lk-w-markdown-blockquote-border-color, --lk-w-markdown-blockquote-text-color, --lk-w-markdown-hr-color, --lk-w-markdown-table-border-radius-top-left, --lk-w-markdown-table-border-radius-top-right, --lk-w-markdown-table-border-radius-bottom-right, --lk-w-markdown-table-border-radius-bottom-left, --lk-w-markdown-pre-border-radius-top-left, --lk-w-markdown-pre-border-radius-top-right, --lk-w-markdown-pre-border-radius-bottom-right, --lk-w-markdown-pre-border-radius-bottom-left, --lk-w-markdown-image-border-radius-top-left, --lk-w-markdown-image-border-radius-top-right, --lk-w-markdown-image-border-radius-bottom-right, --lk-w-markdown-image-border-radius-bottom-left
  • The leading icon and the action buttons: size, corners, the button shape's corner radius, the colors of each action (copy, open, download) and the hover background. --lk-w-icon-background-color, --lk-w-icon-color, --lk-w-icon-size, --lk-w-icon-glyph-size, --lk-w-icon-border-radius, --lk-w-icon-action-hover-background-color, --lk-w-icon-redirect-styles-background-color, --lk-w-icon-redirect-styles-color, --lk-w-icon-redirect-styles-border-color, --lk-w-icon-clipboard-styles-background-color, --lk-w-icon-clipboard-styles-color, --lk-w-icon-clipboard-styles-border-color, --lk-w-icon-download-styles-background-color, --lk-w-icon-download-styles-color, --lk-w-icon-download-styles-border-color, --lk-w-button-radius
  • The gallery: arrows, dots, image corners and the transition time. --lk-w-gallery-nav-background-color, --lk-w-gallery-nav-hover-background-color, --lk-w-gallery-nav-icon-color, --lk-w-gallery-dot-active-color, --lk-w-gallery-dot-inactive-color, --lk-w-gallery-transition-ms, --lk-w-gallery-slide-border-radius
  • The light and dark tiles: background, border and text colors, and their corners. --lk-w-asset-showcase-light-background-color, --lk-w-asset-showcase-light-border-color, --lk-w-asset-showcase-light-text-color, --lk-w-asset-showcase-dark-background-color, --lk-w-asset-showcase-dark-border-color, --lk-w-asset-showcase-dark-text-color, --lk-w-asset-showcase-tile-border-radius
  • The specimen's text color and sample size. --lk-w-typography-sample-font-size, --lk-w-typography-color
  • The token list: specimen background, border and corners, and the label and value colors. --lk-w-design-tokens-specimen-background-color, --lk-w-design-tokens-specimen-border-color, --lk-w-design-tokens-label-color, --lk-w-design-tokens-value-color, --lk-w-design-tokens-specimen-border-radius
  • The code colors (background, text, comments, keywords, strings, numbers, tags, attributes) and the cards (background, border, corners, title, description, language badges). --lk-w-code-snippets-code-background-color, --lk-w-code-snippets-code-text-color, --lk-w-code-snippets-comment-color, --lk-w-code-snippets-keyword-color, --lk-w-code-snippets-string-color, --lk-w-code-snippets-number-color, --lk-w-code-snippets-tag-color, --lk-w-code-snippets-attribute-color, --lk-w-code-snippets-card-border-color, --lk-w-code-snippets-card-border-radius, --lk-w-code-snippets-card-background-color, --lk-w-code-snippets-title-color, --lk-w-code-snippets-description-color, --lk-w-code-snippets-badge-color
  • The email address: color, size and weight. --lk-w-email-color, --lk-w-email-font-size, --lk-w-email-font-weight
  • The phone number: color, size and weight. --lk-w-phone-color, --lk-w-phone-font-size, --lk-w-phone-font-weight
  • The WhatsApp number: color, size and weight. --lk-w-whatsapp-color, --lk-w-whatsapp-font-size, --lk-w-whatsapp-font-weight
  • The schedule: text color, size, and the hours' weight. --lk-w-schedule-color, --lk-w-schedule-font-size, --lk-w-schedule-font-weight
  • The file's name, description, type badge and size: colors, sizes and weights. --lk-w-asset-download-name-color, --lk-w-asset-download-name-font-size, --lk-w-asset-download-name-font-weight, --lk-w-asset-download-description-color, --lk-w-asset-download-description-font-size, --lk-w-asset-download-description-font-weight, --lk-w-asset-download-mime-type-color, --lk-w-asset-download-mime-type-bg-color, --lk-w-asset-download-mime-type-border-color, --lk-w-asset-download-mime-type-font-size, --lk-w-asset-download-mime-type-font-weight, --lk-w-asset-download-size-color, --lk-w-asset-download-size-font-size, --lk-w-asset-download-size-font-weight
  • A color's name, description, code label and code, and its copy button. --lk-w-palette-name-color, --lk-w-palette-name-font-size, --lk-w-palette-name-font-weight, --lk-w-palette-description-color, --lk-w-palette-description-font-size, --lk-w-palette-description-font-weight, --lk-w-palette-color-type-color, --lk-w-palette-color-type-font-size, --lk-w-palette-color-type-font-weight, --lk-w-palette-color-code-color, --lk-w-palette-color-code-font-size, --lk-w-palette-color-code-font-weight, --lk-w-palette-icon-clipboard-styles-background-color, --lk-w-palette-icon-clipboard-styles-color, --lk-w-palette-icon-clipboard-styles-border-color
  • The hover effect: the card's movement and shadow, the action buttons' movement, and the transition. The movement only applies when the visitor has not asked for reduced motion. --lk-w-hover-transition, --lk-w-hover-transform, --lk-w-hover-shadow, --lk-w-hover-action-transform
  • The PDF viewer: background, toolbar, accent, buttons, pages, panels, and the page turn's duration and shadow. Set them in a :scope rule. --lk-pdf-background, --lk-pdf-toolbar-background, --lk-pdf-toolbar-color, --lk-pdf-accent, --lk-pdf-button-hover-background, --lk-pdf-control-radius, --lk-pdf-page-background, --lk-pdf-shadow, --lk-pdf-panel-background, --lk-pdf-panel-color, --lk-pdf-turn-duration, --lk-pdf-shadow-strength