@payfit/unity-themes 2.68.6 → 2.68.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,8 +35,20 @@
35
35
  @import "@fontsource/source-serif-4/600.css";
36
36
  @import "@fontsource/source-serif-4/700.css";
37
37
  @import "@fontsource/roboto-mono";
38
- @import "./generated/proprietary-fonts.css";
39
38
  @import "tailwindcss" prefix(uy);
39
+ @font-face {
40
+ font-family: "Heartbreak Eighties";
41
+ src: url("./fonts/heartbreak-eighties/HeartbreakEighties-Regular.woff2") format("woff2");
42
+ font-style: normal;
43
+ font-weight: 400;
44
+ }
45
+
46
+ @font-face {
47
+ font-family: "Heartbreak Eighties";
48
+ src: url("./fonts/heartbreak-eighties/HeartbreakEighties-Oblique.woff2") format("woff2");
49
+ font-style: italic;
50
+ font-weight: 400;
51
+ }
40
52
 
41
53
  @layer base {
42
54
  :root,
@@ -0,0 +1,9 @@
1
+ import { FormatFnArguments } from 'style-dictionary/types';
2
+ export declare const name = "css/unity-proprietary-fonts";
3
+ /**
4
+ * Generates font rules for the public `css/unity.css` entry point.
5
+ *
6
+ * Font URLs must be relative to that entry point because consumer CSS tools may
7
+ * inline imports and lose the location of nested stylesheets.
8
+ */
9
+ export declare function proprietaryFontsFormat({ dictionary, }: FormatFnArguments): string;
@@ -0,0 +1,4 @@
1
+ /** Verifies that each local font URL emitted by Unity resolves inside dist. */
2
+ export declare function verifyFontUrls(css: string, cssPath: string, distPath: string, isFile: (filePath: string) => boolean): void;
3
+ /** Verifies that each local font URL resolves to a regular packaged file. */
4
+ export declare function verifyFontAssets(cssPath: string, distPath: string): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@payfit/unity-themes",
3
- "version": "2.68.6",
3
+ "version": "2.68.7",
4
4
  "main": "./dist/esm/index.js",
5
5
  "types": "./dist/esm/index.d.ts",
6
6
  "style": "./dist/css/unity.css",
@@ -1,11 +0,0 @@
1
- @font-face {
2
- font-family: "Heartbreak Eighties";
3
- src: url('../fonts/heartbreak-eighties/HeartbreakEighties-Regular.woff2') format('woff2');
4
- font-style: normal;
5
- font-weight: 400;
6
- },@font-face {
7
- font-family: "Heartbreak Eighties";
8
- src: url('../fonts/heartbreak-eighties/HeartbreakEighties-Oblique.woff2') format('woff2');
9
- font-style: italic;
10
- font-weight: 400;
11
- }