fadgram-ui
Version:
Fadgram UI is a Tailwind CSS plugin that provides a set of custom utility classes to enhance your web development experience. This plugin is designed to work seamlessly with Tailwind CSS, allowing you to quickly and easily style your web applications. ![F
111 lines (89 loc) • 1.91 kB
CSS
@utility alert {
@apply p-3 text-sm rounded-lg;
@apply text-gray-800 bg-gray-100 dark:bg-gray-700 dark:text-white;
&.alert-soft {
@apply bg-gray-50 text-gray-800 border border-gray-300;
}
&.alert-outline {
@apply bg-transparent dark:bg-transparent text-gray-800 border border-gray-600;
}
&.xxs,
&.alert-xxs {
@apply p-1.5 text-xxs;
}
&.xs,
&.alert-xs {
@apply p-2 text-xs;
}
&.sm,
&.alert-sm {
@apply p-2.5 text-sm;
}
&.lg,
&.alert-lg {
@apply p-3.5 text-lg;
}
&.xl,
&.alert-xl {
@apply p-4 text-xl;
}
&.xxl,
&.alert-xxl {
@apply p-5 text-2xl;
}
}
@utility alert-xxs {
@apply p-1.5 text-xxs;
}
@utility alert-xs {
@apply p-2 text-xs;
}
@utility alert-sm {
@apply p-2.5 text-sm;
}
@utility alert-lg {
@apply p-3.5 text-lg;
}
@utility alert-xl {
@apply p-4 text-xl;
}
@utility alert-xxl {
@apply p-5 text-2xl;
}
@utility alert-* {
color: --value(--color- * -50);
background-color: --value(--color- *);
@variant dark {
background-color: --value(--color- * -500);
}
&.alert-soft {
color: --value(--color- * -800);
background-color: --value(--color- * -50);
border-color: --value(--color- * -300);
}
&.alert-outline {
color: --value(--color- *);
border-color: --value(--color- *);
background: transparent;
@variant dark {
color: --value(--color- * -500);
border-color: --value(--color- * -500);
background: transparent;
}
}
}
@utility alert-outline-* {
color: --value(--color- *);
border-color: --value(--color- *);
background: transparent;
@variant dark {
color: --value(--color- * -500);
border-color: --value(--color- * -500);
background: transparent;
}
}
@utility alert-soft-* {
color: --value(--color- * -800);
background-color: --value(--color- * -50);
border-color: --value(--color- * -300);
}