Skip to content

Commit

Permalink
Merge pull request #248 from PhattOZ/main
Browse files Browse the repository at this point in the history
Export Scss variables to use in UI
  • Loading branch information
colbyfayock authored Oct 10, 2021
2 parents 822d64d + 11f4fa7 commit 1ee554f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import NextNProgress from 'nextjs-progressbar';
import { getAllMenus, createMenuFromPages, MENU_LOCATION_NAVIGATION_DEFAULT } from 'lib/menus';

import 'styles/globals.scss';
import variables from 'styles/_variables.module.scss';

function App({ Component, pageProps = {}, metadata, recentPosts, categories, menus }) {
const site = useSiteContext({
Expand All @@ -23,7 +24,7 @@ function App({ Component, pageProps = {}, metadata, recentPosts, categories, men
return (
<SiteContext.Provider value={site}>
<SearchProvider>
<NextNProgress height={4} color="#0070F3" />
<NextNProgress height={4} color={variables.progressbarColor} />
<Component {...pageProps} />
</SearchProvider>
</SiteContext.Provider>
Expand Down
5 changes: 5 additions & 0 deletions src/styles/_variables.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
$progressbar_color: #0070f3;

:export {
progressbarColor: $progressbar_color;
}

1 comment on commit 1ee554f

@headless-platform-by-wp-engine

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Branch main was deployed successfully
Your environment main of app nextwp was successfully updated
View build logs: https://my.wpengine.com/atlas#/nextwp/yybkm5e82nnlwlaa9my59aes/tnm5reagvme7bnq9m0wu9teu
View your environment URL: https://next-wordpress-starter.spacejelly.dev

Please sign in to comment.