profound-logoProfound CMS
⌘K
Admin
Theme
DocsTutorialBlogPhilosophy
DocsTutorialBlogPhilosophy

Blog

Static Blog PostSetup Hybrid CMS ProjectTailwind TokenswitchOur TeamFallow and LLM-assisted cleanup
All Systems Operational
Powered Byprofound-logo
Theme

Tailwind Token

Source of truth for our shared Tailwind tokens and custom utilities.

Tailwind Token Reference

packages/design-system/globals.css defines the shared Tailwind contract for the design system.

It exposes three categories of frontend-facing utilities:

  1. Theme utilities from @theme
  2. Token aliases from @theme inline
  3. Custom utilities from @utility

Use these utilities instead of default Tailwind scales whenever an equivalent design-system token exists.

These Tailwind tokens and custom utilities are not globally available to every app by default. A service can use them only after it imports @repo/design-system/globals.css them into its app-level stylesheet and makes sure Tailwind scans the service’s source files for class usage. For a new service, the setup requirement is: import the design-system stylesheet in the service’s root globals.css, then configure Tailwind source discovery so classes used in that service are included in generation. Without both pieces, tokens may exist in the design system, but utility classes like text-text-primary, bg-bg-secondary, rounded-8, or shadow-flat will not be reliably available in the service.


Typography

These are the default UI typography utilities.

UtilityPurpose
text-title-regularLarge section/page title
text-title-small-regularSmaller title, regular weight
text-title-small-semiboldSmaller title, semibold
text-title-mini-regularCompact title, regular
text-title-mini-semiboldCompact title, semibold
text-body-regularDefault body copy
text-body-regular-spacedBody copy with more vertical spacing
text-body-regular-mediumDefault body copy, medium weight
text-body-small-regularCompact body text
text-body-small-spacedCompact body text with more spacing
text-body-small-mediumCompact body text, medium weight
text-body-mini-regularSmall supporting text
text-body-mini-mediumSmall supporting text, medium weight
text-body-micro-mediumVery small UI labels
text-paragraph-regularParagraph copy
text-paragraph-smallSmall paragraph copy

Example: text-title-mini-semibold text-text-primary, text-body-small-regular text-text-secondary


Font

UtilityPurpose
font-interShared product font stack

Background Colors

Use these for surfaces and containers.

UtilityPurpose
bg-bg-baseApp/page base background
bg-bg-primaryPrimary surface
bg-bg-secondarySecondary surface
bg-bg-tertiaryTertiary surface
bg-bg-quaternaryQuaternary surface
bg-bg-blueBlue-tinted surface
bg-bg-purplePurple-tinted surface
bg-bg-redRed-tinted surface
bg-bg-red-hoverRed hover surface
bg-bg-greenGreen-tinted surface
bg-bg-green-hoverGreen hover surface
bg-bg-orangeOrange-tinted surface
bg-bg-orange-hoverOrange hover surface
bg-bg-cyanCyan-tinted surface
bg-bg-amberAmber-tinted surface
bg-bg-overlayOverlay background
bg-bg-headerHeader backdrop
bg-bg-tooltipTooltip surface
bg-bg-transparentTransparent background

Text Colors

Use these for readable content and semantic text.

UtilityPurpose
text-text-whiteWhite text
text-text-blackBlack text
text-text-primaryPrimary text
text-text-secondarySecondary text
text-text-tertiaryTertiary text
text-text-quaternaryQuaternary text
text-text-greenSuccess text
text-text-redDestructive text
text-text-blueInformational text
text-text-purplePurple accent text
text-text-inverseText on dark/filled surfaces
text-text-orangeOrange accent text
text-text-yellowYellow accent text
text-text-amberAmber accent text
text-text-cyanCyan accent text
text-text-tooltipTooltip text

Border Colors

Use these for borders and outlines.

UtilityPurpose
border-red-borderRed semantic border
border-blue-borderBlue semantic border
border-green-borderGreen semantic border
border-amber-borderAmber semantic border
border-purple-borderPurple semantic border
border-orange-borderOrange semantic border
border-cyan-borderCyan semantic border
border-fill-quaternaryDefault neutral border

Fill Colors

These are useful for filled controls, icons, and emphasized surfaces.

UtilityPurpose
bg-fill-primaryPrimary fill
bg-fill-primary-hoverPrimary fill hover
bg-fill-secondarySecondary fill
bg-fill-tertiaryTertiary fill
bg-fill-quaternaryQuaternary fill
bg-fill-quinaryQuinary fill
bg-fill-inverseInverse fill
bg-fill-greenGreen fill
bg-fill-green-hoverGreen fill hover
bg-fill-redRed fill
bg-fill-red-hoverRed fill hover
bg-fill-blueBlue fill
bg-fill-orangeOrange fill
bg-fill-orange-lightestLight orange fill
bg-fill-orange-darkDark orange fill
bg-fill-amberAmber fill
bg-fill-cyanCyan fill
bg-fill-yellowYellow fill

Radius

Use tokenized radius values instead of stock rounded scales where possible.

UtilityPurpose
rounded-11px radius
rounded-22px radius
rounded-44px radius
rounded-55px radius
rounded-66px radius
rounded-88px radius
rounded-1010px radius
rounded-1212px radius
rounded-1616px radius
rounded-1818px radius
rounded-roundedFully pill/round radius

