ブランディング設定の継承

この機能はベータ版です。このベータ版に参加することにより、Beta Terms(ベータ版利用規約)に同意したものと見なされます。

ブランディングテーマの継承により、開発者は[設定]>[アカウントの既定値]>[ブランディング]タブに保存されているロゴ、ファビコン、色のオプションなどの情報を取得して、テーマフィールドのinherited_valueプロパティーと組み合わせて使用できます。

ブランド設定変数

現時点では、ブランディングテーマの継承で使用できるのはブランドカラーのみです。 

property_value_paths」オブジェクトの「値」で、[Brand Settings]エリアからアクセスできるオプションを以下に示します。

brand_settings.primaryColor

ブランド設定の[色]領域内に設定されている基本色。

これは「brand_settings.colors[0]」のエイリアスです。

基本ブランドカラーの位置
//Example of using the primary color in brand settings { "name": "branding_color", "label": "branding_color", "type": "color", "default": { "color": "#26ff55", "opacity": 60 }, "inherited_value": { "property_value_paths": { "color": "brand_settings.primaryColor" } } }

brand_settings.colors[ ]

ブランド設定の[色]領域内に設定されている追加の色。

追加のブランドカラーの位置
//Example of using additional colors in brand settings { "name": "secondary_branding_color", "label": "Secondary Branding color", "type": "color", "default": { "color": "#26ff55", "opacity": 60 }, "inherited_value": { "property_value_paths": { "color": "brand_settings.colors[3]" } } }

ブランド継承色の処理順序

アカウントの[ブランディング]タブ>[色]に、追加の色が設定されていない場合があります。コードによって参照される継承色が設定に存在しない場合(例:brand_settings.colors[3])、defaultプロパティーの値が代用されます。既定のプロパティーの色が設定されていない場合は、ブランド設定の基本色が代用されます(brand_settings.primaryColor)。


参考になりましたか?
こちらのフォームではドキュメントに関するご意見をご提供ください。HubSpotがご提供しているヘルプはこちらでご確認ください。