@wordpress/global-styles-ui
Version:
Global Styles UI components for WordPress.
25 lines (24 loc) • 725 B
JavaScript
// packages/global-styles-ui/src/font-library/utils/constants.ts
import { _x } from "@wordpress/i18n";
var ALLOWED_FILE_EXTENSIONS = ["otf", "ttf", "woff", "woff2"];
var FONT_WEIGHTS = {
100: _x("Thin", "font weight"),
200: _x("Extra-light", "font weight"),
300: _x("Light", "font weight"),
400: _x("Normal", "font weight"),
500: _x("Medium", "font weight"),
600: _x("Semi-bold", "font weight"),
700: _x("Bold", "font weight"),
800: _x("Extra-bold", "font weight"),
900: _x("Black", "font weight")
};
var FONT_STYLES = {
normal: _x("Normal", "font style"),
italic: _x("Italic", "font style")
};
export {
ALLOWED_FILE_EXTENSIONS,
FONT_STYLES,
FONT_WEIGHTS
};
//# sourceMappingURL=constants.mjs.map