Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add theme import smart returns #205

Merged
merged 3 commits into from
Nov 25, 2020
Merged

Add theme import smart returns #205

merged 3 commits into from
Nov 25, 2020

Conversation

ben-rogerson
Copy link
Owner

@ben-rogerson ben-rogerson commented Nov 22, 2020

This PR makes the theme import a little smarter when an array is found.
It'll return different values dependant on the key name.

For example:

theme`fontFamily.mono`;

// ↓ ↓ ↓ ↓ ↓ ↓

"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, \"Liberation Mono\", \"Courier New\", monospace";

The returned value is a string but in your merged config the value is defined as an array.

Read the tailwind docs for more info.

@ben-rogerson ben-rogerson mentioned this pull request Nov 22, 2020
14 tasks
@ben-rogerson ben-rogerson merged commit 8b39676 into master Nov 25, 2020
@ben-rogerson ben-rogerson deleted the feature/theme-smarts branch November 25, 2020 20:35
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.

None yet

1 participant