Technical implementation guide for dashboard components including GridStack (drag/resize), ECharts (charts), and Tailwind CSS (styling). Referenced by dashboard-builder skill. Do not use directly - use dashboard-builder instead.
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Une commande directe contourne le prompt de vérification. Examinez la source avant de l'exécuter.
Technical implementation guide for dashboard components including GridStack (drag/resize), ECharts (charts), and Tailwind CSS (styling). Referenced by dashboard-builder skill. Do not use directly - use dashboard-builder instead.
Dashboard Technical Stack
Technical specifications for GridStack, ECharts, and Tailwind CSS integration.
GridStack Configuration
Initialization
const grid = GridStack.init({
float: true, // Enable free positioningcellHeight: 80, // Height of each grid cell in pixelsdraggable: {
handle: '.card-title'// Only drag from title element
},
resizable: {
handles: 'se,sw,ne,nw,e,w,n,s'// All edges and corners
}
});
Adding Widgets
grid.addWidget({
w: 6, // Width in grid units (12 = full width)h: 4, // Height in grid unitsminW: 3,
: ,
:
});
Percentage heights (height: 100%) don't work reliably in dynamically-sized flex containers. Use absolute positioning on the ECharts div to ensure it fills the available space.
<pclass="text-sm text-gray-500">Drag titles to move • Drag corners to resize</p>
Tailwind CSS Usage
Responsive Classes
<!-- Container with responsive padding --><divclass="p-2 md:p-4 lg:p-6"><!-- Hide on mobile --><divclass="hidden md:block"><!-- Responsive text --><h1class="text-lg md:text-xl lg:text-2xl">
Brand Colors (from openhexa-branding)
<!-- Primary pink --><buttonclass="bg-[#ED4B82] hover:bg-[#BE185D] text-white"><!-- Primary blue --><aclass="text-[#4361EE] hover:text-[#3730A3]"><!-- Dark blue text --><pclass="text-[#1E3A5F]"><!-- Light pink background --><divclass="bg-[#FDF2F8]">