add color map variables and inject variables in components

This commit is contained in:
axolotle
2021-02-24 22:09:47 +01:00
parent afca9e3de1
commit 7813b9aa07
3 changed files with 37 additions and 1 deletions
+2
View File
@@ -1,3 +1,5 @@
@import 'variables';
html, body, #app, main {
height: 100%;
margin: 0;
+28
View File
@@ -0,0 +1,28 @@
// Texte de départ (id: 9)
$color-starting: white;
// Texte critique (id: 22)
$color-critical: #ffba7d;
// Constellation en écho (id: 63)
$color-echo: #e191ff;
// Réflexion théorique (id: 6)
$color-thinking: #ffeb91;
// Lecture rapprochée (id: 7)
$color-reading: #a5a5ff;
// Expérience sensible (id: 8)
$color-experience: #cdae87;
// Kit de désapprentissage (id: 23)
$color-kit: #ff8873;
$families: (
9: $color-starting,
22: $color-critical,
63: $color-echo,
6: $color-thinking,
7: $color-reading,
8: $color-experience,
23: $color-kit
);
@function setColorFromId($id) {
@return map-get($families, $id);
}
+7 -1
View File
@@ -8,7 +8,13 @@ module.exports = {
.loader('graphql-tag/loader')
.end()
},
css: {
loaderOptions: {
sass: {
prependData: '@import "@/assets/scss/variables.scss";'
}
}
},
publicPath: '/',
devServer: {
clientLogLevel: 'warning',