Files
crater/tailwind.config.js
Mohit Panjwani 89ee58590c build version 400
2020-12-02 17:54:08 +05:30

92 lines
2.2 KiB
JavaScript

const plugin = require('tailwindcss/plugin')
module.exports = {
purge: [
'./resources/views/**/*.php',
'./resources/assets/js/**/*.js',
'./resources/assets/js/**/*.vue',
'./resources/assets/sass/**/*.scss',
'./node_modules/@bytefury/spacewind/**/*.js',
'./node_modules/@bytefury/spacewind/**/*.vue',
'./node_modules/flatpickr/**/*.js',
'./node_modules/toastr/**/*.js',
'./public/js/pace/**/*.js',
],
theme: {
extend: {
fontFamily: {
base: ['Poppins', 'sans-serif'],
},
colors: {
primary: {
50: '#F7F6FD',
100: '#EEEEFB',
200: '#D5D4F5',
300: '#BCB9EF',
400: '#8A85E4',
500: '#5851D8',
600: '#4F49C2',
700: '#353182',
800: '#282461',
900: '#1A1841',
},
black: '#040405',
},
spacing: {
7: '1.75rem',
9: '2.25rem',
72: '18rem',
80: '20rem',
88: '22rem',
96: '24rem',
},
screens: {
xxl: '1440px',
},
},
},
variants: {
textColor: ['responsive', 'hover', 'focus', 'active', 'visited'],
borderColor: ['responsive', 'hover', 'focus', 'active', 'focus-within'],
borderRadius: ['responsive', 'hover', 'first', 'last'],
boxShadow: ['responsive', 'hover', 'focus', 'active', 'group-hover'],
borderStyle: ['responsive', 'hover', 'first', 'last'],
borderWidth: ['responsive', 'last', 'hover', 'focus'],
},
plugins: [
require('@bytefury/spacewind/plugin'),
plugin(({ config, addBase }) => {
let craterDefaultTypography = {
fontFamily: config('theme.fontFamily.base'),
}
addBase({
'.h1': {
...craterDefaultTypography,
},
'.h2': {
...craterDefaultTypography,
},
'.h3': {
...craterDefaultTypography,
},
'.h4': {
...craterDefaultTypography,
},
'.h5': {
...craterDefaultTypography,
},
'.h6': {
...craterDefaultTypography,
},
'.page-title': {
...craterDefaultTypography,
},
'.section-title': {
...craterDefaultTypography,
},
})
}),
],
}