GeneratorOptimizerValidatorPreprocessorPostprocessorMinifierFormatterConverter
Resources › Documentation

Documentation

Learn how to leverage all CSS ShadowBox utilities to streamline your styling workflow.

Getting Started

Welcome to the CSS ShadowBox documentation. This developer toolbox hosts eight specialized utilities designed to accelerate design workflows, optimize production assets, and guarantee code compatibility.

All processing is done entirely in the client-side browser context. Your code never leaves your local workspace, offering full privacy and security by design.

CSS Generator

The CSS Generator allows you to visually customize modern styles and instantly fetch their clean CSS rules. Currently, it supports four design layers:

  • Shadows: Visual controls for layered ambient box-shadows, inset shadows, and directional configurations.
  • Gradients: Interactive slider to configure linear or radial color stops and angle settings.
  • Typography: Custom letter spacing, line height, font sizing, and visual font treatments.
  • Borders: Manage border-radius curves (uniform or independent corners) and outer border outlines.

CSS Optimizer

The CSS Optimizer parses your stylesheet, performs structural static analysis, and refactors rules for maximum performance:

  • Merges duplicate media queries and adjacent selectors with matching declarations.
  • Converts expanded properties (e.g., margin-top, margin-bottom) to their unified shorthand equivalents (e.g., margin: 10px 0).
  • Trims useless properties and alerts you to duplicate styles.

CSS Validator

The CSS Validator scans your code and checks standard W3C specifications. It flags syntax warnings and errors directly inside a code editor with line annotations:

/* Validator Warning Example */
.card {
  brdr-radius: 12px; /* Warning: Unknown property 'brdr-radius' */
  display: flex;
}

CSS Preprocessor

The CSS Preprocessor compiles syntaxes like SCSS and Less directly inside the browser. It translates custom nested structures, nested imports, custom variables, and mathematical functions into standard W3C-compliant stylesheet outputs.

CSS Postprocessor

The CSS Postprocessor parses CSS into abstract syntax trees and appends necessary vendor prefixes (like -webkit- or -moz-) to guarantee cross-browser layout support. It also handles custom PostCSS transforms on target blocks.

CSS Minifier

The CSS Minifier strips developer formatting to create production-ready build files. It removes spaces, tabs, newline breaks, and developer comments, showing detailed statistics on byte compression ratios and savings instantly.

CSS Formatter

The CSS Formatter cleans up messy, minified, or disorganized style structures. It reformats selectors, declarations, curly braces, and indentations using customizable rules (tabs vs. spaces, single-line braces, property sorting).

CSS Converter

The CSS Converter lets you transition between different formats effortlessly:

  • Tailwind CSS: Transform raw CSS properties into equivalent utility class names.
  • CSS-in-JS: Formats standard CSS variables and selectors into camelCase JavaScript style objects (perfect for React/Emotion/Styled Components).
  • JSON: Output clean JSON structures mapping properties to values.