Skip to content

Commit

Permalink
Fixed colors issues originating from tailwind config file
Browse files Browse the repository at this point in the history
  • Loading branch information
me3zaAKAgoat committed Mar 31, 2024
1 parent 98e5828 commit 936fea2
Showing 1 changed file with 20 additions and 26 deletions.
46 changes: 20 additions & 26 deletions frontend/tailwind.config.js
Original file line number Diff line number Diff line change
@@ -1,42 +1,36 @@
const colors = {
primary: '#0f0f0f',
'primary-content': '#c9c9c9',
secondary: '#181818',
'secondary-content': '#c9c9c9',
tertiary: '#242424',
'tertiary-content': '#c9c9c9',
quaternary: '#4a4a4a',
'quaternary-content': '#c9c9c9',
accent: '#8957e5',
'accent-content': '#0f0f0f',
neutral: '#3b3b3b',
info: '#67e8f9',
success: '#23a55a',
warning: '#fde047',
error: '#F23F43',
};

/** @type {import('tailwindcss').Config} */
export default {
content: ['./index.html', './src/**/*.{js,ts,jsx,tsx}'],
theme: {
extend: {
colors: {
primary: '#0f0f0f',
'primary-content': '#c9c9c9',
secondary: '#181818',
'secondary-content': '#c9c9c9',
tertiary: '#242424',
'tertiary-content': '#c9c9c9',
quaternary: '#4a4a4a',
'quaternary-content': '#c9c9c9',
accent: '#8957e5',
'accent-content': '#0f0f0f',
neutral: '#3b3b3b',
info: '#67e8f9',
success: '#307530',
warning: '#fde047',
error: '#F23F43',
...colors,
},
},
},
daisyui: {
themes: [
{
mytheme: {
primary: 'colors.primary',
'primary-content': 'colors.primary-content',
secondary: 'colors.secondary',
'secondary-content': 'colors.secondary-content',
accent: 'colors.accent',
'accent-content': 'colors.accent-content',
neutral: 'colors.neutral',
info: 'colors.info',
success: 'colors.success',
warning: 'colors.warning',
error: 'colors.error',
...colors,
},
},
],
Expand Down

0 comments on commit 936fea2

Please sign in to comment.