mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-17 17:00:15 +01:00
* feat: new dropdown * fix: maintain popover active when open * fix: update DeleteButton and ShareButton component to use useState for managing dialog state * BREAKING: style improvement of base Button component * style: update export button * a11y: ExportAndShareButton * add border * quick style fix * fix: flick issue on convo * fix: DropDown opens when renaming * chore: update radix-ui/react-dropdown-menu to latest * small fix * style: bookmarks update * reorder export modal * feat: imporved dropdowns * style: a lot of changes; header, bookmarks, export, nav, convo, convoOptions * fix: small style issues * fix: button * fix: bookmarks header menu * fix: dropdown close glitch * feat: Improve accessibility and keyboard navigation in ModelSpec component * fix: Nav related type issues * style: ConvoOptions theming and focus ring --------- Co-authored-by: Danny Avila <danny@librechat.ai>
93 lines
2.9 KiB
JavaScript
93 lines
2.9 KiB
JavaScript
// const { fontFamily } = require('tailwindcss/defaultTheme');
|
|
|
|
/** @type {import('tailwindcss').Config} */
|
|
module.exports = {
|
|
content: ['./src/**/*.{js,jsx,ts,tsx}'],
|
|
// darkMode: 'class',
|
|
darkMode: ['class'],
|
|
theme: {
|
|
fontFamily: {
|
|
sans: ['Inter', 'sans-serif'],
|
|
mono: ['Roboto Mono', 'monospace'],
|
|
},
|
|
// fontFamily: {
|
|
// sans: ['Söhne', 'sans-serif'],
|
|
// mono: ['Söhne Mono', 'monospace'],
|
|
// },
|
|
extend: {
|
|
width: {
|
|
authPageWidth: '370px',
|
|
},
|
|
keyframes: {
|
|
'accordion-down': {
|
|
from: { height: 0 },
|
|
to: { height: 'var(--radix-accordion-content-height)' },
|
|
},
|
|
'accordion-up': {
|
|
from: { height: 'var(--radix-accordion-content-height)' },
|
|
to: { height: 0 },
|
|
},
|
|
},
|
|
animation: {
|
|
'accordion-down': 'accordion-down 0.2s ease-out',
|
|
'accordion-up': 'accordion-up 0.2s ease-out',
|
|
},
|
|
colors: {
|
|
gray: {
|
|
20: '#ececf1',
|
|
50: '#f7f7f8',
|
|
100: '#ececec',
|
|
200: '#e3e3e3',
|
|
300: '#cdcdcd',
|
|
400: '#999696',
|
|
500: '#595959',
|
|
600: '#424242',
|
|
700: '#2f2f2f',
|
|
800: '#212121',
|
|
850: '#171717',
|
|
900: '#0d0d0d',
|
|
},
|
|
green: {
|
|
50: '#f1f9f7',
|
|
100: '#def2ed',
|
|
200: '#a6e5d6',
|
|
300: '#6dc8b9',
|
|
400: '#41a79d',
|
|
500: '#10a37f',
|
|
550: '#349072',
|
|
600: '#126e6b',
|
|
700: '#0a4f53',
|
|
800: '#06373e',
|
|
900: '#031f29',
|
|
},
|
|
'brand-purple': '#ab68ff',
|
|
'text-primary': 'var(--text-primary)',
|
|
'text-secondary': 'var(--text-secondary)',
|
|
'text-secondary-alt': 'var(--text-secondary-alt)',
|
|
'text-tertiary': 'var(--text-tertiary)',
|
|
'ring-primary': 'var(--ring-primary)',
|
|
'header-primary': 'var(--header-primary)',
|
|
'header-hover': 'var(--header-hover)',
|
|
'header-button-hover': 'var(--header-button-hover)',
|
|
'surface-active': 'var(--surface-active)',
|
|
'surface-hover': 'var(--surface-hover)',
|
|
'surface-primary': 'var(--surface-primary)',
|
|
'surface-primary-alt': 'var(--surface-primary-alt)',
|
|
'surface-primary-contrast': 'var(--surface-primary-contrast)',
|
|
'surface-secondary': 'var(--surface-secondary)',
|
|
'surface-tertiary': 'var(--surface-tertiary)',
|
|
'surface-tertiary-alt': 'var(--surface-tertiary-alt)',
|
|
'border-light': 'var(--border-light)',
|
|
'border-medium': 'var(--border-medium)',
|
|
'border-medium-alt': 'var(--border-medium-alt)',
|
|
'border-heavy': 'var(--border-heavy)',
|
|
'border-xheavy': 'var(--border-xheavy)',
|
|
},
|
|
},
|
|
},
|
|
plugins: [
|
|
require('tailwindcss-animate'),
|
|
require('tailwindcss-radix')(),
|
|
// require('@tailwindcss/typography'),
|
|
],
|
|
};
|