Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

no output when usgin postcss-color-function #47

@cmnstmntmn

Description

@cmnstmntmn
--color-darker: color(red shade(50%);

this is the css config

postcss([  
    require('postcss-import')(),
    require('postcss-mixins')(),
    require('postcss-nested')(),
    require('postcss-style-guide')({
      project: 'My Project',
      dest: 'styleguide/app.html',
      showCode: true
    }),    
    require('postcss-cssnext')({
      features: {
        customProperties: {},
        applyRule: {},
        calc: {},
        customMedia: {},
        mediaQueriesRange: {},
        customSelectors: {},
        attributeCaseInsensitive: {},
        colorRebeccapurple: {},
        colorHwb: {},
        colorHsl: {},
        colorRgb: {},
        colorGray: {},
        colorHexAlpha: {},
        colorFunction: {},
        fontVariant: {},
        filter: {},
        initial: {},
        rem: {},
        pseudoElements: {},
        pseudoClassMatches: {},
        pseudoClassNot: {},
        pseudoClassAnyLink: {},
        colorRgba: {},
        overflowWrap: {},
        autoprefixer: false      
      }
    }),      
    require('postcss-typescale'),
    require('postcss-button')    
  ])
  .process(fs.readFileSync('resources/games/css/app.css', 'utf8'), { from: "resources/games/css/app.css" })
  .then(result => purify(content, result.css, options))
  .catch(error => {
    console.error(error);
  }); 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions