design: Adopt Design OS Structure and Palette
Some checks are pending
Deploy to Production / deploy (push) Waiting to run
Test / backend-test (push) Waiting to run
Test / frontend-test (push) Waiting to run

- Created /product directory with Design OS definition files (overview, colors, etc)
- Updated tailwind.config.js to widespread Stone/Lime palette (Design OS default)
- Removed custom Linear-inspired colors in favor of standard Tailwind utilities
This commit is contained in:
fullsizemalt 2025-12-19 15:33:21 -08:00
parent ddb2a37894
commit 5b3d9903b4
4 changed files with 193 additions and 159 deletions

View file

@ -1,3 +1,5 @@
import colors from 'tailwindcss/colors';
/** @type {import('tailwindcss').Config} */ /** @type {import('tailwindcss').Config} */
export default { export default {
content: [ content: [
@ -27,72 +29,64 @@ export default {
"2xl": "1400px", "2xl": "1400px",
}, },
}, },
extend: { // Design OS Palette (Stone & Lime)
// Linear-inspired color palette (Charcoal & Bone)
colors: { colors: {
// Neutral scale (primary palette) // Neutral scale (Stone = warmth + utility)
neutral: { neutral: {
50: '#FAFAFA', ...colors.stone,
100: '#F5F5F5', // Map legacy specifics if needed, but prefer stone-950 for blacks
200: '#E5E5E5', 850: '#1c1917', // stone-900ish
300: '#D4D4D4', 950: '#0c0a09', // stone-950
400: '#A3A3A3',
500: '#737373',
600: '#525252',
700: '#404040',
800: '#262626',
850: '#1F1F1F',
900: '#171717',
950: '#0A0A0A',
}, },
// Accent (Linear's desaturated blue-purple) // Primary Accent (Lime = fresh + technical)
accent: { accent: {
DEFAULT: '#5E6AD2', ...colors.lime,
hover: '#6E7AE2', DEFAULT: colors.lime[500], // Was Linear Purple
muted: 'rgba(94, 106, 210, 0.15)', hover: colors.lime[400],
foreground: '#FFFFFF', muted: 'rgba(132, 204, 22, 0.15)', // Lime-500 alpha
foreground: colors.stone[950], // Dark text on lime
}, },
// Semantic colors // Semantic colors
success: { success: {
DEFAULT: '#22C55E', DEFAULT: colors.emerald[500],
muted: 'rgba(34, 197, 94, 0.15)', muted: 'rgba(16, 185, 129, 0.15)',
foreground: '#FFFFFF', foreground: '#FFFFFF',
}, },
warning: { warning: {
DEFAULT: '#EAB308', DEFAULT: colors.amber[500],
muted: 'rgba(234, 179, 8, 0.15)', muted: 'rgba(245, 158, 11, 0.15)',
foreground: '#171717', foreground: '#171717',
}, },
destructive: { destructive: {
DEFAULT: '#EF4444', DEFAULT: colors.red[500],
muted: 'rgba(239, 68, 68, 0.15)', muted: 'rgba(239, 68, 68, 0.15)',
foreground: '#FFFFFF', foreground: '#FFFFFF',
}, },
// Legacy support (mapped to neutral) // Mappings
border: "hsl(var(--border))", border: colors.stone[200],
input: "hsl(var(--input))", input: colors.stone[200],
ring: "hsl(var(--ring))", ring: colors.lime[500],
background: "hsl(var(--background))", background: colors.stone[50], // Slightly warm background
foreground: "hsl(var(--foreground))", foreground: colors.stone[950],
primary: { primary: {
DEFAULT: "#5E6AD2", // Now accent color DEFAULT: colors.lime[500],
foreground: "#FFFFFF", foreground: colors.stone[950],
}, },
secondary: { secondary: {
DEFAULT: "hsl(var(--secondary))", DEFAULT: colors.stone[100],
foreground: "hsl(var(--secondary-foreground))", foreground: colors.stone[900],
}, },
muted: { muted: {
DEFAULT: "hsl(var(--muted))", DEFAULT: colors.stone[100],
foreground: "hsl(var(--muted-foreground))", foreground: colors.stone[500],
}, },
popover: { popover: {
DEFAULT: "hsl(var(--popover))", DEFAULT: "#FFFFFF",
foreground: "hsl(var(--popover-foreground))", foreground: colors.stone[950],
}, },
card: { card: {
DEFAULT: "hsl(var(--card))", DEFAULT: "#FFFFFF",
foreground: "hsl(var(--card-foreground))", foreground: colors.stone[950],
}, },
}, },
borderRadius: { borderRadius: {

View file

@ -0,0 +1,13 @@
{
"colors": {
"primary": "lime",
"secondary": "stone",
"neutral": "stone",
"background": "white",
"foreground": "stone-950"
},
"typography": {
"sans": "Inter",
"mono": "JetBrains Mono"
}
}

View file

@ -0,0 +1,20 @@
# CA Grow Ops Manager
## Vision
The CA Grow Ops Manager is a comprehensive facility management system for cannabis cultivation operations. It unifies environment tracking, plant lifecycle management, task delegation, compliance auditing, and visitor management into a single, intuitive interface.
## Core Pillars
1. **Facility Visualization**: 3D Digital Twin of the facility for intuitive navigation and monitoring.
2. **Compliance & Audit**: Rigorous tracking of all actions (SOPs, logs, visitor access) to meet regulatory standards.
3. **Operational Efficiency**: Task management, batch tracking, and automated schedules (IPM, feeding).
4. **Data-Driven Insights**: Real-time environmental metrics and historical reporting.
## Key Features
- **3D Facility Viewer**: Interactive "Time Machine" to view plant states at any point in history.
- **Batch Tracking**: From clone to harvest, integrated with METRC.
- **Visitor Kiosk**: Self-service check-in with badge printing.
- **SOP Library**: Document version control and acknowledgement tracking.
- **Audit Log**: Immutable record of all system activities.

7
product/types.ts Normal file
View file

@ -0,0 +1,7 @@
export interface DesignToken {
colors: {
primary: string;
secondary: string;
neutral: string;
}
}