-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56e0c55
commit 7cc1f66
Showing
17 changed files
with
269 additions
and
71 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
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 styles | ||
'./**/styles/themes/**/*', | ||
], | ||
includeFiles: [ | ||
// Eufemia Styles | ||
...includeFilesFallback, | ||
|
||
// Local styles | ||
'**/styles/themes/**/*', | ||
], | ||
themes: { | ||
ui: { name: 'DNB Eufemia' }, | ||
sbanken: { name: 'Sbanken' }, | ||
}, | ||
}, | ||
}, | ||
], | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
File renamed without changes.
3 changes: 3 additions & 0 deletions
3
examples/ui-theme-example/src/styles/themes/theme-sbanken.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.eufemia-theme__sbanken { | ||
background: limegreen; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.eufemia-theme__ui { | ||
background: tomato; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
packages/gatsby-plugin-eufemia-theme-handler/src/config.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
export const filesGlobsFallback = [ | ||
'**/style/dnb-ui-core.min.css', | ||
'**/style/themes/**/*-theme-{basis,components}.min.css', | ||
] | ||
|
||
export const includeFilesFallback = [ | ||
'**/dnb-ui-core.*', | ||
'**/*-theme-components.*', | ||
'**/*-theme-basis.*', | ||
] | ||
|
||
export const themeMatchersFallback = [/\/themes\/[^/]*theme-([^/.]*)[/.]/] |
Oops, something went wrong.