NUICSSv3.0.6

Backgrounds & Borders Utilities

Utilities for styling backgrounds, borders, divide lines, outline rings, and corner radii.


Background Colors

NUICSS provides semantic background utilities that dynamically adapt to theme changes:

ClassProperties
bg-pagebackground-color: var(--bg-page);
bg-surfacebackground-color: var(--bg-surface);
bg-subtlebackground-color: var(--bg-subtle);
bg-mutedbackground-color: var(--bg-muted);
bg-primarybackground-color: var(--color-primary);
bg-transparentbackground-color: transparent;
bg-whitebackground-color: #ffffff;
bg-blackbackground-color: #000000;

Border Width & Style

ClassProperties
borderborder-width: 1px; border-style: solid;
border-0border-width: 0px;
border-2border-width: 2px; border-style: solid;
border-4border-width: 4px; border-style: solid;
border-dashedborder-style: dashed;
border-dottedborder-style: dotted;

Border Colors

ClassProperties
border-defaultborder-color: var(--border-default);
border-subtleborder-color: var(--border-subtle);
border-primaryborder-color: var(--color-primary);
border-transparentborder-color: transparent;

Border Radius

ClassProperties
rounded-noneborder-radius: 0px;
rounded-smborder-radius: var(--radius-sm, 4px);
roundedborder-radius: 0.25rem;
rounded-mdborder-radius: var(--radius-md, 8px);
rounded-lgborder-radius: var(--radius-lg, 12px);
rounded-xlborder-radius: var(--radius-xl, 16px);
rounded-fullborder-radius: 9999px;