Files
firezone/rust/gui-client/src-frontend/main.css
Thomas Eizinger 56ff469f03 refactor(gui-client): merge all windows into a single view (#9295)
This PR refactors the GUI clients frontend into a single window with a
sidebar. The functionality remains the same but we do make minor UI
improvements on the way. To pull the entire refactor off, we now use
`react` and `flowbite-react` for the GUI. All the communication with the
backend is moved towards one-way commands and events. That means, the
flow is always:

- Backend emits events to update frontend
- Frontend triggers actions in the backend that may or may not result in
further events

This allows us to decouple the GUI from knowing about which side-effects
change what parts of the state. Instead, it simply updates whenever it
receives an event.

- The previous "Advanced Settings" screen is now split into two parts:
Settings and Diagnostics. Later, we will add a "General settings" page
here.
- The tray menu remains identical to the current one. When the user
clicks "Settings" or "About", we open the window and navigate to the
corresponding page.
- The app and git version are now directly embedded in the frontend,
simplifying the interaction between the frontend and the backend
further.

|Before|After|
|---|---|

|![](https://github.com/user-attachments/assets/7e8039c8-d589-495e-92b4-1742f9eb01b2)|![](https://github.com/user-attachments/assets/363184b3-4fcf-45c2-82d2-c466902759ef)|

|![](https://github.com/user-attachments/assets/88163522-cafc-4ad4-90cd-be2e77073b7f)|![](https://github.com/user-attachments/assets/106ef921-38a7-4603-add9-8b0875064737)|

|![](https://github.com/user-attachments/assets/a4bef4b0-5b29-43dd-aea6-0babd3b4ec9e)|![](https://github.com/user-attachments/assets/b84f1b51-c35c-48cc-9335-c653eee597ff)

|![](https://github.com/user-attachments/assets/f0473a0a-cdba-4a15-af98-d97ef422dbc5)|![](https://github.com/user-attachments/assets/ddced01b-6f44-4241-80ea-038a4740915b)|
2025-05-31 01:57:40 +00:00

66 lines
1.7 KiB
CSS

@import "tailwindcss";
@plugin "flowbite-react/plugin/tailwindcss";
@plugin 'flowbite/plugin';
@source "../.flowbite-react/class-list.json";
@custom-variant dark (&:where(.dark, .dark *));
@theme {
--color-primary-50: #fff9f5;
--color-primary-100: #fff1e5;
--color-primary-200: #ffddc2;
--color-primary-300: #ffbc85;
--color-primary-400: #ff9a47;
--color-primary-450: #ff7300;
--color-primary-500: #ff7605;
--color-primary-600: #c25700;
--color-primary-700: #7f3900;
--color-primary-800: #5c2900;
--color-primary-900: #331700;
--color-accent-50: #f8f5ff;
--color-accent-100: #ece5ff;
--color-accent-200: #d2c2ff;
--color-accent-300: #a585ff;
--color-accent-400: #7847ff;
--color-accent-450: #5e00d6;
--color-accent-500: #4805ff;
--color-accent-600: #3400c2;
--color-accent-700: #37007f;
--color-accent-800: #28005c;
--color-accent-900: #160033;
--color-neutral-50: #fcfcfc;
--color-neutral-100: #f8f7f7;
--color-neutral-200: #ebebea;
--color-neutral-300: #dfdedd;
--color-neutral-400: #c7c4c2;
--color-neutral-500: #a7a3a0;
--color-neutral-600: #90867f;
--color-neutral-700: #766a60;
--color-neutral-800: #4c3e33;
--color-neutral-900: #1b140e;
--default-font-family: "Source Sans 3";
}
/*
The default border color has changed to `currentColor` in Tailwind CSS v4,
so we've added these compatibility styles to make sure everything still
looks the same as it did with Tailwind CSS v3.
If we ever want to remove these styles, we need to add an explicit border
color utility to any element that depends on these defaults.
*/
@layer base {
*,
::after,
::before,
::backdrop,
::file-selector-button {
border-color: var(--color-gray-200, currentColor);
}
}