2022-11-21 11:10:04 +01:00
|
|
|
const defaultTheme = require('tailwindcss/defaultTheme')
|
|
|
|
|
2022-12-08 23:55:01 +01:00
|
|
|
const execSync = require('child_process').execSync;
|
2022-12-25 22:32:34 +01:00
|
|
|
const output = execSync('bundle show merged', { encoding: 'utf-8' });
|
2023-01-29 16:04:22 +01:00
|
|
|
const fullname = output.trim() + '/**/*.{haml,html,rb}' ;
|
2022-12-25 22:32:34 +01:00
|
|
|
|
|
|
|
const output2 = execSync('bundle show simple_form_tailwind_css', { encoding: 'utf-8' });
|
|
|
|
const fullname2 = output2.trim() + '/lib/**/*.rb' ;
|
2022-12-08 23:55:01 +01:00
|
|
|
|
2022-11-21 11:10:04 +01:00
|
|
|
module.exports = {
|
|
|
|
content: [
|
|
|
|
'./public/*.html',
|
|
|
|
'./app/helpers/**/*.rb',
|
2023-01-23 23:22:29 +01:00
|
|
|
'./config/initializers/**/*.rb',
|
2022-11-21 11:10:04 +01:00
|
|
|
'./app/javascript/**/*.js',
|
2022-11-29 00:13:46 +01:00
|
|
|
'./app/views/**/*.{erb,haml,html,slim}' ,
|
2022-12-25 22:32:34 +01:00
|
|
|
fullname , fullname2
|
2022-11-21 11:10:04 +01:00
|
|
|
],
|
|
|
|
theme: {
|
|
|
|
extend: {
|
|
|
|
fontFamily: {
|
|
|
|
sans: ['Inter var', ...defaultTheme.fontFamily.sans],
|
|
|
|
},
|
2023-01-04 22:51:53 +01:00
|
|
|
typography: ({ theme }) => ({
|
|
|
|
inherit: {
|
|
|
|
css: {
|
|
|
|
'--tw-prose-body': 'inherit' ,
|
|
|
|
'--tw-prose-headings': 'inherit',
|
|
|
|
'--tw-prose-lead': 'inherit' ,
|
|
|
|
'--tw-prose-links': 'inherit' ,
|
|
|
|
'--tw-prose-bold': 'inherit' ,
|
|
|
|
'--tw-prose-counters': 'inherit' ,
|
|
|
|
'--tw-prose-bullets': 'inherit' ,
|
|
|
|
'--tw-prose-hr': 'inherit' ,
|
|
|
|
'--tw-prose-quotes': 'inherit' ,
|
|
|
|
'--tw-prose-quote-borders': 'inherit' ,
|
|
|
|
'--tw-prose-captions': 'inherit' ,
|
|
|
|
'--tw-prose-code': 'inherit' ,
|
|
|
|
'--tw-prose-pre-code': 'inherit' ,
|
|
|
|
'--tw-prose-pre-bg': 'inherit' ,
|
|
|
|
'--tw-prose-th-borders': 'inherit' ,
|
|
|
|
'--tw-prose-td-borders': 'inherit' ,
|
|
|
|
'--tw-prose-invert-body': 'inherit' ,
|
|
|
|
'--tw-prose-invert-headings': 'inherit',
|
|
|
|
'--tw-prose-invert-lead': 'inherit' ,
|
|
|
|
'--tw-prose-invert-links': 'inherit',
|
|
|
|
'--tw-prose-invert-bold': 'inherit',
|
|
|
|
'--tw-prose-invert-counters': 'inherit' ,
|
|
|
|
'--tw-prose-invert-bullets': 'inherit' ,
|
|
|
|
'--tw-prose-invert-hr': 'inherit' ,
|
|
|
|
'--tw-prose-invert-quotes': 'inherit' ,
|
|
|
|
'--tw-prose-invert-quote-borders': 'inherit' ,
|
|
|
|
'--tw-prose-invert-captions': 'inherit' ,
|
|
|
|
'--tw-prose-invert-code': 'inherit',
|
|
|
|
'--tw-prose-invert-pre-code': 'inherit' ,
|
|
|
|
'--tw-prose-invert-pre-bg': 'inherit',
|
|
|
|
'--tw-prose-invert-th-borders': 'inherit' ,
|
|
|
|
'--tw-prose-invert-td-borders': 'inherit' ,
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}),
|
2022-11-21 11:10:04 +01:00
|
|
|
},
|
|
|
|
},
|
|
|
|
plugins: [
|
|
|
|
require('@tailwindcss/forms'),
|
|
|
|
require('@tailwindcss/aspect-ratio'),
|
|
|
|
require('@tailwindcss/typography'),
|
|
|
|
]
|
|
|
|
}
|