Skip to content

Commit 75e3d69

Browse files
Merge pull request #1 from TailGrids/2.2
2.2
2 parents 7734127 + 18ab6a3 commit 75e3d69

File tree

268 files changed

+14891
-1332
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

268 files changed

+14891
-1332
lines changed

.prettierrc.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,6 @@
44
"tabWidth": 2,
55
"singleQuote": true,
66
"printWidth": 100,
7-
"trailingComma": "none"
8-
}
7+
"trailingComma": "none",
8+
"plugins": ["prettier-plugin-tailwindcss"]
9+
}

README.md

Lines changed: 51 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,35 +8,73 @@ TailGrids Vue comes with all the necessary integration features for seamless usa
88

99
## Getting Started
1010

11-
To start using TailGrids Vue, follow these steps to properly set it up in your Vue.js project.
11+
**Step 1:** Install Tailwind CSS and generate the config file.
1212

13-
1. Install Tailgrids by running the following command:
13+
If you haven't set up Tailwind CSS in your project yet, open your command terminal and execute the following commands:
1414

15-
```sh
16-
npm install tailgrids
15+
```shellscript copy
16+
npm install -D tailwindcss postcss autoprefixer
17+
npx tailwindcss init -p
1718
```
1819

19-
2. Add Tailgrids to your `tailwind.config.js` file:
20+
**Step #2:** Install TailGrids
2021

21-
```javascript
22-
module.exports = {
23-
content: ["./*.html", "./ecommerce/*.html", "./assets/**/*.js"],
24-
theme: {},
25-
variants: {
22+
Next, install TailGrids by running the following command:
23+
24+
```shellscript copy
25+
npm i tailgrids
26+
```
27+
28+
**Step #3:** Update the Configuration
29+
30+
Now, update your `tailwind.config.js` file to include the TailGrids plugin. Add the following code snippet:
31+
32+
```javascript showLineNumbers copy filename="tailwind.config.js"
33+
/** @type {import('tailwindcss').Config} */
34+
export default {
35+
content: ["./index.html", "./src/**/*.{vue,js,ts,jsx,tsx}"],
36+
theme: {
2637
extend: {},
2738
},
2839
plugins: [require("tailgrids/plugin")],
2940
};
3041
```
3142

32-
3. Browse through the available components and choose the desired Vue codebase snippets that you want to use in your projects. Simply copy and paste them!
43+
**Step #4:** Add Tailwind CSS directives.
44+
45+
Create a CSS file named style.css in the /src directory. Then, include this code at the top of the file.
46+
47+
```css copy
48+
@tailwind base;
49+
@tailwind components;
50+
@tailwind utilities;
51+
```
52+
53+
**Step #5:** Import CSS into main.js
3354

34-
4. To view the changes locally, run the development server with this command:
55+
Import the `style.css` CSS file inside your ./src/main.js file:
3556

36-
```sh
57+
```javascript copy
58+
import { createApp } from "vue";
59+
import App from "./App.vue";
60+
61+
import "./style.css"; // add this
62+
63+
createApp(App).mount("#app");
64+
```
65+
66+
```shellscript copy
3767
npm run dev
3868
```
3969

70+
That's it! Browse and start using the [TailGrids Vue component](/components/vue-link) in your Vue project.
71+
72+
If you want to build the project, you can run
73+
```shellscript copy
74+
npm run build
75+
```
76+
77+
4078
### [🚀 Explore All Components](https://tailgrids.com/components)
4179

4280
### [🌏 Visit Website](https://tailgrids.com)

package-lock.json

Lines changed: 17 additions & 7 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tailgrids-vue",
33
"description": "Tailwind CSS Vue Components based on TailGrids Core, comes with all essential UI components and elements you need to kickstart Tailwind + Vue web projects.",
4-
"version": "1.0.0",
4+
"version": "2.2.3",
55
"private": false,
66
"main": "dist/index.js",
77
"files": [
@@ -74,7 +74,8 @@
7474
"npm-run-all2": "^6.1.1",
7575
"postcss": "^8.4.31",
7676
"prettier": "^3.0.3",
77-
"tailwindcss": "^3.3.5",
77+
"tailgrids": "^2.1.0",
78+
"tailwindcss": "^3.4.3",
7879
"typescript": "~5.2.0",
7980
"vite": "^4.4.11",
8081
"vue-tsc": "^1.8.19"

src/App.vue

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
11
<script setup lang="ts">
2-
import HeroOne from './components/Marketing/Hero/HeroOne.vue'
3-
import BlogOne from './components/Application/Blogs/BlogOne.vue';
4-
import TestimonialOne from './components/Marketing/Testimonials/TestimonialOne.vue';
5-
import FooterOne from './components/Application/Footers/FooterOne.vue';
6-
import AboutOneVue from './components/Marketing/About/AboutOne.vue';
2+
import { Footer1 } from './components/Application/Footers'
3+
import { About1 } from './components/Marketing/About'
4+
import { Hero1 } from './components/Marketing/Hero'
75
</script>
86

97
<template>
10-
<HeroOne />
11-
<BlogOne/>
12-
<AboutOneVue/>
13-
<TestimonialOne/>
14-
<FooterOne/>
8+
<Hero1 />
9+
<About1 />
10+
<Footer1 />
1511
</template>
File renamed without changes.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as Blog1 } from './Blog1.vue'

src/components/Application/Cards/CardOne.vue renamed to src/components/Application/Cards/Card1.vue

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,30 +31,30 @@ const cardItems = ref([
3131

3232
<template>
3333
<!-- ====== Cards Section Start -->
34-
<section class="bg-gray-2 dark:bg-dark pt-20 pb-10 lg:pt-[120px] lg:pb-20">
34+
<section class="bg-gray-2 pb-10 pt-20 lg:pb-20 lg:pt-[120px] dark:bg-dark">
3535
<div class="container mx-auto">
36-
<div class="flex flex-wrap -mx-4">
36+
<div class="-mx-4 flex flex-wrap">
3737
<template v-for="(item, index) in cardItems" :key="index">
3838
<div class="w-full px-4 md:w-1/2 xl:w-1/3">
3939
<div
40-
class="mb-10 overflow-hidden duration-300 bg-white rounded-lg dark:bg-dark-2 shadow-1 hover:shadow-3 dark:shadow-card dark:hover:shadow-3"
40+
class="mb-10 overflow-hidden rounded-lg bg-white shadow-1 duration-300 hover:shadow-3 dark:bg-dark-2 dark:shadow-card dark:hover:shadow-3"
4141
>
4242
<img :src="item.image" alt="image" class="w-full" />
4343
<div class="p-8 text-center sm:p-9 md:p-7 xl:p-9">
4444
<h3>
4545
<a
4646
:href="item.buttonLink"
47-
class="text-dark dark:text-white hover:text-primary mb-4 block text-xl font-semibold sm:text-[22px] md:text-xl lg:text-[22px] xl:text-xl 2xl:text-[22px]"
47+
class="mb-4 block text-xl font-semibold text-dark hover:text-primary sm:text-[22px] md:text-xl lg:text-[22px] xl:text-xl 2xl:text-[22px] dark:text-white"
4848
>
4949
{{ item.title }}
5050
</a>
5151
</h3>
52-
<p class="text-base leading-relaxed text-body-color dark:text-dark-6 mb-7">
52+
<p class="mb-7 text-base leading-relaxed text-body-color dark:text-dark-6">
5353
{{ item.details }}
5454
</p>
5555
<a
5656
:href="item.buttonLink"
57-
class="inline-block py-2 text-base font-medium transition border rounded-full text-body-color hover:border-primary hover:bg-primary border-gray-3 px-7 hover:text-white dark:border-dark-3 dark:text-dark-6"
57+
class="inline-block rounded-full border border-gray-3 px-7 py-2 text-base font-medium text-body-color transition hover:border-primary hover:bg-primary hover:text-white dark:border-dark-3 dark:text-dark-6"
5858
>
5959
{{ item.buttonText }}
6060
</a>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { default as Card1 } from './Card1.vue'
File renamed without changes.

0 commit comments

Comments
 (0)