Skip to main content

Component classes

Besides the Tailwind utilities that it uses everywhere, the web app defines a number of utility classes of its own. This page lists the classes that frontend/src/index.css declares with Tailwind's @utility, so that you can see what a class stands for before you override it. Each class is a name for a set of declarations or @apply lines. A nested selector applies to the class's own element, with & standing for the class. The app's own classes begin with ws-.

The table shows each class with its declarations, its nested selectors and where it is used. For the ws- classes, the used column counts the places in the frontend source that name the class, and a class that nothing names is declared and unused. Utility names that do not begin with ws- are generic words, so the table does not count their uses. The table is generated from the stylesheet and from the frontend source.

ClassDeclarationsNested selectorsUsed by
.stroke-*
  • --stroke-width: calc(--value(number) * 1px)
  • stroke-width: var(--stroke-width)
nonenot counted
.ws-avatar-user
  • @apply min-w-7 w-7 h-7 rounded-full flex items-center justify-center text-white text-xs font-medium border-2 border-white dark:border-dark-800 uppercase
none
  • AdminRoles/RoleMembersCell
  • AdminRoles/RoleDialog
3 uses in 2 files
.ws-label
  • @apply body-xs-regular mb-1 inline-block text-general-label
  • @apply group-aria-disabled:cursor-not-allowed group-aria-disabled:text-general-label-disabled
  • @apply peer-disabled:cursor-not-allowed peer-disabled:text-general-label-disabled
none
  • DraggableCard/FormParamDef
6 uses in 1 file
.ws-parameter
  • @apply rounded-sm border border-general-border-primary hover:border-general-border-primary hover:bg-input-field-bg-hover bg-input-field-bg text-general-label py-0.5 pl-1
none
  • Helpers/IframeParamControls
  • WidgetParams/QueryParams
  • components/NewAdvancedSelect
11 uses in 8 files
.ws-page-container
  • @apply mx-[22px] my-[10px] min-h-[96.5vh] overflow-y-auto rounded bg-general-bg-primary p-2.5 only-sm:max-h-[90vh] only-sm:min-h-[90vh]
nonenothing in the source
.ws-uppercase-small-title
  • @apply text-2xs uppercase tracking-wider text-dark-100
none
  • AdminRoles/ConfirmPermissionsChangesDialog
  • DataConnectors/AddConnectionModal
  • General/WidgetInfoTooltip
4 uses in 4 files
.ws-tag
  • @apply rounded-[12px] px-1.5 text-2xs bg-tab-bg-primary text-link-color
none
  • AdminRoles/PermissionItemRow
  • General/SharedAppsDialog
  • AI/PromptCard
8 uses in 5 files
.ws-small-navbar-btn
  • @apply cursor-pointer h-5 w-5 rounded-[2px] p-0.5 text-ds-text-body disabled:opacity-40 data-[state=open]:bg-general-bg-secondary disabled:cursor-not-allowed disabled:text-general-label-disabled
none
  • AI/PromptCard
  • AdminRoles/RolesPage
  • DraggableCard/NavBar
65 uses in 25 files
.ws-icon-btn-v2
  • @apply cursor-pointer flex h-8 w-8 items-center justify-center rounded p-1 text-ds-text-body hover:bg-general-bg-primary-hover focus:outline-hidden disabled:text-general-label-disabled disabled:hover:bg-transparent! data-[state=open]:bg-general-bg-primary-hover
none
  • LayoutAuth/HamburgerMenu
  • LayoutAuth/PlusMenu
  • LayoutAuth/SidebarSection
3 uses in 3 files
.ws-icon-btn
  • @apply cursor-pointer inline-flex h-[26px] w-[26px] items-center justify-center rounded bg-general-bg-secondary text-ds-text-body hover:bg-general-bg-secondary-hover
  • & > svg: @apply h-[14px] w-[14px]
nothing in the source
.ws-dropdown-container
  • @apply flex flex-col gap-2 rounded border border-dropdown-border bg-dropdown-bg p-2 text-xs text-ds-text-subtitle shadow-dropdown
none
  • MoveToDropDown/MoveToTabsMenu
  • components/EllipsisDropdown
  • AdminRoles/RangeDatePicker
17 uses in 14 files
.ws-dropdown-item
  • @apply inline-flex w-full cursor-pointer items-center justify-start gap-1.5 whitespace-nowrap rounded-[2px] p-1 transition-colors hover:bg-general-bg-secondary-hover
none
  • components/EllipsisDropdown
  • LayoutAuth/SharedDashboardsSidebar
  • MoveToDropDown/MoveToTabsMenu
37 uses in 12 files
.ws-dropdown-item-noclick
  • @apply inline-flex w-full items-center justify-start gap-1.5 whitespace-nowrap rounded-[2px] p-1 transition-colors
none
  • components/EllipsisDropdown
