https://github.com/cssobj/cssobj-core
Generate virtual css middle format, support for all cssobj functions and plugins.
https://github.com/cssobj/cssobj-core
Last synced: about 1 year ago
JSON representation
Generate virtual css middle format, support for all cssobj functions and plugins.
- Host: GitHub
- URL: https://github.com/cssobj/cssobj-core
- Owner: cssobj
- Created: 2016-07-14T20:49:33.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-03-16T08:22:46.000Z (over 8 years ago)
- Last Synced: 2025-04-23T10:18:57.664Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 389 KB
- Stars: 3
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog
Awesome Lists containing this project
README
# CSSOBJ-CORE [](https://gitter.im/css-in-js/cssobj)
[](https://travis-ci.org/cssobj/cssobj-core)
[](https://coveralls.io/github/cssobj/cssobj-core?branch=master)
[](https://david-dm.org/cssobj/cssobj-core)
[](https://www.bithound.io/github/cssobj/cssobj-core)
Generate **Virtual CSS** middle format, support for all cssobj functions and plugins.
**Notice** The core API is different than [cssobj][]
[cssobj]: https://github.com/cssobj/cssobj
## API
### cssobj_core (config?: object) -> cssobj_factory_function
The `config` param is almost the same as [cssobj][], but **without** `local` and `cssom`
The `config` param has 2 props: `plugins`, `state`, the 2 are same as [cssobj][]
### cssobj_factory_function (obj?: object, state?: any) -> cssobj_result: object
All the things of `cssobj_factory_function` same as [cssobj][]
### cssobj_result
The `cssobj_result` almost same as [cssobj][], but **don't have** below
(below added by [cssobj-plugin-localize](https://github.com/cssobj/cssobj-plugin-localize) in [cssobj][])
- `space`
- `localNames`
- `mapClass`
- `mapSel`
- `cssdom`
(below added by [plugin-cssom](https://github.com/cssobj/cssobj-plugin-cssom) in [cssobj][])
- `cssdom`