Platform-v2 step 2.3 (APPS_PLATFORM D-15 §9): - tokens.css: --x- prefixed colours (light/dark/system + 5 venue accent themes), spacing, radius, type scale, shadows, motion, z-index; variables only - components.css: .x-* classes only, no element selectors (new rule CS-16) - Button, IconButton, Dialog, Sheet, Toast, PinPad, InfoTip, EmptyState, Spinner, Field/Input/Textarea/Select, Switch (accessible: focus trap and restore, ARIA wiring, 44px targets) - tailwind-preset.js (adds names only); manager uses it + styles.css, the waiter imports tokens.css; existing screens unchanged - dev-only /ui-gallery in the manager; e2e suite tests/e2e/ui.mjs; unit tests for PIN rules and WCAG AA contrast of every token pair, both in run-all Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
31 lines
727 B
JavaScript
31 lines
727 B
JavaScript
import xenia from '@xenia/ui/tailwind-preset'
|
|
|
|
/** @type {import('tailwindcss').Config} */
|
|
export default {
|
|
// Shared design tokens (bg-surface, text-ink-2, rounded-control…); adds names only
|
|
presets: [xenia],
|
|
content: ['./index.html', './src/**/*.{js,jsx}'],
|
|
theme: {
|
|
extend: {
|
|
fontFamily: {
|
|
sans: ['Google Sans', 'system-ui', 'sans-serif'],
|
|
},
|
|
colors: {
|
|
primary: {
|
|
DEFAULT: '#0f766e',
|
|
50: '#f0fdfa',
|
|
100: '#ccfbf1',
|
|
600: '#0d9488',
|
|
700: '#0f766e',
|
|
800: '#115e59',
|
|
900: '#134e4a',
|
|
},
|
|
},
|
|
fontSize: {
|
|
base: ['1rem', { lineHeight: '1.5rem' }],
|
|
},
|
|
},
|
|
},
|
|
plugins: [],
|
|
}
|