85 lines
2 KiB
SCSS
85 lines
2 KiB
SCSS
|
/* --- 00. PALETTE --- */
|
||
|
|
||
|
/*
|
||
|
* Les définitions globales des couleurs du theme.
|
||
|
*
|
||
|
* Elle permettent de définir rapidement à la fois les couleurs
|
||
|
* de base qui seront utilisée pour tout le theme, mais
|
||
|
* également celles spécifiques pour certains sujets (liens, texte)
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
$whiteness_value: 0.8;
|
||
|
|
||
|
// Couleurs de base du theme :
|
||
|
|
||
|
$palette: (
|
||
|
"blue":#0f7e84,
|
||
|
"violet":#CB357D,
|
||
|
"red":#dc322f,
|
||
|
"orange":#cb4b16,
|
||
|
"green":#859900,
|
||
|
"skyblue":#0f7e84,
|
||
|
"dark": #002b36,
|
||
|
"light":#FDF7E7,
|
||
|
"yellow":#b58900,
|
||
|
"grey":#586e75,
|
||
|
"dark2":#073642,
|
||
|
"light2":#eee8d5);
|
||
|
|
||
|
$semantics: (
|
||
|
"primary":"violet",
|
||
|
"secondary":"skyblue",
|
||
|
"warning":"orange",
|
||
|
"danger":"red",
|
||
|
"info":"skyblue",
|
||
|
"success":"green",
|
||
|
"muted":"grey",
|
||
|
"light":"light",
|
||
|
"dark":"dark");
|
||
|
|
||
|
$helpers: (
|
||
|
"font":"dark2",
|
||
|
"font-light":"light",
|
||
|
"background":"light",
|
||
|
"background-alt":"light2",
|
||
|
"link":"violet",
|
||
|
"selection":"skyblue",
|
||
|
"mark":"yellow",
|
||
|
);
|
||
|
|
||
|
@function get-color($name) {
|
||
|
@if map-has-key($helpers, $name) {
|
||
|
@return map-get($palette, map-get($helpers, $name));
|
||
|
} @else {
|
||
|
@if map-has-key($semantics, $name) {
|
||
|
@return map-get($palette, map-get($semantics, $name));
|
||
|
} @else {
|
||
|
@return map-get($palette, $name);
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// **Couleurs du theme**
|
||
|
// Ne pas retirer ces couleurs, qui
|
||
|
// sont essentielle pour que le framework functionne.
|
||
|
// Pour les modifier, modifier le contenu du tableau $semantics.
|
||
|
|
||
|
$color-link: get-color("link");
|
||
|
$color-selection: get-color("selection");
|
||
|
$color-mark: get-color("mark");
|
||
|
$color-font: get-color("font");
|
||
|
$color-font-light: get-color("font-light");
|
||
|
|
||
|
$color-primary: get-color("primary");
|
||
|
$color-secondary: get-color("secondary");
|
||
|
$color-warning: get-color("warning");
|
||
|
$color-danger: get-color("danger");
|
||
|
$color-info: get-color("info");
|
||
|
$color-success: get-color("success");
|
||
|
|
||
|
$color-muted: get-color("muted");
|
||
|
|
||
|
$color-background: get-color("background");
|
||
|
$color-background-alt: get-color("background-alt");
|