Skip to main content

jx_generator 0.2.1 copy "jx_generator: ^0.2.1" to clipboard
jx_generator: ^0.2.1 copied to clipboard

discontinuedreplaced by: jx_cli
retracted[pending analysis]

JX CSS generator: standard or minified serialization, media query grouping and preflight reset.

jx_generator #

The JX CSS generator: standard or minified serialization, media query grouping and the preflight reset.

This package is part of JX CSS (ZASPR Kit), a utility-first CSS framework written in Dart. To style an application, install jx_cli instead.

Installation #

dart pub add jx_generator

Usage #

import 'package:jx_core/jx_core.dart';
import 'package:jx_generator/jx_generator.dart';

void main() {
  const generator = JxGenerator();
  print(generator.generate([
    const JxCssRule(
      selector: '.c-primary',
      declarations: [JxCssDeclaration(property: 'color', value: '#2563eb')],
    ),
  ]));
}

The JX CSS family #

Package Role
jx_cli Command line: jx init, jx build. Entry point for most projects.
jx_engine Compilation engine, usable as a library.
jx_rules Utility catalog and rule registry.
jx_theme Design tokens and default theme.
jx_parser Class syntax parser.
jx_generator CSS serialization and preflight.
jx_core Shared models, contracts and exceptions.

Documentation: https://nathanaelzie.github.io/zaspr-kit/

License #

MIT.

0
likes
0
points
194
downloads

Publisher

unverified uploader

Weekly Downloads

JX CSS generator: standard or minified serialization, media query grouping and preflight reset.

Repository (GitHub)
View/report issues

Topics

#css #codegen #jaspr

License

(pending) (license)

Dependencies

jx_core, jx_theme

More

Packages that depend on jx_generator