How to use css-declaration-sorter - 1 common examples

To help you get started, we’ve selected a few css-declaration-sorter examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SparkPost / heml / packages / heml-styles / src / index.js View on Github external
minifyGradients(),
    normalizeDisplayValues(),
    normalizeTimingFunctions(),
    convertValues({ length: false }),
    reduceCalc(),
    orderedValues(),
    minifySelectors(),
    minifyParams(),
    discardOverridden(),
    normalizeString(),
    minifyFontValues({ removeQuotes: false }),
    normalizeRepeatStyle(),
    normalizePositions(),
    discardEmpty(),
    uniqueSelectors(),
    declarationSorter(),
    mergeAdjacentMedia(),
    discardDuplicates(),
    mergeRules(),

    /** color handling */
    colorNamesToHex(),
    rgbToHex({ rgbOnly: true, silent: true }),
    rgbaFallback(),
    formatHexColors(),

    /** email fixes */
    emailImportant(),
    shorthandExpand(), // so we can match for margin-top/margin-left etc.
    zeroOutMargin(),

    /** expanding to match heml elements */

css-declaration-sorter

Sorts CSS declarations fast and automatically in a certain order.

ISC
Latest version published 8 months ago

Package Health Score

77 / 100
Full package analysis

Popular css-declaration-sorter functions