Skip to content

Support default values in config function #115

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

Merged
merged 1 commit into from
Nov 6, 2017
Merged

Conversation

adamwathan
Copy link
Member

@adamwathan adamwathan commented Nov 6, 2017

Also add a bunch of tests, seems probably wise :)

This lets you do stuff like:

.foo {
  color: config('colors.blue', orange);
}

...so you can have a fallback value. Not super useful for your own CSS, but will be more useful for future features like plugins.

Also add a bunch of tests, seems probably wise :)
@reinink reinink merged commit 0b0cb96 into master Nov 6, 2017
@reinink reinink deleted the config-default branch November 6, 2017 15:36
DCzajkowski pushed a commit to DCzajkowski/tailwindcss that referenced this pull request Jul 23, 2019
Change reference of theme() to config() for plugins
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.

2 participants