Skip to content

Commit

Permalink
fix(themes): resolve open-color map-get deprecation warning (#759)
Browse files Browse the repository at this point in the history
* chore(themes): move open-color spdx info to file

* fix(themes): resolve open-color map-get deprecation warning

* chore(themes): format open-color.scss
  • Loading branch information
ppvg authored Jan 28, 2025
1 parent 125b750 commit 7a6cec9
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 47 deletions.
4 changes: 2 additions & 2 deletions themes/icore-open/color-scheme/_index.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* Color Scheme
* From https://github.com/yeun/open-color
* Adapted from https://github.com/yeun/open-color
* Documentation https://yeun.github.io/open-color/
*/

@forward 'open-color';
@forward "open-color";
75 changes: 32 additions & 43 deletions themes/icore-open/color-scheme/open-color.scss
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
// SPDX-FileCopyrightText: © 2016 heeyeun
// SPDX-License-Identifier: MIT
//
//
// 𝗖 𝗢 𝗟 𝗢 𝗥
// v 1.9.1
//
// ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━

@use "sass:map";

// General
// ───────────────────────────────────

$oc-white: #ffffff;
$oc-black: #000000;

$oc-white: #ffffff;
$oc-black: #000000;

// Gray
// ───────────────────────────────────
Expand All @@ -26,7 +28,7 @@ $oc-gray-list: (
"6": #868e96,
"7": #495057,
"8": #343a40,
"9": #212529
"9": #212529,
);

$oc-gray-0: map-get($oc-gray-list, "0");
Expand All @@ -40,7 +42,6 @@ $oc-gray-7: map-get($oc-gray-list, "7");
$oc-gray-8: map-get($oc-gray-list, "8");
$oc-gray-9: map-get($oc-gray-list, "9");


// Red
// ───────────────────────────────────

Expand All @@ -54,7 +55,7 @@ $oc-red-list: (
"6": #fa5252,
"7": #f03e3e,
"8": #e03131,
"9": #c92a2a
"9": #c92a2a,
);

$oc-red-0: map-get($oc-red-list, "0");
Expand All @@ -68,7 +69,6 @@ $oc-red-7: map-get($oc-red-list, "7");
$oc-red-8: map-get($oc-red-list, "8");
$oc-red-9: map-get($oc-red-list, "9");


// Pink
// ───────────────────────────────────

Expand All @@ -82,7 +82,7 @@ $oc-pink-list: (
"6": #e64980,
"7": #d6336c,
"8": #c2255c,
"9": #a61e4d
"9": #a61e4d,
);

$oc-pink-0: map-get($oc-pink-list, "0");
Expand All @@ -96,7 +96,6 @@ $oc-pink-7: map-get($oc-pink-list, "7");
$oc-pink-8: map-get($oc-pink-list, "8");
$oc-pink-9: map-get($oc-pink-list, "9");


// Grape
// ───────────────────────────────────

Expand All @@ -110,7 +109,7 @@ $oc-grape-list: (
"6": #be4bdb,
"7": #ae3ec9,
"8": #9c36b5,
"9": #862e9c
"9": #862e9c,
);

$oc-grape-0: map-get($oc-grape-list, "0");
Expand All @@ -124,7 +123,6 @@ $oc-grape-7: map-get($oc-grape-list, "7");
$oc-grape-8: map-get($oc-grape-list, "8");
$oc-grape-9: map-get($oc-grape-list, "9");


// Violet
// ───────────────────────────────────

Expand All @@ -138,7 +136,7 @@ $oc-violet-list: (
"6": #7950f2,
"7": #7048e8,
"8": #6741d9,
"9": #5f3dc4
"9": #5f3dc4,
);

$oc-violet-0: map-get($oc-violet-list, "0");
Expand All @@ -152,7 +150,6 @@ $oc-violet-7: map-get($oc-violet-list, "7");
$oc-violet-8: map-get($oc-violet-list, "8");
$oc-violet-9: map-get($oc-violet-list, "9");


// Indigo
// ───────────────────────────────────

Expand All @@ -166,7 +163,7 @@ $oc-indigo-list: (
"6": #4c6ef5,
"7": #4263eb,
"8": #3b5bdb,
"9": #364fc7
"9": #364fc7,
);

$oc-indigo-0: map-get($oc-indigo-list, "0");
Expand All @@ -180,7 +177,6 @@ $oc-indigo-7: map-get($oc-indigo-list, "7");
$oc-indigo-8: map-get($oc-indigo-list, "8");
$oc-indigo-9: map-get($oc-indigo-list, "9");


// Blue
// ───────────────────────────────────

Expand All @@ -194,7 +190,7 @@ $oc-blue-list: (
"6": #228be6,
"7": #1c7ed6,
"8": #1971c2,
"9": #1864ab
"9": #1864ab,
);

$oc-blue-0: map-get($oc-blue-list, "0");
Expand All @@ -208,7 +204,6 @@ $oc-blue-7: map-get($oc-blue-list, "7");
$oc-blue-8: map-get($oc-blue-list, "8");
$oc-blue-9: map-get($oc-blue-list, "9");


// Cyan
// ───────────────────────────────────

Expand All @@ -222,7 +217,7 @@ $oc-cyan-list: (
"6": #15aabf,
"7": #1098ad,
"8": #0c8599,
"9": #0b7285
"9": #0b7285,
);

$oc-cyan-0: map-get($oc-cyan-list, "0");
Expand All @@ -236,7 +231,6 @@ $oc-cyan-7: map-get($oc-cyan-list, "7");
$oc-cyan-8: map-get($oc-cyan-list, "8");
$oc-cyan-9: map-get($oc-cyan-list, "9");


// Teal
// ───────────────────────────────────

Expand All @@ -250,7 +244,7 @@ $oc-teal-list: (
"6": #12b886,
"7": #0ca678,
"8": #099268,
"9": #087f5b
"9": #087f5b,
);

$oc-teal-0: map-get($oc-teal-list, "0");
Expand All @@ -264,7 +258,6 @@ $oc-teal-7: map-get($oc-teal-list, "7");
$oc-teal-8: map-get($oc-teal-list, "8");
$oc-teal-9: map-get($oc-teal-list, "9");


// Green
// ───────────────────────────────────

Expand All @@ -278,7 +271,7 @@ $oc-green-list: (
"6": #40c057,
"7": #37b24d,
"8": #2f9e44,
"9": #2b8a3e
"9": #2b8a3e,
);

$oc-green-0: map-get($oc-green-list, "0");
Expand All @@ -292,7 +285,6 @@ $oc-green-7: map-get($oc-green-list, "7");
$oc-green-8: map-get($oc-green-list, "8");
$oc-green-9: map-get($oc-green-list, "9");


// Lime
// ───────────────────────────────────

Expand All @@ -306,7 +298,7 @@ $oc-lime-list: (
"6": #82c91e,
"7": #74b816,
"8": #66a80f,
"9": #5c940d
"9": #5c940d,
);

$oc-lime-0: map-get($oc-lime-list, "0");
Expand All @@ -320,7 +312,6 @@ $oc-lime-7: map-get($oc-lime-list, "7");
$oc-lime-8: map-get($oc-lime-list, "8");
$oc-lime-9: map-get($oc-lime-list, "9");


// Yellow
// ───────────────────────────────────

Expand All @@ -334,7 +325,7 @@ $oc-yellow-list: (
"6": #fab005,
"7": #f59f00,
"8": #f08c00,
"9": #e67700
"9": #e67700,
);

$oc-yellow-0: map-get($oc-yellow-list, "0");
Expand All @@ -348,7 +339,6 @@ $oc-yellow-7: map-get($oc-yellow-list, "7");
$oc-yellow-8: map-get($oc-yellow-list, "8");
$oc-yellow-9: map-get($oc-yellow-list, "9");


// Orange
// ───────────────────────────────────

Expand All @@ -362,7 +352,7 @@ $oc-orange-list: (
"6": #fd7e14,
"7": #f76707,
"8": #e8590c,
"9": #d9480f
"9": #d9480f,
);

$oc-orange-0: map-get($oc-orange-list, "0");
Expand All @@ -376,24 +366,23 @@ $oc-orange-7: map-get($oc-orange-list, "7");
$oc-orange-8: map-get($oc-orange-list, "8");
$oc-orange-9: map-get($oc-orange-list, "9");


// Color list
// ───────────────────────────────────

$oc-color-spectrum: 9;
$oc-color-spectrum: 9;

$oc-color-list: (
$oc-gray-list: "gray",
$oc-red-list: "red",
$oc-pink-list: "pink",
$oc-grape-list: "grape",
$oc-violet-list: "violet",
$oc-indigo-list: "indigo",
$oc-blue-list: "blue",
$oc-cyan-list: "cyan",
$oc-teal-list: "teal",
$oc-green-list: "green",
$oc-lime-list: "lime",
$oc-yellow-list: "yellow",
$oc-orange-list: "orange"
$oc-gray-list: "gray",
$oc-red-list: "red",
$oc-pink-list: "pink",
$oc-grape-list: "grape",
$oc-violet-list: "violet",
$oc-indigo-list: "indigo",
$oc-blue-list: "blue",
$oc-cyan-list: "cyan",
$oc-teal-list: "teal",
$oc-green-list: "green",
$oc-lime-list: "lime",
$oc-yellow-list: "yellow",
$oc-orange-list: "orange",
);
2 changes: 0 additions & 2 deletions themes/icore-open/color-scheme/open-color.scss.license

This file was deleted.

0 comments on commit 7a6cec9

Please sign in to comment.