add color map variables and inject variables in components
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
@import 'variables';
|
||||
|
||||
html, body, #app, main {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
|
||||
@@ -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
@@ -8,7 +8,13 @@ module.exports = {
|
||||
.loader('graphql-tag/loader')
|
||||
.end()
|
||||
},
|
||||
|
||||
css: {
|
||||
loaderOptions: {
|
||||
sass: {
|
||||
prependData: '@import "@/assets/scss/variables.scss";'
|
||||
}
|
||||
}
|
||||
},
|
||||
publicPath: '/',
|
||||
devServer: {
|
||||
clientLogLevel: 'warning',
|
||||
|
||||
Reference in New Issue
Block a user