@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.
@@ -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
  };
@@ -1,9 +1,9 @@
1
1
  export var colorScales = {
2
2
  red: {
3
- light: ['#ffffff', '#fff7f6', '#ffeceb', '#ffdedc', '#ffcdcb', '#ffbab8', '#ffa4a2', '#ff8c8a', '#ff6e70', '#f2555a', '#aa2e35', '#660613', '#100001'],
4
- lightA: ['rgba(255, 255, 255, 0.01)', 'rgba(255, 55, 30, 0.04)', 'rgba(255, 17, 5, 0.08)', 'rgba(255, 19, 5, 0.14)', 'rgba(255, 17, 7, 0.21)', 'rgba(255, 9, 1, 0.28)', 'rgba(255, 9, 4, 0.37)', 'rgba(255, 5, 1, 0.46)', 'rgba(255, 1, 4, 0.57)', 'rgba(236, 1, 9, 0.67)', 'rgba(151, 0, 9, 0.82)', 'rgba(99, 1, 14, 0.98)', '#100001'],
5
- dark: ['#100001', '#370005', '#4f000a', '#660613', '#7c141d', '#932129', '#aa2e35', '#c13b41', '#d9484d', '#f2555a', '#ff9290', '#ffcbc9', '#ffffff'],
6
- darkA: ['rgba(229, 0, 14, 0.07)', 'rgba(250, 0, 23, 0.22)', 'rgba(255, 0, 32, 0.31)', 'rgba(255, 15, 47, 0.4)', 'rgba(253, 41, 59, 0.49)', 'rgba(253, 57, 71, 0.58)', 'rgba(254, 69, 79, 0.67)', 'rgba(254, 78, 86, 0.76)', 'rgba(255, 85, 91, 0.85)', 'rgba(255, 89, 95, 0.95)', '#ff9290', '#ffcbc9', '#ffffff']
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', '#fff5fe', '#fae8ff', '#f2d8ff', '#e8c7fb', '#dbb4f5', '#cea0ed', '#be8be5', '#ae74dc', '#9d5bd2', '#6c349f', '#400771', '#080017'],
64
- lightA: ['rgba(255, 255, 255, 0.01)', 'rgba(255, 5, 230, 0.04)', 'rgba(205, 25, 255, 0.1)', 'rgba(174, 11, 255, 0.16)', 'rgba(150, 0, 237, 0.22)', 'rgba(135, 5, 222, 0.3)', 'rgba(126, 5, 208, 0.38)', 'rgba(114, 3, 198, 0.46)', 'rgba(108, 2, 191, 0.55)', 'rgba(104, 3, 186, 0.65)', 'rgba(71, 1, 135, 0.8)', 'rgba(60, 2, 110, 0.98)', '#080017'],
65
- dark: ['#080017', '#210043', '#31005c', '#400771', '#4e1980', '#5d278f', '#6c349f', '#7c41b0', '#8c4ec1', '#9d5bd2', '#bf92df', '#e2c7ef', '#ffffff'],
66
- darkA: ['rgba(80, 0, 230, 0.1)', 'rgba(122, 0, 248, 0.27)', 'rgba(132, 0, 249, 0.37)', 'rgba(142, 16, 251, 0.45)', 'rgba(153, 49, 251, 0.51)', 'rgba(166, 70, 255, 0.56)', 'rgba(171, 83, 252, 0.63)', 'rgba(180, 94, 255, 0.69)', 'rgba(184, 103, 254, 0.76)', 'rgba(189, 110, 253, 0.83)', 'rgba(217, 166, 253, 0.88)', 'rgba(240, 212, 254, 0.94)', '#ffffff']
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'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/ui",
3
- "version": "1.14.0",
3
+ "version": "1.14.1",
4
4
  "description": "Lobe UI is an open-source UI component library for building chatbot web apps",
5
5
  "keywords": [
6
6
  "lobehub",