Skip to content

armgit / ARTEX

Public Imported from GitHub
0

ARTEX - AI autonomous penetration testing system (English translation; upstream: Autumn-27/ARTEX, AGPL-3.0)

feat(web): add an optional Neon theme preset

李云周84c77021c481
diff --git a/web/src/app/globals.css b/web/src/app/globals.css
index 618ddbb..4ce68b3 100644
--- a/web/src/app/globals.css
+++ b/web/src/app/globals.css
@@ -4,6 +4,7 @@
/* Theme preset styles: these override CSS variables based on the selected data-theme-preset */
@import "../styles/presets/brutalist.css";
+@import "../styles/presets/neon.css";
@import "../styles/presets/soft-pop.css";
@import "../styles/presets/tangerine.css";
diff --git a/web/src/lib/preferences/theme.ts b/web/src/lib/preferences/theme.ts
index 9c5300f..bd2c969 100644
--- a/web/src/lib/preferences/theme.ts
+++ b/web/src/lib/preferences/theme.ts
@@ -29,6 +29,14 @@ export const THEME_PRESET_OPTIONS = [
dark: "oklch(0.7044 0.1872 23.1858)",
},
},
+ {
+ label: "Neon",
+ value: "neon",
+ primary: {
+ light: "#00685f",
+ dark: "#54eccd",
+ },
+ },
{
label: "Soft Pop",
value: "soft-pop",
diff --git a/web/src/styles/presets/neon.css b/web/src/styles/presets/neon.css
new file mode 100644
index 0000000..2a46653
--- /dev/null
+++ b/web/src/styles/presets/neon.css
@@ -0,0 +1,72 @@
+/*
+label: Neon
+value: neon
+*/
+
+:root[data-theme-preset="neon"] {
+ --background: #f3f8f9;
+ --foreground: #14252d;
+ --card: #ffffff;
+ --card-foreground: var(--foreground);
+ --popover: #ffffff;
+ --popover-foreground: var(--foreground);
+ --primary: #00685f;
+ --primary-foreground: #ffffff;
+ --secondary: #dcebed;
+ --secondary-foreground: #19363b;
+ --muted: #e6eff1;
+ --muted-foreground: #456169;
+ --accent: #ccefe8;
+ --accent-foreground: #08483f;
+ --destructive: #aa2647;
+ --border: #b6cdd1;
+ --input: #728d91;
+ --ring: #00766d;
+ --chart-1: #00776e;
+ --chart-2: #385eb2;
+ --chart-3: #9b3e7b;
+ --chart-4: #916008;
+ --chart-5: #527927;
+ --sidebar: #e8f2f3;
+ --sidebar-foreground: var(--foreground);
+ --sidebar-primary: var(--primary);
+ --sidebar-primary-foreground: var(--primary-foreground);
+ --sidebar-accent: var(--accent);
+ --sidebar-accent-foreground: var(--accent-foreground);
+ --sidebar-border: var(--border);
+ --sidebar-ring: var(--ring);
+}
+
+.dark:root[data-theme-preset="neon"] {
+ --background: #0e181f;
+ --foreground: #e8f6f3;
+ --card: #16252d;
+ --card-foreground: var(--foreground);
+ --popover: #192a34;
+ --popover-foreground: var(--foreground);
+ --primary: #54eccd;
+ --primary-foreground: #082820;
+ --secondary: #243743;
+ --secondary-foreground: #e8f6f3;
+ --muted: #1e303a;
+ --muted-foreground: #adc5ca;
+ --accent: #203f43;
+ --accent-foreground: #a7f5e4;
+ --destructive: #ffa6b6;
+ --border: #3f5861;
+ --input: #66848e;
+ --ring: #54eccd;
+ --chart-1: #54eccd;
+ --chart-2: #8fb2ff;
+ --chart-3: #f7a5db;
+ --chart-4: #fbc477;
+ --chart-5: #b3db7d;
+ --sidebar: #111f27;
+ --sidebar-foreground: var(--foreground);
+ --sidebar-primary: var(--primary);
+ --sidebar-primary-foreground: var(--primary-foreground);
+ --sidebar-accent: var(--accent);
+ --sidebar-accent-foreground: var(--accent-foreground);
+ --sidebar-border: var(--border);
+ --sidebar-ring: var(--ring);
+}