Skip to content

Conversation

@CvX
Copy link
Contributor

@CvX CvX commented May 8, 2019

Example:

theme: {
  spacing: {
    '0': '0',
  },
  width: theme => ({
    ...theme('spacing'),
    '1/3': '33.33333%',
  }),
  minWidth: theme => ({
    // This didn't work because `width` is a function.
    // It had to be written as `theme('width')['1/3']`
    '1/3': theme('width.1/3'),
  }),
}

Example:

```js
theme: {
  spacing: {
    '0': '0',
  },
  width: theme => ({
    ...theme('spacing'),
    '1/3': '33.33333%',
  }),
  minWidth: theme => ({
    '1/3': theme('width.1/3'),
  }),
}
```
@MichaelDeBoey
Copy link
Contributor

This one could resolve #869

@CvX
Copy link
Contributor Author

CvX commented May 9, 2019

Ha, if I hadn't missed that issue, I'd save some time debugging. 😉

@adamwathan
Copy link
Member

This is amazing, thanks! 🙌🏻

@adamwathan adamwathan merged commit b68f7ee into tailwindlabs:next May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants