@wordpress/global-styles-ui
Version:
Global Styles UI components for WordPress.
26 lines (25 loc) • 720 B
JavaScript
import { _x } from "@wordpress/i18n";
// packages/global-styles-ui/src/font-library/utils/constants.ts
const ALLOWED_FILE_EXTENSIONS = [
"otf",
"ttf",
"woff",
"woff2"
];
const 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")
};
const FONT_STYLES = {
normal: _x("Normal", "font style"),
italic: _x("Italic", "font style")
};
export { ALLOWED_FILE_EXTENSIONS, FONT_STYLES, FONT_WEIGHTS };
//# sourceMappingURL=constants.mjs.map