* refactor: replace HeroUI Alert with shadcn Alert component Replace HeroUI Alert component with a new custom Alert component in CheckpointError. The new component provides better control over styling and behavior, removes the dismiss functionality from CheckpointError, and uses a cleaner structure with AlertTitle and AlertDescription. This change improves consistency with the UI design system and simplifies the error display logic. * Add storybook for TaskHeader with CheckpointError * clean up
65 lines
1.4 KiB
CSS
65 lines
1.4 KiB
CSS
/* Import external CSS files */
|
|
@import url("../../node_modules/@vscode/codicons/dist/codicon.css");
|
|
@import url("../node_modules/@fontsource/azeret-mono/index.css");
|
|
|
|
/* Tailwind CSS */
|
|
@import "tailwindcss";
|
|
@import "./theme.css";
|
|
@plugin "tailwindcss-animate";
|
|
@custom-variant dark (&:is(.dark *));
|
|
|
|
/**
|
|
* The default styles for each defined element.
|
|
* This ensures all the elements are rendered with the expected styles consistently without affecting by the parent element / host.
|
|
*/
|
|
@layer base {
|
|
* {
|
|
@apply border-border outline-ring/50 text-base;
|
|
}
|
|
body {
|
|
@apply bg-background text-foreground;
|
|
}
|
|
p {
|
|
@apply my-0 py-0 text-inherit leading-5 block line-clamp-3;
|
|
margin-block-start: 1em;
|
|
margin-block-end: 1em;
|
|
margin-inline-start: 0px;
|
|
margin-inline-end: 0px;
|
|
unicode-bidi: isolate;
|
|
}
|
|
span {
|
|
@apply leading-5;
|
|
font-size: inherit;
|
|
color: inherit;
|
|
}
|
|
h1 {
|
|
font-size: var(--text-lg);
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
h2 {
|
|
font-size: var(--text-md);
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
h3 {
|
|
font-size: var(--text-sm);
|
|
font-weight: var(--font-weight-semibold);
|
|
}
|
|
h4 {
|
|
font-size: var(--text-base);
|
|
font-weight: var(--font-weight-bold);
|
|
}
|
|
a {
|
|
@apply text-link hover:text-link-hover;
|
|
}
|
|
ol {
|
|
@apply list-decimal pl-3;
|
|
}
|
|
ul {
|
|
@apply list-disc pl-3;
|
|
}
|
|
[role="radio"],
|
|
[role="checkbox"] {
|
|
margin: calc(var(--design-unit) * 1px) 0;
|
|
}
|
|
}
|