Files
test/src/shared/theme.ts
T
Kyle Geib dd4df61fec ISSUE-005 - Added indicator "I" and "O", emulating an accessibility option found in iOS.
Added a subtle background color transition.
Gave up on the idea of giving the toggle circle a shadow (not worth the hassle). But if I did decide to do that, I'd be able to animate the toggle circle fairly easily, I think.
2022-01-10 18:11:54 -05:00

52 lines
1.1 KiB
TypeScript

import { createGlobalStyle, ThemeProps } from "styled-components";
export const theme = {
fonts: {
basic: "Helvetica, sans-serif",
f1: "Formula1, sans-serif",
f1Regular: "\"Formula1 Regular\", sans-serif",
f1Bold: "\"Formula1 Bold\", sans-serif",
f1Italic: "\"Formula1 Italic\", sans-serif",
f1Black: "\"Formula1 Black\", sans-serif",
f1Wide: "\"Formula1 Wide\", sans-serif",
},
colors: {
orange: "#f4ae40",
blue: "#387af5",
pink: "#eb57a3",
activeGreen: "#65c466",
grey: "#aaa",
lightGrey: "#ddd",
faintGrey: "#eee",
darkGrey: "#303030",
videoFrameBG: "#333",
},
design: {
button: {
borderRadius: "0.25rem",
},
},
};
export type MainThemeProps = ThemeProps<typeof theme>;
export const GlobalStyle = createGlobalStyle<MainThemeProps>`
body {
margin: 0;
font-family: ${p => p.theme.fonts.basic};
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
*,
*::after,
*::before { box-sizing: border-box; }
h1, h2, h3, h4, h5, h6 { margin: 0; }
input,
textarea,
button {
font-family: ${p => p.theme.fonts.basic};
}
`;