-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(React): Add styles to support dark themes #29410 (#1205)
- Loading branch information
1 parent
d754a0e
commit a191348
Showing
4 changed files
with
35 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 0 additions & 18 deletions
18
packages/cli/templates/react/igr-ts/projects/_base/files/src/index.css
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
packages/cli/templates/react/igr-ts/projects/_base/files/styles.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
body { | ||
background: hsla(var(--ig-surface-500, 0 0% 100%)); | ||
color: var(--ig-surface-500-contrast, black); | ||
font-family: var(--ig-font-family); | ||
padding: 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; | ||
} | ||
|
||
html, body, #root { | ||
height: 100%; | ||
} | ||
|
||
/* minor CSS reset */ | ||
body, h1, h2, h3, h4, h5, h6, p { | ||
margin: 0; | ||
} | ||
|
||
html { | ||
box-sizing: border-box; | ||
} | ||
|
||
img, video { | ||
height: auto; | ||
max-width: 100%; | ||
} | ||
|
||
code { | ||
font-family: source-code-pro, Menlo, Monaco, Consolas, "Courier New", | ||
monospace; | ||
} |