Skip to content

Commit

Permalink
Styled Components + Google Fonts + Colors & Global Styles
Browse files Browse the repository at this point in the history
  • Loading branch information
facundoezequiel committed Mar 24, 2021
1 parent 89cf745 commit 5336c88
Show file tree
Hide file tree
Showing 9 changed files with 432 additions and 78 deletions.
8 changes: 8 additions & 0 deletions constants/colors.js
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;
34 changes: 34 additions & 0 deletions constants/globalStyles.js
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;
12 changes: 12 additions & 0 deletions containers/home.js
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;
Loading

1 comment on commit 5336c88

@vercel
Copy link

@vercel vercel bot commented on 5336c88 Mar 24, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.