6 Repos
Tools that validate CSS property values against standard specifications using type systems.
Distinct from CSS Styling: Focuses on the validation of CSS values, not general styling or browser support detection.
Explore 6 awesome GitHub repositories matching user interface & experience · CSS Property Validations. Refine with filters or upvote what's useful.
vanilla-extract is a type-safe CSS-in-JS library and zero-runtime CSS framework. It uses TypeScript to define styles and design tokens, compiling these definitions into static CSS files during the build process to eliminate styling overhead in the browser. The system acts as a scoped CSS generator, producing unique class names and local variables to prevent global style leakage and naming collisions. It provides a type-safe styling tool that validates CSS property values and ensures design tokens adhere to defined themes during development. The framework covers comprehensive styling utilitie
Uses type definitions to validate that CSS property values adhere to standard specifications.
Templ is a type-safe HTML templating engine and UI framework for Go. It provides a system for building reusable HTML components that compile into Go code for server-side rendering, ensuring type safety and compile-time validation of data and logic. The project features a dedicated language server that provides autocomplete and syntax validation for template files within supported code editors. It employs compile-time code generation to transform a custom template language into Go source code, enabling the creation of modular HTML fragments and logic blocks. The framework includes automated s
Templurn filters expressions used within CSS property values to replace unsafe characters with placeholders.
parcel-css is a high-performance CSS bundler and processor written in Rust. It provides tools for parsing, transforming, and bundling stylesheets, utilizing a structured abstract syntax tree with typed property representations to ensure accurate analysis and modification. The project features a syntax lowerer that transpiles modern CSS into compatible versions based on target browser requirements and an automated system for managing vendor prefixes. It also includes a module scoper that isolates class and ID identifiers to prevent global namespace collisions. Additional capabilities include
Stores CSS values as strong types instead of plain strings to ensure accurate transformation.
Typia is a compile-time code generator that transforms TypeScript type annotations into runtime validation, serialization, and schema functions without requiring decorators or separate schema files. It generates optimized validation and serialization code during TypeScript compilation, producing dedicated functions for each type that eliminate runtime schema objects for faster execution. The project extends this core capability into several integrated areas. It generates fully typed client SDKs from NestJS controller source code, keeping server and client types synchronized automatically. It
Returns the lossless internal type representation used by all other features, including unions and tags.
js-xss ist ein HTML-XSS-Sanitizer und ein auf Whitelists basierender HTML-Filter, der darauf ausgelegt ist, bösartigen Code aus nicht vertrauenswürdigem HTML zu entfernen. Es dient als Tool zur Prävention von Cross-Site-Scripting und zur Verwaltung von benutzergenerierten Inhalten durch das Bereinigen von HTML-Strings, um ein sicheres Rendering im Browser zu gewährleisten. Die Bibliothek enthält einen CSS-Style-Validator, um Inline-Styles gegen eine Whitelist zu prüfen, sowie einen HTML-Content-Purifier, der in der Lage ist, alle Tags zu entfernen, um rohen Text zu extrahieren. Sie ermöglicht benutzerdefinierte HTML-Filterung durch die Definition spezifischer Regeln und Handler-Funktionen, um erlaubte Elemente und Attribute zu kontrollieren. Das Tool deckt ein breites Spektrum an Sanitization-Funktionen ab, einschließlich Attribut- und Tag-Präfix-Filterung, Entfernung nicht erlaubter Inhalte und Verfolgung entfernter Elemente. Es bietet zudem Mechanismen für zeichenbasierte Escape-Kodierung und benutzerdefinierte Elementbehandlung über Callback-Funktionen. CLI-Dienstprogramme sind für die Verarbeitung von HTML-Dateien und das interaktive Testen von Filterregeln verfügbar.
Scrubs inline style attribute values by matching individual CSS properties against a whitelist of safe styles.
This is an HTML sanitization library designed to remove dangerous tags and attributes from user-submitted HTML to prevent cross-site scripting attacks. It functions as a content filter that whitelists specific elements and attributes while escaping or discarding unauthorized markup. The project includes an HTML transformation engine that allows for the modification or replacement of tags and attributes using custom logic. It also features a CSS style validator to clean inline properties against permitted patterns and a system for resource URL validation to restrict hostnames and schemes. The
Cleans inline CSS properties against permitted patterns to ensure safe styling in user content.