Skip to content

Border Width

Set border width for all sides or specific sides

Syntax

visual="border-w:[value]" | visual="border-{t|b|l|r|x|y}-w:[value]"

Values

ValueCSS OutputDescription
noneborder-width: var(--s-none)No border (0px)
thinborder-width: var(--s-thin)Thin border (1px)
regularborder-width: var(--s-regular)Standard border (2px)
thickborder-width: var(--s-thick)Thick border (3px)

Examples

html
<div visual="border:gray-300 border-w:thin">Thin 1px border</div>
<div visual="border:gray-300 border-w:regular">Standard 2px border</div>
<div visual="border:gray-300 border-w:thick">Thick 3px border</div>
<div visual="border-b:primary border-b-w:regular">Bottom border only</div>
<div visual="border-x:primary border-x-w:thin">Horizontal borders</div>

Preview

Border Widths

visual="border-w:regular" - Different border width options

thin
regular
thick
View Code
html
<div layout="flex" space="g:medium p:medium" visual="bg:neutral-100 dark:bg:neutral-900 rounded:medium">
  <div space="p:medium" visual="border:neutral-500 border-w:thin rounded:small bg:white dark:bg:neutral-800">thin</div>
  <div space="p:medium" visual="border:neutral-500 border-w:regular rounded:small bg:white dark:bg:neutral-800">regular</div>
  <div space="p:medium" visual="border:neutral-500 border-w:thick rounded:small bg:white dark:bg:neutral-800">thick</div>
</div>

Arbitrary Values

Supports custom values using bracket syntax:

html
<div visual="border:[custom-value]">Custom</div>