2022-12-17 22:34:02 +01:00
|
|
|
/* --- 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: (
|
2023-05-21 16:13:26 +02:00
|
|
|
"blue":#1971c2,
|
|
|
|
"violet":#6741d9,
|
|
|
|
"red":#e03131,
|
|
|
|
"orange":#e8590c,
|
|
|
|
"green":#2f9e44,
|
|
|
|
"skyblue":#0c8599,
|
2022-12-17 22:34:02 +01:00
|
|
|
"dark": #343a40,
|
2023-05-21 16:13:26 +02:00
|
|
|
"light":#ffffff,
|
|
|
|
"yellow":#ffe066,
|
2022-12-17 22:34:02 +01:00
|
|
|
"grey":#adb5bd,
|
|
|
|
"dark2":#212529,
|
|
|
|
"light2":#f1f3f5);
|
|
|
|
|
2023-05-21 16:13:26 +02:00
|
|
|
$palette-light: (
|
|
|
|
"blue": #a5d8ff,
|
|
|
|
"violet":#d0bfff,
|
|
|
|
"red":#ffc9c9,
|
|
|
|
"orange":#ffd8a8,
|
|
|
|
"green":#b2f2bb,
|
|
|
|
"skyblue":#99e9f2,
|
|
|
|
"yellow":#ffec99,
|
|
|
|
"light":#ffffff,
|
|
|
|
"grey":#f1f3f5,
|
|
|
|
"dark":#adb5bd
|
|
|
|
);
|
|
|
|
|
2022-12-17 22:34:02 +01:00
|
|
|
$semantics: (
|
2022-12-18 09:46:44 +01:00
|
|
|
"primary":"red",
|
2022-12-17 22:34:02 +01:00
|
|
|
"secondary":"dark",
|
|
|
|
"warning":"orange",
|
|
|
|
"danger":"red",
|
2023-05-02 11:58:09 +02:00
|
|
|
"info":"blue",
|
2022-12-17 22:34:02 +01:00
|
|
|
"success":"green",
|
2023-05-02 11:58:09 +02:00
|
|
|
"muted":"grey",
|
|
|
|
"light":"light",
|
|
|
|
"dark":"dark");
|
2022-12-17 22:34:02 +01:00
|
|
|
|
|
|
|
$helpers: (
|
|
|
|
"font":"dark2",
|
|
|
|
"font-light":"light",
|
|
|
|
"background":"light",
|
|
|
|
"background-alt":"light2",
|
2022-12-18 09:46:44 +01:00
|
|
|
"link":"red",
|
2022-12-17 22:34:02 +01:00
|
|
|
"selection":"blue",
|
|
|
|
"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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-05-21 16:13:26 +02:00
|
|
|
@function get-color-light($name) {
|
|
|
|
@if map-has-key($helpers, $name) {
|
|
|
|
@return map-get($palette-light, map-get($helpers, $name));
|
|
|
|
}
|
|
|
|
|
|
|
|
@else {
|
|
|
|
@if map-has-key($semantics, $name) {
|
|
|
|
@return map-get($palette-light, map-get($semantics, $name));
|
|
|
|
}
|
|
|
|
|
|
|
|
@else {
|
|
|
|
@return map-get($palette-light, $name);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-12-17 22:34:02 +01:00
|
|
|
// **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");
|