Skip to content

Additional CSS Utilities

CSS utilities are a set of classes that provide a consistent and predictable way to layout content on the page.

CSS classDescription
body-typographySet font size, line height and font weight. Applicable to any element.

All color utilities are applicable to any element. Default theme is light.

CSS classDescription
body-textSet text color to primary color
body-backgroundSet background color to secondary color
text-primarySet text color to primary color with the default intensity (500)
text-primary-<intensity>Set text color to primary color with the specified intensity
bg-primarySet background color to primary color with the default intensity (500)
bg-primary-<intensity>Set background color to primary color with the specified intensity
border-primarySet border color to primary color with the default intensity (500)
border-primary-<intensity>Set border color to primary color with the specified intensity
stroke-primarySet stroke color to primary color with the default intensity (500)
stroke-primary-<intensity>Set stroke color to primary color with the specified intensity
fill-primarySet fill color to primary color with the default intensity (500)
fill-primary-<intensity>Set fill color to primary color with the specified intensity
text-secondarySet text color to secondary color with the default intensity (500)
text-secondary-<intensity>Set text color to secondary color with the specified intensity
bg-secondarySet background color to secondary color with the default intensity (500)
bg-secondary-<intensity>Set background color to secondary color with the specified intensity
border-secondarySet border color to secondary color with the default intensity (500)
border-secondary-<intensity>Set border color to secondary color with the specified intensity
stroke-secondarySet stroke color to secondary color with the default intensity (500)
stroke-secondary-<intensity>Set stroke color to secondary color with the specified intensity
fill-secondarySet fill color to secondary color with the default intensity (500)
fill-secondary-<intensity>Set fill color to secondary color with the specified intensity
text-successSet text color to success color with the default intensity (500)
text-success-<intensity>Set text color to success color with the specified intensity
bg-successSet background color to success color with the default intensity (500)
bg-success-<intensity>Set background color to success color with the specified intensity
border-successSet border color to success color with the default intensity (500)
border-success-<intensity>Set border color to success color with the specified intensity
stroke-successSet stroke color to success color with the default intensity (500)
stroke-success-<intensity>Set stroke color to success color with the specified intensity
fill-successSet fill color to success color with the default intensity (500)
fill-success-<intensity>Set fill color to success color with the specified intensity
text-warningSet text color to warning color with the default intensity (500)
text-warning-<intensity>Set text color to warning color with the specified intensity
bg-warningSet background color to warning color with the default intensity (500)
bg-warning-<intensity>Set background color to warning color with the specified intensity
border-warningSet border color to warning color with the default intensity (500)
border-warning-<intensity>Set border color to warning color with the specified intensity
stroke-warningSet stroke color to warning color with the default intensity (500)
stroke-warning-<intensity>Set stroke color to warning color with the specified intensity
fill-warningSet fill color to warning color with the default intensity (500)
fill-warning-<intensity>Set fill color to warning color with the specified intensity
text-dangerSet text color to danger color with the default intensity (500)
text-danger-<intensity>Set text color to danger color with the specified intensity
bg-dangerSet background color to danger color with the default intensity (500)
bg-danger-<intensity>Set background color to danger color with the specified intensity
border-dangerSet border color to danger color with the default intensity (500)
border-danger-<intensity>Set border color to danger color with the specified intensity
stroke-dangerSet stroke color to danger color with the default intensity (500)
stroke-danger-<intensity>Set stroke color to danger color with the specified intensity
fill-dangerSet fill color to danger color with the default intensity (500)
fill-danger-<intensity>Set fill color to danger color with the specified intensity
text-neutralSet text color to neutral color with the default intensity (500)
text-neutral-<intensity>Set text color to neutral color with the specified intensity
bg-neutralSet background color to neutral color with the default intensity (500)
bg-neutral-<intensity>Set background color to neutral color with the specified intensity
border-neutralSet border color to neutral color with the default intensity (500)
border-neutral-<intensity>Set border color to neutral color with the specified intensity
stroke-neutralSet stroke color to neutral color with the default intensity (500)
stroke-neutral-<intensity>Set stroke color to neutral color with the specified intensity
fill-neutralSet fill color to neutral color with the default intensity (500)
fill-neutral-<intensity>Set fill color to neutral color with the specified intensity

Color intensity varies from 50 (lightest) to 950 (darkest) (see Color palette).

CSS classDescription
p-xsSet padding to xs padding (0.25rem or 4px by default)
p-x-xsSet left and right padding to xs padding
p-y-xsSet top and bottom padding to xs padding
p-t-xsSet top padding to xs padding
p-r-xsSet right padding to xs padding
p-b-xsSet bottom padding to xs padding
p-l-xsSet left padding to xs padding
p-smSet padding to sm padding (0.5rem or 8px by default)
p-x-smSet left and right padding to sm padding
p-y-smSet top and bottom padding to sm padding
p-t-smSet top padding to sm padding
p-r-smSet right padding to sm padding
p-b-smSet bottom padding to sm padding
p-l-smSet left padding to sm padding
p-mdSet padding to md padding (0.75rem or 12px by default)
p-x-mdSet left and right padding to md padding
p-y-mdSet top and bottom padding to md padding
p-t-mdSet top padding to md padding
p-r-mdSet right padding to md padding
p-b-mdSet bottom padding to md padding
p-l-mdSet left padding to md padding
p-lgSet padding to lg padding (1rem or 16px by default)
p-x-lgSet left and right padding to lg padding
p-y-lgSet top and bottom padding to lg padding
p-t-lgSet top padding to lg padding
p-r-lgSet right padding to lg padding
p-b-lgSet bottom padding to lg padding
p-l-lgSet left padding to lg padding
p-xlSet padding to xl padding (1.5rem or 24px by default)
p-x-xlSet left and right padding to xl padding
p-y-xlSet top and bottom padding to xl padding
p-t-xlSet top padding to xl padding
p-r-xlSet right padding to xl padding
p-b-xlSet bottom padding to xl padding
p-l-xlSet left padding to xl padding
CSS classDescription
f-gap-xsSet gap to xs gap (0.25rem or 4px by default)
f-gap-smSet gap to sm gap (0.5rem or 8px by default)
f-gap-mdSet gap to md gap (0.75rem or 12px by default)
f-gap-lgSet gap to lg gap (1rem or 16px by default)
f-gap-xlSet gap to xl gap (1.5rem or 24px by default)
CSS classDescription
b-r-noneDisable border radius for the element
b-r-xsSet border radius to xs border radius (0.1875rem or 3px by default)
b-r-smSet border radius to sm border radius (0.25rem or 4px by default)
b-r-mdSet border radius to md border radius (0.375rem or 6px by default)
b-r-lgSet border radius to lg border radius (0.5rem or 8px by default)
b-r-xlSet border radius to xl border radius (0.75rem or 12px by default)
b-r-fullSet border radius to full radius (9999px by default)
CSS classDescription
animateActivate an animation on the element (sets duration and timing function)
animate-fade-inEnable fade-in animation
animate-fade-outEnable fade-out animation
animate-slide-inEnable slide-in animation
animate-slide-outEnable slide-out animation
animate-slide-downEnable slide-down animation
animate-slide-upEnable slide-up animation
animate-spinEnable spin animation