| title | Customize Branding in Developer Portal |
|---|---|
| description | How to customize branding in developer portal |
| sidebarTitle | Branding |
In this section we will explain how to apply your branding (styling - CSS) on the portal elements with your own colors and logo within minutes.
Prerequisites
- A Tyk Self-Managed installation
- A login for the portal admin app
- Access to your Tyk portal file system
-
Access the file directory for the Developer portal
-
The default logo is located in
/themes/default/assets/images/and is calleddev-portal-logo.svg. -
Replace the default image with your own, keeping the same file name and in
If you want to use different naming, path reference or extension, the code is `.svgformat, ensuring thatxmlns="http://www.w3.org/2000/svg"is included within your<svg>tag.` and is found on line 6 from the `/themes/default/partials/footer.tmpl` template.
Let’s now explain how to manage borders and change the colors of buttons, texts and backgrounds. The file we’ll be looking at is /themes/default/assets/stylesheets/main.css which contains some CSS variables that are used throughout the app. Let’s take a closer look.
You can apply some changes in the portal based on your preferences. For example, you can change the navigation background color, the text color and the different button theme colors. Furthermore, you can change table border color and radius.
If you want to change the navigation background color you need to edit the variable called --tdp-nav-bg-color Similarly other variables as you can see where/how each one is used:
--tdp-nav-bg-colornavigation background color--tdp-body-bg-colorApp background color
--tdp-text-colordefault text color--tdp-link-colorlinks (anchor tags)--tdp-nav-link-colornavigation links
--tdp-card-border-radiusCard component--tdp-border-color-on-errorinput color if there’s an error--tdp-table-border-colortable--tdp-border-radiusradius--tdp-primary-border formelements (such as<input>and<select>) if active--tdp-form-element-borderform elements (such as<input>and<select>)
Buttons have four different concepts and each one of them has two or more variables:
Primary
--tdp-primary-btn-colorbackground color--tdp-primary-btn-borderborder color
Secondary
--tdp-secondary-btn-colorbackground color--tdp-secondary-btn-borderborder color
Danger
--tdp-danger-btn-colorbackground color--tdp-danger-btn-borderborder color--tdp-danger-outline-btn-borderborder color of the outline variation
Warning
--tdp-warning-btn-colorbackground color--tdp-warning-btn-borderborder color--tdp-warning-outline-btn-borderborder color of the outline variation



