
Research
/Security News
Toptal’s GitHub Organization Hijacked: 10 Malicious Packages Published
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
@nuxtjs/tailwindcss
Advanced tools
@nuxtjs/tailwindcss is a Nuxt.js module that integrates Tailwind CSS into your Nuxt.js project. It simplifies the setup and configuration of Tailwind CSS, allowing you to quickly start using Tailwind's utility-first CSS framework in your Nuxt.js applications.
Easy Setup
By adding @nuxtjs/tailwindcss to the buildModules array in your nuxt.config.js file, you can easily set up Tailwind CSS in your Nuxt.js project.
```json
{
"buildModules": [
"@nuxtjs/tailwindcss"
]
}
```
Custom Configuration
You can customize the Tailwind CSS configuration directly in your nuxt.config.js file, allowing you to extend the default theme, add custom colors, and more.
```json
{
"tailwindcss": {
"config": {
"theme": {
"extend": {
"colors": {
"primary": "#1DA1F2"
}
}
}
}
}
}
```
PurgeCSS Integration
The module integrates PurgeCSS to remove unused CSS, optimizing your final build size. You can configure the paths to be scanned for class names in the nuxt.config.js file.
```json
{
"tailwindcss": {
"purgeCSS": {
"enabled": true,
"content": [
"./pages/**/*.vue",
"./components/**/*.vue"
]
}
}
}
```
nuxt-windicss is a Nuxt.js module that integrates Windi CSS, a utility-first CSS framework similar to Tailwind CSS. It offers faster build times and a smaller bundle size compared to Tailwind CSS.
nuxt-buefy is a Nuxt.js module that integrates Buefy, a lightweight UI component library based on Bulma. While it is not a utility-first CSS framework like Tailwind, it provides a set of ready-to-use components that can be easily customized.
nuxt-vuetify is a Nuxt.js module that integrates Vuetify, a Material Design component framework. It offers a wide range of pre-designed components and utilities, making it a good alternative for those looking for a more component-driven approach.
TailwindCSS module for Nuxt.js with nuxt-purgecss + modern css ⚡️
@nuxtjs/tailwindcss
dependency to your projectnpm install --save-dev @nuxtjs/tailwindcss # or yarn add --dev @nuxtjs/tailwindcss
@nuxtjs/tailwindcss
to the devModules
section of nuxt.config.js
{
devModules: [
'@nuxtjs/tailwindcss'
]
}
This module will automatically create two files in your srcDir:
~/tailwind.config.js
~/assets/css/tailwind.css
It will also inject the CSS file globally and configure nuxt-purgecss and postcss-preset-env to stage 1.
If you want to set a different path for the configuration file or css file, you can use these given options:
// nuxt.config.js
{
devModules: [
'@nuxtjs/tailwindcss'
],
tailwindcss: {
configPath: '~/config/tailwind.js',
cssPath: '~/assets/main.css'
}
}
yarn install
or npm install
npm run dev
Copyright (c) Nuxt.js Team
FAQs
Tailwind CSS module for Nuxt
The npm package @nuxtjs/tailwindcss receives a total of 223,434 weekly downloads. As such, @nuxtjs/tailwindcss popularity was classified as popular.
We found that @nuxtjs/tailwindcss demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 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.
Research
/Security News
Threat actors hijacked Toptal’s GitHub org, publishing npm packages with malicious payloads that steal tokens and attempt to wipe victim systems.
Research
/Security News
Socket researchers investigate 4 malicious npm and PyPI packages with 56,000+ downloads that install surveillance malware.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.