Docs

CSS Token Reference

3 min readUpdated June 15, 2026

WP LinkCanvas uses a system of CSS custom properties (variables) prefixed with --nlb- to style every part of the bio page. All tokens are declared on body.nlb-page and cascade into the page, card, links, social icons, and player.

Tokens are set by the theme system — choosing a preset or using the Custom Theme Builder writes these values. You can override individual tokens with Custom CSS on the bio page or with a global stylesheet.

Page tokens#

These tokens control the overall page and outer card appearance.

TokenWhat it controls
--nlb-page-bgFull-page background colour or gradient
--nlb-card-bgOuter card background (computed from bg-1 and bg-2)
--nlb-card-bg-2Second colour stop for the card gradient
--nlb-card-bg-fallbackSolid fallback when gradient is not supported
--nlb-card-radiusCorner radius of the outer card (px)
--nlb-card-border-colorBorder colour of the outer card (rgba)
--nlb-card-border-widthBorder thickness of the outer card (px)
--nlb-card-shadowComputed drop shadow on the outer card
--nlb-card-maxMaximum width of the outer card
--nlb-card-padding-xHorizontal padding inside the outer card
--nlb-card-padding-yVertical padding inside the outer card
--nlb-bg-imageOptional full-page background image URL
--nlb-textDefault text colour
--nlb-text-mutedMuted / secondary text colour
--nlb-accentAccent colour for interactive elements and featured states
--nlb-selection-bgBackground colour when text is selected
--nlb-selection-colorText colour when text is selected
--nlb-font-familyBody font stack
--nlb-heading-font-familyHeading font stack

Profile tokens#

These tokens control the avatar, title, subtitle, and bio text.

TokenWhat it controls
--nlb-avatar-sizeAvatar circle diameter
--nlb-avatar-ring-colorAvatar ring/border colour
--nlb-avatar-ring-widthAvatar ring/border width
--nlb-avatar-shadowAvatar drop shadow
--nlb-title-colorDisplay name colour
--nlb-title-sizeDisplay name font size
--nlb-title-weightDisplay name font weight
--nlb-title-spacingDisplay name letter spacing
--nlb-subtitle-colorSubtitle/tagline colour
--nlb-subtitle-sizeSubtitle font size
--nlb-subtitle-weightSubtitle font weight
--nlb-bio-colorBio text colour
--nlb-bio-sizeBio text font size

These tokens control the individual link button rows.

TokenWhat it controls
--nlb-link-bgLink button background (rgba)
--nlb-link-bg-hoverLink button background on hover
--nlb-link-textLink label text colour
--nlb-link-text-hoverLink label text colour on hover
--nlb-link-border-colorLink button border colour (rgba)
--nlb-link-border-color-hoverLink button border colour on hover
--nlb-link-border-widthLink button border thickness (px)
--nlb-link-border-styleLink button border style (solid, dashed, etc.)
--nlb-link-radiusLink button corner radius (px)
--nlb-link-font-sizeLink label font size
--nlb-link-font-weightLink label font weight
--nlb-link-padding-xHorizontal padding inside link buttons
--nlb-link-padding-yVertical padding inside link buttons
--nlb-link-shadowLink button resting shadow
--nlb-link-shadow-hoverLink button shadow on hover
--nlb-link-transform-hoverCSS transform applied on hover (e.g. translateY(-2px))
--nlb-link-transitionTransition timing for link hover effects
TokenWhat it controls
--nlb-card-link-radiusCorner radius on image card links
--nlb-card-link-overlayOverlay band colour on Enhanced Link cards
--nlb-card-link-overlay-colorAlias for the overlay band colour
--nlb-card-link-title-colorTitle text colour on Enhanced Link cards
--nlb-card-link-badge-bgIcon badge background colour
--nlb-card-link-badge-colorIcon badge icon colour
--nlb-media-thumb-sizeSquare thumbnail width in Media links

Social icon tokens#

TokenWhat it controls
--nlb-social-colorSocial icon glyph colour
--nlb-social-color-hoverSocial icon glyph colour on hover
--nlb-social-bgSocial icon button background
--nlb-social-bg-hoverSocial icon button background on hover
--nlb-social-border-colorSocial icon button border colour
--nlb-social-border-widthSocial icon button border width
--nlb-social-radiusSocial icon button corner radius
--nlb-social-sizeSocial icon button diameter
--nlb-social-icon-sizeSocial icon glyph size within the button
--nlb-social-transform-hoverCSS transform on hover

Language switcher tokens#

TokenWhat it controls
--nlb-lang-bgLanguage switcher tab background
--nlb-lang-bg-activeActive language tab background
--nlb-lang-text-activeActive language tab text colour
--nlb-lang-borderLanguage switcher border colour
--nlb-lang-radiusLanguage switcher corner radius

Player tokens#

These tokens theme the Vidstack player when Vidstack links are on the bio page.

TokenWhat it controls
--nlb-player-accentPlay button, scrubber, and progress fill colour
--nlb-player-bgPlayer control bar background
--nlb-player-btn-colorPlayer control icon colour
--nlb-player-text-colorPlayer time code and title text colour
--nlb-player-radiusPlayer wrapper corner radius

Overriding tokens with Custom CSS#

To override a token on a specific bio page, use the Custom CSS field in the editor:

css

body.nlb-page {
    --nlb-link-radius: 0px;
    --nlb-accent: #e91e8c;
}

To override globally across all bio pages, add CSS to your theme’s stylesheet or a plugin like Simple Custom CSS:

css

body.nlb-page {
    --nlb-card-max: 520px;
}

All overrides placed on body.nlb-page cascade into every element on the page automatically.

This website uses cookies to enhance your browsing experience and ensure the site functions properly. By continuing to use this site, you acknowledge and accept our use of cookies.

Accept All Accept Required Only