jx_theme 0.0.1
jx_theme: ^0.0.1 copied to clipboard
JX CSS design tokens, default theme and CSS variables: extensible colors, spacing, typography and breakpoints.
jx_theme #
The JX CSS design tokens: palette, spacing, breakpoints, typography, radii, borders, opacities and shadows, with their --jx-* CSS variables.
This package is part of JX CSS (ZASPR Kit), a utility-first CSS framework written in Dart. To style an application, install
jx_cliinstead.
Installation #
dart pub add jx_theme
Usage #
import 'package:jx_theme/jx_theme.dart';
void main() {
final theme = JxTheme.defaultTheme();
print(theme.resolveToken(JxThemeCategory.colors, 'teal-700')); // #0f766e
print(theme.data.getCategory(JxThemeCategory.breakpoints));
}
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.