Update fun module configuration and enhance CSS styles
- Added 'enabled' property to FunConfigSchema with a default value of true for better configuration management. - Refactored getFunConfig to return a complete default configuration when no data is found. - Improved globals.css by expanding CSS variables for light and dark themes, enhancing styling consistency across the application.
This commit is contained in:
@@ -1,26 +1,84 @@
|
||||
@import "tailwindcss";
|
||||
@import 'tailwindcss';
|
||||
|
||||
@custom-variant dark (&:is(.dark *));
|
||||
|
||||
:root {
|
||||
--background: #ffffff;
|
||||
--foreground: #171717;
|
||||
--background: #f8f8fb;
|
||||
--foreground: #111116;
|
||||
--card: #ffffff;
|
||||
--card-foreground: #111116;
|
||||
--popover: #ffffff;
|
||||
--popover-foreground: #111116;
|
||||
--primary: #6366f1;
|
||||
--primary-foreground: #ffffff;
|
||||
--secondary: #f1f1f5;
|
||||
--secondary-foreground: #111116;
|
||||
--muted: #f1f1f5;
|
||||
--muted-foreground: #6b7280;
|
||||
--accent: #eef0ff;
|
||||
--accent-foreground: #312e81;
|
||||
--destructive: #dc2626;
|
||||
--destructive-foreground: #ffffff;
|
||||
--border: #e4e4ea;
|
||||
--input: #e4e4ea;
|
||||
--ring: #6366f1;
|
||||
--radius: 0.625rem;
|
||||
}
|
||||
|
||||
.dark {
|
||||
--background: #0a0a0d;
|
||||
--foreground: #e6e6ea;
|
||||
--card: #131318;
|
||||
--card-foreground: #e6e6ea;
|
||||
--popover: #15151b;
|
||||
--popover-foreground: #e6e6ea;
|
||||
--primary: #6366f1;
|
||||
--primary-foreground: #ffffff;
|
||||
--secondary: #1b1b22;
|
||||
--secondary-foreground: #e6e6ea;
|
||||
--muted: #1b1b22;
|
||||
--muted-foreground: #9a9aa5;
|
||||
--accent: #1e1b4b;
|
||||
--accent-foreground: #c7d2fe;
|
||||
--destructive: #f87171;
|
||||
--destructive-foreground: #1a0505;
|
||||
--border: #23232b;
|
||||
--input: #23232b;
|
||||
--ring: #6366f1;
|
||||
}
|
||||
|
||||
@theme inline {
|
||||
--color-background: var(--background);
|
||||
--color-foreground: var(--foreground);
|
||||
--font-sans: var(--font-geist-sans);
|
||||
--font-mono: var(--font-geist-mono);
|
||||
--color-card: var(--card);
|
||||
--color-card-foreground: var(--card-foreground);
|
||||
--color-popover: var(--popover);
|
||||
--color-popover-foreground: var(--popover-foreground);
|
||||
--color-primary: var(--primary);
|
||||
--color-primary-foreground: var(--primary-foreground);
|
||||
--color-secondary: var(--secondary);
|
||||
--color-secondary-foreground: var(--secondary-foreground);
|
||||
--color-muted: var(--muted);
|
||||
--color-muted-foreground: var(--muted-foreground);
|
||||
--color-accent: var(--accent);
|
||||
--color-accent-foreground: var(--accent-foreground);
|
||||
--color-destructive: var(--destructive);
|
||||
--color-destructive-foreground: var(--destructive-foreground);
|
||||
--color-border: var(--border);
|
||||
--color-input: var(--input);
|
||||
--color-ring: var(--ring);
|
||||
--radius-lg: var(--radius);
|
||||
--radius-md: calc(var(--radius) - 2px);
|
||||
--radius-sm: calc(var(--radius) - 4px);
|
||||
--font-sans: var(--font-inter);
|
||||
}
|
||||
|
||||
@media (prefers-color-scheme: dark) {
|
||||
:root {
|
||||
--background: #0a0a0a;
|
||||
--foreground: #ededed;
|
||||
}
|
||||
* {
|
||||
border-color: var(--border);
|
||||
}
|
||||
|
||||
body {
|
||||
background: var(--background);
|
||||
color: var(--foreground);
|
||||
font-family: Arial, Helvetica, sans-serif;
|
||||
font-family: var(--font-sans), ui-sans-serif, system-ui, sans-serif;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user