NuxtJs RTLCSS Module to build Cascading Style Sheets (CSS) with Left-To-Right (LTR) and Right-To-Left (RTL) rules using RTLCSS PostCss Plugin
- 🙂 Auto RTL All Styles
- ⛰ Nuxt 3
- 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
- Add
nuxt-rtlcss
to themodules
section ofnuxt.config.ts
export default defineNuxtConfig({
modules: [
// "@nuxtjs/tailwindcss" or any styled base module
// ...
"nuxt-rtlcss",
],
rtlcss: {
// ... options
},
});
⚠️ make sure loadrtlcss
module at the end ofmodules
list.
That's it! You can now use RTLCSS Module in your Nuxt app ✨
- Add
nuxt-rtlcss
to the root ofnuxt.config.ts
- Read options and more informations at elchininet/postcss-rtlcss repository
# 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