Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save edeoliv/af09c9aa8c2a1c9310fba7fc27fc7dbe to your computer and use it in GitHub Desktop.
Save edeoliv/af09c9aa8c2a1c9310fba7fc27fc7dbe to your computer and use it in GitHub Desktop.
THEME FILAMENT
@import '/vendor/filament/filament/resources/css/theme.css';
@config 'tailwind.config.js';
html:not(:has(.fi-topbar-with-navigation)) {
.fi-sidebar,
.fi-sidebar-header,
aside {
@apply !ring-0 !shadow-none;
}
.fi-topbar {
@apply relative;
nav {
@apply !shadow-none !ring-0;
&::-webkit-scrollbar {
@apply w-0;
}
}
}
&:not(.dark) {
.fi-sidebar {
@apply !bg-white !ring-1 !ring-gray-950/5;
}
.fi-sidebar-nav {
@apply !bg-white;
}
.fi-topbar nav {
@apply !bg-transparent;
}
.fi-modal-window {
@apply !bg-gray-50;
}
}
&.dark {
.fi-sidebar {
@apply !bg-gray-900 !ring-white/10;
}
.fi-topbar nav {
@apply !bg-gray-950;
}
.fi-modal-window {
@apply !bg-gray-950;
}
}
}
html {
&:not(.dark) {
body {
@apply !bg-gray-50;
}
.filepond--image-preview,
.filepond--item-panel {
@apply bg-gray-100;
}
}
&.dark {
.filepond--image-preview,
.filepond--item-panel {
@apply bg-gray-800;
}
}
}
[x-sortable-handle] button {
@apply cursor-grab active:cursor-grabbing;
}
.fi-section {
.fi-section-content-ctn {
@apply !border-none;
}
}
.button_sandbox {
@apply bg-orange-100 px-2 py-1 text-orange-600 border border-orange-600 rounded-md text-xs;
}
/* Quando usar um component Tabs dentro de um Builder, o Builder fica compacto */
.fi-fo-builder {
&[tabs] {
.fi-fo-builder-item {
.fi-fo-builder-item-content {
@apply !p-0;
.fi-fo-tabs {
@apply !ring-0 !rounded-t-none;
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment