Skip to content
This repository was archived by the owner on Sep 24, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 1 addition & 21 deletions packages/nuxtlabs-ui-vue/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,26 +1,6 @@
<script setup lang='ts'>
import { ref } from 'vue'

const isOpen = ref(false)
</script>

<template>
<div class="grid place-items-center w-full min-h-screen">
<UButton label="Open" @click="isOpen = true" />
<USlideover v-model="isOpen" side="right" prevent-close>
<UCard
class="flex flex-col flex-1"
:ui="{ body: { base: 'flex-1' }, ring: '', divide: 'divide-y divide-gray-100 dark:divide-gray-800' }"
>
<template #header>
<div class="flex items-center justify-between">
<h3 class="text-base font-semibold leading-6 text-gray-900 dark:text-white">
Slideover
</h3>
<UButton intent="ghost" icon="heroicons:x-mark-20-solid" class="-my-1" @click="isOpen = false" />
</div>
</template>
</UCard>
</USlideover>
</div>
<div />
</template>
33 changes: 0 additions & 33 deletions packages/nuxtlabs-ui-vue/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,41 +1,8 @@
// /* eslint-disable no-unused-expressions */
// import tailwindColors from './node_modules/tailwindcss/colors'

// const colorSafeList = []

// // Skip these to avoid a load of deprecated warnings when tailwind starts up
// const deprecated = ['lightBlue', 'warmGray', 'trueGray', 'coolGray', 'blueGray']

// for (const colorName in tailwindColors) {
// if (deprecated.includes(colorName))
// continue

// const shades = [50, 100, 200, 300, 400, 500, 600, 700, 800, 900]

// const pallette = tailwindColors[colorName]

// if (typeof pallette === 'object') {
// shades.forEach((shade) => {
// if (shade in pallette) {
// colorSafeList.push(`text-${colorName}-${shade}`),
// colorSafeList.push(`accent-${colorName}-${shade}`),
// colorSafeList.push(`bg-${colorName}-${shade}`),
// colorSafeList.push(`hover:bg-${colorName}-${shade}`),
// colorSafeList.push(`focus:bg-${colorName}-${shade}`),
// colorSafeList.push(`ring-${colorName}-${shade}`),
// colorSafeList.push(`focus:ring-${colorName}-${shade}`),
// colorSafeList.push(`border-${colorName}-${shade}`)
// }
// })
// }
// }
/** @type {import('tailwindcss').Config} */
// export const safelist = colorSafeList
export const content = ['./index.html', './src/**/*.{vue,js,ts,jsx,tsx}']
export const darkMode = 'class'
export const theme = {
extend: {
// colors: tailwindColors,
backgroundColor: ['disabled'],
textColor: ['disabled'],
fontFamily: {
Expand Down