Skip to content

ES6 Module support?  #76

@kevinSuttle

Description

@kevinSuttle

Wondering if it's possible for usage to be supported in ES6 modules. Consider the following.

// Colors.js
const Colors = {
  secondaryGrey: {
    name: 'Secondary Grey', // design language name: (e.g. https://www.ibm.com/design/language/resources/swatchbook)
    hex: '#2e3636',
    uses: ['Table headings', 'Input background :hover'],
  },
}
export default Colors;
import highlightGreen from `./Colors`;

button {
  background-color: highlightGreen.hex;
}

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