프로젝트
GitHub에서 보기
RonMelkhior/tailwindcss-dir
소개
Adds direction (LTR, RTL) variants to your Tailwind project
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalTailwind Direction
Tailwind Direction adds a custom direction variant to your tailwind project,
letting you have custom CSS rules for LTR and RTL layouts.
Note: This package requires Tailwind >= v1.0.1.
Getting started
Install the package via NPM/Yarn.
# Yarn
yarn add tailwindcss-dir --dev
# NPM
npm install tailwindcss-dir --save-dev
Now, setup the plugin in your Tailwind config's plugins section.
Currently the plugin doesn't offer any configuration.
plugins: [
require('tailwindcss-dir')(),
],
Finally, you can use the plugin and add it to modules you want to use it with.
variants: {
float: ['responsive', 'direction'],
margin: ['responsive', 'direction'],
padding: ['responsive', 'direction'],
},
Usage
The plugin adds ltr and rtl variants to your modules. With the default Tailwind configuration, you can use them like so:
<div class="text-green text-2xl ltr:pl-4 rtl:pr-4">
Hello world.
</div>
License
Tailwind Direction is licensed under the MIT license.
관련 프로젝트 살펴보기
불러오는 중…