Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nteract/styled-blueprintjsx

npm package that wraps Blueprint stylesheets as a styled-component global style to avoid needing a CSS loader
https://github.com/nteract/styled-blueprintjsx

blueprint nteract styled-components

Last synced: 7 days ago
JSON representation

npm package that wraps Blueprint stylesheets as a styled-component global style to avoid needing a CSS loader

Awesome Lists containing this project

README

        

# styled-blueprintjsx

This package wraps up [Blueprint](https://blueprintjs.com/) styles as a styled-components global style to subvert the need for a CSS loader.

```jsx
import { BlueprintCSS } from "@nteract/styled-blueprintjsx


```

## Installation

```
npm install --save @nteract/styled-blueprintjsx
```

## Documentation

### With `@blueprintjs/core`

When working with `@blueprintjs/core` components, they need some globally defined (yet scoped) CSS. You can include this on the page with

```jsx
import { BlueprintCSS } from "@nteract/styled-blueprintjsx


```

### With `@blueprintjs/select`

For `@blueprintjs/select`'s suite of components, you need to include `` from this package.

```jsx
import { BlueprintCSS, BlueprintSelectCSS } from "@nteract/styled-blueprintjsx



```

styled-blueprintjsx makes use of [`createGlobalStyle` from `styled-components`](https://www.styled-components.com/docs/api#createglobalstyle) and so is a React Component you can render anywhere in your app. You can read more about this pattern in the styled-components docs linked above.

## Support

Please post an issue on the [issue tracker](https://github.com/nteract/styled-blueprintjsx/issues).

## License

[BSD-3-Clause](https://choosealicense.com/licenses/bsd-3-clause/)