Shadows

Use shared shadow tokens rather than arbitrary values.

UtilityPurpose
shadow-flatDefault elevated surface
shadow-focusFocused surface
shadow-lowLow elevation
shadow-highHigh elevation
shadow-header-blurHeader-specific shadow
shadow-flat-redDestructive emphasis shadow

Workflow Shadows

UtilityPurpose
shadow-workflow-menu-highWorkflow menu elevation
shadow-workflow-node-defaultDefault workflow node
shadow-workflow-node-default-hoverWorkflow node hover
shadow-workflow-node-default-activeWorkflow node active
shadow-workflow-node-successSuccess workflow node
shadow-workflow-node-success-hoverSuccess workflow node hover
shadow-workflow-node-success-activeSuccess workflow node active
shadow-workflow-node-failedFailed workflow node
shadow-workflow-node-failed-hoverFailed workflow node hover
shadow-workflow-node-failed-activeFailed workflow node active

Motion

Easing

UtilityPurpose
ease-too-coolPrimary branded easing
ease-hoverHover easing
ease-quintQuintic easing
ease-toastToast animation easing

Animation

UtilityPurpose
animate-spinner-spin-barSpinner
animate-drawer-in-from-rightDrawer enter from right
animate-drawer-in-from-leftDrawer enter from left
animate-drawer-in-from-topDrawer enter from top
animate-drawer-in-from-bottomDrawer enter from bottom
animate-drawer-out-to-rightDrawer exit to right
animate-drawer-out-to-leftDrawer exit to left
animate-drawer-out-to-topDrawer exit to top
animate-drawer-out-to-bottomDrawer exit to bottom
animate-slide-in-from-rightSlide in from right
animate-slide-out-to-rightSlide out to right
animate-slide-in-from-leftSlide in from left
animate-slide-out-to-leftSlide out to left
animate-slide-in-from-topSlide in from top
animate-slide-out-to-topSlide out to top
animate-slide-in-from-bottomSlide in from bottom
animate-slide-out-to-bottomSlide out to bottom
animate-scale-in-slowSlow scale in
animate-scale-in-fastFast scale in
animate-scale-out-fastFast scale out
animate-fade-in-opacityFade in
animate-fade-out-opacityFade out
animate-toast-slide-in-from-rightToast enter
animate-toast-slide-out-to-rightToast exit
animate-chart-option-fadeChart option transition
animate-success-checkmark-inSuccess checkmark
animate-blur-outBlur out
animate-fade-in-blurFade in with blur
animate-fade-blur-slide-in-rightFade/blur slide in right
animate-fade-blur-slide-out-rightFade/blur slide out right
animate-fade-blur-slide-in-bottomFade/blur slide in bottom
animate-chat-loading-textChat loading shimmer
animate-skeleton-generate-contentSkeleton content generation
animate-skeleton-mask-generate-contentSkeleton mask animation
animate-update-tooltip-valuesTooltip value transition
animate-action-card-slide-in-leftAction card left intro
animate-action-card-slide-in-rightAction card right intro
animate-accordion-slide-downAccordion open
animate-accordion-slide-upAccordion close
animate-marqueeMarquee loop
animate-shimmerShimmer
animate-fade-in-upFade in upward

Z-Index Utilities

These are custom @utility classes.

UtilityPurpose
z-buttonButton layer
z-sidebarSidebar layer
z-popoverPopover layer
z-headerHeader layer
z-dropdownDropdown layer
z-dialogDialog layer
z-drawerDrawer layer
z-calendarCalendar layer
z-overlay-bgOverlay backdrop
z-overlayOverlay
z-overlay-contentOverlay content
z-onboarding-bgOnboarding backdrop
z-onboarding-contentOnboarding content
z-tooltipTooltip layer
z-toastToast layer

Interaction Utilities

These are custom @utility classes for accessibility and hit-target behavior.

UtilityPurpose
focusable-element-outlineShared focus-visible outline
focusable-input-shadowShared focus-visible input shadow
hover-expand-*Expands the interactive hit area without changing the layout

Example: hover-expand-2 focusable-element-outline


Mask Pattern Utilities

These are custom @utility classes that apply SVG mask patterns using currentColor.

UtilityPurpose
mask-hexagonsHexagon pattern
mask-bricksBrick pattern
mask-diagonal-linesDiagonal line pattern
mask-graphGraph/grid pattern
mask-polka-dotsPolka dot pattern
mask-dotsDot pattern
mask-dots-rotatedRotated dot pattern

Miscellaneous Utilities

UtilityPurpose
page-sections-spacing-y-10Shared vertical spacing between page sections
no-scrollbarHides the scrollbar while preserving scroll behavior

Dark Mode

Dark mode is token-driven, not class-driven.

The same utility names work in both themes because @variant dark they reassign the underlying CSS variables. Frontend code should continue using the same semantic utilities:

Example: bg-bg-primary text-text-primary border border-fill-quaternary shadow-flat


Recommended Usage

Prefer semantic design-system utilities over default Tailwind values.

PreferAvoid
text-body-small-regulartext-sm leading-5
text-text-secondarytext-gray-500
bg-bg-secondarybg-zinc-100
rounded-8rounded-md
shadow-flatarbitrary shadow values


Continue Reading
Previous‹Setup Hybrid CMS ProjectNextswitch›