commit 0eeb66c7c2ea3592b896c38270aee53c0952dd2f
parent 80bdb0f49c9e4e66e4a427bb0a716da23692a987
Author: triesap <137732411+triesap@users.noreply.github.com>
Date: Fri, 4 Apr 2025 03:08:22 +0000
themes: add theme config
Diffstat:
2 files changed, 27 insertions(+), 0 deletions(-)
diff --git a/themes/src/config.ts b/themes/src/config.ts
@@ -0,0 +1,26 @@
+export const relative_dimensions = {
+ "7": "1.75rem",
+ "9": "2.25rem",
+ "11": "2.75rem",
+ "13": "3.25rem",
+ "14": "3.5rem",
+ "15": "3.75rem",
+ "17": "4.25rem",
+ "18": "4.5rem",
+ "19": "4.75rem",
+ "21": "5.25rem",
+ "22": "5.5rem",
+ "23": "5.75rem",
+ "25": "6.25rem",
+ "26": "6.5rem",
+ "27": "6.75rem",
+ "29": "7.25rem",
+ "30": "7.5rem",
+ "31": "7.75rem",
+ "33": "8.25rem",
+ "34": "8.5rem",
+ "35": "8.75rem",
+ "37": "9.25rem",
+ "38": "9.5rem",
+ "39": "9.75rem",
+} as const;
diff --git a/themes/src/index.ts b/themes/src/index.ts
@@ -1,4 +1,5 @@
export { theme_colors } from "./colors";
+export { relative_dimensions } from "./config";
export { themes } from "./theme";
export type { ColorMode, Theme, ThemeKey, ThemeLayer } from "./types";
export { parse_color_mode, parse_theme, parse_theme_key } from "./utils";