@svgrid/grid 2.4.0 → 2.5.0
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/dist/themes/index.js +28 -9
- package/package.json +1 -1
- package/src/svgrid.filter-menu-listbox.svelte.test.ts +14 -5
- package/src/themes/index.ts +30 -9
- package/themes/ag-alpine.css +2 -2
- package/themes/antd.css +4 -4
- package/themes/atlassian.css +1 -1
- package/themes/ember.css +2 -2
- package/themes/fluent.css +1 -1
- package/themes/github.css +1 -1
- package/themes/nord.css +2 -2
- package/themes/notion.css +2 -2
- package/themes/salesforce.css +1 -1
- package/themes/tailwind.css +1 -1
- package/themes/vercel.css +1 -1
package/dist/themes/index.js
CHANGED
|
@@ -66,8 +66,8 @@ export const themePresets = [
|
|
|
66
66
|
light: { bg: '#ffffff', fg: '#1f2328', muted: '#59636e', border: '#d1d9e0', headerBg: '#f6f8fa', headerFg: '#59636e', accent: '#0969da', rowAlt: '#ffffff', rowHover: '#f6f8fa', selectionBg: '#ddf4ff' },
|
|
67
67
|
dark: { bg: '#0d1117', fg: '#f0f6fc', muted: '#9198a1', border: '#3d444d', headerBg: '#151b23', headerFg: '#9198a1', accent: '#4493f8', rowAlt: '#0d1117', rowHover: '#151b23', selectionBg: 'rgba(56, 139, 253, 0.10)' } },
|
|
68
68
|
{ id: 'antd', name: 'Ant Design', radius: 6, font: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif',
|
|
69
|
-
light: { bg: '#ffffff', fg: 'rgba(0, 0, 0, 0.88)', muted: 'rgba(0, 0, 0, 0.65)', border: '#d9d9d9', headerBg: '#fafafa', headerFg: 'rgba(0, 0, 0, 0.88)', accent: '#
|
|
70
|
-
dark: { bg: '#141414', fg: 'rgba(255, 255, 255, 0.85)', muted: 'rgba(255, 255, 255, 0.65)', border: '#424242', headerBg: '#1f1f1f', headerFg: 'rgba(255, 255, 255, 0.85)', accent: '#
|
|
69
|
+
light: { bg: '#ffffff', fg: 'rgba(0, 0, 0, 0.88)', muted: 'rgba(0, 0, 0, 0.65)', border: '#d9d9d9', headerBg: '#fafafa', headerFg: 'rgba(0, 0, 0, 0.88)', accent: '#066dff', rowAlt: '#ffffff', rowHover: '#f5f5f5', selectionBg: '#e6f4ff' },
|
|
70
|
+
dark: { bg: '#141414', fg: 'rgba(255, 255, 255, 0.85)', muted: 'rgba(255, 255, 255, 0.65)', border: '#424242', headerBg: '#1f1f1f', headerFg: 'rgba(255, 255, 255, 0.85)', accent: '#1678d3', rowAlt: '#141414', rowHover: '#262626', selectionBg: '#111a2c' } },
|
|
71
71
|
{ id: 'ag-alpine', name: 'Alpine', radius: 3, font: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
72
72
|
light: { bg: '#ffffff', fg: '#181d1f', muted: 'rgba(24, 29, 31, 0.5)', border: '#babfc7', headerBg: '#f8f8f8', headerFg: '#181d1f', accent: '#2196f3', rowAlt: '#fcfcfc', rowHover: 'rgba(33, 150, 243, 0.1)', selectionBg: 'rgba(33, 150, 243, 0.3)' },
|
|
73
73
|
dark: { bg: '#181d1f', fg: '#ffffff', muted: 'rgba(255, 255, 255, 0.5)', border: '#68686e', headerBg: '#222628', headerFg: '#ffffff', accent: '#2196f3', rowAlt: '#222628', rowHover: 'rgba(33, 150, 243, 0.1)', selectionBg: 'rgba(33, 150, 243, 0.3)' } },
|
|
@@ -84,7 +84,7 @@ export const themePresets = [
|
|
|
84
84
|
light: { bg: '#ffffff', fg: '#37352f', muted: '#787774', border: '#e9e9e7', headerBg: '#f7f6f3', headerFg: '#787774', accent: '#2383e2', rowAlt: '#fbfbfa', rowHover: '#f1f1ef', selectionBg: '#d9eaf7' },
|
|
85
85
|
dark: { bg: '#191919', fg: '#d4d4d4', muted: '#9b9b9b', border: '#2f2f2f', headerBg: '#202020', headerFg: '#9b9b9b', accent: '#529cca', rowAlt: '#1c1c1c', rowHover: '#252525', selectionBg: '#20415c' } },
|
|
86
86
|
{ id: 'nord', name: 'Nord', radius: 4, font: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
87
|
-
light: { bg: '#eceff4', fg: '#2e3440', muted: '#4c566a', border: '#d8dee9', headerBg: '#e5e9f0', headerFg: '#2e3440', accent: '#
|
|
87
|
+
light: { bg: '#eceff4', fg: '#2e3440', muted: '#4c566a', border: '#d8dee9', headerBg: '#e5e9f0', headerFg: '#2e3440', accent: '#5579a5', rowAlt: '#e5e9f0', rowHover: '#dde3ec', selectionBg: '#d8dee9' },
|
|
88
88
|
dark: { bg: '#2e3440', fg: '#d8dee9', muted: '#4c566a', border: '#434c5e', headerBg: '#3b4252', headerFg: '#e5e9f0', accent: '#88c0d0', rowAlt: '#333b48', rowHover: '#3b4252', selectionBg: '#434c5e' } },
|
|
89
89
|
{ id: 'dracula', name: 'Dracula', radius: 6, font: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
90
90
|
light: { bg: '#fffbeb', fg: '#1f1f1f', muted: '#6c664b', border: '#dedccf', headerBg: '#ece9df', headerFg: '#1f1f1f', accent: '#644ac9', rowAlt: '#fffdf5', rowHover: '#f2efe3', selectionBg: '#cfcfde' },
|
|
@@ -97,16 +97,35 @@ export const themePresets = [
|
|
|
97
97
|
export const defaultThemePreset = themePresets.find((t) => t.id === 'tailwind') ?? themePresets[0];
|
|
98
98
|
/** Look up a preset by id. */
|
|
99
99
|
export const getThemePreset = (id) => id ? themePresets.find((t) => t.id === id) : undefined;
|
|
100
|
-
/**
|
|
100
|
+
/** WCAG 2.1 relative luminance. */
|
|
101
|
+
function relativeLuminance(hex) {
|
|
102
|
+
const n = parseInt(hex, 16);
|
|
103
|
+
const chan = (v) => {
|
|
104
|
+
const c = v / 255;
|
|
105
|
+
return c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4);
|
|
106
|
+
};
|
|
107
|
+
return 0.2126 * chan((n >> 16) & 255) + 0.7152 * chan((n >> 8) & 255) + 0.0722 * chan(n & 255);
|
|
108
|
+
}
|
|
109
|
+
/** WCAG contrast ratio between two 6-digit hex colors, 1 (identical) to 21. */
|
|
110
|
+
function contrastRatio(a, b) {
|
|
111
|
+
const [x, y] = [relativeLuminance(a), relativeLuminance(b)];
|
|
112
|
+
return (Math.max(x, y) + 0.05) / (Math.min(x, y) + 0.05);
|
|
113
|
+
}
|
|
114
|
+
/**
|
|
115
|
+
* A readable (near-black / white) foreground for text placed on the accent.
|
|
116
|
+
*
|
|
117
|
+
* Picks whichever candidate has the higher WCAG contrast against the accent.
|
|
118
|
+
* This used to threshold a YIQ luminance approximation at 0.6, which handed
|
|
119
|
+
* white text to every mid-tone accent - Tailwind's indigo in dark mode scored
|
|
120
|
+
* 2.98:1 against white where AA wants 4.5. Comparing real contrast ratios fixes
|
|
121
|
+
* that class of preset without touching any palette.
|
|
122
|
+
*/
|
|
101
123
|
function onAccent(accent) {
|
|
102
124
|
const m = /^#?([0-9a-f]{6})$/i.exec(accent.trim());
|
|
103
125
|
if (!m)
|
|
104
126
|
return '#ffffff';
|
|
105
|
-
const
|
|
106
|
-
|
|
107
|
-
// Perceived luminance (sRGB, quick approximation).
|
|
108
|
-
const lum = (0.299 * r + 0.587 * g + 0.114 * b) / 255;
|
|
109
|
-
return lum > 0.6 ? '#18181b' : '#ffffff';
|
|
127
|
+
const hex = m[1];
|
|
128
|
+
return contrastRatio('18181b', hex) >= contrastRatio('ffffff', hex) ? '#18181b' : '#ffffff';
|
|
110
129
|
}
|
|
111
130
|
/** Resolve the effective `--sg-*` tokens for a preset in a given mode, with an
|
|
112
131
|
* optional accent override applied. */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@svgrid/grid",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "Svelte 5-native data grid and data table. Headless-first engine with virtual scrolling for 100k+ rows, Excel-style filtering, inline editing, grouping, tree data, pivot, and server-side data. Drop-in <SvGrid> component. TypeScript, SSR-ready.",
|
|
5
5
|
"author": "jQWidgets <boikom@jqwidgets.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -93,11 +93,20 @@ async function openFilterMenu(target: HTMLElement) {
|
|
|
93
93
|
// failed once that way in a full-suite run. Every caller here opens a menu on
|
|
94
94
|
// a column that has values, so a populated list is the settled state to wait
|
|
95
95
|
// for, and each test's own assertions are unchanged.
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
96
|
+
//
|
|
97
|
+
// The 1s default is not enough for the lazy chunk when `test:lib` runs the
|
|
98
|
+
// whole suite with `--coverage`: instrumentation plus parallel load pushes
|
|
99
|
+
// the import past a second and the menu is still null when the clock runs
|
|
100
|
+
// out. The assertions are unchanged - this only waits longer for a dynamic
|
|
101
|
+
// import, so a slow machine reports a real failure rather than a timeout.
|
|
102
|
+
await vi.waitFor(
|
|
103
|
+
() => {
|
|
104
|
+
const menu = target.querySelector('.sv-grid-filter-menu')
|
|
105
|
+
expect(menu).not.toBeNull()
|
|
106
|
+
expect(menu!.querySelectorAll('[role="option"]').length).toBeGreaterThan(0)
|
|
107
|
+
},
|
|
108
|
+
{ timeout: 5000 },
|
|
109
|
+
)
|
|
101
110
|
return target.querySelector('.sv-grid-filter-menu') as HTMLElement
|
|
102
111
|
}
|
|
103
112
|
|
package/src/themes/index.ts
CHANGED
|
@@ -126,8 +126,8 @@ export const themePresets: ThemePreset[] = [
|
|
|
126
126
|
light: { bg: '#ffffff', fg: '#1f2328', muted: '#59636e', border: '#d1d9e0', headerBg: '#f6f8fa', headerFg: '#59636e', accent: '#0969da', rowAlt: '#ffffff', rowHover: '#f6f8fa', selectionBg: '#ddf4ff' },
|
|
127
127
|
dark: { bg: '#0d1117', fg: '#f0f6fc', muted: '#9198a1', border: '#3d444d', headerBg: '#151b23', headerFg: '#9198a1', accent: '#4493f8', rowAlt: '#0d1117', rowHover: '#151b23', selectionBg: 'rgba(56, 139, 253, 0.10)' } },
|
|
128
128
|
{ id: 'antd', name: 'Ant Design', radius: 6, font: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif',
|
|
129
|
-
light: { bg: '#ffffff', fg: 'rgba(0, 0, 0, 0.88)', muted: 'rgba(0, 0, 0, 0.65)', border: '#d9d9d9', headerBg: '#fafafa', headerFg: 'rgba(0, 0, 0, 0.88)', accent: '#
|
|
130
|
-
dark: { bg: '#141414', fg: 'rgba(255, 255, 255, 0.85)', muted: 'rgba(255, 255, 255, 0.65)', border: '#424242', headerBg: '#1f1f1f', headerFg: 'rgba(255, 255, 255, 0.85)', accent: '#
|
|
129
|
+
light: { bg: '#ffffff', fg: 'rgba(0, 0, 0, 0.88)', muted: 'rgba(0, 0, 0, 0.65)', border: '#d9d9d9', headerBg: '#fafafa', headerFg: 'rgba(0, 0, 0, 0.88)', accent: '#066dff', rowAlt: '#ffffff', rowHover: '#f5f5f5', selectionBg: '#e6f4ff' },
|
|
130
|
+
dark: { bg: '#141414', fg: 'rgba(255, 255, 255, 0.85)', muted: 'rgba(255, 255, 255, 0.65)', border: '#424242', headerBg: '#1f1f1f', headerFg: 'rgba(255, 255, 255, 0.85)', accent: '#1678d3', rowAlt: '#141414', rowHover: '#262626', selectionBg: '#111a2c' } },
|
|
131
131
|
{ id: 'ag-alpine', name: 'Alpine', radius: 3, font: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
132
132
|
light: { bg: '#ffffff', fg: '#181d1f', muted: 'rgba(24, 29, 31, 0.5)', border: '#babfc7', headerBg: '#f8f8f8', headerFg: '#181d1f', accent: '#2196f3', rowAlt: '#fcfcfc', rowHover: 'rgba(33, 150, 243, 0.1)', selectionBg: 'rgba(33, 150, 243, 0.3)' },
|
|
133
133
|
dark: { bg: '#181d1f', fg: '#ffffff', muted: 'rgba(255, 255, 255, 0.5)', border: '#68686e', headerBg: '#222628', headerFg: '#ffffff', accent: '#2196f3', rowAlt: '#222628', rowHover: 'rgba(33, 150, 243, 0.1)', selectionBg: 'rgba(33, 150, 243, 0.3)' } },
|
|
@@ -144,7 +144,7 @@ export const themePresets: ThemePreset[] = [
|
|
|
144
144
|
light: { bg: '#ffffff', fg: '#37352f', muted: '#787774', border: '#e9e9e7', headerBg: '#f7f6f3', headerFg: '#787774', accent: '#2383e2', rowAlt: '#fbfbfa', rowHover: '#f1f1ef', selectionBg: '#d9eaf7' },
|
|
145
145
|
dark: { bg: '#191919', fg: '#d4d4d4', muted: '#9b9b9b', border: '#2f2f2f', headerBg: '#202020', headerFg: '#9b9b9b', accent: '#529cca', rowAlt: '#1c1c1c', rowHover: '#252525', selectionBg: '#20415c' } },
|
|
146
146
|
{ id: 'nord', name: 'Nord', radius: 4, font: '"Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
147
|
-
light: { bg: '#eceff4', fg: '#2e3440', muted: '#4c566a', border: '#d8dee9', headerBg: '#e5e9f0', headerFg: '#2e3440', accent: '#
|
|
147
|
+
light: { bg: '#eceff4', fg: '#2e3440', muted: '#4c566a', border: '#d8dee9', headerBg: '#e5e9f0', headerFg: '#2e3440', accent: '#5579a5', rowAlt: '#e5e9f0', rowHover: '#dde3ec', selectionBg: '#d8dee9' },
|
|
148
148
|
dark: { bg: '#2e3440', fg: '#d8dee9', muted: '#4c566a', border: '#434c5e', headerBg: '#3b4252', headerFg: '#e5e9f0', accent: '#88c0d0', rowAlt: '#333b48', rowHover: '#3b4252', selectionBg: '#434c5e' } },
|
|
149
149
|
{ id: 'dracula', name: 'Dracula', radius: 6, font: '-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif',
|
|
150
150
|
light: { bg: '#fffbeb', fg: '#1f1f1f', muted: '#6c664b', border: '#dedccf', headerBg: '#ece9df', headerFg: '#1f1f1f', accent: '#644ac9', rowAlt: '#fffdf5', rowHover: '#f2efe3', selectionBg: '#cfcfde' },
|
|
@@ -161,15 +161,36 @@ export const defaultThemePreset: ThemePreset = themePresets.find((t) => t.id ===
|
|
|
161
161
|
export const getThemePreset = (id?: string): ThemePreset | undefined =>
|
|
162
162
|
id ? themePresets.find((t) => t.id === id) : undefined
|
|
163
163
|
|
|
164
|
-
/**
|
|
164
|
+
/** WCAG 2.1 relative luminance. */
|
|
165
|
+
function relativeLuminance(hex: string): number {
|
|
166
|
+
const n = parseInt(hex, 16)
|
|
167
|
+
const chan = (v: number) => {
|
|
168
|
+
const c = v / 255
|
|
169
|
+
return c <= 0.03928 ? c / 12.92 : Math.pow((c + 0.055) / 1.055, 2.4)
|
|
170
|
+
}
|
|
171
|
+
return 0.2126 * chan((n >> 16) & 255) + 0.7152 * chan((n >> 8) & 255) + 0.0722 * chan(n & 255)
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
/** WCAG contrast ratio between two 6-digit hex colors, 1 (identical) to 21. */
|
|
175
|
+
function contrastRatio(a: string, b: string): number {
|
|
176
|
+
const [x, y] = [relativeLuminance(a), relativeLuminance(b)]
|
|
177
|
+
return (Math.max(x, y) + 0.05) / (Math.min(x, y) + 0.05)
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* A readable (near-black / white) foreground for text placed on the accent.
|
|
182
|
+
*
|
|
183
|
+
* Picks whichever candidate has the higher WCAG contrast against the accent.
|
|
184
|
+
* This used to threshold a YIQ luminance approximation at 0.6, which handed
|
|
185
|
+
* white text to every mid-tone accent - Tailwind's indigo in dark mode scored
|
|
186
|
+
* 2.98:1 against white where AA wants 4.5. Comparing real contrast ratios fixes
|
|
187
|
+
* that class of preset without touching any palette.
|
|
188
|
+
*/
|
|
165
189
|
function onAccent(accent: string): string {
|
|
166
190
|
const m = /^#?([0-9a-f]{6})$/i.exec(accent.trim())
|
|
167
191
|
if (!m) return '#ffffff'
|
|
168
|
-
const
|
|
169
|
-
|
|
170
|
-
// Perceived luminance (sRGB, quick approximation).
|
|
171
|
-
const lum = (0.299 * r + 0.587 * g + 0.114 * b) / 255
|
|
172
|
-
return lum > 0.6 ? '#18181b' : '#ffffff'
|
|
192
|
+
const hex = m[1]!
|
|
193
|
+
return contrastRatio('18181b', hex) >= contrastRatio('ffffff', hex) ? '#18181b' : '#ffffff'
|
|
173
194
|
}
|
|
174
195
|
|
|
175
196
|
/** Resolve the effective `--sg-*` tokens for a preset in a given mode, with an
|
package/themes/ag-alpine.css
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
--sg-input-bg: #ffffff;
|
|
14
14
|
--sg-input-border: #babfc7;
|
|
15
15
|
--sg-accent: #2196f3;
|
|
16
|
-
--sg-on-accent: #
|
|
16
|
+
--sg-on-accent: #18181b;
|
|
17
17
|
--sg-radius: 3px;
|
|
18
18
|
--sg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
19
19
|
--sg-danger: #dc2626;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
--sg-input-bg: #181d1f;
|
|
54
54
|
--sg-input-border: #68686e;
|
|
55
55
|
--sg-accent: #2196f3;
|
|
56
|
-
--sg-on-accent: #
|
|
56
|
+
--sg-on-accent: #18181b;
|
|
57
57
|
--sg-radius: 3px;
|
|
58
58
|
--sg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
59
59
|
--sg-danger: #f87171;
|
package/themes/antd.css
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
--sg-selection-bg: #e6f4ff;
|
|
13
13
|
--sg-input-bg: #ffffff;
|
|
14
14
|
--sg-input-border: #d9d9d9;
|
|
15
|
-
--sg-accent: #
|
|
15
|
+
--sg-accent: #066dff;
|
|
16
16
|
--sg-on-accent: #ffffff;
|
|
17
17
|
--sg-radius: 6px;
|
|
18
18
|
--sg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--sg-success: #16a34a;
|
|
21
21
|
--sg-warning: #d97706;
|
|
22
22
|
--sg-info: #0891b2;
|
|
23
|
-
--sg-focus-ring: #
|
|
23
|
+
--sg-focus-ring: #066dff;
|
|
24
24
|
--sg-muted-bg: #f5f5f5;
|
|
25
25
|
--sg-skeleton-bg: #f5f5f5;
|
|
26
26
|
--sg-radius-lg: 12px;
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
--sg-selection-bg: #111a2c;
|
|
53
53
|
--sg-input-bg: #141414;
|
|
54
54
|
--sg-input-border: #424242;
|
|
55
|
-
--sg-accent: #
|
|
55
|
+
--sg-accent: #1678d3;
|
|
56
56
|
--sg-on-accent: #ffffff;
|
|
57
57
|
--sg-radius: 6px;
|
|
58
58
|
--sg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", sans-serif;
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
--sg-success: #4ade80;
|
|
61
61
|
--sg-warning: #fbbf24;
|
|
62
62
|
--sg-info: #22d3ee;
|
|
63
|
-
--sg-focus-ring: #
|
|
63
|
+
--sg-focus-ring: #1678d3;
|
|
64
64
|
--sg-muted-bg: #262626;
|
|
65
65
|
--sg-skeleton-bg: #262626;
|
|
66
66
|
--sg-radius-lg: 12px;
|
package/themes/atlassian.css
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
--sg-input-bg: #1d2125;
|
|
54
54
|
--sg-input-border: #38414a;
|
|
55
55
|
--sg-accent: #579dff;
|
|
56
|
-
--sg-on-accent: #
|
|
56
|
+
--sg-on-accent: #18181b;
|
|
57
57
|
--sg-radius: 3px;
|
|
58
58
|
--sg-font: "Charlie Display", "Atlassian Sans", -apple-system, "Segoe UI", sans-serif;
|
|
59
59
|
--sg-danger: #f87171;
|
package/themes/ember.css
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
--sg-input-bg: #ffffff;
|
|
20
20
|
--sg-input-border: #e7e5e4;
|
|
21
21
|
--sg-accent: #ff3e00;
|
|
22
|
-
--sg-on-accent: #
|
|
22
|
+
--sg-on-accent: #18181b;
|
|
23
23
|
--sg-radius: 6px;
|
|
24
24
|
--sg-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
25
25
|
--sg-danger: #dc2626;
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
--sg-input-bg: #0c0a09;
|
|
66
66
|
--sg-input-border: #292524;
|
|
67
67
|
--sg-accent: #ff5a1f;
|
|
68
|
-
--sg-on-accent: #
|
|
68
|
+
--sg-on-accent: #18181b;
|
|
69
69
|
--sg-radius: 6px;
|
|
70
70
|
--sg-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
|
|
71
71
|
--sg-danger: #f87171;
|
package/themes/fluent.css
CHANGED
package/themes/github.css
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
--sg-input-bg: #0d1117;
|
|
54
54
|
--sg-input-border: #3d444d;
|
|
55
55
|
--sg-accent: #4493f8;
|
|
56
|
-
--sg-on-accent: #
|
|
56
|
+
--sg-on-accent: #18181b;
|
|
57
57
|
--sg-radius: 6px;
|
|
58
58
|
--sg-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
|
|
59
59
|
--sg-danger: #f87171;
|
package/themes/nord.css
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
--sg-selection-bg: #d8dee9;
|
|
13
13
|
--sg-input-bg: #eceff4;
|
|
14
14
|
--sg-input-border: #d8dee9;
|
|
15
|
-
--sg-accent: #
|
|
15
|
+
--sg-accent: #5579a5;
|
|
16
16
|
--sg-on-accent: #ffffff;
|
|
17
17
|
--sg-radius: 4px;
|
|
18
18
|
--sg-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
--sg-success: #16a34a;
|
|
21
21
|
--sg-warning: #d97706;
|
|
22
22
|
--sg-info: #0891b2;
|
|
23
|
-
--sg-focus-ring: #
|
|
23
|
+
--sg-focus-ring: #5579a5;
|
|
24
24
|
--sg-muted-bg: #dde3ec;
|
|
25
25
|
--sg-skeleton-bg: #dde3ec;
|
|
26
26
|
--sg-radius-lg: 8px;
|
package/themes/notion.css
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
--sg-input-bg: #ffffff;
|
|
14
14
|
--sg-input-border: #e9e9e7;
|
|
15
15
|
--sg-accent: #2383e2;
|
|
16
|
-
--sg-on-accent: #
|
|
16
|
+
--sg-on-accent: #18181b;
|
|
17
17
|
--sg-radius: 4px;
|
|
18
18
|
--sg-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
|
|
19
19
|
--sg-danger: #dc2626;
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
--sg-input-bg: #191919;
|
|
54
54
|
--sg-input-border: #2f2f2f;
|
|
55
55
|
--sg-accent: #529cca;
|
|
56
|
-
--sg-on-accent: #
|
|
56
|
+
--sg-on-accent: #18181b;
|
|
57
57
|
--sg-radius: 4px;
|
|
58
58
|
--sg-font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
|
|
59
59
|
--sg-danger: #f87171;
|
package/themes/salesforce.css
CHANGED
package/themes/tailwind.css
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
--sg-input-bg: #0f172a;
|
|
54
54
|
--sg-input-border: #334155;
|
|
55
55
|
--sg-accent: #818cf8;
|
|
56
|
-
--sg-on-accent: #
|
|
56
|
+
--sg-on-accent: #18181b;
|
|
57
57
|
--sg-radius: 6px;
|
|
58
58
|
--sg-font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
|
|
59
59
|
--sg-danger: #f87171;
|
package/themes/vercel.css
CHANGED
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
--sg-input-bg: #000000;
|
|
54
54
|
--sg-input-border: #333333;
|
|
55
55
|
--sg-accent: #3291ff;
|
|
56
|
-
--sg-on-accent: #
|
|
56
|
+
--sg-on-accent: #18181b;
|
|
57
57
|
--sg-radius: 6px;
|
|
58
58
|
--sg-font: "Geist", "Geist Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
|
|
59
59
|
--sg-danger: #f87171;
|