postcss-initial icon indicating copy to clipboard operation
postcss-initial copied to clipboard

Use initize

Open ai opened this issue 9 years ago • 6 comments

@iamstarkov created good list of initial values: https://github.com/iamstarkov/initize

We need to use it. @maximkoretskiy write me if youneed help with it.

ai avatar Mar 07 '17 11:03 ai

Ok. I'll implement it on the weekend. @iamstarkov already told me about his great project, but until this moment I had no time for it. Thank U for the suggestion.

maximkoretskiy avatar Mar 07 '17 12:03 maximkoretskiy

Looks like initize has not been ready yet. It has version 0.0.0 and not published to npm.

Semigradsky avatar Mar 07 '17 14:03 Semigradsky

thats correct, though i will publish it soon

iamstarkov avatar Mar 07 '17 15:03 iamstarkov

if postcss-initial would support reset options as postcss-autoreset does, then it will be trivial to close this issue:

const postcss = require('postcss');
const initial = require('postcss-initial');
const initize = require('initize');
const basic = {
  'font-family': 'Arial, sans-serif',
  'text-align': 'left',
  'quotes': `"“" "”" "‘" "’"`,
  'color': 'black',
  'outline-color': 'black',
}

const appInitize = Object.assign({}, initize, basic);

postcss([
  initial({ reset: appInitize })
]);

iamstarkov avatar Mar 08 '17 10:03 iamstarkov

and if i would be you, i will clearly declare that its not custom all: initial polyfill. simply because you cant polyfill all: initial entirely

iamstarkov avatar Mar 08 '17 10:03 iamstarkov

Unclear which concrete issues this change would solve. Are there any properties wrong in the current plugin?

romainmenke avatar Sep 16 '23 08:09 romainmenke