- {props.header}
+export const Wrapper: React.FC
= props => {
+ const { theme } = useTheme()
-
- {props.children}
-
+ return (
+
+ {props.header}
- {props.footer}
-
-)
+
+ {props.children}
+
+
+ {props.footer}
+
+ )
+}
diff --git a/src/style/style.css b/src/style/style.css
index 12a2a369..d38ba486 100644
--- a/src/style/style.css
+++ b/src/style/style.css
@@ -34,6 +34,7 @@
--color-back-opposite: hsl(0, 0%, 15%);
--color-shadow: rgba(27, 51, 88, 0.25);
+ --color-hover: none;
/* SIZE */
--size-xs: 0.35rem;
@@ -44,6 +45,7 @@
/* EFFECTS */
--radius: 16px;
+ --radius-small: 12px;
--shadow:
0 2px 4px rgba(27, 51, 88, 0.2),
0 4px 8px -8px rgba(0, 0, 0, 0.2),
@@ -51,6 +53,7 @@
--shadow-active:
0 12px 24px -8px rgba(27, 51, 88, 0.25),
0 8px 16px -8px rgba(0, 0, 0, 0.3);
+ --border: none;
/* SPECIAL */
--article-line-height: 1.5em;
@@ -191,3 +194,45 @@ h3 {
--shadow-active: none;
}
}
+
+/* CONTRAST THEME */
+.theme-contrast {
+ /* FONTS */
+ --title-font: 'Roboto', Helvetica, sans-serif;
+ --text-font: 'Roboto', Helvetica, sans-serif;
+
+ /* TEXT COLOR */
+ --color-text: black;
+ --color-text-second: black;
+ --color-text-opposite: white;
+
+ --color-back-main: white;
+ --color-back: white;
+ --color-back-active: hsl(240, 10%, 20%);
+ /* --color-back-opposite: hsl(240, 10%, 80%); */
+ --color-back-opposite: black;
+ --color-link: hsl(240, 10%, 40%);
+ --color-link-opposite: hsl(240, 10%, 60%);
+
+ --color-hover: white;
+ --color-hover-back: black;
+
+ /* EFFECTS */
+ /* --radius: 0px; */
+ --shadow: none;
+ --shadow-active: none;
+
+ /* FONTS */
+ --font-size-default: 14pt;
+ --font-size-accent: 24pt;
+ --font-size-second: 12pt;
+
+ --font-size-h1: 5rem;
+ --font-size-h2: 3rem;
+ --font-size-h3: 1.5rem;
+
+ /* OTHER */
+ --radius: 0;
+ --radius-small: 0;
+ --border: 5px solid var(--color-back-opposite);
+}
diff --git a/src/ui/Box/index.tsx b/src/ui/Box/index.tsx
index 2243fdb5..752c85fa 100644
--- a/src/ui/Box/index.tsx
+++ b/src/ui/Box/index.tsx
@@ -8,6 +8,7 @@ const cx = classnames.bind(s)
export type BoxProps = {
as?: keyof HTMLElementTagNameMap
children?: React.ReactNode
+ className?: string
style?: React.CSSProperties
wrap?: boolean
align?: boolean
@@ -22,10 +23,11 @@ export const Box: React.FC