snowballtools-base/packages/frontend/src/components/shared/Table/Table.theme.ts
Cody Bender 4fce1ba6db
Some checks failed
Lint / lint (20.x) (pull_request) Failing after 5m6s
style: projects and settings
2024-10-23 15:52:05 -04:00

54 lines
1.1 KiB
TypeScript

import { tv, VariantProps } from 'tailwind-variants';
export const tableTheme = tv({
slots: {
root: ['min-w-full', 'border-collapse'],
header: [
'p-2',
'border-b',
'border-sky-950/opacity-5',
'text-sky-950',
'dark:text-foreground-secondary',
'text-sm',
'font-medium',
'leading-tight',
],
body: [],
row: ['border-b', 'border-sky-950/opacity-5'],
columnHeaderCell: [
'p-4',
'text-sky-950',
'dark:text-foreground-secondary',
'text-sm',
'font-medium',
'uppercase',
'tracking-wider',
'text-left',
],
rowHeaderCell: [
'p-4',
'text-slate-600',
'dark:text-foreground',
'text-sm',
'font-normal',
'leading-tight',
'text-left',
],
cell: [
'p-4',
'whitespace-nowrap',
'text-sm',
'text-slate-600',
'dark:text-foreground',
'font-normal',
'text-left',
],
},
variants: {},
defaultVariants: {
orientation: 'vertical',
},
});
export type TableTheme = VariantProps<typeof tableTheme>;