Skip to content
Discussion options

You must be logged in to vote

To add a Solarized theme:
1. Create src/themes/solarizedTheme.js:
javascript<br>export const solarizedTheme = {<br> background: 'bg-[#002b36]',<br> text: 'text-[#839496]',<br> taskbar: 'bg-[#073642]/80 backdrop-blur-md',<br> window: 'bg-[#fdf6e3] text-[#657b83]',<br>};<br>
2. Update src/context/ThemeContext.js to include the new theme:
javascript<br>const themes = { light: lightTheme, dark: darkTheme, solarized: solarizedTheme };<br>
3. Modify src/app-components/settings.js to add a theme selector option.
4. Test with npm run dev.
5. Submit a pull request.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Ziqian-Huang0607
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants