mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-24 17:00:36 +01:00
refactor(module)!: implement design system with CSS variables (#2298)
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
export default {
|
||||
slots: {
|
||||
overlay: 'fixed inset-0 z-50 bg-gray-200/75 dark:bg-gray-800/75',
|
||||
content: 'fixed z-50 w-full h-dvh bg-white dark:bg-gray-900 divide-y divide-gray-200 dark:divide-gray-800 flex flex-col focus:outline-none',
|
||||
overlay: 'fixed inset-0 z-50 bg-[--ui-bg-elevated]/75',
|
||||
content: 'fixed z-50 w-full h-dvh bg-[--ui-bg] divide-y divide-[--ui-border] flex flex-col focus:outline-none',
|
||||
header: 'px-4 py-5 sm:px-6',
|
||||
body: 'flex-1 p-4 sm:p-6',
|
||||
footer: 'flex items-center gap-1.5 p-4 sm:px-6',
|
||||
title: 'text-gray-900 dark:text-white font-semibold',
|
||||
description: 'mt-1 text-gray-500 dark:text-gray-400 text-sm',
|
||||
title: 'text-[--ui-text-highlighted] font-semibold',
|
||||
description: 'mt-1 text-[--ui-text-muted] text-sm',
|
||||
close: 'absolute top-4 right-4'
|
||||
},
|
||||
variants: {
|
||||
@@ -21,7 +21,7 @@ export default {
|
||||
content: 'inset-0'
|
||||
},
|
||||
false: {
|
||||
content: 'top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] sm:max-w-lg sm:h-auto sm:my-8 sm:rounded-lg sm:shadow-lg sm:ring ring-gray-200 dark:ring-gray-800'
|
||||
content: 'top-[50%] left-[50%] translate-x-[-50%] translate-y-[-50%] sm:max-w-lg sm:h-auto sm:my-8 sm:rounded-lg sm:shadow-lg sm:ring ring-[--ui-border]'
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user