1 uses in 1 file
.ws-navigation-item
  • @apply flex h-8 cursor-pointer items-center gap-2 whitespace-nowrap rounded p-2 text-xs text-ds-text-body
  • @apply hover:bg-general-bg-secondary
  • @apply transition-all
  • &.active: @apply bg-general-bg-secondary-hover text-general-label
  • &.active svg: @apply grow-0 text-link-color
  • LayoutAuth/AuthSidebar
  • General/SidebarNavButton
  • LayoutAuth/SharedDashboardsSidebar
6 uses in 5 files
.activenone
  • &.ws-navigation-item: @apply bg-tab-bg-primary hover:bg-tab-bg-primary text-general-label
  • &.ws-navigation-item svg: @apply grow-0 text-link-color
not counted
.ws-navigation-item-active
  • @apply bg-tab-bg-primary hover:bg-tab-bg-primary text-general-label-hover
  • & svg: @apply grow-0 text-link-color
  • LayoutAuth/AuthSidebar
  • LayoutAuth/SharedDashboardsSidebar
  • LayoutAuth/TabItem
3 uses in 3 files
.is-active
  • @apply text-link-color!
nonenot counted
.ws-modal-close
  • @apply absolute right-2 top-2 rounded-[4px] text-ds-text-body focus:outline focus:outline-light-500 md:right-[46px] md:top-[40px]
nonenothing in the source
.ws-modal
  • @apply fixed left-1/2 top-1/2 z-50 flex w-[90%] max-w-[568px] -translate-x-1/2 -translate-y-1/2 animate-fade-in flex-col items-start overflow-auto rounded bg-general-bg-primary p-2 duration-300 focus:outline-hidden md:p-10 lg:min-w-[570px] 2xl:min-w-[800px]
  • box-shadow: 10px 14px 14px 0px rgba(0, 0, 0, 0.2)
none
  • index.css
1 uses in 1 file
.ws-modal-overlay
  • @apply fixed inset-0 z-40 bg-surface-layer backdrop-blur-xs backdrop-filter
nonenothing in the source
.ws-modal-title
  • @apply mb-4 text-base font-semibold
nonenothing in the source
.ws-modal-description
  • @apply mb-4 text-xs
nonenothing in the source
.ws-card
  • @apply overflow-hidden rounded-md border border-general-border-primary bg-surface-card text-ds-text-body
nonenothing in the source
.tw-transition
  • @apply transition duration-150 ease-out
nonenot counted
.ws-btn-common
  • @apply inline-flex h-[32px] items-center justify-center gap-2 rounded px-3 py-1 text-center text-xs no-underline! transition duration-150 ease-out md:w-fit
  • @apply cursor-pointer
none
  • index.css
8 uses in 1 file
.ws-btn-secondary-v2
  • @apply ws-btn-common bg-btn-secondary-bg px-3 py-1
  • @apply hover:bg-btn-secondary-bg-hover
  • @apply active:bg-general-bg-secondary-hover
  • @apply focus:outline focus:outline-general-border-disabled
  • @apply disabled:bg-btn-secondary-bg-disabled disabled:text-general-label-disabled
none
  • AI/ChatSelection
  • General/CreateFolderPopup
  • General/RenamePopup
3 uses in 3 files
.ws-btn
  • @apply ws-btn-common bg-btn-secondary-bg text-general-label hover:bg-general-bg-secondary-hover focus:outline focus:outline-light-500 active:bg-general-bg-secondary-disabled disabled:bg-general-bg-secondary-disabled disabled:text-ds-text-caption
  • @apply disabled:pointer-events-none disabled:cursor-not-allowed
nonenothing in the source
.ws-btn-blue
  • @apply ws-btn-common bg-btn-primary-bg text-btn-primary-label hover:bg-btn-primary-bg-hover focus:outline focus:outline-light-500 disabled:bg-btn-primary-bg-disabled disabled:text-btn-primary-label-disabled
  • @apply disabled:pointer-events-none disabled:cursor-not-allowed
none
  • General/RenamePopup
1 uses in 1 file
.ws-btn-secondary
  • @apply ws-btn-common border border-btn-secondary-border text-general-label outline-offset-0 hover:border-general-label-hover hover:text-general-label-hover focus:outline focus:outline-light-500 active:border-general-label-hover active:bg-general-bg-secondary-hover active:text-general-label-hover disabled:border-general-label-disabled disabled:bg-transparent disabled:text-ds-text-caption
nonenothing in the source
.ws-btn-tertiary
  • @apply ws-btn-common bg-general-bg-secondary text-ds-text-subtitle hover:bg-general-bg-secondary-hover hover:text-general-label-hover focus:bg-general-bg-secondary-disabled focus:outline focus:outline-light-500 active:bg-general-bg-secondary-disabled active:text-general-label-hover disabled:bg-general-bg-primary-disabled disabled:text-general-label-disabled
  • @apply disabled:cursor-not-allowed disabled:hover:bg-general-bg-primary-disabled disabled:hover:text-general-label-disabled
none
  • AI/ChatSelection
  • Auth/TOTPEnterForm
  • General/CreateFolderPopup
