- Website Theme based on: Bootstrap 4, Tailwind - Web Page: Page Builder - Web Template: Create templates for web pages - Added some common Web Templates - Components: Standard components directly usable in Jinja - Purge Tailwind Classes in Production - PostCSS Config to support tailwind
75 lines
1.5 KiB
JavaScript
75 lines
1.5 KiB
JavaScript
const defaultTheme = require('tailwindcss/defaultTheme');
|
|
const plugin = require('tailwindcss/plugin');
|
|
|
|
module.exports = {
|
|
theme: {
|
|
extend: {
|
|
fontFamily: {
|
|
sans: ['Inter var', ...defaultTheme.fontFamily.sans]
|
|
},
|
|
colors: {
|
|
black: '#112B42',
|
|
blue: {
|
|
'50': '#f4f9ff',
|
|
'100': '#E8F4FD',
|
|
'200': '#BDDDFA',
|
|
'300': '#88C3F6',
|
|
'400': '#54A8F2',
|
|
'500': '#2490EF',
|
|
'600': '#107CDB',
|
|
'700': '#0D66B5',
|
|
'800': '#0A518F',
|
|
'900': '#083B69'
|
|
},
|
|
gray: {
|
|
'100': '#f4f4f6',
|
|
'200': '#e9ebed',
|
|
'300': '#dfe1e2',
|
|
'400': '#cccfd1',
|
|
'500': '#b7bfc6',
|
|
'600': '#a1abb4',
|
|
'700': '#9fa5a8',
|
|
'800': '#7f878a',
|
|
'900': '#415668'
|
|
},
|
|
code: {
|
|
green: '#b5f4a5',
|
|
yellow: '#ffe484',
|
|
purple: '#d9a9ff',
|
|
red: '#ff8383',
|
|
blue: '#93ddfd',
|
|
white: '#fff'
|
|
}
|
|
},
|
|
borderRadius: {
|
|
'xl': '0.75rem'
|
|
},
|
|
container: {
|
|
center: true,
|
|
padding: '1.25rem'
|
|
},
|
|
screens: {
|
|
'xl': '1120px',
|
|
},
|
|
important: true
|
|
}
|
|
},
|
|
variants: {},
|
|
plugins: [
|
|
require('@tailwindcss/ui'),
|
|
plugin(function({ addUtilities, e, theme, variants }) {
|
|
let utilities = {};
|
|
Object.entries(theme('padding')).map(([modifier, size]) => {
|
|
utilities[`.${e(`space-y-${modifier}`)} > * + *`] = {
|
|
marginTop: `${size}`
|
|
};
|
|
utilities[`.${e(`space-x-${modifier}`)} > * + *`] = {
|
|
marginLeft: `${size}`
|
|
};
|
|
});
|
|
addUtilities(utilities, {
|
|
variants: variants('padding')
|
|
});
|
|
})
|
|
]
|
|
};
|