@lobehub/ui 1.14.0 → 1.14.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/Highlighter/theme.js +4 -20
- package/es/styles/colors.js +8 -8
- package/package.json +1 -1
package/es/Highlighter/theme.js
CHANGED
|
@@ -1,25 +1,6 @@
|
|
|
1
1
|
import { colorScales } from "../styles/colors";
|
|
2
2
|
export var themeConfig = function themeConfig(isDarkMode) {
|
|
3
3
|
var type = isDarkMode ? 'dark' : 'light';
|
|
4
|
-
// const theme = {
|
|
5
|
-
// red: isDarkMode ? colorScales.tomato[type][9] : colorScales.red[type][10],
|
|
6
|
-
// brightRed: isDarkMode ? colorScales.tomato[type][9] : colorScales.red[type][10],
|
|
7
|
-
// yellow: isDarkMode ? colorScales.amber[type][9] : colorScales.amber[type][10],
|
|
8
|
-
// brightYellow: isDarkMode ? colorScales.yellow[type][9] : colorScales.brown[type][10],
|
|
9
|
-
// green: isDarkMode ? colorScales.lime[type][9] : colorScales.grass[type][10],
|
|
10
|
-
// brightGreen: isDarkMode ? colorScales.lime[type][9] : colorScales.grass[type][10],
|
|
11
|
-
// cyan: '#42b3c2',
|
|
12
|
-
// brightCyan: '#4cd1e0',
|
|
13
|
-
// blue: isDarkMode ? colorScales.sky[type][9] : colorScales.blue[type][10],
|
|
14
|
-
// brightBlue: isDarkMode ? colorScales.sky[type][9] : colorScales.blue[type][10],
|
|
15
|
-
// magenta: '#c162de',
|
|
16
|
-
// brightMagenta: isDarkMode ? colorScales.purple[type][10] : colorScales.violet[type][10],
|
|
17
|
-
// white: isDarkMode ? colorScales.slate[type][10] : colorScales.gray[type][10],
|
|
18
|
-
// brightWhite: isDarkMode ? colorScales.gray[type][11] : colorScales.gray[type][10],
|
|
19
|
-
// black: isDarkMode ? colorScales.slate[type][10] : colorScales.gray[type][10],
|
|
20
|
-
// brightBlack: '#4f5666',
|
|
21
|
-
// };
|
|
22
|
-
|
|
23
4
|
var color0 = colorScales.gray[type][11];
|
|
24
5
|
var color1 = isDarkMode ? colorScales.cyan[type][9] : colorScales.cyan[type][9];
|
|
25
6
|
var color2 = isDarkMode ? colorScales.lime[type][9] : colorScales.green[type][9];
|
|
@@ -1667,6 +1648,9 @@ export var themeConfig = function themeConfig(isDarkMode) {
|
|
|
1667
1648
|
settings: {
|
|
1668
1649
|
fontStyle: 'italic'
|
|
1669
1650
|
}
|
|
1670
|
-
}]
|
|
1651
|
+
}],
|
|
1652
|
+
colors: {
|
|
1653
|
+
'editor.foreground': color4
|
|
1654
|
+
}
|
|
1671
1655
|
};
|
|
1672
1656
|
};
|
package/es/styles/colors.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export var colorScales = {
|
|
2
2
|
red: {
|
|
3
|
-
light: ['#ffffff', '#
|
|
4
|
-
lightA: ['rgba(255, 255, 255, 0.01)', 'rgba(255, 55,
|
|
5
|
-
dark: ['#
|
|
6
|
-
darkA: ['rgba(
|
|
3
|
+
light: ['#ffffff', '#fff7f7', '#ffeced', '#ffdde2', '#ffccd5', '#ffb8c7', '#ffa2b8', '#ff88a8', '#fe6998', '#f04f88', '#a72860', '#640039', '#0f0006'],
|
|
4
|
+
lightA: ['rgba(255, 255, 255, 0.01)', 'rgba(255, 55, 55, 0.04)', 'rgba(255, 17, 30, 0.08)', 'rgba(255, 12, 48, 0.14)', 'rgba(255, 0, 45, 0.2)', 'rgba(255, 1, 55, 0.28)', 'rgba(255, 4, 63, 0.37)', 'rgba(255, 2, 70, 0.47)', 'rgba(253, 1, 80, 0.59)', 'rgba(233, 0, 83, 0.69)', 'rgba(151, 2, 68, 0.85)', '#640039', '#0f0006'],
|
|
5
|
+
dark: ['#0f0006', '#34001d', '#4b002b', '#640039', '#7a0c46', '#911b53', '#a72860', '#bf356e', '#d7427b', '#f04f88', '#ff8eab', '#ffc9d3', '#ffffff'],
|
|
6
|
+
darkA: ['rgba(250, 0, 100, 0.06)', 'rgba(248, 0, 138, 0.21)', 'rgba(250, 0, 143, 0.3)', 'rgba(250, 0, 142, 0.4)', 'rgba(254, 25, 146, 0.48)', 'rgba(254, 47, 146, 0.57)', 'rgba(253, 61, 145, 0.66)', 'rgba(255, 71, 147, 0.75)', 'rgba(253, 78, 145, 0.85)', 'rgba(255, 84, 145, 0.94)', '#ff8eab', '#ffc9d3', '#ffffff']
|
|
7
7
|
},
|
|
8
8
|
volcano: {
|
|
9
9
|
light: ['#ffffff', '#fff7f6', '#ffece9', '#ffded9', '#ffcec5', '#ffbbaf', '#ffa695', '#ff8e78', '#fb745a', '#ec5e41', '#a53716', '#5d1900', '#0c0100'],
|
|
@@ -60,10 +60,10 @@ export var colorScales = {
|
|
|
60
60
|
darkA: ['rgba(0, 22, 244, 0.09)', 'rgba(0, 70, 248, 0.27)', 'rgba(0, 92, 249, 0.37)', 'rgba(0, 104, 251, 0.47)', 'rgba(0, 116, 255, 0.56)', 'rgba(0, 124, 255, 0.66)', 'rgba(3, 132, 254, 0.76)', 'rgba(29, 142, 254, 0.84)', 'rgba(43, 150, 254, 0.92)', '#369eff', 'rgba(137, 193, 254, 0.99)', '#c5dffd', '#ffffff']
|
|
61
61
|
},
|
|
62
62
|
purple: {
|
|
63
|
-
light: ['#ffffff', '#
|
|
64
|
-
lightA: ['rgba(255, 255, 255, 0.01)', 'rgba(255,
|
|
65
|
-
dark: ['#
|
|
66
|
-
darkA: ['rgba(
|
|
63
|
+
light: ['#ffffff', '#fff6fb', '#ffe7fd', '#fdd6fe', '#f6c4f8', '#eeb1f1', '#e49ce8', '#d886de', '#cb6ed2', '#bd54c6', '#892b8a', '#560053', '#0d000b'],
|
|
64
|
+
lightA: ['rgba(255, 255, 255, 0.01)', 'rgba(255, 30, 155, 0.04)', 'rgba(255, 15, 235, 0.1)', 'rgba(243, 14, 249, 0.17)', 'rgba(218, 9, 226, 0.24)', 'rgba(200, 3, 210, 0.31)', 'rgba(186, 1, 196, 0.39)', 'rgba(174, 3, 186, 0.48)', 'rgba(164, 1, 176, 0.57)', 'rgba(156, 0, 170, 0.67)', 'rgba(113, 0, 114, 0.83)', '#560053', '#0d000b'],
|
|
65
|
+
dark: ['#0d000b', '#2e002a', '#42003e', '#560053', '#670e66', '#781e78', '#892b8a', '#9a399e', '#ab46b2', '#bd54c6', '#d590da', '#edc7ee', '#ffffff'],
|
|
66
|
+
darkA: ['rgba(217, 0, 183, 0.06)', 'rgba(242, 0, 221, 0.19)', 'rgba(254, 0, 238, 0.26)', 'rgba(253, 0, 244, 0.34)', 'rgba(251, 34, 249, 0.41)', 'rgba(255, 64, 255, 0.47)', 'rgba(249, 78, 251, 0.55)', 'rgba(248, 92, 255, 0.62)', 'rgba(244, 100, 254, 0.7)', 'rgba(242, 108, 254, 0.78)', 'rgba(248, 167, 253, 0.86)', 'rgba(252, 212, 253, 0.94)', '#ffffff']
|
|
67
67
|
},
|
|
68
68
|
magenta: {
|
|
69
69
|
light: ['#ffffff', '#fff7f9', '#ffeaf4', '#ffdaee', '#ffc7e7', '#ffb2df', '#ff99d6', '#f980ca', '#ef67ba', '#e34ba9', '#a32466', '#63002d', '#100002'],
|