tpmjs/packages/ui/src/Section/variants.ts
Ajax Davis e95bea6847 fix(lint): configure Biome to properly ignore build directories
- Add root biome.json that extends packages/config/biome.json
- Add explicit ignore patterns for dist/, build/, .next/, .turbo/, etc.
- Make a11y lints warnings instead of errors (non-blocking)
- Remove invalid biome-ignore comment from Section.tsx
- Apply formatting to all source files (155 files checked, 129 fixed)

This fixes the CI format check that was failing with 2064+ errors
because Biome was checking generated files in dist/ and .turbo/.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-26 22:49:45 +10:00

49 lines
898 B
TypeScript

import { createVariants } from '../system/variants';
/**
* Section variant definitions
*/
export const sectionVariants = createVariants({
base: ['relative w-full'].join(' '),
variants: {
spacing: {
none: 'py-0',
sm: 'py-8',
md: 'py-16',
lg: 'py-24',
xl: 'py-32',
},
background: {
default: 'bg-background',
surface: 'bg-surface',
'dotted-grid': 'dotted-grid-background',
blueprint: 'blueprint-background',
grid: 'grid-background',
},
container: {
none: '',
sm: 'max-w-3xl',
md: 'max-w-5xl',
lg: 'max-w-7xl',
xl: 'max-w-[90rem]',
full: 'max-w-full',
},
centered: {
true: 'mx-auto',
false: '',
},
},
compoundVariants: [],
defaultVariants: {
spacing: 'md',
background: 'default',
container: 'none',
centered: 'false',
},
});