Merge pull request 'feat(ui): remove light typography weight' (#4991) from misc/fixes into main
Reviewed-on: https://git.clan.lol/clan/clan-core/pulls/4991
This commit is contained in:
@@ -17,7 +17,6 @@ export const SidebarSection = (props: SidebarSectionProps) => {
|
|||||||
hierarchy="label"
|
hierarchy="label"
|
||||||
size="xs"
|
size="xs"
|
||||||
family="mono"
|
family="mono"
|
||||||
weight="light"
|
|
||||||
transform="uppercase"
|
transform="uppercase"
|
||||||
color="tertiary"
|
color="tertiary"
|
||||||
inverted={true}
|
inverted={true}
|
||||||
|
|||||||
@@ -73,7 +73,6 @@ export function SidebarSectionForm<
|
|||||||
hierarchy="label"
|
hierarchy="label"
|
||||||
size="xs"
|
size="xs"
|
||||||
family="mono"
|
family="mono"
|
||||||
weight="light"
|
|
||||||
transform="uppercase"
|
transform="uppercase"
|
||||||
color="tertiary"
|
color="tertiary"
|
||||||
inverted
|
inverted
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
/* Body */
|
/* Body */
|
||||||
.typography {
|
.typography {
|
||||||
&.weight-light {
|
|
||||||
font-weight: 300;
|
|
||||||
}
|
|
||||||
|
|
||||||
&.weight-normal {
|
&.weight-normal {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { Color, fgClass } from "@/src/components/colors";
|
|||||||
|
|
||||||
export type Tag = "span" | "p" | "h1" | "h2" | "h3" | "h4" | "div";
|
export type Tag = "span" | "p" | "h1" | "h2" | "h3" | "h4" | "div";
|
||||||
export type Hierarchy = "body" | "title" | "headline" | "label" | "teaser";
|
export type Hierarchy = "body" | "title" | "headline" | "label" | "teaser";
|
||||||
export type Weight = "normal" | "medium" | "bold" | "light";
|
export type Weight = "normal" | "medium" | "bold";
|
||||||
export type Family = "regular" | "condensed" | "mono";
|
export type Family = "regular" | "condensed" | "mono";
|
||||||
export type Transform = "uppercase" | "lowercase" | "capitalize";
|
export type Transform = "uppercase" | "lowercase" | "capitalize";
|
||||||
|
|
||||||
@@ -87,7 +87,6 @@ const weightMap: Record<Weight, string> = {
|
|||||||
normal: "weight-normal",
|
normal: "weight-normal",
|
||||||
medium: "weight-medium",
|
medium: "weight-medium",
|
||||||
bold: "weight-bold",
|
bold: "weight-bold",
|
||||||
light: "weight-light",
|
|
||||||
};
|
};
|
||||||
|
|
||||||
interface _TypographyProps<H extends Hierarchy> {
|
interface _TypographyProps<H extends Hierarchy> {
|
||||||
|
|||||||
Reference in New Issue
Block a user