You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+59-2Lines changed: 59 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,6 @@
2
2
3
3
This repository contains a library of reusable React components extracted from the main [**BigBlueButton (BBB)**](https://github.com/bigbluebutton/bigbluebutton) project. These components provide a consistent and customizable interface that can be reused in other projects, allowing them to easily adopt the BBB visual identity.
4
4
5
-
6
5
## Peer Dependencies
7
6
8
7
This library requires the following peer dependencies to be installed in your project:
@@ -22,6 +21,64 @@ react-icons ^5.5.0
22
21
23
22
Make sure to install these dependencies to avoid runtime errors and ensure compatibility.
24
23
24
+
## Color Customization with CSS Variables
25
+
26
+
This library supports overriding component colors using CSS custom properties (variables). You can define these variables in your project's global CSS or stylesheets to customize the appearance of components without modifying the library code. This is particularly useful for theming and maintaining consistency with your application's design system.
27
+
28
+
To use this feature:
29
+
1. Define the CSS variables in your project's root styles (e.g., in a global CSS file or via styled-components' `createGlobalStyle`).
30
+
2. The library's components will automatically pick up these variables if they are set on the `:root` element or a parent container.
31
+
32
+
**Note**: These variables are optional. If not defined, the components will fall back to their default styled-components theme values, which are derived from the project's `src/stylesheets/palette.ts` file.
33
+
34
+
### Available CSS Variables
35
+
36
+
The following table lists the supported CSS variables for color overriding, extracted from `src/stylesheets/palette.ts`. Each variable corresponds to a specific color aspect used in the components (e.g., neutrals, brands, semantics). The "Maps to BBB Core Variable" column indicates if the variable aligns with a standard BBB core color (based on the file's comments). The "Default Value" column shows the fallback color used if the variable is not set.
37
+
38
+
| Variable Name | Maps to BBB Core Variable | Default Value |
0 commit comments