Skip to content

Commit 71f325d

Browse files
committed
refactor: change to vite build
1 parent e3051f4 commit 71f325d

13 files changed

+473
-206
lines changed

.npmignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/node_modules
2+
.idea*
3+
/img*
4+
index.html
5+
mix-manifest.json
6+
.babelrc.json
7+
.eslintrc.json
8+
.gitignore
9+
/src*
10+
/test*
11+
.prettierrc
12+
babel.config.json
13+
gulpfile.js
14+
postcss-config.json
15+
tailwindcss.config.js
16+
tsconfig.json
17+
webpack.mix.js
18+
.turbo*
19+
esbuild.config.js
20+
21+
*.jpeg
22+
*.jpg
23+
*.png
24+
*.svg
25+
README.md
26+
CHANGELOG.md

.npmiqnore

-7
This file was deleted.

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers=true

.prettierrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"trailingComma": "es5",
3+
"tabWidth": 2,
4+
"semi": false,
5+
"singleQuote": false,
6+
"printWidth": 180,
7+
"useTabs": false,
8+
"singleLineLinkTags": false
9+
}

README.md

+81-42
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,66 @@
1-
# Tailwind CSS Stripes Plugin
2-
![Static Badge](https://img.shields.io/badge/%40designbycode%2Ftailwindcss-stripes)
1+
<a href="#installation" width="100%">
2+
<img src="banner.svg" alt="Title banner"/>
3+
</a>
4+
5+
## Tailwind CSS Stripes Plugin
6+
7+
[![npm version](https://badge.fury.io/js/@designbycode%2Ftailwindcss-stripes.svg)](https://badge.fury.io/js/@designbycode%2Ftailwindcss-stripes)
38
![npm](https://img.shields.io/npm/dt/%40designbycode/tailwindcss-stripes)
49
![NPM](https://img.shields.io/npm/l/%40designbycode%2Ftailwindcss-stripes)
510
![npm bundle size](https://img.shields.io/bundlephobia/min/%40designbycode%2Ftailwindcss-stripes)
6-
![GitHub Repo stars](https://img.shields.io/github/stars/designbycode/tailwindcss-stripes)
11+
![ts](https://badgen.net/badge/Built%20With/TypeScript/blue)
712
[![GitHub stars](https://img.shields.io/github/stars/DesignByCode/tailwindcss-stripes?style=social)](https://github.com/DesignByCode/tailwindcss-stripes/stargazers)
13+
[![HitCount](https://hits.dwyl.com/designbycode/tailwindcss-stripes.svg?style=flat)](http://hits.dwyl.com/designbycode/tailwindcss-stripes)
814

9-
[![NPM](https://nodei.co/npm/@designbycode/tailwindcss-stripes.png)](https://nodei.co/npm/@designbycode/tailwindcss-stripes/)
10-
11-
12-
13-
The Tailwind CSS Stripes Plugin provides a set of utility classes and components that allow you to easily create striped backgrounds for your HTML elements. It offers a flexible way to customize the color, size, opacity, and animation direction of the stripes.
15+
The Tailwind CSS Stripes Plugin provides a set of utility classes and components that allow you to easily create striped backgrounds for your HTML elements. It offers a flexible way to customize the color, size, opacity, and animation
16+
direction of the stripes.
1417

1518
![Stripes Plugin](screen.png)
1619

17-
1820
## Installation
21+
1922
To use the Tailwind CSS Stripes Plugin, you need to have Tailwind CSS installed in your project. If you don't have it yet, you can follow the installation guide to set it up.
2023

2124
Once you have Tailwind CSS installed, you can add the Stripes Plugin to your project using pnpm, npm or yarn:
2225

26+
#### Using pnpm
27+
2328
```bash
24-
npm install @designbycode/tailwindcss-stripes
29+
pnpm add @designbycode/tailwindcss-stripes
2530
```
26-
or
31+
32+
#### Using npm
33+
2734
```bash
28-
pnpm install @designbycode/tailwindcss-stripes
35+
npm install @designbycode/tailwindcss-stripes
2936
```
30-
or
37+
38+
#### Using yarn
39+
3140
```bash
32-
yarn install @designbycode/tailwindcss-stripes
41+
yarn add @designbycode/tailwindcss-stripes
3342
```
3443

3544
## Configuration
45+
3646
To enable the Stripes Plugin, you need to add it to your Tailwind CSS configuration file. Open your tailwind.config.js and import the plugin at the top of the file:
3747

3848
```javascript
3949
module.exports = {
40-
// Your existing configuration...
41-
plugins: [
42-
// Other plugins...
43-
require("@designbycode/tailwindcss-stripes"),
44-
],
50+
// Your existing configuration...
51+
plugins: [
52+
// Other plugins...
53+
require("@designbycode/tailwindcss-stripes"),
54+
],
4555
};
4656
```
4757

4858
## Usage
59+
4960
Once the Stripes Plugin is installed and added to your configuration, you can start using the utility classes and components to create striped backgrounds.
5061

5162
### Utility Classes
63+
5264
The plugin provides the following utility classes:
5365

5466
#### Stripes Utility
@@ -58,8 +70,9 @@ The plugin provides the following utility classes:
5870
The ```.stripes``` class creates a container with relative positioning, isolates its contents from being affected by the animation, and hides any overflowing content. It serves as the base class for creating the striped effect.
5971

6072
```html
73+
6174
<div class="stripes">
62-
<!-- Your content here -->
75+
<!-- Your content here -->
6376
</div>
6477
```
6578

@@ -70,8 +83,9 @@ The ```.stripes``` class creates a container with relative positioning, isolates
7083
The ```.stripes-{value}``` class sets the color of the stripes to selected value. You can use it to create any color stripes on your elements.
7184

7285
```html
86+
7387
<div class="stripes stripes-rose-500">
74-
<!-- Your content here -->
88+
<!-- Your content here -->
7589
</div>
7690

7791
<!-- by color name or arbitrary value -->
@@ -89,8 +103,9 @@ The ```.stripes-{value}``` class sets the color of the stripes to selected value
89103
The ```.stripes-reverse``` class reverses the direction of the stripes' animation. It creates a cool effect where the stripes appear to move in the opposite direction.
90104

91105
```html
106+
92107
<div class="stripes stripes-reverse">
93-
<!-- Your content here -->
108+
<!-- Your content here -->
94109
</div>
95110

96111
```
@@ -102,8 +117,9 @@ The ```.stripes-reverse``` class reverses the direction of the stripes' animatio
102117
The ```.stripes-opacity-{value}``` classes allow you to control the opacity of the stripes. Replace {value} with the desired opacity level. The available values are defined in your Tailwind CSS opacity configuration.
103118

104119
```html
120+
105121
<div class="stripes stripes-opacity-50">
106-
<!-- Your content here -->
122+
<!-- Your content here -->
107123
</div>
108124

109125
<!-- or by arbitrary value -->
@@ -112,15 +128,17 @@ The ```.stripes-opacity-{value}``` classes allow you to control the opacity of t
112128
</div>
113129

114130
```
131+
115132
#### Stripes Size Modifier
116133

117134
```.stripes-size-{value}```
118135

119136
The ```.stripes-size-{value}``` classes let you adjust the size of the stripes. Replace {value} with one of the custom stripe sizes defined in your Tailwind CSS stripeSizes configuration.
120137

121138
```html
139+
122140
<div class="stripes stripes-size-md">
123-
<!-- Your content here -->
141+
<!-- Your content here -->
124142
</div>
125143
<!-- or by arbitrary size value -->
126144
<div class="stripes stripes-size-[42px]">
@@ -129,39 +147,60 @@ The ```.stripes-size-{value}``` classes let you adjust the size of the stripes.
129147
```
130148

131149
## Customization
150+
132151
You can customize the plugin by modifying the theme section in your Tailwind CSS configuration file. The plugin allows you to define custom stripe sizes and use them as utility classes.
133152

134153
```javascript
135154
module.exports = {
136-
theme: {
137-
extend: {
138-
stripeSizes: {
139-
// Define your custom stripe sizes here
140-
xs: "4px",
141-
sm: "8px",
142-
md: "16px",
143-
lg: "24px",
144-
xl: "32px",
145-
"2xl": "40px",
146-
"3xl": "48px",
147-
},
155+
theme: {
156+
extend: {
157+
stripeSizes: {
158+
// Define your custom stripe sizes here
159+
xs: "4px",
160+
sm: "8px",
161+
md: "16px",
162+
lg: "24px",
163+
xl: "32px",
164+
"2xl": "40px",
165+
"3xl": "48px",
166+
},
167+
},
148168
},
149-
},
150-
plugins: [
151-
// Other plugins...
152-
stripesPlugin,
153-
],
169+
plugins: [
170+
// Other plugins...
171+
stripesPlugin,
172+
],
154173
};
155174

156175
```
157176

158177
By adding or modifying the custom stripe sizes, you can use the .stripes-size-{value} utility classes with your defined sizes.
159178

160179
## Conclusion
161-
The Tailwind CSS Stripes Plugin simplifies the process of creating striped backgrounds with utility classes and components. You can easily apply striped patterns to your elements using the provided classes and customize their appearance according to your project's needs. The plugin offers control over colors, sizes, opacity, and animation direction, making it a powerful addition to your Tailwind CSS toolkit.
162180

181+
The Tailwind CSS Stripes Plugin simplifies the process of creating striped backgrounds with utility classes and components. You can easily apply striped patterns to your elements using the provided classes and customize their appearance
182+
according to your project's needs. The plugin offers control over colors, sizes, opacity, and animation direction, making it a powerful addition to your Tailwind CSS toolkit.
183+
184+
## Contributing
185+
186+
Contributions to this plugin are welcome! If you encounter any issues, have feature requests, or want to improve the plugin, feel free to create a pull request or submit an issue on the GitHub repository.
187+
188+
## License
189+
190+
This project is licensed under the [MIT](LICENCE) License - see the [LICENSE](LICENCE) file for details.
191+
192+
## Author
193+
194+
<div>
195+
<img align="left" style="box-shadow:3px 3px 3px rgba(0,0,0,75);border-radius:1rem;border:solid 2px rgba(255,225,225,.25)" src="https://github.com/designbycode.png?size=130" alt="Claude Myburgh">
196+
</div>
197+
<h2 style="margin-top:0">Claude Myburgh</h2><ul style="padding-left:0;margin-top:-.63rem;list-style:none"><li>Github:<a href="https://github.com/designbycode"> @designbycode</a></li><li>Npm:<a href="https://www.npmjs.
198+
com/~designbycode_"> @designbycode_</a></li></ul>
163199

200+
## Acknowledgments
164201

202+
- This plugin is inspired by the needs of web developers using Tailwind CSS.
203+
- Special thanks to the Tailwind CSS team for creating such an amazing framework.
165204

166205

167206

banner.svg

+113
Loading

dist/index.cjs

+1
Large diffs are not rendered by default.

dist/index.umd.cjs

+1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)