Skip to content

Commit

Permalink
Default to light
Browse files Browse the repository at this point in the history
  • Loading branch information
cagataycivici committed Mar 11, 2022
1 parent 1f5e21e commit c307fc3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pages/_app.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import Layout from '../components/layout/layout';
import { useState } from 'react';

export default function MyApp({ Component }) {
const [dark, setDark] = useState(true);
const [theme, setTheme] = useState('lara-dark-indigo');
const [dark, setDark] = useState(false);
const [theme, setTheme] = useState('lara-light-indigo');

const props = {
dark: dark,
Expand Down
2 changes: 1 addition & 1 deletion pages/_document.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class MyDocument extends Document {
return (
<Html>
<Head>
<link id="theme-link" href={`${contextPath}/themes/lara-dark-indigo/theme.css`} rel="stylesheet"></link>
<link id="theme-link" href={`${contextPath}/themes/lara-light-indigo/theme.css`} rel="stylesheet"></link>
</Head>
<body>
<Main />
Expand Down
2 changes: 1 addition & 1 deletion pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { useEffect, useState } from 'react';

export default function Home(props) {
const contextPath = getConfig().publicRuntimeConfig.contextPath;
const [tableTheme, setTableTheme] = useState('lara-dark-indigo');
const [tableTheme, setTableTheme] = useState('lara-light-indigo');
const rootClassName = classNames('landing', {'landing-light': !props.dark, 'landing-dark': props.dark});
const toggleColorScheme = () => {
const darkMode = !props.dark;
Expand Down

0 comments on commit c307fc3

Please sign in to comment.