Custom CSS
Instructions and specific values to use or override.
Frends API Portal utilises shadowroot in its UI, requiring some small changes in how to override the styling with Custom CSS injection.
This article contains the instructions on how to target specific fields, as well as some of the variables and values that can be overridden. For your specific use-case, refer to the browser's developer tools to inspect the field you want to modify.
How to write your CSS
Each component exposes a set of CSS custom properties. Set them on the component you want to change:
frends-button {
--frends-button--background-color: #0b7285;
--frends-button--border-radius: 4px;
}To change every component at once, set the theme colors instead:
body {
--frends-accent-color: #0b7285;
}To change only some instances, add an attribute to the selector:
frends-text[tag="h1"] { --frends-text--color: #0b7285; }
frends-button[type="submit"] { --frends-button--background-color: #0b7285; }If a change has no effect
The portal already sets some of these properties itself, and those values win over a rule on body. Two things to try, in order:
Move the rule onto the component itself —
frends-button { … }rather thanbody { … }.Add
!important:
The components keep their internal markup private, so ordinary CSS rules, such as frends-button button { … }, may not reach inside them. Content you can see inside a component, such as an icon or a logo, can be styled directly:
Theme colors
Seven colors the whole portal is built from. Changing one updates every component that uses it. For the main background, button and accent colors, prefer the color settings on the same Look and Feel page — these properties cover everything else.
--frends-primary-color
#58696C
Main neutral color — borders, icons and muted text.
--frends-secondary-color
#6C6C6C
Secondary neutral color — disabled states and subtle surfaces.
--frends-accent-color
#6717FF
Accent color — selected items and focus outlines.
--frends-text-color-primary
#000000
Default text color.
--frends-text-color-inverse
#FFFFFF
Text color on dark or filled backgrounds.
--frends-success-color
#00DE80
Success color.
--frends-warning-color
#B20909
Error and warning color.
Each color also has lighter shades, used for hover states, backgrounds and borders. They are derived from the base color automatically, so you only need to set them if you want an exact value:
--frends-primary-color-2
#B3CBCB
--frends-primary-color-3
#D2E5E4
--frends-primary-color-4
#EDF5F4
--frends-primary-color-5
#F6FAF9
--frends-secondary-color-2
#CBCBCB
--frends-secondary-color-3
#E5E5E5
--frends-secondary-color-4
#F5F5F5
--frends-secondary-color-5
#FAFAFA
--frends-accent-color-2
#AA8DFA
--frends-accent-color-3
#D9CCFD
--frends-accent-color-4
#F5F2FE
--frends-success-color-2
#049372
--frends-warning-color-2
#AD1C3B
In the tables below, a default marked (approx.) is one of these derived shades — the exact value follows from the base color.
Elements
Button
Selector: frends-button
--frends-button--font-size
1.125rem
The font size of the button.
--frends-button--line-height
1.3125rem
The line height of the button.
--frends-button--color
#000000
The text color of the button.
--frends-button--background-color
#D2E5E4 (approx.)
The background color of the button.
--frends-button--height
2.5rem
The height of the button.
--frends-button--width
fit-content
The width of the button.
--frends-button--gap
0.625rem
The gap between elements inside the button.
--frends-button--margin
0
The margin around the button.
--frends-button--padding
0 1.5625rem 0 1.5625rem
The padding inside the button.
--frends-button--border
0
The border of the button.
--frends-button--border-radius
0.9375rem
The border radius of the button.
--frends-button--outline
0
The outline of the button.
--frends-button--outline-offset
0
The outline offset of the button.
--frends-button--svg--fill
#000000
The fill of icons inside the button.
--frends-button--svg--stroke
transparent
The stroke of icons inside the button.
--frends-button--hover--background-color
#B3CBCB (approx.)
The background color of the button on hover/focus.
--frends-button--hover--svg--fill
#000000
The fill of icons inside the button when the button is hovered.
--frends-button--hover--svg--stroke
transparent
The stroke of icons inside the button when the button is hovered.
--frends-button--active--border-radius
1.5625rem
The border radius of the button when active.
--frends-button--bordered--color
#000000
The text color of the bordered button.
--frends-button--bordered--background-color
#FFFFFF
The background color of the bordered button.
--frends-button--bordered--outline
0.125rem solid #D2E5E4 (approx.)
The outline of the bordered button.
--frends-button--bordered--outline-offset
-0.125rem
The outline offset of the bordered button.
--frends-button--bordered--hover--background-color
#D2E5E4 (approx.)
The background color of the bordered button on hover/focus.
--frends-button--disabled--color
#CBCBCB (approx.)
The text color of the disabled button.
--frends-button--disabled--background-color
#EDF5F4 (approx.)
The background color of the disabled button.
--frends-button--disabled--outline
none
The outline of the disabled button.
--frends-button--disabled--svg--fill
#B3CBCB (approx.)
The fill of icons inside the button when the button is disabled.
--frends-button--disabled--svg--stroke
transparent
The stroke of icons inside the button when the button is disabled.
Checkbox
Selector: frends-checkbox
--frends-checkbox--width
fit-content
The width of the container.
--frends-checkbox--height
auto
The height of the container.
--frends-checkbox--margin
0
The margin around the container.
--frends-checkbox--padding
0
The padding inside the container.
--frends-checkbox--display
flex
The display property of the container.
--frends-checkbox--align-items
center
The align-items property of the container.
--frends-checkbox--grid-template-columns
none
The grid-template-columns property of the container.
--frends-checkbox--gap
0.938rem
The gap between checkbox and label text.
--frends-checkbox--input--width
1.35rem
The width of the checkbox input.
--frends-checkbox--input--height
1.35rem
The height of the checkbox input.
--frends-checkbox--input--before--width
1rem
The width of the checkbox box.
--frends-checkbox--input--before--height
1rem
The height of the checkbox box.
--frends-checkbox--input--before--background-color
#FFFFFF
The background color of the checkbox box.
--frends-checkbox--input--before--border
0.188rem solid #CBCBCB (approx.)
The border of the checkbox box.
--frends-checkbox--input--before--border-radius
0.25rem
The border radius of the checkbox box.
--frends-checkbox--input--after--width
1.35rem
The width of the check mark.
--frends-checkbox--input--after--height
1.35rem
The height of the check mark.
--frends-checkbox--input--after--background-color
#58696C
The background color of the check mark.
--frends-checkbox--invalid--input--before--border-color
#B20909
The border color of the checkbox when in an invalid state.
--frends-checkbox--focus--input--outline
0.125rem solid #000000
The outline of the checkbox when focused.
--frends-checkbox--focus--input--outline-offset
0.125rem
The outline offset of the checkbox when focused.
--frends-checkbox--disabled--input--before--background-color
#F5F5F5 (approx.)
The background color of the checkbox box when disabled.
--frends-checkbox--disabled--input--after--background-color
#CBCBCB (approx.)
The background color of the check mark when disabled.
--frends-checkbox--input-radio--before--border-radius
50%
The border radius of the radio button circle.
--frends-checkbox--input-radio--before--clippath
circle(50%)
Shape of the dot inside a selected radio button.
--frends-checkbox--input-radio--checked--after--top
calc(50% - 0.313rem)
Vertical position of the dot inside a selected radio button.
--frends-checkbox--input-radio--checked--after--left
calc(50% - 0.313rem)
Horizontal position of the dot inside a selected radio button.
--frends-checkbox--input-radio--checked--after--width
0.625rem
Width of the dot inside a selected radio button.
--frends-checkbox--input-radio--checked--after--height
0.625rem
Height of the dot inside a selected radio button.
--frends-checkbox--label--font-family
'Gilroy'
Font family for label.
--frends-checkbox--label--font-size
1rem
The font size of the label text.
--frends-checkbox--label--line-height
1.188rem
The line height of the label text.
--frends-checkbox--label--color
#000000
The text color of the label text.
--frends-checkbox--error-text--font-family
'Gilroy-Medium'
Font family for error.
--frends-checkbox--error-text--gap
0.25rem
The gap above the error text.
--frends-checkbox--error-text--font-size
0.75rem
The font size of the error text.
--frends-checkbox--error-text--color
#B20909
The color of the error text.
Color picker
Selector: frends-color-picker
--frends-color-picker--width
fit-content
Width of the container.
--frends-color-picker--height
auto
Height of the container.
--frends-color-picker--margin
0
Outer margin of the container.
--frends-color-picker--padding
0
Inner padding of the container.
--frends-color-picker--label--font-family
'Gilroy-Medium'
Font family for label.
--frends-color-picker--label--font-size
1.125rem
Font size of the label.
--frends-color-picker--label--line-height
1.188rem
Line height of the label.
--frends-color-picker--label--color
#000000
Color of the label.
--frends-color-picker--input--width
4.938rem
Width of the input.
--frends-color-picker--input--height
2.5rem
Height of the input.
--frends-color-picker--input--padding
0.40rem 1.188rem 0 0
Padding of the input.
--frends-color-picker--input--margin
0
Margin of the input.
--frends-color-picker--color-watch--border-radius
1.25rem
Border radius of the color watch.
--frends-color-picker--color-watch--border
0.125rem solid #CBCBCB (approx.)
Border of the color watch.
--frends-color-picker--focus--color-watch--box-shadow
0 0 0.25rem 0 #B3CBCB (approx.)
Box shadow of the focused color watch.
--frends-color-picker--value-text--font-size
1.125rem
Font size of the value text.
--frends-color-picker--value-text--line-height
1.313rem
Line height of the value text.
--frends-color-picker--value-text--color
#000000
Color of the value text.
Dropdown
Selector: frends-dropdown
A few properties for category headings and the option list carry a dropdown-menu prefix. Use the names exactly as listed below.
--frends-dropdown--width
100%
The width of the dropdown container.
--frends-dropdown--height
auto
The height of the dropdown container.
--frends-dropdown--margin
0
The margin around the dropdown container.
--frends-dropdown--padding
0
The padding inside the dropdown container.
--frends-dropdown--gap
0.40rem
The gap inside the dropdown container.
--frends-dropdown--label--font-family
'Gilroy-Medium'
Font family for label.
--frends-dropdown--label--font-size
1.125rem
The font size of the dropdown label.
--frends-dropdown--label--line-height
1.188rem
The line height of the dropdown label.
--frends-dropdown--label--color
#000000
The text color of the dropdown label.
--frends-dropdown--toggle--position
not set
The position of the dropdown toggle button; no.
--frends-dropdown--toggle--right
not set
The right coordinate of the dropdown toggle button; no.
--frends-dropdown--toggle--width
not set
The width of the dropdown toggle; no.
--frends-dropdown--toggle--font-size
1rem
The font size of the dropdown toggle button.
--frends-dropdown--toggle--line-height
1.1875rem
The line height of the dropdown toggle button.
--frends-dropdown--toggle--gap
0.625rem
The gap between elements inside the toggle.
--frends-dropdown--toggle--margin
0
The margin of the dropdown toggle.
--frends-dropdown--toggle--padding
0.375rem 0.625rem 0.375rem 1rem
The padding of the dropdown toggle.
--frends-dropdown--toggle--background-color
#FFFFFF
The background color of the dropdown toggle.
--frends-dropdown--toggle--border
2px solid #CBCBCB (approx.)
The border of the dropdown toggle.
--frends-dropdown--toggle--border-radius
1.25rem
The border radius of the dropdown toggle.
--frends-dropdown--toggle--outline
0
The outline of the dropdown toggle.
--frends-dropdown--multi-value-container--gap
0.313rem
The gap between multiple values within the dropdown.
--frends-dropdown--multi-value--padding
0.188rem 0.625rem 0.188rem 1rem
The padding for each multi-value chip within the dropdown.
--frends-dropdown--multi-value--border-radius
1.25rem
The border radius for each multi-value chip within the dropdown.
--frends-dropdown--multi-value--color
#6717FF
The text color for each multi-value chip.
--frends-dropdown--multi-value--background-color
#F5F2FE (approx.)
The background color for each multi-value chip.
--frends-dropdown--multi-value-container--input--focus--width
0.313rem
The width of the input field when focused in a multi-value dropdown.
--frends-dropdown--multi-value-container--input--left-margin
0.25rem
The left margin of the input field in a multi-value dropdown.
--frends-dropdown--multi-value-container--input--has-value--width
max(25%, 200px)
The minimum width of the input field when it has value(s) in a multi-value dropdown.
--frends-dropdown--toggle--svg--min-width
1.5rem
The minimum width of the icon in the toggle.
--frends-dropdown--toggle--svg--fill
#000000
The fill color of the icon in the toggle.
--frends-dropdown--invalid--border-color
#B20909
The border color of the dropdown toggle when invalid.
--frends-dropdown--disabled--border-color
#FAFAFA (approx.)
The border color of the dropdown toggle when disabled.
--frends-dropdown--disabled--background-color
#FAFAFA (approx.)
The background color of the dropdown toggle when disabled.
--frends-dropdown--toggle--is-multi-value--padding
0.188rem 0.625rem 0.188rem 0.313rem
The padding of the dropdown toggle when multi-value chips are present.
--frends-dropdown--list--z-index
1000
The z-index of the dropdown list.
--frends-dropdown--list--width
100%
The width of the dropdown list.
--frends-dropdown--list--max-height
18.75rem
The max height of the dropdown list.
--frends-dropdown--list--margin
0
The margin of the dropdown list.
--frends-dropdown--list--padding
0.5rem 0
The padding inside the dropdown list.
--frends-dropdown--list--background-color
#FFFFFF
The background color of the dropdown list.
--frends-dropdown--list--border
0.0625rem solid #B3CBCB (approx.)
The border of the dropdown list.
--frends-dropdown--list--border-radius
0.375rem
The border radius of the dropdown list.
--frends-dropdown--list--box-shadow
0rem 0.5rem 0.5rem 0rem rgba(0,0,0,0.1)
The box shadow of the dropdown list.
--frends-dropdown--list--outline
0
The outline of the dropdown list.
--frends-dropdown--list--item--font-size
0.875rem
The font size of each item in the dropdown list.
--frends-dropdown--list--item--color
#000000
The text color of each item in the dropdown list.
--frends-dropdown--list--item--padding
0.375rem 3rem 0.375rem 1rem
The padding of each item in the dropdown list.
--frends-dropdown--list--item--outline
0
The outline of each item in the dropdown list.
--frends-dropdown--list--item--selected--color
#6717FF
The text color of a selected item in the dropdown list.
--frends-dropdown--list--item--selected--svg--fill
#6717FF
Color of the tick icon on the selected option.
--frends-dropdown--list--item--current--background-color
#F5F5F5 (approx.)
The background color of a current item in the dropdown list.
--frends-dropdown--list--item--no-options--color
#B3CBCB (approx.)
Text color of the "no options" message.
--frends-dropdown-menu--list--category--width
fit-content
The width of the category container in the dropdown list.
--frends-dropdown-menu--list--category--margin
0
The margin of the category container in the dropdown list.
--frends-dropdown-menu--list--category--padding
0
The padding of the category container in the dropdown list.
--frends-dropdown-menu--list--category--gap
0
The gap in the category container in the dropdown list.
--frends-dropdown-menu--list--category-name--font-size
0.75rem
The font size of the category name in the dropdown list.
--frends-dropdown-menu--list--category-name--line-height
0.875rem
The line height of the category name in the dropdown list.
--frends-dropdown-menu--list--category-name--letter-spacing
0.12rem
The letter spacing of the category name in the dropdown list.
--frends-dropdown-menu--list--category-name--color
#58696C
The color of the category name in the dropdown list.
--frends-dropdown--list--category-name--padding
0.375rem 3rem 0.375rem 1rem
The padding of the category name in the dropdown list.
--frends-dropdown--toggle--hover--box-shadow
0
The box shadow applied to the toggle when hovered.
--frends-dropdown--toggle--focus--box-shadow
0 0 0.25rem 0 #B3CBCB (approx.)
The box shadow applied to the toggle when focused.
--frends-dropdown--error-text--font-size
0.75rem
The font size of the error text.
--frends-dropdown--error-text--color
#B20909
The color of the error text.
Dropdown button
Selector: frends-dropdown-button
--frends-dropdown-button--font-family
'Gilroy-Medium'
Font family of the dropdown button and its menu.
--frends-dropdown-button--toggle--font-size
1.125rem
Font size of the toggle button.
--frends-dropdown-button--toggle--line-height
1.3125rem
Line height of the toggle button.
--frends-dropdown-button--toggle--color
#000000
Text color of the toggle button.
--frends-dropdown-button--toggle--height
2.5rem
Height of the toggle button.
--frends-dropdown-button--toggle--width
fit-content
Width of the toggle button.
--frends-dropdown-button--toggle--margin
0
Margin around the toggle button.
--frends-dropdown-button--toggle--padding
0 0.938rem 0 1.5625rem
Padding inside the toggle button.
--frends-dropdown-button--toggle--gap
0.625rem
Gap between elements in the toggle button.
--frends-dropdown-button--toggle--background-color
#FFFFFF
Background color of the toggle button.
--frends-dropdown-button--toggle--border
0
Border of the toggle button.
--frends-dropdown-button--toggle--border-radius
0.9375rem
Border radius of the toggle button.
--frends-dropdown-button--toggle--outline
0.125rem solid #D2E5E4 (approx.)
Outline of the toggle button.
--frends-dropdown-button--toggle--outline-offset
-0.125rem
Outline offset of the toggle button.
--frends-dropdown-button--toggle--icon-color
#000000
Color of the icon in the toggle button.
--frends-dropdown-button--toggle--hover-background-color
#D2E5E4 (approx.)
Background color of the toggle button on hover.
--frends-dropdown-button--toggle--active-border-radius
1.5625rem
Border radius of the toggle button when active.
--frends-dropdown-button--toggle--disabled-color
#B3CBCB (approx.)
Text color of the toggle button when disabled.
--frends-dropdown-button--toggle--disabled-background-color
#EDF5F4 (approx.)
Background color of the toggle button when disabled.
--frends-dropdown-button--toggle--disabled-outline
none
Outline of the toggle button when disabled.
--frends-dropdown-button--toggle--disabled-border-radius
0.9375rem
Border radius of the toggle button when disabled.
--frends-dropdown-button--menu--padding
0.5rem 0
Padding inside the dropdown menu.
--frends-dropdown-button--menu--background-color
#FFFFFF
Background color of the dropdown menu.
--frends-dropdown-button--menu--border
0.0625rem solid #B3CBCB (approx.)
Border of the dropdown menu.
--frends-dropdown-button--menu--border-radius
0.375rem
Border radius of the dropdown menu.
--frends-dropdown-button--menu--box-shadow
0rem 0.5rem 0.5rem 0rem rgba(0,0,0,0.1)
Box shadow of the dropdown menu.
--frends-dropdown-button--menu--outline
0
Outline of the dropdown menu.
--frends-dropdown-button--menu--offset
0.25rem
Offset of the dropdown menu from the toggle button.
--frends-dropdown-button--menu-item--font-size
0.875rem
Font size of the menu items.
--frends-dropdown-button--menu-item--padding
0.375rem 3rem 0.375rem 1rem
Padding inside the menu items.
--frends-dropdown-button--menu-item--outline
0
Outline of the menu items.
--frends-dropdown-button--menu-item--hover-background-color
#F5F5F5 (approx.)
Background color of menu items on hover.
--frends-dropdown-button--menu-item--disabled-color
#B3CBCB (approx.)
Color of disabled menu items.
--frends-dropdown-button--menu--divider--margin
0.313rem 0 0 0
Margin of menu item divider.
--frends-dropdown-button--menu--divider--background-color
#EDF5F4 (approx.)
Background color of menu divider.
Dropdown menu
Selector: frends-dropdown-menu
--frends-dropdown-menu--min-width
fit-content
The min width of the dropdown menu.
--frends-dropdown-menu--width
fit-content
The width of the dropdown menu.
--frends-dropdown-menu--height
auto
The height of the dropdown menu.
--frends-dropdown-menu--margin
0
The margin around the dropdown menu.
--frends-dropdown-menu--padding
0
The padding inside the dropdown menu.
--frends-dropdown-menu--toggle--gap
1.5rem
The gap between elements in the toggle button.
--frends-dropdown-menu--toggle--margin
0
The margin around the toggle button.
--frends-dropdown-menu--toggle--padding
0.375rem 0.6875rem 0.3125rem 0.813rem
The padding inside the toggle button.
--frends-dropdown-menu--toggle--background-color
transparent
The background color of the toggle button.
--frends-dropdown-menu--toggle--border
0
The border of the toggle button.
--frends-dropdown-menu--toggle--border-radius
0.375rem
The border radius of the toggle button.
--frends-dropdown-menu--toggle--outline
0
The outline of the toggle button.
--frends-dropdown-menu--toggle--svg--min-width
1.5rem
The minimum width of the icon in the toggle button.
--frends-dropdown-menu--list--z-index
2000
The z-index of the dropdown list.
--frends-dropdown-menu--list--margin
0
The margin around the dropdown list.
--frends-dropdown-menu--list--padding
0.5rem 0
The padding inside the dropdown list.
--frends-dropdown-menu--list--background-color
#FFFFFF
The background color of the dropdown list.
--frends-dropdown-menu--list--border
0.0625rem solid #B3CBCB (approx.)
The border of the dropdown list.
--frends-dropdown-menu--list--border-radius
0.375rem
The border radius of the dropdown list.
--frends-dropdown-menu--list--box-shadow
0rem 0.5rem 0.5rem 0rem rgba(0,0,0,0.1)
The box shadow of the dropdown list.
--frends-dropdown-menu--list--outline
0
The outline of the dropdown list.
--frends-dropdown-menu--list--category-title--font-size
0.75rem
The font size of category titles.
--frends-dropdown-menu--list--category-title--line-height
0.875rem
The line height of category titles.
--frends-dropdown-menu--list--category-title--letter-spacing
0.12rem
The letter spacing of category titles.
--frends-dropdown-menu--list--category-title--color
#58696C
The color of category titles.
--frends-dropdown-menu--list--item--font-size
0.875rem
The font size of list items.
--frends-dropdown-menu--list--item--line-height
1rem
The line height of list items.
--frends-dropdown-menu--list--item--padding
0.375rem 3rem 0.375rem 1rem
The padding of list items.
--frends-dropdown-menu--list--item--outline
0
The outline of list items.
--frends-dropdown-menu--list--item--selected--color
#6717FF
The color of selected list items.
--frends-dropdown-menu--list--item--current--background-color
#F5F5F5 (approx.)
The background color of the current list item.
--frends-dropdown-menu--list--item--divider--margin
0.313rem 0 0 0
The margin of the divider.
--frends-dropdown-menu--list--item--divider--background-color
#EDF5F4 (approx.)
The background color of the divider.
--frends-dropdown-menu--toggle--focus--box-shadow
0 0 0.25rem 0 #B3CBCB (approx.)
The box shadow of the toggle button when focused.
Menu bar
Selector: frends-menu-bar
--frends-menu-bar--margin
0
The margin around the navigation bar.
--frends-menu-bar--padding
0
The padding inside the navigation bar.
--frends-menu-bar--gap
0.5rem
The gap between child elements inside the navigation bar.
--frends-menu-bar--border-bottom
1px solid #D2E5E4 (approx.)
The bottom border of the navigation bar.
--frends-menu-bar--logo-links-container--margin
0
The margin around the logo and links container.
--frends-menu-bar--logo-links-container--margin-right
auto
The right margin of the logo and links container.
--frends-menu-bar--logo-links-container--padding
0.938rem 0
The padding inside the logo and links container.
--frends-menu-bar--logo-links-container--gap
0.5rem
The gap between logo and links in the container.
--frends-menu-bar--logo-links-container--link-list--margin
0 0 0 1rem
The margin around the links list in the logo links container.
--frends-menu-bar--logo-links-container--link-list--padding
0
The padding inside the links list in the logo links container.
--frends-menu-bar--logo-links-container--link-list--gap
0.5rem
The gap between links in the links list.
--frends-menu-bar--menu-container-padding
0 0 0 1.5rem
The padding of menu container.
Menu link
Selector: frends-menu-link
--frends-menu-link--icon--color
#58696C
Color of the icon.
--frends-menu-link--font-size
1rem
Font size of the link.
--frends-menu-link--line-height
1.188rem
Line height of the link.
--frends-menu-link--color
#000000
Text color of the link.
--frends-menu-link--background-color
transparent
Background color of the link.
--frends-menu-link--height
2.25rem
Height of the link.
--frends-menu-link--width
fit-content
Width of the link.
--frends-menu-link--gap
0.5rem
Gap between elements inside the link.
--frends-menu-link--margin
0
Margin around the link.
--frends-menu-link--padding
0 0.563rem 0 0.563rem
Padding inside the link.
--frends-menu-link--border
0
Border of the link.
--frends-menu-link--border-radius
0.438rem
Border radius of the link.
--frends-menu-link--outline
0
Outline of the link.
--frends-menu-link--outline-offset
0
Outline offset of the link.
--frends-menu-link--hover--background-color
rgba(88, 105, 108, 0.05)
Background color on hover/focus.
--frends-menu-link--selected--icon--color
#000000
Icon color when selected.
--frends-menu-link--selected--color
#000000
Text color when selected.
--frends-menu-link--selected--background-color
rgba(179, 203, 203, 0.3) (approx.)
Background color when selected.
--frends-menu-link--selected--hover--background-color
rgba(179, 203, 203, 0.4) (approx.)
Background color when selected and hovered/focused.
Modal
Selector: frends-modal
--frends-modal--padding
2rem
The padding inside the dialog.
--frends-modal--border
0
The border of the dialog.
--frends-modal--border-radius
1.563rem
The border radius of the dialog.
--frends-modal--box-shadow
0px 0.5rem 1.875rem 0px rgba(210, 229, 228, 0.5) (approx.)
The box shadow of the dialog.
--frends-modal--backdrop--background-color
rgba(88, 105, 108, 0.5)
The background color of the dialog backdrop.
--frends-modal--close-button--svg--color
#000000
Color of the close icon.
Radio group
Selector: frends-radio-group
The radio buttons themselves are checkboxes in radio mode, so use the Checkbox properties to style them — in particular the --frends-checkbox--input-radio--* ones. The group heading uses the Text properties.
--frends-radio-group--width
fit-content
The width of the radio group container.
--frends-radio-group--height
auto
The height of the radio group container.
--frends-radio-group--margin
0
The margin around the radio group container.
--frends-radio-group--padding
0
The padding inside the radio group container.
Table
Selector: frends-table
--frends-table--container--height
auto
The height of the container.
--frends-table--container--width
auto
The width of the container.
--frends-table--container--margin
0
The margin around the container.
--frends-table--container--padding
0
The padding inside the container.
--frends-table--container--border
0
The border of the container.
--frends-table--container--border-radius
0.938rem
The border radius of the container.
--frends-table--container--overflow-x
initial
The horizontal overflow behavior of the container.
--frends-table--container--overflow-y
initial
The vertical overflow behavior of the container.
--frends-table--border-collapse
separate
The border collapse behavior of the table.
--frends-table--border-spacing
0
The border spacing of the table.
--frends-table--width
100%
The width of the table.
--frends-table--background-color
transparent
The background color of the table.
--frends-table--border
1px solid #CBCBCB (approx.)
The border of the table.
--frends-table--border-radius
0.938rem
The border radius of the table.
--frends-table--overflow-x
initial
The horizontal overflow behavior of the table.
--frends-table--overflow-y
initial
The vertical overflow behavior of the table.
--frends-table--header--padding
1rem 0.688rem
The padding of the header cells.
--frends-table--header--text-align
left
The text alignment of the header cells.
--frends-table--header--font-family
'Gilroy-Medium', sans-serif
The font family of the header cells.
--frends-table--header--font-size
1.125rem
The font size of the header cells.
--frends-table--header--line-height
1.313rem
The line height of the header cells.
--frends-table--header--color
#000000
The text color of the header cells.
--frends-table--header--background-color
#FAFAFA (approx.)
The background color of the header cells.
--frends-table--header--border-bottom
1px solid #CBCBCB (approx.)
The bottom border of the header cells.
--frends-table--header--first-child--border-top-left-radius
0.938rem
The top-left border radius of the first header cell.
--frends-table--header--last-child--border-top-right-radius
0.938rem
The top-right border radius of the last header cell.
--frends-table--body--last-row--border-bottom
none
The bottom border of the last row cells.
--frends-table--body--last-row--first-child--border-bottom-left-radius
0.938rem
The bottom-left border radius of the first cell in the last row.
--frends-table--body--last-row--last-child--border-bottom-right-radius
0.938rem
The bottom-right border radius of the last cell in the last row.
--frends-table--body--padding
0.625rem 0.688rem
The padding of the body cells.
--frends-table--body--text-align
left
The text alignment of the body cells.
--frends-table--body--font-family
'Gilroy', sans-serif
The font family of the body cells.
--frends-table--body--font-size
1rem
The font size of the body cells.
--frends-table--body--line-height
1.188rem
The line height of the body cells.
--frends-table--body--border-bottom
1px solid #CBCBCB (approx.)
The bottom border of the body cells.
Tag
Selector: frends-tag
--frends-tag--font-family
'Gilroy-Medium'
Font family for label.
--frends-tag--font-size
1rem
Font size of the tag.
--frends-tag--line-height
1.188rem
Line height of the tag.
--frends-tag--color
#6717FF
Text color of the tag.
--frends-tag--background-color
#F5F2FE (approx.)
Background color of the tag.
--frends-tag--height
auto
Height of the tag.
--frends-tag--width
fit-content
Width of the tag.
--frends-tag--gap
0.625rem
Gap inside the tag.
--frends-tag--margin
0
Margin around the tag.
--frends-tag--padding
0.4rem 1rem
Padding inside the tag.
--frends-tag--border
0
Border of the tag.
--frends-tag--border-radius
1.25rem
Border radius of the tag.
--frends-tag--outline
0
Outline of the tag.
--frends-tag--outline-offset
0
Outline offset of the tag.
Text
Selector: frends-text
--frends-text--margin
0
The margin around the text element.
--frends-text--padding
0
The padding inside the text element.
--frends-text--border
0
The border of the text element.
--frends-text--outline
0
The outline of the text element.
--frends-text--line-height
initial
The line height of the text.
--frends-text--letter-spacing
initial
The letter spacing of the text.
--frends-text--background-color
transparent
The background color of the text element.
--frends-text--font-weight
normal
The font weight of the text.
--frends-text--text-align
left
The text alignment.
--frends-text--text-transform
none
The text transform property.
--frends-text--text-decoration
none
The text decoration property.
--frends-text--font-style
normal
The font style of the text.
--frends-text--word-spacing
normal
The word spacing of the text.
--frends-text--white-space
normal
The white space handling of the text.
--frends-text--text-overflow
clip
The text overflow handling.
--frends-text--max-width
none
The maximum width of the text element.
--frends-text--text-shadow
none
The text shadow of the text.
--frends-text--opacity
1
The opacity of the text element.
--frends-text--transition
none
The transition property for the text element.
--frends-text--font-family
inherited from the page
The font family of the text.
--frends-text--font-size
inherited from the page
The font size of the text.
--frends-text--color
inherited from the page
The color of the text.
Text input
Selector: frends-text-input
--frends-text-input--container--width
auto
Width of the input container.
--frends-text-input--container--height
auto
Height of the input container.
--frends-text-input--container--margin
0
Margin around the input container.
--frends-text-input--container--padding
0
Padding inside the input container.
--frends-text-input--gap
0.40rem
Gap between label and the input field, and before error text.
--frends-text-input--label--font-family
'Gilroy-Medium'
Font family for label.
--frends-text-input--label--font-size
1.125rem
Font size for label.
--frends-text-input--label--line-height
1.188rem
Line height for label.
--frends-text-input--label--color
#000000
Text color for label.
--frends-text-input--padding
0.563rem 0.625rem 0.5rem 1rem
Padding inside the the input field.
--frends-text-input--background-color
#FFFFFF
Background color of the input field.
--frends-text-input--border
2px solid #CBCBCB (approx.)
Border of the input field.
--frends-text-input--border-radius
1.25rem
Border radius of the input field.
--frends-text-input--font-size
1rem
Font size for input and textarea.
--frends-text-input--line-height
1.188rem
Line height for input and textarea.
--frends-text-input--color
#000000
Text color for input and textarea.
--frends-text-input--placeholder--color
#58696C
Color of the input field placeholder.
--frends-text-input--disabled--color
#6C6C6C
Text color when disabled.
--frends-text-input--focus--box-shadow
0 0 0.25rem 0 #B3CBCB (approx.)
Box shadow on focus.
--frends-text-input--invalid--border-color
#B20909
Border color when invalid.
--frends-text-input--read-only--border-color
transparent
Border color when readonly.
--frends-text-input--disabled--background-color
#FAFAFA (approx.)
Background color when disabled.
--frends-text-input--error-text--font-size
0.75rem
Font size of error text.
--frends-text-input--error-text--color
#B20909
Color of error text.
--frends-text-input--error-text--font-family
'Gilroy-Medium'
Font family for error text.
Toggle
Selector: frends-toggle
--frends-toggle--container--font-family
'Gilroy-Medium'
Font family the container.
--frends-toggle--container--display
flex
Display property of the container.
--frends-toggle--container--flex-direction
row
Flex direction of the container.
--frends-toggle--container--align-items
center
Align items property of the container.
--frends-toggle--container--justify-content
center
Justify content property of the container.
--frends-toggle--container--width
fit-content
The width of the container.
--frends-toggle--container--height
auto
The height of the container.
--frends-toggle--container--margin
0
The margin around the container.
--frends-toggle--container--padding
0
The padding inside the container.
--frends-toggle--container--gap
0.875rem
The gap between elements in the container.
--frends-toggle--label--font-family
'Gilroy-Medium' (follows --frends-toggle--container--font-family)
Font family the container.
--frends-toggle--label--font-size
1.125rem
Font size of the label.
--frends-toggle--label--line-height
1.188rem
Line height of the label.
--frends-toggle--label--color
#000000
Color of the label.
--frends-toggle--width
3.438rem
The width of the toggle.
--frends-toggle--height
1.875rem
The height of the toggle.
--frends-toggle--on-background-color
#00DE80
The background color when toggle is on.
--frends-toggle--on--color
#00DE80
The color when toggle is on.
--frends-toggle--toggle-button--translateX
1.563rem
The X translation of the button when toggled.
--frends-toggle--toggle-button--focus--outline
0.125rem solid #000000
The outline of the button when focused.
--frends-toggle--toggle-button--off--background--color
#F6FAF9 (approx.)
The background color of the button when off.
--frends-toggle--toggle-button--border-radius
1.875rem
The border radius of the toggle button.
--frends-toggle--toggle-button--border
0.125rem solid #B3CBCB (approx.)
The border of the toggle button.
--frends-toggle--toggle-button--height
1.5rem
The height of the toggle button.
--frends-toggle--toggle-button--width
1.5rem
The width of the toggle button.
--frends-toggle--toggle-button--margin-left
0.125rem
The left margin of the toggle button.
--frends-toggle--toggle-button--margin-bottom
0.0635rem
The bottom margin of the toggle button.
--frends-toggle--toggle-button--background-color
#FFFFFF
The background color of the toggle button.
--frends-toggle--toggle-button--box-shadow
0 0 0.188rem 0 rgba(0, 0, 0, 0.25)
The box shadow of the toggle button.
--frends-toggle--text--font-size
0.563rem
The font size of the toggle text.
--frends-toggle--text--margin
0.375rem
The margin for the toggle text.
--frends-toggle--text--on--color
#FFFFFF
The color of the "on" text.
--frends-toggle--text-off--color
#B3CBCB (approx.)
The color of the "off" text.
Tooltip
Selector: frends-tooltip
--frends-tooltip--background-color
#58696C
Background color of the tooltip.
--frends-tooltip--toggle-text--font-family
'Gilroy-Medium', sans-serif
Font family for the toggle text.
--frends-tooltip--toggle-text--font-size
1rem
Font size of the toggle text.
--frends-tooltip--toggle-text--color
#000000
Color of the toggle text.
--frends-tooltip--icon-color
#58696C
Color of the icon in the toggle button.
--frends-tooltip--max-width
48.438rem
Maximum width of the tooltip.
--frends-tooltip--padding
0.375rem 0.9375rem 0.375rem 0.9375rem
Padding inside the tooltip.
--frends-tooltip--border
0
Border of the tooltip.
--frends-tooltip--border-radius
0.938rem
Border radius of the tooltip.
--frends-tooltip--line-height
1.188rem
Line height of the tooltip text.
--frends-tooltip--font-size
0.875rem
Font size of the tooltip text.
--frends-tooltip--text-color
#FFFFFF
Text color of the tooltip.
Scrollbars
Scrollbars inside the components — the dropdown option list, for example — are styled with these properties.
--scrollbar-thumb-width
0.375rem
Width of a vertical scrollbar.
--scrollbar-thumb-height
0.375rem
Height of a horizontal scrollbar.
--scrollbar-thumb-background
#B3CBCB (approx.)
Scrollbar color.
--scrollbar-thumb-background-hover
#58696C
Scrollbar color on hover.
--scrollbar-thumb-border-radius
1.875rem
Scrollbar corner rounding.
These names have no frends prefix, and the portal uses them for its page scrollbars too, so changing them affects both.
Last updated
Was this helpful?

