mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
Add breakpoint token helpers for media queries
This commit is contained in:
1 parent
8f687e2eb1
commit
06c3d9a978
4 files changed
+19
-4
No files matched your search
@@ -5,6 +5,7 @@ import {
|
||||
} from "./dynamicStyles.js";
|
||||
|
||||
const TOKEN_FALLBACKS = {
|
||||
"--breakpoint-lg": "64rem",
|
||||
"--grid-card-min-width": "20rem",
|
||||
"--popover-backdrop-blur": "12px",
|
||||
"--toast-translate": "0.75rem",
|
||||
@@ -180,6 +181,14 @@ export function getGridCardMinWidthPx(options = {}) {
|
||||
return readDesignTokenAsPixels("--grid-card-min-width", options);
|
||||
}
|
||||
|
||||
export function getBreakpointLg(options = {}) {
|
||||
return readDesignToken("--breakpoint-lg", options);
|
||||
}
|
||||
|
||||
export function getBreakpointLgPx(options = {}) {
|
||||
return readDesignTokenAsPixels("--breakpoint-lg", options);
|
||||
}
|
||||
|
||||
export function getPopoverBackdropBlur(options = {}) {
|
||||
return readDesignToken("--popover-backdrop-blur", options);
|
||||
}
|
||||
@@ -244,4 +253,3 @@ export const designMetrics = {
|
||||
};
|
||||
|
||||
export default designMetrics;
|
||||
|
||||
Reference in new issue
Block a user