Skip to content

Commit

Permalink
docs: update readme (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
tujoworker authored Jan 3, 2024
1 parent 3580abd commit 32d665b
Showing 1 changed file with 0 additions and 46 deletions.
46 changes: 0 additions & 46 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -95,55 +95,9 @@ function ThemeProvider({ children }) {
}
```

<<<<<<< HEAD
You can also import local themes. They need to start with `./` when defined in `filesGlobs` and the files need to include `theme-{theme-name}` in the name:

```js
// Your Config
import {
filesGlobsFallback,
includeFilesFallback,
} from 'gatsby-plugin-eufemia-theme-handler/config.js'

export default {
plugins: [
'gatsby-plugin-sass',
{
resolve: 'gatsby-plugin-eufemia-theme-handler',
options: {
verbose: true,
defaultTheme: 'ui',
storageId: 'eufemia-ui',
filesGlobs: [
// Eufemia Styles
...filesGlobsFallback,

// Local themes
'./**/styles/themes/**/*.css',
],
includeFiles: [
// Eufemia Styles
...includeFilesFallback,

// Local themes
'**/styles/themes/**/*.css',
],
themes: {
ui: { name: 'DNB Eufemia' },
sbanken: { name: 'Sbanken' },
},
},
},
],
}
```

You can also use the interceptor methods from inside your components:
=======
### Your own theme styles

You can also import your own local themes by enabling `includeLocalStyles`.
>>>>>>> c0bcd82 (feat: import local themes (#27))

```js
// gatsby-config.js
Expand Down

0 comments on commit 32d665b

Please sign in to comment.