netlify cms

This commit is contained in:
Ken
2019-08-16 07:54:34 -07:00
parent ae34d3aa28
commit 22007b8d29
9 changed files with 1960 additions and 123 deletions
+4
View File
@@ -0,0 +1,4 @@
import CMS from "netlify-cms-app"
import { MdxControl, MdxPreview } from "netlify-cms-widget-mdx"
CMS.registerWidget("mdx", MdxControl, MdxPreview)
@@ -7,10 +7,6 @@ import { Styled } from "theme-ui"
export default () => (
<Fragment>
This is where <Styled.a href="http://example.com/">your name</Styled.a>
{` `}
goes.
<br />
Or whatever, you make the rules.
<Styled.a href="http://example.com/">Ken Chau</Styled.a>
</Fragment>
)
@@ -7,19 +7,19 @@ import defaultThemeColors from "gatsby-theme-blog/src/gatsby-plugin-theme-ui/col
* to go from default purple to a blue theme
*/
// const darkBlue = `#007acc`
// const lightBlue = `#66E0FF`
// const blueGray = `#282c35`
const darkBlue = `#007acc`
const lightBlue = `#66E0FF`
const blueGray = `#282c35`
export default merge(defaultThemeColors, {
// text: blueGray,
// primary: darkBlue,
// heading: blueGray,
// modes: {
// dark: {
// background: blueGray,
// primary: lightBlue,
// highlight: lightBlue,
// },
// },
text: blueGray,
primary: darkBlue,
heading: blueGray,
modes: {
dark: {
background: blueGray,
primary: lightBlue,
highlight: lightBlue,
},
},
})