Skip to content
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
1,199 changes: 1,199 additions & 0 deletions example/package-lock.json

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@
"preview": "vite preview"
},
"dependencies": {
"@headlessui/vue": "^1.7.16",
"bootwind": "^0.0.12",
"vue": "^3.3.4"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.2.3",
"tailwindcss": "^3.3.3",
"vite": "^4.4.5"
}
}
33 changes: 8 additions & 25 deletions example/src/App.vue
Original file line number Diff line number Diff line change
@@ -1,30 +1,13 @@
<script setup>
import HelloWorld from './components/HelloWorld.vue'
</script>

<template>
<div>
<a href="https://vitejs.dev" target="_blank">
<img src="/vite.svg" class="logo" alt="Vite logo" />
</a>
<a href="https://vuejs.org/" target="_blank">
<img src="./assets/vue.svg" class="logo vue" alt="Vue logo" />
</a>
<div class="w-screen h-screen flex items-center content-center justify-center flex-wrap gap-3">
<div class="w-full p-2 text-center">Used Example</div>
<Btn label="Button" />
<Chip label="Chip" />
<Dropdown />
</div>
<HelloWorld msg="Vite + Vue" />
</template>

<style scoped>
.logo {
height: 6em;
padding: 1.5em;
will-change: filter;
transition: filter 300ms;
}
.logo:hover {
filter: drop-shadow(0 0 2em #646cffaa);
}
.logo.vue:hover {
filter: drop-shadow(0 0 2em #42b883aa);
}
</style>
<script setup>
import { Btn, Chip, Dropdown } from 'bootwind'
</script>
1 change: 0 additions & 1 deletion example/src/assets/vue.svg

This file was deleted.

40 changes: 0 additions & 40 deletions example/src/components/HelloWorld.vue

This file was deleted.

92 changes: 3 additions & 89 deletions example/src/style.css
Original file line number Diff line number Diff line change
@@ -1,89 +1,3 @@
:root {
font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;
line-height: 1.5;
font-weight: 400;

color-scheme: light dark;
color: rgba(255, 255, 255, 0.87);
background-color: #242424;

font-synthesis: none;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-webkit-text-size-adjust: 100%;
}

a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}

a {
font-weight: 500;
color: #646cff;
text-decoration: inherit;
}
a:hover {
color: #535bf2;
}

body {
margin: 0;
display: flex;
place-items: center;
min-width: 320px;
min-height: 100vh;
}

h1 {
font-size: 3.2em;
line-height: 1.1;
}

button {
border-radius: 8px;
border: 1px solid transparent;
padding: 0.6em 1.2em;
font-size: 1em;
font-weight: 500;
font-family: inherit;
background-color: #1a1a1a;
cursor: pointer;
transition: border-color 0.25s;
}
button:hover {
border-color: #646cff;
}
button:focus,
button:focus-visible {
outline: 4px auto -webkit-focus-ring-color;
}

.card {
padding: 2em;
}

#app {
max-width: 1280px;
margin: 0 auto;
padding: 2rem;
text-align: center;
}

@media (prefers-color-scheme: light) {
:root {
color: #213547;
background-color: #ffffff;
}
a:hover {
color: #747bff;
}
button {
background-color: #f9f9f9;
}
}
@tailwind base;
@tailwind components;
@tailwind utilities;
13 changes: 13 additions & 0 deletions example/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./node_modules/bootwind/**/*.{js,jsx,ts,tsx}",
"./index.html",
"./src/**/*.{vue,js,ts,jsx,tsx}",
],
theme: {
extend: {},
},
plugins: [],
}

31 changes: 29 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
{
"name": "bootwind",
"version": "0.0.7",
"version": "0.0.12",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"@headlessui/vue": "^1.7.16",
"@heroicons/vue": "^2.0.18",
"heroicons": "^2.0.18",
"vue": "^3.3.4"
},
"devDependencies": {
Expand Down
9 changes: 3 additions & 6 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
import Btn from '@/ui/Btn.vue'
import Chip from '@/ui/Chip.vue'
export {
Btn,
Chip
}
export * from './ui/Btn/Btn'
export * from './ui/Chip/Chip'
export * from './ui/Dropdown/Dropdown'
3 changes: 0 additions & 3 deletions src/main.js

This file was deleted.

12 changes: 0 additions & 12 deletions src/playground/UiComponents.vue

This file was deleted.

3 changes: 0 additions & 3 deletions src/style.css

This file was deleted.

4 changes: 4 additions & 0 deletions src/ui/Btn/Btn.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import Btn from './Btn.vue'
export {
Btn
}
File renamed without changes.
5 changes: 5 additions & 0 deletions src/ui/Chip/Chip.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Chip from './Chip.vue'

export {
Chip
}
File renamed without changes.
5 changes: 5 additions & 0 deletions src/ui/Dropdown/Dropdown.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Dropdown from './Dropdown.vue'

export {
Dropdown
}
Loading