-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Styled Components + Google Fonts + Colors & Global Styles
- Loading branch information
1 parent
89cf745
commit 5336c88
Showing
9 changed files
with
432 additions
and
78 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
const Color = require("color-js"); | ||
|
||
const Colors = { | ||
black: Color("#000000"), | ||
white: Color("#ffffff"), | ||
}; | ||
|
||
export default Colors; |
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 @@ | ||
import { createGlobalStyle } from "styled-components"; | ||
import Colors from "./colors"; | ||
|
||
const GlobalStyle = createGlobalStyle` | ||
:root{ | ||
/* Colors */ | ||
--black: ${Colors.black.toCSS()}; | ||
--white: ${Colors.white.toCSS()}; | ||
} | ||
* { | ||
padding: 0; | ||
margin: 0; | ||
} | ||
*, | ||
input, | ||
select, | ||
textarea, | ||
option, | ||
button { | ||
outline: none !important; | ||
} | ||
::-moz-selection { | ||
/* Code for Firefox */ | ||
color: var(--white); | ||
background: #00fbff; | ||
} | ||
::selection { | ||
color: var(--black); | ||
background: #02e3ff; | ||
} | ||
`; | ||
|
||
export default GlobalStyle; |
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,12 @@ | ||
import React from "react"; | ||
|
||
function Home() { | ||
return ( | ||
<div> | ||
<h1>Hola Cris</h1> | ||
<p>Aca vamos a ir testeando</p> | ||
</div> | ||
); | ||
} | ||
|
||
export default Home; |
Oops, something went wrong.
5336c88
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs: