12.2.1 • Published 3 years ago

fela-plugin-important v12.2.1

Weekly downloads
255
License
MIT
Repository
github
Last release
3 years ago

fela-plugin-important

Warning: Use this plugin with caution. It is not recommended and should only be used as a last resort.

Adds !important to every declaration value except animations item and keyframes. This helps to force specificity over third-party libraries. Animation items and keyframes with !important disrupt functionality of animations. More about.

Installation

yarn add fela-plugin-important

You may alternatively use npm i --save fela-plugin-important.

Usage

Make sure to read the documentation on how to use plugins.

import { createRenderer } from 'fela'
import important from 'fela-plugin-important'

const renderer = createRenderer({
  plugins: [important()],
})

Example

Input

{
  width: '25px',
  display: [ '-webkit-flex', 'flex' ],
  fontWeight: 'normal'
}

Output

{
  width: '25px!important',
  display: [ '-webkit-flex!important', 'flex!important' ],
  fontWeight: 'normal!important'
}

License

Fela is licensed under the MIT License. Documentation is licensed under Creative Commons License. Created with ♥ by @robinweser and all the great contributors.

12.2.1

3 years ago

12.2.0

3 years ago

12.1.2

3 years ago

12.1.0

3 years ago

12.1.1

3 years ago

12.0.0

3 years ago

12.0.1

3 years ago

12.0.2

3 years ago

12.0.0-rc.1

3 years ago

12.0.0-rc.2

3 years ago

12.0.0-rc.0

3 years ago

12.0.0-y.0

3 years ago

12.0.0-rc.3.0

3 years ago

11.7.0

4 years ago

11.6.1

4 years ago

11.6.0

4 years ago

11.5.2

4 years ago

11.5.1

5 years ago

11.5.0

5 years ago

11.5.0-rc.0

5 years ago

11.4.0

5 years ago

11.3.3

5 years ago

11.3.2

5 years ago

11.3.1

5 years ago

11.3.0

5 years ago

11.2.0

5 years ago

11.1.1

5 years ago

11.1.2

5 years ago

11.1.0

5 years ago

11.0.2

6 years ago

11.0.1

6 years ago

11.0.0

6 years ago

10.8.2

6 years ago

10.8.1

6 years ago

10.8.0

6 years ago

10.7.0

6 years ago

10.6.1

6 years ago

10.6.0

6 years ago

10.5.0

6 years ago

10.4.1

6 years ago

10.4.0

6 years ago

10.3.0

6 years ago

10.2.4

6 years ago

10.2.3

6 years ago

10.2.2

6 years ago

10.2.1

6 years ago

10.2.0

6 years ago

10.1.3

6 years ago

10.1.2

6 years ago

10.1.1

6 years ago

10.1.0

7 years ago

10.0.2

7 years ago

10.0.0

7 years ago

6.0.3

7 years ago

6.0.2

7 years ago

6.0.1

7 years ago

6.0.0

8 years ago

5.0.14

8 years ago

5.0.13

8 years ago

5.0.12

8 years ago

5.0.11

8 years ago

5.0.10

8 years ago

5.0.9

8 years ago

5.0.8

8 years ago

5.0.7

8 years ago

5.0.6

8 years ago

5.0.5

8 years ago

5.0.4

8 years ago

5.0.3

8 years ago

5.0.2

8 years ago

5.0.1

8 years ago

5.0.0

8 years ago