candle-annotator/tailwind.config.ts
Marko Djordjevic a1fa86fe55 feat: implement label management with sidebar, hacker theme, and Docker support
- Add label selection on chart with visual highlight (size 2x, color change)
- Implement keyboard delete handler (Delete/Backspace keys)
- Add comprehensive label management sidebar with:
  - Collapsible label annotations section
  - Search by timestamp
  - Filter by type (Break Up, Break Down, All)
  - Individual delete buttons
  - Count display
  - Click to select/highlight on chart
- Transform UI with hacker theme:
  - Matrix green (#00ff41) on dark background (#0a0e0a)
  - Monospace font (JetBrains Mono)
  - Glow effects on button hover and active states
  - Custom scrollbar styling
  - Terminal-inspired aesthetic
- Add Docker deployment:
  - Multi-stage Dockerfile with standalone output
  - docker-compose.yml with volume persistence
  - Non-root user (nextjs) for security
  - Health check endpoint integration
- Tailwind and CSS enhancements:
  - Custom colors (matrix, matrixDim, neonRed, etc.)
  - Glow box shadows and animations
  - Selection and scrollbar styling
2026-02-12 15:12:59 +01:00

95 lines
2.6 KiB
TypeScript

import type { Config } from "tailwindcss";
const config: Config = {
darkMode: ["class"],
content: [
"./src/pages/**/*.{js,ts,jsx,tsx,mdx}",
"./src/components/**/*.{js,ts,jsx,tsx,mdx}",
"./src/app/**/*.{js,ts,jsx,tsx,mdx}",
],
theme: {
extend: {
colors: {
border: "hsl(var(--border))",
input: "hsl(var(--input))",
ring: "hsl(var(--ring))",
background: "hsl(var(--background))",
foreground: "hsl(var(--foreground))",
primary: {
DEFAULT: "hsl(var(--primary))",
foreground: "hsl(var(--primary-foreground))",
},
secondary: {
DEFAULT: "hsl(var(--secondary))",
foreground: "hsl(var(--secondary-foreground))",
},
destructive: {
DEFAULT: "hsl(var(--destructive))",
foreground: "hsl(var(--destructive-foreground))",
},
muted: {
DEFAULT: "hsl(var(--muted))",
foreground: "hsl(var(--muted-foreground))",
},
accent: {
DEFAULT: "hsl(var(--accent))",
foreground: "hsl(var(--accent-foreground))",
},
popover: {
DEFAULT: "hsl(var(--popover))",
foreground: "hsl(var(--popover-foreground))",
},
card: {
DEFAULT: "hsl(var(--card))",
foreground: "hsl(var(--card-foreground))",
},
matrix: "#00ff41",
matrixDim: "#00cc33",
matrixDark: "#003311",
neonRed: "#ff0040",
neonCyan: "#00d4ff",
neonYellow: "#ffff00",
terminal: "#0a0e0a",
terminalLight: "#0d110d",
},
fontFamily: {
mono: ["JetBrains Mono", "Fira Code", "Courier New", "monospace"],
},
boxShadow: {
"glow-sm": "0 0 8px #00ff41",
glow: "0 0 15px #00ff41, 0 0 30px rgba(0,255,65,0.5)",
"glow-lg": "0 0 20px #00ff41, 0 0 40px rgba(0,255,65,0.5)",
},
keyframes: {
"glow-pulse": {
"0%, 100%": {
boxShadow: "0 0 15px #00ff41",
},
"50%": {
boxShadow: "0 0 30px #00ff41, 0 0 50px rgba(0,255,65,0.5)",
},
},
flicker: {
"0%, 100%": {
opacity: "1",
},
"50%": {
opacity: "0.8",
},
},
},
animation: {
"glow-pulse": "glow-pulse 2s ease-in-out infinite",
flicker: "flicker 0.1s ease-in-out",
},
borderRadius: {
lg: "var(--radius)",
md: "calc(var(--radius) - 2px)",
sm: "calc(var(--radius) - 4px)",
},
},
},
plugins: [],
};
export default config;