bambuddy/frontend/tailwind.config.js
maziggy 7767851975 Add SpoolBuddy tag detection modal and fix NFC reader silent failure
Frontend: Replace inline SpoolInfoCard/UnknownTagCard with full-screen
  TagDetectedModal that auto-opens on NFC tag detection. Known spools show
  remaining weight, fill bar, and offer "Assign to AMS" (new sub-modal with
  printer selector + AMS slot grid) and "Sync Weight". Unknown tags offer
  "Add to Inventory" and "Link to Spool". Modal stays open on tag removal,
  won't re-open for dismissed tags, reopens on re-place after removal.

  Daemon: Fix PN5180 NFC reader silently stopping tag detection when the
  reader drifts into a stuck state. Add auto-recovery (full hardware reset
  after 10 consecutive errors), preventive RF cycling every 60s when idle,
  and periodic status logging. Heartbeat now reports actual nfc_ok/scale_ok
  from reader instances instead of hardcoded True.
2026-02-28 08:54:39 +01:00

45 lines
1.1 KiB
JavaScript

/** @type {import('tailwindcss').Config} */
export default {
darkMode: 'class',
content: [
"./index.html",
"./src/**/*.{js,ts,jsx,tsx}",
],
theme: {
extend: {
colors: {
// Bambu Lab color palette
bambu: {
green: '#00ae42',
'green-light': '#00c64d',
'green-dark': '#009438',
dark: '#1a1a1a',
'dark-secondary': '#2d2d2d',
'dark-tertiary': '#3d3d3d',
card: '#2d2d2d', // Same as dark-secondary for card backgrounds
gray: '#808080',
'gray-light': '#a0a0a0',
'gray-dark': '#4a4a4a',
}
},
fontFamily: {
sans: ['Inter', 'system-ui', 'sans-serif'],
},
keyframes: {
fadeIn: {
'0%': { opacity: '0' },
'100%': { opacity: '1' },
},
slideUp: {
'0%': { opacity: '0', transform: 'translateY(16px) scale(0.98)' },
'100%': { opacity: '1', transform: 'translateY(0) scale(1)' },
},
},
animation: {
'fade-in': 'fadeIn 0.15s ease-out',
'slide-up': 'slideUp 0.2s ease-out',
},
},
},
plugins: [],
}