![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@nauverse/tailwind-dot-grid-backgrounds
Advanced tools
🎨 A tiny Tailwind plugin to add dot and grid customizable backgrounds fast
What? • Guide and examples • Help • Contribute
This is a Tailwind plugin that allows you to add background grids and background dots in an easy and customizable way:
npm install --save @nauverse/tailwind-dot-grid-backgrounds
tailwind.config.js
file:// ... the rest of your tailwind.config.js file
const config: Config = {
// ... the rest of your config
plugins: [
require('@nauverse/tailwind-dot-grid-backgrounds')
// ... the rest of your Tailwind plugins
],
};
Try it by adding this HTML to your UI:
<div class="h-screen w-screen bg-yellow-300 bg-grid-8-s-2-neutral-950"></div>
You could achieve the same by just using some Tailwind code but... I found myself adding this kind of background in my projects very often. So I created a small Tailwind plugin to allow me adding these background but at the same allowing all the customization offered by Tailwind.
Pattern: bg-grid-<SIZE>-s-<STROKE_WIDTH>-<COLOR>
<SIZE>
is the size of the grid squares. It allows the numeric values of the width
prop in Tailwind. You will see the available options in Intellisense.<STROKE_WIDTH>
is the width of the strokes of the grid squares. It allows the numeric values of the borderWidth
prop in Tailwind and also the value 1
(since Tailwind does not have a border-1
class).<COLOR>
is the color of the strokes. It allows any valid classname color in Tailwind.bg-grid-8-s-2-neutral-950
bg-grid-48-s-8-blue-700/80
Pattern: bg-dot-<SIZE>-s-<DOT_SIZE>-<COLOR>
<SIZE>
is the size of the space (in both axis) between the dots. It allows the numeric values of the width
prop in Tailwind. You will see the available options in Intellisense.<DOT_SIZE>
is the size of the dots. It allows the numeric values of the borderWidth
prop in Tailwind and also the value 1
(since Tailwind does not have a border-1
class).<COLOR>
is the color of the dots. It allows any valid classname color in Tailwind.bg-dot-8-s-2-neutral-950
bg-dot-16-s-8-blue-700/80
Thank you for using tailwind-dot-grid-backgrounds!
If you need any help using this plugin, feel free to create a GitHub issue, and ask your questions. I'll try to answer as quickly as possible.
Contributions of any kind (pull requests, bug reports, feature requests, documentation, design) are more than welcome! If you like this project and want to help, but feel like you are stuck, feel free to contact the maintainers.
Building the project should be quick and easy. If it isn't, it's the maintainer's fault. Please report any problems with building in a GitHub issue.
You need to have a reasonably recent version of node.js to build tailwind-dot-grid-backgrounds. Tested on node version 18.0.0 and npm version 8.6.0.
First, clone the git repository:
git clone git@github.com:TheNaubit/tailwind-dot-grid-backgrounds.git
Then switch to the newly created tailwind-dot-grid-backgrounds directory and install the dependencies:
cd tailwind-dot-grid-backgrounds
npm install
You can then run the unit tests to verify that everything works correctly:
npm run test:run
And finally, build the library:
npm run build
The output will appear in the dist
directory.
Happy hacking!
Al | Naucode 🐛 💻 📖 🚧 🚇 ⚠️ |
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!
FAQs
🎨 A tiny Tailwind plugin to add dot and grid customizable backgrounds fast
The npm package @nauverse/tailwind-dot-grid-backgrounds receives a total of 74 weekly downloads. As such, @nauverse/tailwind-dot-grid-backgrounds popularity was classified as not popular.
We found that @nauverse/tailwind-dot-grid-backgrounds demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.