diff --git a/README.md b/README.md index 0ea6c80..83b44cd 100644 --- a/README.md +++ b/README.md @@ -28,7 +28,7 @@ In your tailwind.config.js: ], ``` -You now have access to the Dracula theme anywhere you would use normal tailwind colours. +You now have access to the Dracula theme anywhere you would use normally tailwind colours. ```html
@@ -40,6 +40,8 @@ Color naming has two options (based on Dracula's names with some changes where n * The color name option. ie. darker, pink, purple * The vampire name option. ie. dracula, vonCount, buffy +> :hand: **The default color names for Dracula can override the tailwind default style names. See below on how to prefix your Dracula color names. + ## Color Palette Palette | Hex | RGB | HSL | ![Color Picker Boxes](https://draculatheme.com/static/img/color-boxes/eyedropper.png) @@ -59,5 +61,3 @@ Yellow/Lincoln | `#f1fa8c` | `241 250 140` | `65° 92% 76%` | ![Yellow C ## Credits [Dracula Theme](https://www.draculatheme.com/)
[Dracula Theme GitHub](https://github.com/dracula/dracula-theme/blob/master/README.md) - - diff --git a/index.js b/index.js index 5de503d..d51af2e 100644 --- a/index.js +++ b/index.js @@ -1,4 +1,11 @@ const plugin = require('tailwindcss/plugin') -const colors = require('./colors.js') -module.exports = plugin(function () {}, { theme: { extend: { colors } } }) +module.exports = plugin(function({ theme }) { + +}, { + theme: { + extend: { + colors: theme => (colors) + } + } +})