Comments (8)
Hey @timrossback, thanks for raising the issue. This functionality is extremely easy to add since this theme already uses Theme UI for this.
I don't have much time to make this fix so would you be able to tackle it?
from gatsby-theme-code-notes.
I'd be happy to maybe give it a crack @mrmartineau, but I'm really not too familiar with Gatsby or React. I'll see what I can do though.
from gatsby-theme-code-notes.
It should only be a one line change in the index.js
file within the gatsby-plugin-theme-ui
directory. See here for the docs: https://theme-ui.com/color-modes#initialize-mode-with-prefers-color-scheme-media-query
from gatsby-theme-code-notes.
Yeah, I have absolutely no idea how to do this 😆 Sorry! I was looking through the index.js
file, and I just simply don't know enough about how this theme and Theme-UI works hahahaha.
From my abstraction, I think useColorSchemeMediaQuery: true,
just needs to be added before the export default colours
line or possibly at the very end for maintainability, but since I'm unable to test it locally (good ole' Windows), I really wouldn't feel confident putting forward a PR. Sorry!
Might be one for someone else who is more active with JavaScript, Gatsby and Reach to grab.
from gatsby-theme-code-notes.
Hey @timrossback, that is exactly how I'd do it as well. No worries, I'll see if I can make this change over the next few days.
from gatsby-theme-code-notes.
@timrossback I have done this now and it will ready in the next release.
from gatsby-theme-code-notes.
Great, thank you so much, and I'm so sorry I couldn't be more help!
from gatsby-theme-code-notes.
hey @timrossback, version 1.15.0 has been released with this feature, please update and check it out.
If you're interested to learn how I did it, this commit made the change: 29f80af
from gatsby-theme-code-notes.
Related Issues (20)
- Tag Pages Error HOT 2
- Remove emoji HOT 1
- how to cope with non ascii language only title post HOT 1
- [Suggestion] Clicking top left of page should go to homepage HOT 1
- opening sidenav and scrolling breaks page layout HOT 2
- Required field "link" HOT 1
- Who's using Code Notes? HOT 6
- Code Notes links HOT 1
- How to add other program languages for highlighting? HOT 1
- warn The gatsby-plugin-mdx plugin has generated no Gatsby nodes. Do you need it? HOT 3
- GraphQL errors after installation on type "MdxFields" HOT 4
- Set image max-width HOT 3
- Tags are hidden under the theme selector HOT 4
- [RFE] Add an 'about' section HOT 2
- change language HOT 5
- Add a parameter to configure TOC behaviour HOT 1
- Fresh install doesn't build HOT 5
- After basePath is set, the note's path will not automatically add the value of basePath? HOT 3
- Code Notes Version 2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gatsby-theme-code-notes.