Code Monkey home page Code Monkey logo

blanked's Introduction

blanked-social-preview.png

Blanked is a Nuxt module to improve your Nuxt workflow. It's a simple module to add everything you need to your Nuxt app, including:

  • TailwindCSS, the only CSS framework you need
  • Color Mode, add a color mode switcher to your app (dark/light or custom)
  • VueUse composables, add every composables from VueUse
  • Icons, add every icons from your favorite icon pack (Heroicons and Lucide are pre-installed)
  • Toasts, using the amazing Vue Sonner
  • Tooltip and other floating stuff from Floating UI
  • Plug and play custom web font optimization and configuration from all major providers with Nuxt Fonts

From

{
  "name": "new-blanked-project",
  "private": true,
  "type": "module",
  "scripts": {
    "dev": "nuxi dev",
    "build": "nuxi build",
    "generate": "nuxi generate"
  },
  "devDependencies": {
    "nuxt": "latest",
    "@nuxtjs/color-mode": "latest",
    "@nuxtjs/tailwindcss": "latest",
    "@nuxt/fonts": "latest",
    "@tailwindcss/aspect-ratio": "^0.4.2",
    "@tailwindcss/container-queries": "^0.1.1",
    "@tailwindcss/forms": "^0.5.7",
    "@tailwindcss/typography": "^0.5.10",
    "@egoist/tailwindcss-icons": "^1.7.2",
    "@iconify-json/heroicons": "^1.1.19",
    "@iconify-json/lucide": "^1.1.154",
    "tailwindcss": "^3.4.1",
    "nuxt-icon": "^0.6.8",
    "vue-sonner": "^1.0.3",
    "@vueuse/nuxt": "^1.0.0",
    "@floating-ui/vue": "^1.0.6"
  }
}

To

{
  "name": "new-blanked-project",
  "private": true,
  "type": "module",
  "scripts": {
    "dev": "nuxi dev",
    "build": "nuxi build",
    "generate": "nuxi generate"
  },
  "devDependencies": {
    "nuxt": "latest",
    "blanked": "latest"
  }
}

Quick Setup

To get started, follow these steps:

  1. Add blanked dependency to your project
# Using bun
bun install -D blanked

# Using pnpm
pnpm add -D blanked

# Using yarn
yarn add --dev blanked

# Using npm
npm install --save-dev blanked
  1. Add blanked to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    'blanked'
  ]
})

Thanks to @egoist/tailwindcss-icons plugin, only the icons you use in your app will be bundled in your CSS. However, you need to install the icon collections you specified in the blanked.icons key:

bun i -D @iconify-json/{collection_name}

Toasts

To use the toast component, you need to add the <Toasts /> component in your app. You can add it in your layouts/default.vue or app.vue file for example. To render the toasts, you need to use the toast() function. For more information, check the Vue Sonner documentation.

That's it! You can now use Blanked in your Nuxt app ✨

Authors

Blanked Module

Thanks

This module is heavily inspired by the NuxtUI module, which embeds TailwindCSS, Color Mode and Icons in your Nuxt app. However, I wanted to make a module to start a Nuxt project without the components, etc...

blanked's People

Contributors

hugorcd avatar autofix-ci[bot] avatar imgbotapp avatar ineshbose avatar renovate[bot] avatar

Stargazers

K9Ctec avatar Heiko Brömmelstrote avatar Al-Khawarizmi avatar Kyrela avatar Tomer Danan avatar Cyprien Thao avatar Matt.  avatar Thimo avatar Alex Duval avatar Zhazha_JiaYiZhen avatar Malik avatar Winter avatar Sadegh Barati avatar Daniel Roe avatar Eoghan avatar

Watchers

 avatar  avatar

Forkers

heikopaiko

blanked's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Pending Approval

These branches will be created by Renovate only once you click their checkbox below.

  • chore(deps): update dependency eslint to v9
  • chore(deps): update dependency vitest to v1
  • 🔐 Create all pending approval PRs at once 🔐

Awaiting Schedule

These updates are awaiting their schedule. Click on a checkbox to get an update now.

  • chore(deps): update all non-major dependencies (@egoist/tailwindcss-icons, @headlessui/vue, @iconify-json/heroicons, @iconify-json/lucide, @nuxt/eslint-config, @nuxt/fonts, @nuxt/kit, @nuxt/module-builder, @nuxt/schema, @nuxt/test-utils, @tailwindcss/typography, @types/node, @vueuse/nuxt, eslint, nuxt, nuxt-headlessui, nuxt-icon, tailwindcss, vitest, vue, vue-router, vue-sonner)

Detected dependencies

bun
package.json
  • @egoist/tailwindcss-icons ^1.7.2
  • @floating-ui/vue ^1.0.6
  • @headlessui/vue ^1.7.19
  • @iconify-json/heroicons ^1.1.19
  • @iconify-json/lucide ^1.1.154
  • @nuxt/fonts ^0.0.1
  • @tailwindcss/aspect-ratio ^0.4.2
  • @tailwindcss/container-queries ^0.1.1
  • @tailwindcss/forms ^0.5.7
  • @tailwindcss/typography ^0.5.10
  • @vueuse/nuxt ^10.7.2
  • nuxt-headlessui ^1.1.5
  • nuxt-icon ^0.6.8
  • tailwindcss ^3.4.1
  • vue-sonner ^1.0.3
  • @nuxt/eslint-config ^0.2.0
  • @nuxt/kit ^3.8.2
  • @nuxt/module-builder ^0.5.4
  • @nuxt/schema ^3.8.2
  • @nuxt/test-utils ^3.8.1
  • @types/node ^20.10.3
  • changelogen ^0.5.5
  • eslint ^8.55.0
  • vitest ^0.33.0
docs/package.json
  • nuxt ^3.9.1
  • sitemap ^7.1.1
  • vue ^3.4.10
  • vue-router ^4.2.5
github-actions
.github/workflows/autofix.yml
  • actions/checkout v4
  • actions/setup-node v4
  • oven-sh/setup-bun v1
  • autofix-ci/action ea32e3a12414e6d3183163c3424a7d7a8631ad84
.github/workflows/semantic-pull-request.yml
  • amannn/action-semantic-pull-request v5
  • marocchino/sticky-pull-request-comment v2
  • marocchino/sticky-pull-request-comment v2

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.