-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify CustomDocument for using styled-components and material-ui in ssr
- Loading branch information
1 parent
0e42b62
commit 32eed36
Showing
8 changed files
with
84 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,16 @@ | ||
{ | ||
"presets": ["@nrwl/next/babel"], | ||
"plugins": [["styled-components", { "pure": true, "ssr": true }]] | ||
"plugins": [ | ||
["styled-components", { "ssr": true }], | ||
[ | ||
"module-resolver", | ||
{ | ||
"root": ["./"], | ||
"alias": { | ||
"@src": "./src" | ||
}, | ||
"extensions": [".js", ".jsx", ".tsx"] | ||
} | ||
] | ||
] | ||
} |
File renamed without changes.
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
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,7 @@ | ||
import React from 'react' | ||
|
||
function Login() { | ||
return <div>Login Page</div> | ||
} | ||
|
||
export default Login |
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 @@ | ||
export const color = { | ||
primary: '#0080ff', | ||
} |
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,22 @@ | ||
import { createMuiTheme } from '@material-ui/core/styles' | ||
import red from '@material-ui/core/colors/red' | ||
|
||
// Create a theme instance. | ||
const theme = createMuiTheme({ | ||
palette: { | ||
primary: { | ||
main: '#556cd6', | ||
}, | ||
secondary: { | ||
main: '#19857b', | ||
}, | ||
error: { | ||
main: red.A400, | ||
}, | ||
background: { | ||
default: '#fff', | ||
}, | ||
}, | ||
}) | ||
|
||
export default theme |