bem/themekit

Impl presets structure for combine transforms and actions

yarastqt opened this issue · 0 comments

Proposal

Implement preset structure for combine transforms and actions, cuz for many cases actually uses same transforms and actions.

Use case

register

Api.registerPreset({
  name: 'preset-name',
  transforms: ['transform-a', 'transform-b'],
  actions: ['action-a'],
})

preset usage

"output": {
  "css": {
    "preset": "preset-name"
  }
}

after preset apply

"output": {
  "css": {
    "transforms": ["transform-a", "transform-b"],
    "actions": ["action-a"]
  }
}