Skip to content

@vibe-labs/design-borders

Border tokens and utility classes for the Vibe Design System.

Usage

css
@import "@vibe-labs/design-borders";

Contents

Tokens (borders.css)

CSS custom properties defined in @layer vibe.tokens:

TokenDefaultDescription
--radius-none--radius-full09999pxBorder radius scale (none, sm, md, lg, xl, 2xl, full)
--border-width-0--border-width-404pxBorder width scale (0, 1, 2, 4)
--border-default--color-neutral-600Standard border color
--border-strong--color-neutral-400Emphasized border color
--border-subtle--color-neutral-750De-emphasized border color

Generated Utilities (borders.g.css)

Utility classes generated into @layer vibe.utilities via the build script.

Border Radius

  • .rounded-{size} — all corners (none | sm | md | lg | xl | 2xl | full)
  • .rounded-{side}-{size} — directional (t | r | b | l)

Border Width

  • .border / .border-{n} — all sides (0, 1, 2, 4; .border = 1)
  • .border-{side} / .border-{side}-{n} — per side (t | r | b | l | x | y)

Border Style

.border-solid · .border-dashed · .border-dotted · .border-none

Border Color

  • Semantic: .border-default · .border-strong · .border-subtle · .border-transparent
  • Palette: .border-{color} — blue, brown, cyan, green, indigo, orange, pink, purple, red, teal, yellow
  • Status: .border-success · .border-warning · .border-danger · .border-info

Divide

  • .divide-x / .divide-y — sibling dividers (applies to * + *)
  • .divide-strong — stronger divider color

Dist Structure

FileDescription
index.cssBarrel — imports both files below
borders.cssToken definitions
borders.g.cssGenerated utility classes

Dependencies

Requires --color-* tokens from @vibe-labs/design-colors (or equivalent).

Build

bash
npm build