Skip to content

Commit

Permalink
Add font to the theme
Browse files Browse the repository at this point in the history
  • Loading branch information
Agney committed Mar 1, 2020
1 parent 8d7f1d2 commit 49eed08
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
9 changes: 1 addition & 8 deletions example/src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>React Editor example</title>
<style>
body {
font-family: Consolas, Menlo, Monaco, source-code-pro, Courier New,
monospace;
font-feature-settings: normal;
}
</style>
<title>React Playground example</title>
</head>

<body>
Expand Down
6 changes: 4 additions & 2 deletions playground/src/Editor/EditorSetup.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ import styled from "styled-components";
import { IEditorTabs } from "../types";

const StyledSimpleEditor = styled(SimpleEditor)`
background-color: #000000;
color: #ffffff;
background-color: ${props => props.theme.editor.backgroundColor};
color: ${props => props.theme.editor.color};
overflow-y: auto !important;
font-family: ${props => props.theme.editor.fontFamily};
font-feature-settings: normal;
`;

interface IProps {
Expand Down
7 changes: 6 additions & 1 deletion playground/src/utils/theme.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@ const theme: DefaultTheme = {
},
divider: {
width: 2,
background: " #202020",
background: "#202020",
},
editor: {
fontFamily: `Consolas, Menlo, Monaco, source-code-pro, Courier New, monospace`,
backgroundColor: `#000000`,
color: `#ffffff`,
},
tabs: {
tabHeader: {
Expand Down

0 comments on commit 49eed08

Please sign in to comment.