Skip to content

Commit

Permalink
extend description on styling
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker committed Jan 3, 2019
1 parent b43f915 commit 2a6a961
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,23 @@ draft: false

The CSS is a compiled and minified version. You find it here: `dnb-ui-lib/style/dnb-ui-lib.min.css`

## Apply the DNB Style

To use the default DNB style, You have to define a CSS class called: `dnb-style`
You could also set this class on the document body.

<!-- prettier-ignore-start -->
```html
<div class="dnb-style">
<!-- The styled Content -->
</div>
```
<!-- prettier-ignore-end -->

### The Reason

The benefits of explicitly defining the style class `dnb-style`, is that we could use the components by their own, without effecting all the existing styled core tags. This gives use a kind of backwards compatibility.

## For Node based environments

To include the `dnb-ui-lib` styles (except patterns), do this:
Expand Down

0 comments on commit 2a6a961

Please sign in to comment.