1
Fork 0
mirror of https://github.com/pds-nest/nest.git synced 2024-11-21 20:44:18 +00:00

Setup basic theme structure

This commit is contained in:
Stefano Pigozzi 2021-04-21 00:23:35 +02:00
parent 9ebbd7fc66
commit d9b9297c90
Signed by untrusted user who does not match committer: steffo
GPG key ID: 6965406171929D01
6 changed files with 38056 additions and 38063 deletions

File diff suppressed because it is too large Load diff

View file

@ -6,6 +6,7 @@
"@testing-library/jest-dom": "^5.11.10",
"@testing-library/react": "^11.2.6",
"@testing-library/user-event": "^12.8.3",
"classnames": "^2.3.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",

View file

@ -1,38 +0,0 @@
.App {
text-align: center;
}
.App-logo {
height: 40vmin;
pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
.App-logo {
animation: App-logo-spin infinite 20s linear;
}
}
.App-header {
background-color: #282c34;
min-height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-size: calc(10px + 2vmin);
color: white;
}
.App-link {
color: #61dafb;
}
@keyframes App-logo-spin {
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
}

View file

@ -1,26 +1,14 @@
import logo from "./logo.svg"
import "./App.css"
import {useState} from "react"
import classNames from "classnames"
import Style from "./App.module.css"
function App() {
export default function App() {
const [theme, setTheme] = useState("theme-dark");
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo"/>
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
<a
className="App-link"
href="https://reactjs.org"
target="_blank"
rel="noopener noreferrer"
>
Learn React
</a>
</header>
<div className={classNames(Style["app"], theme)}>
Ciao mondo!
</div>
)
}
export default App

View file

@ -0,0 +1,7 @@
.app {
min-height: 100vh;
min-width: 100vw;
background-color: var(--bg-primary);
color: var(--fg-primary);
}

View file

@ -1,13 +1,36 @@
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
min-height: 100%;
min-width: 100%;
}
code {
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
monospace;
.theme-dark {
--bg-primary: #3B7097;
--bg-light: #34607A;
--bg-dark: #254D61;
--fg-primary: #FFFFFF;
--fg-secondary: #536841;
--btn-on: #5D815C;
--btn-off: #F6E2BC;
--cmp-light: #C4C4C4;
--cmp-dark: #7C7C7C;
}
.theme-light {
--bg-primary: #CAE4F6;
--bg-light: #B2CEDF;
--bg-dark: #7292AF;
--fg-primary: #536841;
--fg-secondary: #FFFFFF;
--btn-on: #A3BDA2;
--btn-off: #FFFFFF;
--cmp-light: #FFFFFF;
--cmp-dark: #AAAAAA;
}