Skip to content

Introduction

uStatic CSS (from utility static CSS) is a set of utility CSS classes for rapid development of modern interfaces. It’s based on design system tokens.

Typical utility frameworks (Tailwind, UnoCSS) create challenges in microfrontends:

  • Complex configurations requiring synchronization between teams
  • Style duplication across modules, increasing bundle size

uStatic CSS solves these problems:

  • Unified token system for consistency across microfrontends
  • Modular loading of only necessary styles
  • Ability to activate classes at runtime
  • 🎨 350+ utility classes for typography, spacing, positioning, colors
  • 🧩 useCssProperties and useTokens hooks for managing styles in JavaScript
  • 🌐 Breakpoint hidinghidden-md, hidden-lg (not Tailwind-style responsive prefixes)
  • 🔌 ESM and CJS module exports
  • SSR compatible — safe operation on server and browser

See the power of uStatic CSS with accent-colored buttons:

This example demonstrates:

  • Color variantsbg-primary-500, bg-success-500, etc.
  • Hover effectshover:bg-primary-600
  • Border radiusrounded
  • Cursorcursor-pointer
  • Click animationactive:pulse
ModuleDescription
typographyTypography: sizes, weights, text colors
spacingSpacing: margin and padding
flexboxFlex containers and alignment
gridGrid layouts
positionPositioning: relative, absolute, fixed
bgBackground: colors, opacity
borderBorders and border radius
effectsEffects: opacity, rotation
animationsAnimations: spin, blink
sizingSizing: width, height
cursorCursors
displayDisplay and overflow
filtersFilters: grayscale
outlineOutlines
scrollScrollbars
hiddenHide elements
alignVertical alignment
interactivityInteractivity
baseBase styles