Skip to content

Latest commit

 

History

History
93 lines (67 loc) · 2.28 KB

README.md

File metadata and controls

93 lines (67 loc) · 2.28 KB

NuxtJs RTLCSS Module

npm version npm downloads License Nuxt

NuxtJs RTLCSS Module to build Cascading Style Sheets (CSS) with Left-To-Right (LTR) and Right-To-Left (RTL) rules using RTLCSS PostCss Plugin

Features

  • 🙂  Auto RTL All Styles
  • ⛰ Nuxt 3

Quick Setup

  1. Add nuxt-rtlcss dependency to your project
# Using pnpm
pnpm add -D nuxt-rtlcss

# Using yarn
yarn add --dev nuxt-rtlcss

# Using npm
npm install --save-dev nuxt-rtlcss
  1. Add nuxt-rtlcss to the modules section of nuxt.config.ts
export default defineNuxtConfig({
  modules: [
    // "@nuxtjs/tailwindcss" or any styled base module
    // ...
    "nuxt-rtlcss",
  ],
  rtlcss: {
    // ... options
  },
});

⚠️ make sure load rtlcss module at the end of modules list.

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

Options

Development

# Install dependencies
pnpm install

# Generate type stubs
pnpm run dev:prepare

# Develop with the playground
pnpm run dev

# Build the playground
pnpm run dev:build

# Run ESLint
pnpm run lint

# Run Vitest
pnpm run test
pnpm run test:watch

# Release new version
pnpm run release