Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Commit

Permalink
Define theme colors for both light and dark mode (#58)
Browse files Browse the repository at this point in the history
* Bump dependencies
  • Loading branch information
marvinruder authored Aug 30, 2022
1 parent b6a1c27 commit 2a0ef93
Show file tree
Hide file tree
Showing 6 changed files with 434 additions and 362 deletions.
474 changes: 258 additions & 216 deletions .pnp.cjs

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
<meta name="theme-color" content="#FFFFFF" media="(prefers-color-scheme: light)">
<meta name="theme-color" content="#202020" media="(prefers-color-scheme: dark)">
<link
href="/index.css"
rel="stylesheet"
Expand Down
19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"node": "^16.17.0"
},
"dependencies": {
"@emotion/react": "^11.10.0",
"@emotion/styled": "^11.10.0",
"@mui/icons-material": "^5.10.2",
"@mui/lab": "^5.0.0-alpha.96",
"@mui/material": "^5.10.2",
"@emotion/react": "^11.10.4",
"@emotion/styled": "^11.10.4",
"@mui/icons-material": "^5.10.3",
"@mui/lab": "^5.0.0-alpha.97",
"@mui/material": "^5.10.3",
"@types/jest": "^28.1.8",
"@types/react": "^18.0.17",
"@types/react": "^18.0.18",
"@types/react-dom": "^18.0.6",
"@vitejs/plugin-react": "^2.0.1",
"apexcharts": "^3.35.5",
Expand All @@ -40,6 +40,7 @@
},
"scripts": {
"start": "vite",
"start:host": "vite --host",
"build": "vite build",
"lint": "eslint --ext .jsx,.js,.tsx,.ts src/",
"lint:fix": "eslint --ext .jsx,.js,.tsx,.ts src/ --fix",
Expand All @@ -62,9 +63,9 @@
"@babel/core": "^7.18.13",
"@babel/preset-env": "^7.18.10",
"@babel/preset-react": "^7.18.6",
"@types/node": "^18.7.13",
"@typescript-eslint/eslint-plugin": "^5.35.1",
"@typescript-eslint/parser": "^5.35.1",
"@types/node": "^18.7.14",
"@typescript-eslint/eslint-plugin": "^5.36.1",
"@typescript-eslint/parser": "^5.36.1",
"babel-jest": "^28.1.3",
"eslint": "^8.23.0",
"eslint-config-google": "^0.14.0",
Expand Down
2 changes: 0 additions & 2 deletions public/favicon/site.webmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,5 @@
"type": "image/png"
}
],
"theme_color": "#ffffff",
"background_color": "#ffffff",
"display": "standalone"
}
5 changes: 2 additions & 3 deletions public/index.css
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
/* inter-regular - vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic */
@font-face {
font-family: 'Inter';
font-style: normal;
font-weight: 400;
font-display: swap;
src:
local(''),
url('static/fonts/inter-v12-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2') format('woff2'), /* Chrome 26+, Opera 23+, Firefox 39+ */
url('static/fonts/inter-v12-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff') format('woff'); /* Chrome 6+, Firefox 3.6+, IE 9+, Safari 5.1+ */
url('static/fonts/inter-v12-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff2') format('woff2'),
url('static/fonts/inter-v12-vietnamese_latin-ext_latin_greek-ext_greek_cyrillic-ext_cyrillic-regular.woff') format('woff');
}
Loading

0 comments on commit 2a0ef93

Please sign in to comment.