> For the complete documentation index, see [llms.txt](https://nodebook.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nodebook.js.org/web/cssnotebook.md).

# CSSNotebook

"CSSNotebook" is used for basic stylesheets or `.css` files. `.scss` is not supported at the moment.

## Usage

### Setup

```javascript
const Nodebook = require('nodejs-notebook');

let styles = new Nodebook.CSSNotebook('styles');
```

**create(type, name)**

Creates a style bracket. I

string `type`: The type of bracket. Must be `class` (classes), `id` (IDs), or `element` (global elements).\
string `name`: The name of the representing bracket.

**Returns:** A CSSStyle with Data. If exists, will return existing CSSStyle.

```javascript
let imageFooter = styles.create('class', 'image-footer');
```
