- Print
- DarkLight
- PDF
Layout
- Print
- DarkLight
- PDF
The layout feature empowers you to personalize the appearance of your Rocket.Chat workspace. This includes defining content, applying custom CSS, and incorporating JavaScript, providing you with the means to tailor your workspace's visual aspects.
To access this setting, go to Administration > Workspace > Settings > Layout.
Remember to Save changes to apply any customization made.
Colors
This section has color settings and definitions you can edit or customize to give your UI elements a different look.
Colors can be set using existing Expressions or Color by specifying them from the color picker provided.
Old Colors
A list of pre-defined color variables for old versions of Rocket.Chat (<6.0) can be found here.
Custom CSS
You can define custom CSS to modify your workspace's appearance.
Example
The following CSS code snippet changes the color of your Rocket.Chat rooms and the hover color on the sidebar.
.rcx-content--main {
--rcx-color-surface-room: #5d91f7;
}
.rcx-sidebar--main {
--rcx-color-surface-hover: #e07c41;
}
To learn more about the available classes and colors for easy customization in Rocket.Chat, you can refer to the Customizing Colors guide.
Custom scripts
Custom Scripts allow you to execute JavaScript code in response to specific events in the workspace.
Custom Script for Logout Flow: Set a script to be executed during any logout process.
Custom Script for Logged Out Users: Define a custom script that will run ALWAYS and for ANY user who is NOT logged in, for example, when they access the login page.
Custom Script for Logged In Users: Set a custom script that will run ALWAYS and for ANY user who is logged in. For example, whenever they enter the chat, they'll be logged in.
Example
Setting a custom script for logged-in users, as demonstrated in the example below, will trigger a "Welcome" alert when a user logs in and is on the /home
page.
if(window.location.pathname == '/home'){
alert("Welcome")
}
Home page content
The section allows you to change the content of your workspace homepage.
Home Title: The title on the header of the first screen that your users will see when they log in.
Show home page button on sidebar header: When enabled, the Home button will be shown on your server's navbar.
Content block: The content of the first screen that your users will see when logging in.
Show custom content to homepage: Enable to show custom content on the homepage.
Show custom content only: Turn this on to hide all other content blocks on the homepage.
The Show custom content to homepage settings is only available to workspaces on the enterprise plan. Show custom content only can be enabled only when Show custom content to homepage is enabled.
Terms of Service: Set the terms of service of your workspace. You can also redirect to
YOUR-SERVER-URL/terms-of-service
. This is shown by default on the links below your login page.Login Terms: Specify the terms on which users are to accept before logging in.
Privacy Policy: Set your server's privacy policy. It can also be accessed via
YOUR-SERVER-URL/privacy-policy
. This is shown by default on the links below your login page.Legal Notice: By default, this screen is accessed on the links under the login page; here, you can set the legal notice of your server. It can also be accessed via
YOUR-SERVER-URL/legal-notice
.Side navigation footer: This is the logo or text on the bottom left of the sidebar. For better consistency, we recommend using the images set on your Assets.
Login
Customize your login page.
All the login settings except "Show Default Login Form" are only available to workspaces on the premium plan.
Hide Logo: Enable this to hide the Rocket.Chat.
Hide Title: Turn this on to hide the title on the login page.
Hide "Powered by": Enabling this hides the "Powered by" on the login page.
Login Template: Select the direction of the login page.
Horizontal
/Vertical
.Show Default Login Form: Enable to show the default login form.
User interface
Display Roles: Toggles the display of user roles shown beside the usernames on messages.
Group Channels By Type: Enabling this separates the channels by category (Channel, Private Room, Direct Message, or Discussion) on the left sidebar.
Use Full Name Initials to Generate Default Avatar: This setting changes default avatars to use the user's full name instead of username. For example, if the username is "blue.ducks" and the name is "Richards Nate", t” the default avatar displays "BD" by default. With this setting enabled, it displays "RN" instead.
Use Real Name: Enabling this changes the display of usernames to full names.
Click to Create Direct Message: Turn this on so that workspace users can create a direct message with another user when they click on their profile. This skips viewing the user's profile.
Number of users' autocomplete suggestions: Sets the number of autocomplete suggestions shown when you begin tagging any user with the
@
symbol.Unread Counter Style:
Different Style for user mentions: Makes the notification counter differentiate normal messages from mentions.
Same style for mentions: Makes the count mark mentions and normal messages the same.
Allow Special Characters in Room Names: When enabled, it allows for using special characters like
! @ # $ % ^ & *
in room names. This setting does not affect the room display name.Show top navbar in embedded layout: When enabled, show the top navigation bar in an embedded layout.