4.6 KiB
White-Labeling a Project
The Directus App UX/UI is meant to be transparent, and uses "form follows function" as the guiding design principle. This allows the platform to be completely tailored to your branding, end-to-end.
Project Settings
- Navigate to Settings > Project Settings
- Configure any of the following branding fields
- Project Name — The name used at the top of the Navigation Bar and on the login/public pages
- Project URL — The URL when clicking the logo at the top of the Module Bar
- Project Color — The color used behind the logo at the top of the Module Bar, on the login/public pages, and for the browser's FavIcon
- Project Logo — A 40x40 pixel logo at the top of the Module Bar and on the login/public pages
::: tip Recommended Logo Styling The 40x40 pixel Project Logo is inset within the 64x64 pixel Project Color square. To avoid a "boxy" look, we recommend using a SVG or PNG logo with transparency. :::
::: tip Browser FavIcon & Title The project color and logo are also used to set the dynamic favicon, and the project title is used in the browser's title. This furthers the bespoke appearance of your platform and makes it easier to differentiate between different Directus projects. :::
Public Page Styling
In addition to the above options, you can also apply the following additional styling to your project's public pages.
- Public Foreground — An image shown on the right-side pane of public pages; max 400px width
- Public Background — An image displayed behind the above foreground image, shown full-bleed within the right-side pane of public pages
- Public Note — A helpful note displayed at the bottom of the right-side pane of public pages; supports markdown for rich-text formatting
::: tip Default Background Color When a Public Background image is not set, the right-side pane of public pages uses the Project Color instead. :::
Themes & Custom CSS
The Directus App has been developed with customization and extensibility in mind. Colors and styles referenced within the codebase all use CSS variables, and therefore it is easy to make comprehensive changes to the App styling.
- Themes — See the Light Theme or Dark Theme
- Typography — See the Fonts and Type Styles
- Variables — See the Global Variables
You can override any core CSS, including the above variables, directly within the App through project Settings.
- Navigate to Settings > Project Settings
- Scroll to the CSS Overrides field
- Enter any valid CSS
- Click the Save action button in the header
::: tip Action Styling The --primary variable (and its shades) control call-to-actions and all
other "Directus blue" elements within the App. While it may be tempting to override this variable
with your brand's color, please first review the following warnings:
- Avoid using yellow, orange, or red hues that give a sense of "danger"
- Avoid low-contrast colors like yellows, grays, etc, that might not be easily visible
- Avoid low-saturation colors like black, which might not properly highlight CTAs :::
API Reference
In addition to the static core docs, Directus also includes a Dynamic API Reference based on your project's schema. This includes tailored endpoint info for each collection within your data model, customizing the documentation to your specific project.