Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add default-spacing-sizes and default-font-sizes options for classic themes #62252

Merged
merged 11 commits into from
Jun 4, 2024
Prev Previous commit
Next Next commit
Update types
  • Loading branch information
ajlende committed Jun 3, 2024
commit 93e3a09f0a9865cf9ee1e50f9a9a20575d22c45b
10 changes: 10 additions & 0 deletions packages/core-data/src/entity-types/theme.ts
Original file line number Diff line number Diff line change
@@ -129,6 +129,10 @@ declare module './base-entity-records' {
* Custom font sizes if defined by the theme.
*/
'editor-font-sizes': boolean | FontSize[];
/**
* Custom spacing sizes if defined by the theme.
*/
'editor-spacing-sizes': boolean | SpacingSize[];
/**
* Custom gradient presets if defined by the theme.
*/
@@ -212,6 +216,12 @@ declare module './base-entity-records' {
slug: string;
}

export interface SpacingSize {
name: string;
size: number;
slug: string;
}

export interface GradientPreset {
name: string;
gradient: string;
Loading