1.1
This commit is contained in:
parent
26070b72a8
commit
fdb3ba6cc4
File diff suppressed because one or more lines are too long
@ -103,3 +103,10 @@
|
||||
@apply text-pavitra-800;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/* Dark theme styles for widget charts */
|
||||
.dark .widget-chart {
|
||||
background-color: #21242A;
|
||||
color: #CBD5E1;
|
||||
}
|
||||
|
||||
@ -147,16 +147,7 @@ const Dashboard = () => {
|
||||
</div>
|
||||
)}
|
||||
|
||||
{rolesWidgets &&
|
||||
rolesWidgets.map((widget) => (
|
||||
<SmartWidget
|
||||
key={widget.id}
|
||||
userId={currentUser?.id}
|
||||
widget={widget}
|
||||
roleId={widgetsRole?.role?.value || ''}
|
||||
admin={hasPermission(currentUser, 'CREATE_ROLES')}
|
||||
/>
|
||||
))}
|
||||
{/* Widgets section removed */}
|
||||
</div>
|
||||
|
||||
{!!rolesWidgets.length && <hr className='my-6 ' />}
|
||||
|
||||
107
frontend/tailwind.config.js.temp
Normal file
107
frontend/tailwind.config.js.temp
Normal file
@ -0,0 +1,107 @@
|
||||
/* eslint-env node */
|
||||
darkMode: 'class',
|
||||
/* eslint-disable-next-line */
|
||||
const plugin = require('tailwindcss/plugin');
|
||||
|
||||
module.exports = {
|
||||
content: ['./src/**/*.{js,ts,jsx,tsx}'],
|
||||
darkMode: 'class', // or 'media' or 'class'
|
||||
theme: {
|
||||
asideScrollbars: {
|
||||
light: 'light',
|
||||
gray: 'gray',
|
||||
},
|
||||
extend: {
|
||||
zIndex: {
|
||||
'-1': '-1',
|
||||
},
|
||||
flexGrow: {
|
||||
5: '5',
|
||||
},
|
||||
maxHeight: {
|
||||
'screen-menu': 'calc(100vh - 3.5rem)',
|
||||
modal: 'calc(100vh - 160px)',
|
||||
},
|
||||
transitionProperty: {
|
||||
position: 'right, left, top, bottom, margin, padding',
|
||||
textColor: 'color',
|
||||
},
|
||||
keyframes: {
|
||||
'fade-out': {
|
||||
from: { opacity: 1 },
|
||||
to: { opacity: 0 },
|
||||
},
|
||||
'fade-in': {
|
||||
from: { opacity: 0 },
|
||||
to: { opacity: 1 },
|
||||
},
|
||||
},
|
||||
animation: {
|
||||
'fade-out': 'fade-out 250ms ease-in-out',
|
||||
'fade-in': 'fade-in 250ms ease-in-out',
|
||||
},
|
||||
colors: {
|
||||
dark: {
|
||||
900: '#131618',
|
||||
800: '#21242A',
|
||||
700: '#2C2F36',
|
||||
600: '#9CA3AF',
|
||||
500: '#CBD5E1',
|
||||
},
|
||||
green: {
|
||||
text: '#45B26B',
|
||||
},
|
||||
pavitra: {
|
||||
blue: '#0162FD',
|
||||
green: '#00B448',
|
||||
orange: '#FFAA00',
|
||||
red: '#F20041',
|
||||
900: '#14142A',
|
||||
800: '#4E4B66',
|
||||
700: '#6E7191',
|
||||
600: '#A0A3BD',
|
||||
500: '#D9DBE9',
|
||||
400: '#EFF0F6',
|
||||
300: '#F7F7FC',
|
||||
},
|
||||
},
|
||||
borderRadius: {
|
||||
'3xl': '2rem',
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
require('@tailwindcss/forms'),
|
||||
require('@tailwindcss/typography'),
|
||||
plugin(function ({ matchUtilities, theme }) {
|
||||
matchUtilities(
|
||||
{
|
||||
'aside-scrollbars': (value) => {
|
||||
const track = value === 'light' ? '100' : '900';
|
||||
const thumb = value === 'light' ? '300' : '600';
|
||||
const color = value === 'light' ? 'gray' : value;
|
||||
|
||||
return {
|
||||
scrollbarWidth: 'thin',
|
||||
scrollbarColor: `${theme(`colors.${color}.${thumb}`)} ${theme(
|
||||
`colors.${color}.${track}`,
|
||||
)}`,
|
||||
'&::-webkit-scrollbar': {
|
||||
width: '8px',
|
||||
height: '8px',
|
||||
},
|
||||
'&::-webkit-scrollbar-track': {
|
||||
backgroundColor: theme(`colors.${color}.${track}`),
|
||||
},
|
||||
'&::-webkit-scrollbar-thumb': {
|
||||
borderRadius: '0.25rem',
|
||||
backgroundColor: theme(`colors.${color}.${thumb}`),
|
||||
},
|
||||
};
|
||||
},
|
||||
},
|
||||
{ values: theme('asideScrollbars') },
|
||||
);
|
||||
}),
|
||||
],
|
||||
};
|
||||
Loading…
x
Reference in New Issue
Block a user