Skip to content

Commit

Permalink
docs(v10): improve docs for EufemiaStyleImporter files (#2302)
Browse files Browse the repository at this point in the history
  • Loading branch information
langz committed May 8, 2023
1 parent aa64437 commit 9babe64
Showing 1 changed file with 16 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ import '@dnb/eufemia/style'

then you don't need to make any changes.

2. If you did import `/components` etc. – then you have to change it to the the import above(see 1.):
2. If you did import `/core` etc. – then you have to change it to the the import above(see 1.):

```js
import '@dnb/eufemia/style/core'
Expand All @@ -138,6 +138,21 @@ import '@dnb/eufemia/style/themes/theme-ui/ui-theme-components.min.css'
import '@dnb/eufemia/style/themes/theme-ui/ui-theme-basis.min.css'
```

4. If you did import `/basis`, `/components`, and `themes/ui` like so(commonly done in `EufemiaStyleImporter` files):

```js
import '@dnb/eufemia/style/basis'
import '@dnb/eufemia/style/components'
import '@dnb/eufemia/style/themes/ui'
```

Change to:

```js
import '@dnb/eufemia/style/basis'
import '@dnb/eufemia/style/themes/ui'
```

More details about the change:

- The package `dnb-theme-ui` was renamed to `ui-theme-basis`.
Expand Down

0 comments on commit 9babe64

Please sign in to comment.