mirror of
https://github.com/Snigdha-OS/documentation.git
synced 2025-09-13 20:14:56 +02:00
26 lines
931 B
TypeScript
26 lines
931 B
TypeScript
/**
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/
|
|
import type { Plugin } from 'postcss';
|
|
/**
|
|
* This PostCSS plugin will remove duplicate/same custom properties (which are
|
|
* actually overridden ones) **only** from `:root` selector.
|
|
*
|
|
* Depending on the presence of an `!important` rule in value of custom
|
|
* property, the following actions will happen:
|
|
*
|
|
* - If the same custom properties do **not** have an `!important` rule, then
|
|
* all of them will be removed except for the last one (which will actually be
|
|
* applied).
|
|
* - If the same custom properties have at least one `!important` rule, then
|
|
* only those properties that do not have this rule will be removed.
|
|
*/
|
|
declare function creator(): Plugin;
|
|
declare namespace creator {
|
|
var postcss: true;
|
|
}
|
|
export default creator;
|