Skip to content

Border Utilities

The border utilities provide a set of classes to adjust the border-width, border-color, and border-style properties of elements.

.bordered

Applies the default border styling to an element.

css
  .bordered {
    border-width: var(--graupl-border-width);
    border-radius: var(--graupl-border-radius);
    border-style: var(--graupl-border-style);
  }

Border widths

Class NamePropertyValue
.border-thickborder-widththick
.border-thinborder-widththin
.border-mediumborder-widthmedium

.border-thick

Sets the border-width property to thick.

.border-thin

Sets the border-width property to thin.

.border-medium

Sets the border-width property to medium.

Border colors

Class NamePropertyValue
.border-primary-100border-colorvar(--graupl-theme-active--primary--100)
.border-primary-200border-colorvar(--graupl-theme-active--primary--200)
.border-primary-300border-colorvar(--graupl-theme-active--primary--300)
.border-primary-400border-colorvar(--graupl-theme-active--primary--400)
.border-primary-500border-colorvar(--graupl-theme-active--primary--500)
.border-primary-600border-colorvar(--graupl-theme-active--primary--600)
.border-primary-700border-colorvar(--graupl-theme-active--primary--700)
.border-primary-800border-colorvar(--graupl-theme-active--primary--800)
.border-primary-900border-colorvar(--graupl-theme-active--primary--900)
.border-secondary-100border-colorvar(--graupl-theme-active--secondary--100)
.border-secondary-200border-colorvar(--graupl-theme-active--secondary--200)
.border-secondary-300border-colorvar(--graupl-theme-active--secondary--300)
.border-secondary-400border-colorvar(--graupl-theme-active--secondary--400)
.border-secondary-500border-colorvar(--graupl-theme-active--secondary--500)
.border-secondary-600border-colorvar(--graupl-theme-active--secondary--600)
.border-secondary-700border-colorvar(--graupl-theme-active--secondary--700)
.border-secondary-800border-colorvar(--graupl-theme-active--secondary--800)
.border-secondary-900border-colorvar(--graupl-theme-active--secondary--900)
.border-tertiary-100border-colorvar(--graupl-theme-active--tertiary--100)
.border-tertiary-200border-colorvar(--graupl-theme-active--tertiary--200)
.border-tertiary-300border-colorvar(--graupl-theme-active--tertiary--300)
.border-tertiary-400border-colorvar(--graupl-theme-active--tertiary--400)
.border-tertiary-500border-colorvar(--graupl-theme-active--tertiary--500)
.border-tertiary-600border-colorvar(--graupl-theme-active--tertiary--600)
.border-tertiary-700border-colorvar(--graupl-theme-active--tertiary--700)
.border-tertiary-800border-colorvar(--graupl-theme-active--tertiary--800)
.border-tertiary-900border-colorvar(--graupl-theme-active--tertiary--900)
.border-transparentborder-colortransparent

.border-primary-100

Sets the border-color property to var(--graupl-theme-active--primary--100).

.border-primary-200

Sets the border-color property to var(--graupl-theme-active--primary--200).

.border-primary-300

Sets the border-color property to var(--graupl-theme-active--primary--300).

.border-primary-400

Sets the border-color property to var(--graupl-theme-active--primary--400).

.border-primary-500

Sets the border-color property to var(--graupl-theme-active--primary--500).

.border-primary-600

Sets the border-color property to var(--graupl-theme-active--primary--600).

.border-primary-700

Sets the border-color property to var(--graupl-theme-active--primary--700).

.border-primary-800

Sets the border-color property to var(--graupl-theme-active--primary--800).

.border-primary-900

Sets the border-color property to var(--graupl-theme-active--primary--900).

.border-secondary-100

Sets the border-color property to var(--graupl-theme-active--secondary--100).

.border-secondary-200

Sets the border-color property to var(--graupl-theme-active--secondary--200).

.border-secondary-300

Sets the border-color property to var(--graupl-theme-active--secondary--300).

.border-secondary-400

Sets the border-color property to var(--graupl-theme-active--secondary--400).

.border-secondary-500

Sets the border-color property to var(--graupl-theme-active--secondary--500).

.border-secondary-600

Sets the border-color property to var(--graupl-theme-active--secondary--600).

.border-secondary-700

Sets the border-color property to var(--graupl-theme-active--secondary--700).

.border-secondary-800

Sets the border-color property to var(--graupl-theme-active--secondary--800).

.border-secondary-900

Sets the border-color property to var(--graupl-theme-active--secondary--900).

.border-tertiary-100

Sets the border-color property to var(--graupl-theme-active--tertiary--100).

.border-tertiary-200

Sets the border-color property to var(--graupl-theme-active--tertiary--200).

.border-tertiary-300

Sets the border-color property to var(--graupl-theme-active--tertiary--300).

.border-tertiary-400

Sets the border-color property to var(--graupl-theme-active--tertiary--400).

.border-tertiary-500

Sets the border-color property to var(--graupl-theme-active--tertiary--500).

.border-tertiary-600

Sets the border-color property to var(--graupl-theme-active--tertiary--600).

.border-tertiary-700

Sets the border-color property to var(--graupl-theme-active--tertiary--700).

.border-tertiary-800

Sets the border-color property to var(--graupl-theme-active--tertiary--800).

.border-tertiary-900

Sets the border-color property to var(--graupl-theme-active--tertiary--900).

.border-transparent

Sets the border-color property to transparent.

Border styles

Class NamePropertyValue
.border-solidborder-stylesolid
.border-dashedborder-styledashed
.border-dottedborder-styledotted
.border-doubleborder-styledouble
.border-grooveborder-stylegroove
.border-ridgeborder-styleridge
.border-insetborder-styleinset
.border-outsetborder-styleoutset
.border-noneborder-stylenone

.border-solid

Sets the border-style property to solid.

.border-dashed

Sets the border-style property to dashed.

.border-dotted

Sets the border-style property to dotted.

.border-double

Sets the border-style property to double.

.border-groove

Sets the border-style property to groove.

.border-ridge

Sets the border-style property to ridge.

.border-inset

Sets the border-style property to inset.

.border-outset

Sets the border-style property to outset.

.border-none

Sets the border-style property to none.

Customization

To customize the border utilities, you can use the following variables.

VariableDefault ValueDescription
$selector-base"."The base selector for the utility classes.
$use-importanttrueA flag to determine if the !important flag should be added to the utility classes.
$screen-awarefalseA flag to generate screen-aware utility classes.
$theme-awarefalseA flag to generate theme-aware utility classes.
$state-awarefalseA flag to generate state-aware utility classes.
$screen-aware-separator:The separator for screen-aware utility classes.
$theme-aware-separator:The separator for theme-aware utility classes.
$state-aware-separator:The separator for state-aware utility classes.
$default-border-selector"bordered"The selector for the default border utility class.
$border-width-selector-prefix"border-"The prefix for the border width utility classes.
$custom-border-width-properties()The custom properties and values for the border width utility classes.
$border-color-selector-prefix"border-"The prefix for the border color utility classes.
$custom-border-color-properties()The custom properties and values for the border color utility classes.
$border-style-selector-prefix"border-"The prefix for the border style utility classes.
$custom-border-style-properties()The custom properties and values for the border style utility classes.

Responsive variants

To generate responsive alignment utilities, you can set the $screen-aware, $theme-aware, or $state-aware variables to true.

By default, no responsive alignment utilities are generated.

✏️ Note

For more information on responsive variants, refer to the Responsive utility classes documentation.