feat(WEB-304): remaning UI from design system primitives

This commit is contained in:
Simon Emanuelsson
2024-06-07 10:36:23 +02:00
parent 6737970f54
commit 7c4b8401e9
228 changed files with 3516 additions and 3237 deletions
@@ -9,6 +9,7 @@ export default function Title({
color,
hideEmpty = true,
level = "h1",
textAlign,
textTransform,
}: HeadingProps) {
if (hideEmpty && !children) {
@@ -18,6 +19,7 @@ export default function Title({
const classNames = headingVariants({
className,
color,
textAlign,
textTransform,
type: as ?? level,
})
@@ -76,6 +76,14 @@
text-transform: uppercase;
}
.center {
text-align: center;
}
.left {
text-align: left;
}
.burgundy {
color: var(--Scandic-Brand-Burgundy);
}
@@ -8,6 +8,10 @@ const config = {
burgundy: styles.burgundy,
pale: styles.pale,
},
textAlign: {
center: styles.center,
left: styles.left,
},
textTransform: {
regular: styles.regular,
uppercase: styles.uppercase,
@@ -23,6 +27,7 @@ const config = {
},
defaultVariants: {
color: "burgundy",
textAlign: "left",
textTransform: "uppercase",
type: "h1",
},