Fix interaction styles

This commit is contained in:
Oliver Davies 2019-04-11 10:12:59 +01:00
parent 6334567b5c
commit a46201520a
3 changed files with 907 additions and 1085 deletions

View file

@ -16,7 +16,7 @@
"dependencies": { "dependencies": {
"postcss-nested": "^4.1.2", "postcss-nested": "^4.1.2",
"tailwindcss": "^1.0.0-beta.3", "tailwindcss": "^1.0.0-beta.3",
"tailwindcss-interaction-variants": "^1.0.0", "tailwindcss-interaction-variants": "^2.0.0-beta.1",
"tailwindcss-spaced-items": "^0.1.0" "tailwindcss-spaced-items": "^0.1.0"
} }
} }

View file

@ -1,4 +1,5 @@
let defaultTheme = require('tailwindcss/defaultTheme') const defaultConfig = require('tailwindcss/defaultConfig')
const defaultTheme = require('tailwindcss/defaultTheme')
module.exports = { module.exports = {
prefix: 'tw-', prefix: 'tw-',
@ -11,11 +12,12 @@ module.exports = {
'pink-600': '#ec16a8', 'pink-600': '#ec16a8',
'purple-600': '#b33ee9', 'purple-600': '#b33ee9',
}, },
variants: {
textStyle: ['responsive', 'hover', 'focus', 'hocus'],
},
}, },
}, },
variants: {
textColor: [...defaultConfig.variants.textColor, 'hocus'],
fontStyle: [...defaultConfig.variants.fontStyle, 'hocus']
},
plugins: [ plugins: [
require('tailwindcss-interaction-variants')(), require('tailwindcss-interaction-variants')(),
require('tailwindcss-spaced-items')({ values: defaultTheme.spacing }), require('tailwindcss-spaced-items')({ values: defaultTheme.spacing }),

1980
yarn.lock

File diff suppressed because it is too large Load diff