2.0.2 • Published 4 months ago

brandeur-plugin-enforce-longhand v2.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

brandeur-plugin-enforce-longhand

Sorts styles in a way that always enforces longhand over shorthand properties.

Read The Shorthand-Longhand Problem in Atomic CSS for an in-depth explanation of why this is neccessary.

Installation

# npm
npm i --save brandeur-plugin-enforce-longhand
# yarn
yarn add brandeur-plugin-enforce-longhand
# pnpm
pnpm add brandeur-plugin-enforce-longhand

Usage

import enforceLonghand from 'brandeur-plugin-enforce-longhand'

const plugin = enforceLonghand()

Configuration

Parameter TypeDefault Description
borderModenone |  directional |  longhand none 
import enforceLonghand from 'brandeur-plugin-enforce-longhand'

const plugin = enforceLonghand('directional')

License

Brandeur is licensed under the MIT License. Documentation is licensed under Creative Commons License. Created with ♥ by @robinweser.

2.0.2

4 months ago

2.0.1

9 months ago

2.0.0

10 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

1 year ago