frontend client for gemstone. decentralised workplace app

refactor: use strings instead of numbers

serenity 48d6e071 b66a1a95

Changed files
+19 -19
src
lib
facet
+19 -19
src/lib/facet/src/typography.ts
···
};
export interface FacetFontWeights {
-
thin: number;
-
extralight: number;
-
light: number;
-
normal: number;
-
medium: number;
-
semibold: number;
-
bold: number;
-
extrabold: number;
-
black: number;
}
const DEFAULT_FONT_WEIGHTS: FacetFontWeights = {
-
thin: 100,
-
extralight: 200,
-
light: 300,
-
normal: 400,
-
medium: 500,
-
semibold: 600,
-
bold: 700,
-
extrabold: 800,
-
black: 900,
};
export interface FacetLetterSpacings {
···
export interface TypographySemantic {
size: FacetFontSize;
style: string;
-
weight: number;
spacing: number;
}
···
};
export interface FacetFontWeights {
+
thin: string;
+
extralight: string;
+
light: string;
+
normal: string;
+
medium: string;
+
semibold: string;
+
bold: string;
+
extrabold: string;
+
black: string;
}
const DEFAULT_FONT_WEIGHTS: FacetFontWeights = {
+
thin: "100",
+
extralight: "200",
+
light: "300",
+
normal: "400",
+
medium: "500",
+
semibold: "600",
+
bold: "700",
+
extrabold: "800",
+
black: "900",
};
export interface FacetLetterSpacings {
···
export interface TypographySemantic {
size: FacetFontSize;
style: string;
+
weight: string;
spacing: number;
}