lollms-webui/web/tailwind.config.js

69 lines
2.2 KiB
JavaScript
Raw Normal View History

2023-05-02 20:53:27 +00:00
/** @type {import('tailwindcss').Config} */
module.exports = {
2023-05-25 09:44:13 +00:00
content: [
'./index.html',
'./src/**/*.{vue,js,ts,jsx,tsx}',
'node_modules/flowbite-vue/**/*.{js,jsx,ts,tsx}'
],
2023-08-23 02:21:58 +00:00
2023-05-25 09:44:13 +00:00
darkMode: 'class',
2023-05-02 20:53:27 +00:00
theme: {
extend: {
2023-05-25 09:44:13 +00:00
colors: {
2024-03-01 23:41:38 +00:00
'primary': 'var(--color-primary)',
'primary-light': 'var(--color-primary-light)',
'secondary': 'var(--color-secondary)',
'accent': 'var(--color-accent)',
2024-04-21 21:36:08 +00:00
'light-text-panel': 'var(--color-light-text-panel)',
2024-03-01 23:41:38 +00:00
'bg-light': 'var(--color-bg-light)',
'bg-light-tone': 'var(--color-bg-light-tone)',
2024-04-21 18:48:05 +00:00
'bg-light-panel': 'var(--color-bg-light-panel)',
2024-03-01 23:41:38 +00:00
'bg-light-code-block': 'var(--color-bg-light-code-block)',
'bg-light-tone-panel': 'var(--color-bg-light-tone-panel)',
'bg-light-discussion': 'var(--color-bg-light-discussion)',
2024-04-21 18:48:05 +00:00
'bg-light-discussion-odd': 'var(--color-bg-light-discussion-odd)',
2024-04-21 21:36:08 +00:00
'dark-text-panel': 'var(--color-dark-text-panel)',
2024-04-21 18:48:05 +00:00
'bg-dark': 'var(--color-bg-dark)',
'bg-dark-tone': 'var(--color-bg-dark-tone)',
'bg-dark-tone-panel': 'var(--color-bg-dark-tone-panel)',
'bg-dark-code-block': 'var(--color-bg-dark-code-block)',
'bg-dark-discussion': 'var(--color-bg-dark-discussion)',
'bg-dark-discussion-odd': 'var(--color-bg-dark-discussion-odd)'
2024-08-06 17:55:23 +00:00
},
2023-05-02 20:53:27 +00:00
fontFamily: {
2023-05-25 09:44:13 +00:00
sans: ['PTSans', 'Roboto', 'sans-serif']
2023-05-02 20:53:27 +00:00
},
container: {
2023-05-25 09:44:13 +00:00
padding: '2rem',
center: true
2024-08-06 17:55:23 +00:00
},
backgroundImage: {
'gradient-light': 'linear-gradient(to bottom right, var(--tw-gradient-stops))',
'gradient-dark': 'linear-gradient(to bottom right, var(--tw-gradient-stops))',
},
gradientColorStops: {
'light-start': '#e0eaff',
'light-end': '#f0e6ff',
'dark-start': '#0f2647',
'dark-end': '#1e1b4b',
},
2023-05-25 09:44:13 +00:00
}
2023-05-02 20:53:27 +00:00
},
2024-08-06 17:55:23 +00:00
plugins: [
require('flowbite/plugin'),
require('tailwind-scrollbar'),
function({ addBase, theme }) {
addBase({
'body': {
'@apply bg-gradient-light from-light-start to-light-end dark:bg-gradient-dark dark:from-dark-start dark:to-dark-end min-h-screen': {}
},
})
}
],
2023-08-23 02:21:58 +00:00
variants: {
h1: {
fontWeight: 'bold'
}
}
2023-05-02 20:53:27 +00:00
}