maximkoretskiy / postcss-initial

PostCSS plugin to fallback initial keyword
MIT License
187 stars 11 forks source link

Use initize #22

Open ai opened 7 years ago

ai commented 7 years ago

@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.

maximkoretskiy commented 7 years ago

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.

Semigradsky commented 7 years ago

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

iamstarkov commented 7 years ago

thats correct, though i will publish it soon

iamstarkov commented 7 years ago

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 commented 7 years ago

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

romainmenke commented 11 months ago

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