Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 | import { defineConfig } from '@pandacss/dev' export default defineConfig({ // Whether to use css reset preflight: true, // Where to look for your css declarations include: ['./src/**/*.{js,jsx,ts,tsx}', './pages/**/*.{js,jsx,ts,tsx}'], // Files to exclude exclude: [ // Storybook files don't need Panda extraction './src/**/*.stories.tsx', './src/**/*.stories.ts', // Test files don't need Panda extraction './src/**/__tests__/**', './src/**/*.test.tsx', './src/**/*.test.ts', // Keyboard config has special {bksp} and {enter} patterns that confuse the parser './src/components/practice/numericKeypadConfig.ts', './src/components/ui/KidNumberInput/KidNumberInput.tsx', ], // The output directory for your css system outdir: 'styled-system', // The JSX framework to use jsxFramework: 'react', theme: { extend: { tokens: { colors: { brand: { 50: { value: '#f0f9ff' }, 100: { value: '#e0f2fe' }, 200: { value: '#bae6fd' }, 300: { value: '#7dd3fc' }, 400: { value: '#38bdf8' }, 500: { value: '#0ea5e9' }, 600: { value: '#0284c7' }, 700: { value: '#0369a1' }, 800: { value: '#075985' }, 900: { value: '#0c4a6e' }, }, soroban: { wood: { value: '#8B4513' }, bead: { value: '#2C1810' }, inactive: { value: '#D3D3D3' }, bar: { value: '#654321' }, }, }, fonts: { body: { value: 'var(--font-inter), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif', }, heading: { value: 'var(--font-inter), Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif', }, // Display: Fraunces variable serif — celebration/marketing moments. display: { value: 'var(--font-fraunces), Georgia, "Times New Roman", serif', }, mono: { value: 'Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", monospace', }, }, shadows: { card: { value: '0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)', }, modal: { value: '0 25px 50px -12px rgba(0, 0, 0, 0.25)' }, }, animations: { // Shake animation for errors (web_generator.py line 3419) shake: { value: 'shake 0.5s ease-in-out' }, // Pulse animation for success feedback (line 2004) successPulse: { value: 'successPulse 0.5s ease' }, pulse: { value: 'pulse 2s infinite' }, // Error shake with larger amplitude (line 2009) errorShake: { value: 'errorShake 0.5s ease' }, // Bounce animations (line 6271, 5065) bounce: { value: 'bounce 1s infinite alternate' }, bounceIn: { value: 'bounceIn 1s ease-out' }, // Glow animation (line 6260) glow: { value: 'glow 1s ease-in-out infinite alternate' }, // Time machine enter animation timeMachineEnter: { value: 'timeMachineEnter 0.5s ease-out' }, }, }, // Semantic color tokens for light/dark theme support semanticTokens: { colors: { // Background colors 'bg.canvas': { value: { base: '#ffffff', _dark: '#0f172a', }, }, 'bg.surface': { value: { base: '#f8fafc', _dark: '#1e293b', }, }, 'bg.subtle': { value: { base: '#f1f5f9', _dark: '#334155', }, }, 'bg.muted': { value: { base: '#e2e8f0', _dark: '#475569', }, }, // Text colors 'text.primary': { value: { base: '#0f172a', _dark: '#f1f5f9', }, }, 'text.secondary': { value: { base: '#475569', _dark: '#cbd5e1', }, }, 'text.muted': { value: { base: '#64748b', _dark: '#94a3b8', }, }, 'text.inverse': { value: { base: '#ffffff', _dark: '#0f172a', }, }, // Border colors 'border.default': { value: { base: '#e2e8f0', _dark: '#334155', }, }, 'border.muted': { value: { base: '#f1f5f9', _dark: '#1e293b', }, }, 'border.emphasis': { value: { base: '#cbd5e1', _dark: '#475569', }, }, // Accent colors (purple theme) 'accent.default': { value: { base: '#7c3aed', _dark: '#a78bfa', }, }, 'accent.emphasis': { value: { base: '#6d28d9', _dark: '#c4b5fd', }, }, 'accent.muted': { value: { base: '#f5f3ff', _dark: 'rgba(139, 92, 246, 0.15)', }, }, 'accent.subtle': { value: { base: '#ede9fe', _dark: 'rgba(139, 92, 246, 0.1)', }, }, // Interactive states 'interactive.hover': { value: { base: '#f8fafc', _dark: '#334155', }, }, 'interactive.active': { value: { base: '#f1f5f9', _dark: '#475569', }, }, }, }, keyframes: { // Shake - horizontal oscillation for errors (line 3419) shake: { '0%, 100%': { transform: 'translateX(0)' }, '25%': { transform: 'translateX(-5px)' }, '75%': { transform: 'translateX(5px)' }, }, // Success pulse - gentle scale for correct answers (line 2004) successPulse: { '0%, 100%': { transform: 'scale(1)' }, '50%': { transform: 'scale(1.05)' }, }, // Pulse - continuous breathing effect (line 6255) pulse: { '0%, 100%': { transform: 'scale(1)' }, '50%': { transform: 'scale(1.05)' }, }, // Pulse opacity - fading effect for loading states pulseOpacity: { '0%, 100%': { opacity: '1' }, '50%': { opacity: '0.5' }, }, // Error shake - stronger horizontal oscillation (line 2009) errorShake: { '0%, 100%': { transform: 'translateX(0)' }, '25%': { transform: 'translateX(-10px)' }, '75%': { transform: 'translateX(10px)' }, }, // Bounce - vertical oscillation (line 6271) bounce: { '0%, 100%': { transform: 'translateY(0)' }, '50%': { transform: 'translateY(-10px)' }, }, // Bounce in - entry animation with scale and rotate (line 6265) bounceIn: { '0%': { transform: 'scale(0.3) rotate(-10deg)', opacity: '0' }, '50%': { transform: 'scale(1.1) rotate(5deg)' }, '100%': { transform: 'scale(1) rotate(0deg)', opacity: '1' }, }, // Glow - expanding box shadow (line 6260) glow: { '0%': { boxShadow: '0 0 5px rgba(255, 255, 255, 0.5)' }, '100%': { boxShadow: '0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6)', }, }, // Wiggle - playful rotation oscillation wiggle: { '0%, 100%': { transform: 'rotate(0deg)' }, '25%': { transform: 'rotate(-3deg)' }, '75%': { transform: 'rotate(3deg)' }, }, // Shimmer - opacity wave for loading states shimmer: { '0%, 100%': { opacity: '0.7' }, '50%': { opacity: '0.4' }, }, // Spin - rotate 360 degrees for spinners spin: { from: { transform: 'rotate(0deg)' }, to: { transform: 'rotate(360deg)' }, }, // Fade in with scale - entrance animation fadeInScale: { '0%': { opacity: '0', transform: 'scale(0.9)' }, '100%': { opacity: '1', transform: 'scale(1)' }, }, // Slide in from right - entrance animation slideInRight: { '0%': { transform: 'translateX(10px)', opacity: '0' }, '100%': { transform: 'translateX(0)', opacity: '1' }, }, // Morph width - bars dramatically expand and contract (simulating numbers changing) morphWidth: { '0%, 100%': { transform: 'scaleX(1)', opacity: '0.7' }, '25%': { transform: 'scaleX(0.5)', opacity: '0.4' }, '50%': { transform: 'scaleX(1.3)', opacity: '0.9' }, '75%': { transform: 'scaleX(0.7)', opacity: '0.5' }, }, // Color shift - operators cycle through hues colorShift: { '0%, 100%': { filter: 'hue-rotate(0deg)' }, '50%': { filter: 'hue-rotate(20deg)' }, }, // Accordion slide down - expand content smoothly accordionSlideDown: { from: { height: '0' }, to: { height: 'var(--radix-accordion-content-height)' }, }, // Accordion slide up - collapse content smoothly accordionSlideUp: { from: { height: 'var(--radix-accordion-content-height)' }, to: { height: '0' }, }, // Fade in - simple opacity transition fadeIn: { from: { opacity: '0' }, to: { opacity: '1' }, }, // Problem appear - pop-in for progressive highlighting problemAppear: { '0%': { opacity: '0', transform: 'scale(0.7)' }, '60%': { opacity: '1', transform: 'scale(1.1)' }, '100%': { opacity: '1', transform: 'scale(1)' }, }, // Time machine enter - new history entry slides in from the void timeMachineEnter: { '0%': { opacity: '0', transform: 'translateZ(-60px) scale(0.85)', }, '100%': { opacity: '1', transform: 'translateZ(0) scale(1)', }, }, // Embellishment pop - playful bounce for celebratory emoji moments embellishmentPop: { '0%': { opacity: '0', transform: 'scale(0.3)' }, '50%': { opacity: '1', transform: 'scale(1.2)' }, '70%': { transform: 'scale(0.9)' }, '100%': { transform: 'scale(1)' }, }, }, }, }, // Enable dark mode support via data-theme attribute conditions: { extend: { dark: '[data-theme="dark"] &, .dark &', light: '[data-theme="light"] &, .light &', }, }, }) |