💿 Installation
- Install Scarab Carapace as a dev-dependency (this also installs Scarab Core):
$ yarn add @scarab/carapace -D
$ npm install @scarab/carapace --save-dev
-
Add node_modules/
to your Sass includePaths
.
-
Import the following files to configure Carapace and generate CSS classes:
@import '@scarab/core/_';
@import 'your-design-tokens.scss';
@import '@scarab/carapace/_';
@import 'your-custom-module-config.scss';
@import '@scarab/carapace/classes';
📚 Documentation
Read the API documentation and guides:
https://scarab.style/carapace
⭐️ Features
🏭 CSS utility class generator
Carapace generates single purpose CSS utility classes from design tokens defined with Scarab. These are the kinds of classes used in the Functional CSS (a.k.a. Atomic CSS) methodology.
📲 Breakpoint-specific classes
👆 State-specific classes
⚙️ Configurable naming convention
🍃 Ecosystem
In addition to the core library, the following packages are available in the Scarab ecosystem:
❤️ Contributing
Issues and feature requests and PR's are welcome!
📃️ License
Licensed under BSD 3-Clause. Copyright © Kyle Oliveiro 2018.