refactor(config): break ui.config.ts into separate files (#930)

This commit is contained in:
Inesh Bose
2023-11-22 09:26:31 +00:00
committed by GitHub
parent 10ec3d533e
commit d02858f6c4
44 changed files with 1434 additions and 1421 deletions

View File

@@ -0,0 +1,23 @@
export default {
base: 'overflow-hidden',
background: 'bg-white dark:bg-gray-900',
divide: 'divide-y divide-gray-200 dark:divide-gray-800',
ring: 'ring-1 ring-gray-200 dark:ring-gray-800',
rounded: 'rounded-lg',
shadow: 'shadow',
body: {
base: '',
background: '',
padding: 'px-4 py-5 sm:p-6'
},
header: {
base: '',
background: '',
padding: 'px-4 py-5 sm:px-6'
},
footer: {
base: '',
background: '',
padding: 'px-4 py-4 sm:px-6'
}
}

View File

@@ -0,0 +1,5 @@
export default {
base: 'mx-auto',
padding: 'px-4 sm:px-6 lg:px-8',
constrained: 'max-w-7xl'
}

View File

@@ -0,0 +1,29 @@
export default {
wrapper: {
base: 'flex items-center align-center text-center w-full',
horizontal: 'flex-row',
vertical: 'flex-col'
},
container: {
base: 'font-medium text-gray-700 dark:text-gray-200 flex',
horizontal: 'mx-3 whitespace-nowrap',
vertical: 'my-2'
},
border: {
base: 'flex border-gray-200 dark:border-gray-800',
horizontal: 'w-full',
vertical: 'h-full',
size: {
horizontal: 'border-t',
vertical: 'border-s'
}
},
icon: {
base: 'flex-shrink-0 w-5 h-5'
},
avatar: {
base: 'flex-shrink-0',
size: '2xs'
},
label: 'text-sm'
}

View File

@@ -0,0 +1,5 @@
export default {
base: 'animate-pulse',
background: 'bg-gray-100 dark:bg-gray-800',
rounded: 'rounded-md'
}