4 uses in 4 files
.ws-btn-outlined
  • @apply ws-btn-common border border-btn-outlined-border text-btn-outlined-label hover:border-btn-outlined-border-hover hover:text-general-label-hover focus-visible:text-general-label-hover active:text-general-label disabled:text-btn-outlined-label-disabled
  • @apply disabled:cursor-not-allowed disabled:border-btn-outlined-border-disabled
nonenothing in the source
.ws-btn-ghost
  • @apply ws-btn-common text-btn-ghost-label hover:text-general-label-hover hover:bg-btn-ghost-bg-hover focus-visible:text-general-label-hover active:text-general-label disabled:text-btn-ghost-label-disabled
  • @apply disabled:cursor-not-allowed
nonenothing in the source
.ws-btn-underline
  • @apply ws-btn-common border border-btn-outlined-border text-btn-ghost-label hover:text-general-label-hover hover:border-btn-outlined-border-hover focus-visible:text-general-label-hover active:text-general-label disabled:text-btn-ghost-label-disabled
nonenothing in the source
.ws-group-tab
  • @apply mb-12 flex w-full
nonenothing in the source
.input
  • @apply h-12 w-full rounded-md border border-general-border-primary bg-transparent py-3 pl-4 pr-2 text-sm text-ds-text-heading focus:ring-0 disabled:border-general-border-disabled
nonenot counted
.ws-small-input
  • @apply h-9 w-full rounded border border-general-border-primary bg-input-field-bg px-2 py-1 text-xs focus:outline-hidden focus:ring-0
none
  • General/ExportWidgetModal
1 uses in 1 file
.ws-floating-label
  • @apply absolute left-4 top-2 z-0 origin-[0] -translate-y-8 scale-75 transform px-1 text-sm text-ds-text-caption duration-300 peer-placeholder-shown:top-1/2 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:scale-100 peer-focus:-top-2 peer-focus:-translate-y-4 peer-focus:scale-75 peer-focus:px-1 peer-focus:text-ds-text-heading
nonenothing in the source
.ws-hyper-link
  • @apply text-link-color underline font-medium
none
  • components/GridLayout.hooks
  • AdminEntities/EntityPluginsLine
  • AdminPlugins/EntityPluginsTab
13 uses in 12 files
.ws-hyper-link-copilot
  • @apply text-link-color underline font-medium
nonenothing in the source
.ws-divider
  • @apply h-[1px] w-full bg-surface-divider
none
  • AI/CopilotSwitcher
  • AI/CopilotAIMessage
  • DataConnectors/AddConnectionModal
11 uses in 10 files
.ws-divider-vertical
  • @apply h-full w-[1px] bg-surface-divider
none
  • Helpers/PdfViewerCore
1 uses in 1 file
.ws-code
  • @apply bg-general-bg-primary border-general-border-primary/50 text-ds-text-heading rounded border p-2
none
  • LayoutAuth/ShortcutDialog
  • custom/Markdown
2 uses in 2 files
.ws-floating-actions
  • @apply flex p-1.5 rounded gap-1.5 items-center bg-general-bg-primary shadow-[0px_2px_10px_0px_rgba(0,0,0,0.2)]
nonenothing in the source
.ws-minimal-input
  • @apply h-[20px] rounded border border-general-border-primary bg-input-field-bg p-1.5 text-xs text-ds-text-body focus:border-general-label focus:outline-hidden active:border-general-label
none
  • ui/Calendar
  • DraggableCard/FormParamDef
  • WidgetParams/QueryParams
7 uses in 4 files
.ws-minimal-input-full
  • @apply h-[20px] resize-none rounded border border-general-border-primary bg-input-field-bg p-1.5 text-xs text-ds-text-heading placeholder:text-ds-text-subtitle focus:border-general-label focus:outline-hidden focus:placeholder:text-ds-text-heading active:border-general-label
nonenothing in the source
.ws-minimal-input-search
  • @apply h-[25px] rounded border px-3 border-general-border-primary bg-input-field-bg text-ds-text-heading
none
  • AI/ChatSelection
  • General/CreateFolderPopup
  • General/RenamePopup
3 uses in 3 files
.ws-new-input
  • @apply h-[30px] rounded border px-3 border-general-border-primary bg-input-field-bg text-ds-text-heading focus:border-general-label active:border-general-label
nonenothing in the source
.error-border
  • @apply border-2! border-alert-error!
nonenot counted
.divide-colors
  • @apply divide-surface-divider
nonenot counted
.ws-toggle-group-minimal
  • @apply ws-parameter flex h-5 w-fit gap-1 overflow-hidden rounded-sm p-0 border-l-0 border-r-0
nonenothing in the source
.ws-toggle-group-minimal-item
  • @apply px-0.5 text-ds-text-heading data-[state=checked]:bg-tab-bg-primary data-[state=on]:bg-tab-bg-primary
nonenothing in the source
.filter-none
  • filter: none
nonenot counted
.filter-grayscale
  • filter: grayscale(100%)
nonenot counted