-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add theme provider #312
base: staging
Are you sure you want to change the base?
Add theme provider #312
Conversation
AlmeAld
commented
Mar 30, 2021
•
edited
Loading
edited
- Cree un objeto theme con la paleta de colores.
- En styles.js del componente HomePage encontraran dos ejemplos para usar theme 🙌.
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/openpolitica/votupe/3y9VTiD4Nc2M4mhtxSTKoVaxKwnK |
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.
Muy buena iniciativa, gracias! 🙌
@@ -0,0 +1,55 @@ | |||
const theme = { | |||
colors: { |
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.
Genial! 🙌
global-styles/theme.js
Outdated
300: '#E3F9E1', | ||
200: '#F7FDF6', | ||
}, | ||
warning300: { |
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.
por qué 300? 🤔
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.
ups aquí debería ser sólo warning y error 😅
global-styles/theme.js
Outdated
400: '#DEDEDE', | ||
300: '#F3F3F3', | ||
}, | ||
white: '#FFFFFF', |
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.
aquí, así como black
recomendaría usar otros nombres, porque si luego queremos cambiar black por white, tendríamos que hacer cambio de nombres en el uso. Recomendaría ir con el nombre luminosity
donde incluya tanto blanco, negro y escala de grises.
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.
Hola @AlmeAld, solo una pregunta, gracias!
500: '#B1B1B1', | ||
400: '#DEDEDE', | ||
300: '#F3F3F3', | ||
200: '#FFFFFF', |
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.
Perdón por demorarme en llegar a este comentario pero #FFFFFF al ser blanco no debería ser 0?, no me imagino que valor podría tener 100 o 50 en esa nomenclatura. También: negro debería ser 1000?
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.
@wixo me estoy guiando de nuestra paleta de colores, donde nuestro máximo valor es 700