@globalpress/tailwind-preset
v1.0.9
Published
Global Press Universal Tailwind Config
Downloads
1
Readme
Usage
This is intended to distribute a consistant tailwind preset for all GP v3 front website projects like globalpressjournal etc
Install
Install this package in your project using:
yarn add @globalpress/tailwind-preset
Add the preset to your tailwind config within your project
/** @type {import('tailwindcss').Config} */
module.exports = {
presets: [
require('@globalpress/tailwind-preset')
],
content: [
"./components/**/*.{js,vue,ts}",
"./layouts/**/*.vue",
"./pages/**/*.vue",
"./plugins/**/*.{js,ts}",
"./app.vue",
"./error.vue",
],
}
Alternatively if you are using an ES Module you can import
import gp3Config from '@globalpress/tailwind-preset';
export default {
presets: [gp3Config],
content: [
"./components/**/*.{js,vue,ts}",
"./layouts/**/*.vue",
"./pages/**/*.vue",
"./plugins/**/*.{js,ts}",
"./app.vue",
"./error.vue",
'formkit.theme.ts'
],
}