@pontive/pontkit-core 3.2.0 → 3.4.0
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.
- package/catalog.json +1 -1
- package/dist/custom-elements.json +9762 -9762
- package/dist/globals.css +3 -3
- package/dist/styles.css +1113 -669
- package/dist/theme/fonts.d.ts +4 -2
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/scopes.d.ts +8 -0
- package/dist/theme/types.d.ts +9 -2
- package/dist/theme-golden.json +128 -79
- package/dist/theme.mjs +267 -211
- package/dist/theme.mjs.map +1 -1
- package/dist/tokens.json +1225 -784
- package/package.json +1 -1
package/dist/theme/fonts.d.ts
CHANGED
|
@@ -14,8 +14,10 @@
|
|
|
14
14
|
* spec was checked against fonts.googleapis.com (each must answer 200;
|
|
15
15
|
* requesting a weight or axis a family lacks is an error there).
|
|
16
16
|
*
|
|
17
|
-
* `bundled` families
|
|
18
|
-
*
|
|
17
|
+
* `bundled` families would be imported by pont's own styles.css, so a theme
|
|
18
|
+
* using them adds no import. None is today: styles.css imports no web font
|
|
19
|
+
* (pont's defaults are the system stacks in tokens/typography.css), so every
|
|
20
|
+
* catalogue family a theme names is imported by the compiled theme.
|
|
19
21
|
*/
|
|
20
22
|
export type FontCategory = "sans" | "serif" | "mono";
|
|
21
23
|
export interface FontEntry {
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export { applyTheme, linkTheme, type AppliedTheme, type ApplyOptions } from './a
|
|
|
17
17
|
export { compileTheme, ThemeError, themeFingerprint } from './compile';
|
|
18
18
|
export { defaultManifest } from './manifest';
|
|
19
19
|
export { FONT_CATALOG, familyNames, fontHref, fontsUsed, type FontCategory, type FontEntry } from './fonts';
|
|
20
|
-
export { THEME_SCOPES, TOKEN_ALIASES } from './scopes';
|
|
20
|
+
export { THEME_SCOPES, TOKEN_ALIASES, TOKEN_RETIRED } from './scopes';
|
|
21
21
|
export { importShadcnTheme, type ShadcnImport } from './shadcn';
|
|
22
22
|
export type * from './types';
|
|
23
23
|
export { checkValue, type ValueContext } from './value';
|
package/dist/theme/scopes.d.ts
CHANGED
|
@@ -11,3 +11,11 @@ export declare const THEME_SCOPES: Readonly<Record<string, string>>;
|
|
|
11
11
|
* deleting, so stored themes keep working.
|
|
12
12
|
*/
|
|
13
13
|
export declare const TOKEN_ALIASES: Readonly<Record<string, string>>;
|
|
14
|
+
/**
|
|
15
|
+
* Removed tokens with no successor, old name → the CSS value a reference to
|
|
16
|
+
* it becomes. A stored theme value `var(--pont-ref-font-geist)` keeps meaning
|
|
17
|
+
* Geist: it is rewritten to the family's stack, which compileTheme then
|
|
18
|
+
* imports from the font catalogue (fonts.ts). Like aliases, never just delete
|
|
19
|
+
* an entry.
|
|
20
|
+
*/
|
|
21
|
+
export declare const TOKEN_RETIRED: Readonly<Record<string, string>>;
|
package/dist/theme/types.d.ts
CHANGED
|
@@ -5,7 +5,9 @@ export type TokenType = "color" | "dimension" | "number" | "fontFamily" | "fontW
|
|
|
5
5
|
| "ratio"
|
|
6
6
|
/** A cursor (`sem-cursor-*` roles; the `ref-cursor-*` keywords are fixed): a CSS cursor keyword. */
|
|
7
7
|
| "cursor"
|
|
8
|
-
/**
|
|
8
|
+
/** A fixed value (CSS keywords and viewport units: `ref-dimension-size-full`, `-dvh` …, the `sem-dimension-*` defaults): read, never themed. */
|
|
9
|
+
| "fixed"
|
|
10
|
+
/** Motion structure (`*-motion-anim-*` names, iteration counts, shorthands; `*-motion-trans-property*` lists): fixed, never themed; theme the `-duration` / `-easing` tokens. */
|
|
9
11
|
| "animation"
|
|
10
12
|
/** A mode switch (`sem-mode-*`): follows the colour scheme, never themed. */
|
|
11
13
|
| "keyword";
|
|
@@ -54,8 +56,13 @@ export interface TokenManifest {
|
|
|
54
56
|
};
|
|
55
57
|
/** Theme scope name → the element it scopes (`signin` → `pont-signin`). */
|
|
56
58
|
scopes: Record<string, string>;
|
|
57
|
-
/** Renamed tokens: old name → new name. Themes using an old name are migrated. */
|
|
59
|
+
/** Renamed tokens: old name → new name. Themes using an old name, as a key or in a `var()`, are migrated. */
|
|
58
60
|
aliases: Record<string, string>;
|
|
61
|
+
/**
|
|
62
|
+
* Removed tokens with no successor: old name → the CSS value a `var()` of it
|
|
63
|
+
* becomes when a theme is migrated. Absent in manifests built before it existed.
|
|
64
|
+
*/
|
|
65
|
+
retired?: Record<string, string>;
|
|
59
66
|
/**
|
|
60
67
|
* The web fonts a theme may use (src/theme/fonts.ts): a fontFamily value
|
|
61
68
|
* naming one of these families makes compileTheme import it. Absent in
|