= ({
+ text,
+ size = 48,
+ color,
+ showPercentageSymbol = true,
+ font = {},
+}) => {
+ const defaultColors = {
+ low: (col.orange as ColorSet)["300"],
+ mid: (col.yellow as ColorSet)["300"],
+ high: (col.green as ColorSet)["300"],
+ };
+
+ const defaultFont = {
+ family: "DM Sans",
+ weight: "400",
+ size: "16px",
+ lineHeight: "24px",
+ color: col.black,
+ };
+
+ const usedFont = { ...defaultFont, ...font };
+
+ const getColor = (text: number) => {
+ if (color) return color;
+ if (text <= 30) {
+ return defaultColors.low;
+ } else if (text < 60) {
+ return defaultColors.mid;
+ } else {
+ return defaultColors.high;
+ }
+ };
+
+ return (
+
+ {`${text}${showPercentageSymbol ? "%" : ""}`}
+
+ );
+};
diff --git a/src/primitives/Indicators/index.ts b/src/primitives/Indicators/index.ts
new file mode 100644
index 0000000..19f811f
--- /dev/null
+++ b/src/primitives/Indicators/index.ts
@@ -0,0 +1 @@
+// export * from "./CircleStat/CircleStat";
diff --git a/src/tokens/colors.ts b/src/tokens/colors.ts
index be6f5fa..727c1e0 100644
--- a/src/tokens/colors.ts
+++ b/src/tokens/colors.ts
@@ -8,4 +8,13 @@ export const colors: Colors = {
},
white: "#ffffff",
black: "#000000",
+ yellow: {
+ "300": "#ffea7d",
+ },
+ orange: {
+ "300": "#ff9776",
+ },
+ green: {
+ "300": "#c4f092",
+ },
};