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:rootrule 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-mutedand--lk-card-border, set on.lk-card-ui; redefine one in a.lk-card-uirule. - Only the
lk-*classes and--lk-*variables are stable. Other classes in the page (utilities such asflexorpx-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-sublinkPage 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-sublinkFull-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--primaryThe page
| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-page | The page's <body>. It also carries data-lk-layout-theme. | |||
lk-layout | The page wrapper, under <body>. | lk-page | lk-layout--entry, lk-layout--site, lk-layout--fullscreen | |
lk-layout--entry | The wrapper of a Branded Page. | lk-page | ||
lk-layout--site | The wrapper of a page inside a Branded Site. | lk-page | ||
lk-layout--fullscreen | The wrapper of a full-screen page (one widget filling the page). | lk-page |
Top bar
| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-header | The top bar. | lk-layout | --lk-header-background-color, --lk-header-border-bottom-color | |
lk-header-inner | The top bar's centered content row. | lk-header | --lk-content-max-width | |
lk-header-logo | The logo box in the top bar. | lk-header-inner | --lk-header-logo-height | |
lk-header-links | The group of links in the top bar. | lk-header-inner | ||
lk-header-link | One link in the top bar. | lk-header-links | --lk-header-link-font-size, --lk-header-link-font-weight, --lk-header-color | |
lk-header-link-text | A top bar link's text. | lk-header-link | --lk-header-color | |
lk-header-link-icon | A top bar link's leading icon. | lk-header-link | --lk-header-color | |
lk-header-icon | The 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-drawer | The menu panel that opens on phones. | lk-header | --lk-header-background-color | |
lk-header-drawer-link | A link in the phone menu panel. | lk-header-drawer | --lk-header-color |
Smaller screens
| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-submenu | The 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-button | A button in that bar. | lk-submenu | --lk-header-submenu-color | |
lk-sidebar-dropdown | A 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-top | The top row of that dropdown. | lk-outline-dropdown | --lk-outline-color | |
lk-outline-top-link | The "Return to top" link in that row. | lk-outline-dropdown-top | --lk-outline-color |
Content column
| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-content | The content column. | lk-layout | --lk-content-max-width | |
lk-widgets | The stack of widgets in the content column. | lk-content | --lk-content-gap | |
lk-group | Grouped 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-item | One 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
| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-sidebar-rail | The column that holds a site's page menu on larger screens. | lk-content | ||
lk-sidebar | A 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-title | The menu's title box. | lk-sidebar | --lk-sidebar-title-background-color, --lk-sidebar-title-border-color | |
lk-sidebar-title-text | The menu's title text. | lk-sidebar-title | --lk-sidebar-title-font-size, --lk-sidebar-title-font-weight, --lk-sidebar-title-color | |
lk-sidebar-category | A category heading in the menu. | lk-sidebar | --lk-sidebar-site-categories-color, --lk-sidebar-category-font-size, --lk-sidebar-category-font-weight | |
lk-sidebar-entry | A page link in the menu. | lk-sidebar | lk-sidebar-entry--active | --lk-sidebar-entries-color, --lk-sidebar-entry-font-size, --lk-sidebar-entry-font-weight |
lk-sidebar-entry--active | The link to the page being viewed. | lk-sidebar | --lk-sidebar-active-entry-color |
On this page
| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-outline | The "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-nav | The list of links inside it. | lk-outline | --lk-outline-color | |
lk-outline-link | A link to a widget on the page. | lk-outline-nav | --lk-outline-color, --lk-outline-font-size, --lk-outline-font-weight | |
lk-outline-sublink | A link to a heading inside a widget. | lk-outline-nav | --lk-outline-color, --lk-outline-font-size, --lk-outline-font-weight |
Previous and next
| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-pagination-link | A "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-label | Its small label ("Previous", "Next"). | lk-pagination-link | --lk-pagination-label-color, --lk-pagination-label-font-size, --lk-pagination-label-font-weight | |
lk-pagination-title | The 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
| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-card-ui | Everything a business card page adds. Its colors are the --lk-card-* variables set on it. | lk-page | ||
lk-card-show | The view a card opens on from the Home Screen. | lk-card-ui | ||
lk-card-qr | The card's QR code in that view. | lk-card-show | ||
lk-card-name | The person's name in that view. | lk-card-show | ||
lk-card-title | The person's job title in that view. | lk-card-show | ||
lk-card-actions | A row of card buttons. | lk-card-show | ||
lk-card-button | A card button (Share, Add to contacts, Copy link, Install). | lk-card-actions | lk-card-button--primary, lk-card-button--secondary, lk-card-chip--qr | |
lk-card-button--primary | The main button of a row. | lk-card-actions | ||
lk-card-button--secondary | The other buttons of a row. | lk-card-actions | ||
lk-card-status | A short message after an action, such as "Link copied". | lk-card-show | ||
lk-card-offline | The note shown when the card opens without a connection. | lk-card-show | ||
lk-card-install | The steps to put the card on a phone. | lk-card-ui | ||
lk-card-install-title | The title of those steps. | lk-card-install | ||
lk-card-chips | The floating Share chip on the page. | lk-card-ui | ||
lk-card-chip--qr | The 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) ordata-reveal="fade"/data-reveal="scale"and get therevealedclass 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
:scopefor the widget itself (lk-widget), for example:scope:hover .lk-widget-title. - The scope is the widget's
data-lk-widget-themeattribute, so a:scoperule reaches every widget using the theme on the page; targetlk-*hooks inside it for anything narrower. - Variables are set on the widget. Redefine one in a
:scoperule, 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-colorand so on). - Theme settings < layout theme CSS < widget theme CSS for its own widgets. Within one stylesheet, the later rule wins at equal specificity.
@keyframesnames 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 thelk-pdf-*hooks and--lk-pdf-*variables. - Only the
lk-*classes and--lk-*variables are stable. Other classes in the widget (utilities such asflexorpx-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)| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-widget | A 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-header | The card's header bar. | lk-widget | --lk-w-header-padding, --lk-w-header-background-color | |
lk-widget-icon | The leading icon's box. | lk-widget-header | lk-widget-icon--offset | --lk-w-icon-size, --lk-w-icon-border-radius, --lk-w-icon-background-color |
lk-widget-icon--offset | The leading icon when the title is centered and there is no action button. | lk-widget-header | --lk-w-icon-size | |
lk-widget-icon-glyph | The leading icon itself. | lk-widget-icon | --lk-w-icon-glyph-size, --lk-w-icon-color | |
lk-widget-title | The 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-spacer | The space that keeps a centered title centered when there is an icon. | lk-widget-header | --lk-w-icon-size | |
lk-widget-action | Every 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--clipboard | The 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--redirect | The 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--download | The 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-download | The 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-glyph | The 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-body | The card's body, under the header (its background color and image). | lk-widget | --lk-w-background-image, --lk-w-background-color | |
lk-widget-content | The body's padded content. | lk-widget-body | lk-widget-content--padded | --lk-w-body-padding-x |
lk-widget-content--padded | The 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-subtitle | The 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-brief | The 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-custom | The 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| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-email-value | The 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| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-phone-value | The 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| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-whatsapp-value | The 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| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-schedule-row | One day of the schedule. | lk-widget-custom | --lk-w-schedule-color | |
lk-schedule-day | The day's name. | lk-schedule-row | --lk-w-schedule-font-size | |
lk-schedule-hours | The 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| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-profile | A Header widget in the profile layout: the widget's frame, with the cover, the photo and the texts inside. | lk-widget | ||
lk-profile-cover | The 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-avatar | The 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--circle | A round profile photo. | lk-widget-content | ||
lk-profile-avatar--rounded | A profile photo with rounded corners. | lk-widget-content | ||
lk-profile-avatar--organic | A profile photo in a soft, irregular shape. | lk-widget-content | ||
lk-profile-name | The profile's name: the widget's title, centered. | lk-widget-content | ||
lk-profile-role | The profile's role: the widget's subtitle, in the subtitle color. | lk-widget-content | ||
lk-profile-bio | The 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)| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-contact-actions | The row of quick actions when a Contact widget shows quick actions. | lk-widget-custom | ||
lk-contact-action | One quick action (call, email, WhatsApp, save, share): its icon over its label. | lk-contact-actions | ||
lk-contact-action-icon | A 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-label | A quick action's label, in the subtitle color. | lk-contact-action | --lk-w-subtitle-color | |
lk-contact-save | The 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 |
Links widget
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)| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-links | The list of links when the widget shows buttons, buttons with thumbnails or pills. | lk-widget-custom | ||
lk-links-item | One 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--button | A 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--pill | A link shown as a round pill. | lk-links | ||
lk-links-item--featured | A 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-glyph | The link's icon. | lk-links-item | --lk-w-icon-redirect-styles-color | |
lk-links-item-thumb | The link's own image, as a thumbnail on buttons with thumbnails. | lk-links-item | --lk-w-icon-border-radius | |
lk-links-item-label | The link's label on buttons and pills. | lk-links-item | --lk-w-icon-redirect-styles-color | |
lk-links-item-arrow | The arrow at the end of a button. | lk-links-item | --lk-w-icon-redirect-styles-color |
Gallery widget
text
lk-widget-custom > lk-gallery
lk-gallery-slide (lk-gallery-slide--fullscreen)
lk-gallery-nav
lk-gallery-dot (lk-gallery-dot--active)| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-gallery | The gallery frame. | lk-widget-custom | ||
lk-gallery-slide | One image. | lk-gallery | lk-gallery-slide--fullscreen | --lk-w-gallery-slide-border-radius, --lk-w-gallery-transition-ms |
lk-gallery-slide--fullscreen | An image while the gallery is full screen. | lk-gallery | ||
lk-gallery-nav | The 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-dot | A position dot under the gallery. | lk-gallery | lk-gallery-dot--active | --lk-w-gallery-dot-inactive-color |
lk-gallery-dot--active | The 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| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-markdown | The 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| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-embed | The 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| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-pdf | The whole PDF viewer. | lk-widget-custom | lk-pdf--fullscreen | |
lk-pdf--fullscreen | The viewer while it is full screen. | lk-widget-custom | ||
lk-pdf-toolbar | The viewer's toolbar. | lk-pdf | ||
lk-pdf-counter | The page counter in the toolbar. | lk-pdf-toolbar | ||
lk-pdf-button | A toolbar button. | lk-pdf-toolbar | ||
lk-pdf-stage | The area around the pages. | lk-pdf | ||
lk-pdf-page | One page. | lk-pdf-stage | ||
lk-pdf-arrow | A large previous or next arrow. | lk-pdf-stage | lk-pdf-arrow--prev, lk-pdf-arrow--next | |
lk-pdf-arrow--prev | The previous arrow. | lk-pdf-stage | ||
lk-pdf-arrow--next | The next arrow. | lk-pdf-stage | ||
lk-pdf-loader | The loading indicator. | lk-pdf-stage | ||
lk-pdf-error | The message shown when the PDF cannot be opened. | lk-pdf | ||
lk-pdf-panel | The Pages, Contents and Search panels. | lk-pdf | lk-pdf-panel--open | |
lk-pdf-panel--open | The panel that is open. | lk-pdf | ||
lk-pdf-thumbs | The list of page thumbnails. | lk-pdf-panel | ||
lk-pdf-thumb | A page thumbnail. | lk-pdf-thumbs | lk-pdf-thumb--current | |
lk-pdf-thumb--current | The thumbnail of the current page. | lk-pdf-thumbs | ||
lk-pdf-toc-item | An entry of the table of contents. | lk-pdf-panel | ||
lk-pdf-search | The search box. | lk-pdf-panel | ||
lk-pdf-search-result | A 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| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-asset-download-name | The 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-description | The 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-type | The 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-size | The 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| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-palette-swatch | A 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-name | A 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-description | A 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-label | A 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-code | A 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-copy | The 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-glyph | That 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| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-showcase-tile--light | An 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--dark | An 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| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-typography | The typography specimen. | lk-widget-custom | --lk-w-typography-color | |
lk-typography-sample | A 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| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-tokens | The design tokens list. | lk-widget-custom | --lk-w-design-tokens-value-color | |
lk-tokens-table | A table of tokens. | lk-tokens | --lk-w-design-tokens-specimen-border-color | |
lk-tokens-row | A row of that table. | lk-tokens-table | --lk-w-design-tokens-specimen-border-color | |
lk-tokens-label | A token's name. | lk-tokens-row | --lk-w-design-tokens-label-color | |
lk-tokens-specimen | A 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| Hook | What it is | Inside | States | Variables |
|---|---|---|---|---|
lk-snippets | The 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-badge | A language filter button. | lk-snippets | --lk-w-code-snippets-card-border-color, --lk-w-code-snippets-badge-color | |
lk-snippets-card | One 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-title | The snippet's title. | lk-snippets-card | --lk-w-code-snippets-title-color | |
lk-snippets-desc | The snippet's description. | lk-snippets-card | --lk-w-code-snippets-description-color | |
lk-snippets-usage | The snippet's usage notes (also .markdown-body). | lk-snippets-card | --lk-w-code-snippets-description-color | |
lk-snippets-code | The code block. | lk-snippets-card | --lk-w-code-snippets-code-background-color, --lk-w-code-snippets-code-text-color | |
lk-snippets-props | The 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
:scoperule.--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