Rename tailwind() method to config()
Add basic tests for config(), @response and @apply.
This commit is contained in:
parent
75c24bc782
commit
96e9e67592
3 changed files with 33 additions and 1 deletions
|
|
@ -3714,6 +3714,11 @@ button,
|
|||
padding: 0;
|
||||
}
|
||||
|
||||
.example {
|
||||
font-weight: 700;
|
||||
color: #e3342f;
|
||||
}
|
||||
|
||||
@media (min-width: 576px) {
|
||||
.sm\:input-reset {
|
||||
appearance: none;
|
||||
|
|
@ -6842,6 +6847,11 @@ button,
|
|||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.sm\:example {
|
||||
font-weight: 700;
|
||||
color: #e3342f;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
|
|
@ -9972,6 +9982,11 @@ button,
|
|||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.md\:example {
|
||||
font-weight: 700;
|
||||
color: #e3342f;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 992px) {
|
||||
|
|
@ -13102,6 +13117,11 @@ button,
|
|||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.lg\:example {
|
||||
font-weight: 700;
|
||||
color: #e3342f;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1200px) {
|
||||
|
|
@ -16232,4 +16252,9 @@ button,
|
|||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.xl\:example {
|
||||
font-weight: 700;
|
||||
color: #e3342f;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,10 @@
|
|||
@tailwind reset;
|
||||
|
||||
@tailwind utilities;
|
||||
|
||||
@responsive {
|
||||
.example {
|
||||
@apply .font-bold;
|
||||
color: config('colors.red');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import functions from 'postcss-functions'
|
|||
export default function(options) {
|
||||
return functions({
|
||||
functions: {
|
||||
tailwind: function (path) {
|
||||
config: function (path) {
|
||||
return _.get(options, _.trim(path, `'"`))
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue