@ngcorex/css
v0.1.3
Published
Angular-native design token and utility CSS engine
Downloads
267
Maintainers
Readme
@ngcorex/css
Core engine for ngCorex.
This package provides:
- design token normalization
- constraint validation
- CSS variable generation
- optional CSS layer wrapping
It is intended to be used via the ngCorex CLI, not directly in applications.
Installation
npm install @ngcorex/cssToken Source
Tokens can be provided either inline via configuration or from an external tokens.json file when using the ngCorex CLI.
External token files are the recommended approach for larger projects, as they keep design tokens portable, auditable, and framework-agnostic.
Usage
This package is usually consumed internally by the CLI.
Example:
import { defineNgCorexConfig } from '@ngcorex/css';
export default defineNgCorexConfig({
output: {
file: 'src/styles/ngcorex.css'
}
});License
MIT
