Skip to content

Commit e1db98c

Browse files
fatonramadanihcourdentrubenfiszel
authored
Global CSS docs (windmill-labs#297)
* Global CSS docs * Took out words and updated Enterprise & App documentation * update doc --------- Co-authored-by: hcourdent <henri@windmill.dev> Co-authored-by: Ruben Fiszel <ruben@windmill.dev>
1 parent f27976a commit e1db98c

File tree

18 files changed

+118
-20
lines changed

18 files changed

+118
-20
lines changed

docs/apps/4_app_configuration-settings/4_app_styling.md renamed to docs/apps/4_app_configuration-settings/4_app_styling.mdx

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import DocCard from '@site/src/components/DocCard';
2+
13
# Styling
24

35
Styling on the app editor can be managed at the component and app-level.
@@ -37,17 +39,30 @@ Elements like background color (incl. shadow, opacity), border (incl. stlye, rad
3739

3840
For complex apps, you may not want to repeat the styling configuration on each component.
3941

40-
On the right-side menu, pick `Global styling` and go on a component to define pre-set styling in CSS or Tailwind.
42+
### CSS Editor
43+
44+
The [Global CSS Editor](../../misc/15_css_editor/index.md) is designed to give styling and theming across your entire app. This functionality offers a centralized location for defining, managing, and applying CSS rules. It's useful for ensuring consistent styling and for creating reusable themes.
45+
46+
The Global CSS Editor is a feature exclusive to [Enterprise Edition](../../misc/7_plans_details/index.mdx). However, users on the Community Edition can still access and experiment with this tool directly in the editor for evaluation purposes, although these changes will not be reflected in the app preview.
4147

4248
<video
43-
className="border-2 rounded-xl object-cover w-full h-full dark:border-gray-800"
44-
autoPlay
45-
controls
46-
src="https://github.com/videos/global_styling.mp4"
49+
className="border-2 rounded-xl object-cover w-full h-full dark:border-gray-800"
50+
autoPlay
51+
controls
52+
src="/videos/global-css.mp4"
4753
/>
4854

4955
<br/>
5056

57+
<div class="grid grid-cols-2 gap-2 my-4">
58+
<DocCard
59+
title="CSS Editor"
60+
description="The Global CSS Editor is designed to give styling and theming across your entire app."
61+
href="/docs/misc/css_editor"
62+
color="orange"
63+
/>
64+
</div>
65+
5166
### Configure manually and replicate pre-set styling
5267

5368
Styling on a component level can be replicated to all the components of the same class from the Rich Editor.

docs/compared_to/retool.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ Windmill's ability to quickly add the components that are useful to them.
174174
For everyting else, it's comparable: you can run on [schedules](../core_concepts/1_scheduling/index.md) or [webhooks](../core_concepts/4_webhooks/index.md),
175175
[source control](../core_concepts/17_collaboration/index.mdx#git-integration),
176176
seamlessly interact your apps with [databases](../integrations/postgresql.md),
177-
[link runnables to components](../apps/3_app-runnable-panel.mdx), give [styling](../apps/4_app_configuration-settings/4_app_styling.md) to apps, [resources](../core_concepts/3_resources_and_types/index.mdx) are handled in a similar way.
177+
[link runnables to components](../apps/3_app-runnable-panel.mdx), give [styling](../apps/4_app_configuration-settings/4_app_styling.mdx) to apps, [resources](../core_concepts/3_resources_and_types/index.mdx) are handled in a similar way.
178178

179179
To conclude, Retool is an excellent engine for building custom applications within a reassuring and defined framework.
180180

docs/core_concepts/14_audit_logs/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Audit Logs can be filtered by Date, Username, Action (Create, Update, Delete, Ex
2929
## Retention Policy
3030

3131
The retention policy for audit logs varies depending on your team's plan:
32-
- Free plans: Audit logs are redacted.
32+
- Community plan: Audit logs are redacted.
3333
- Team plan (cloud): Audit logs are retained for 7 days.
3434
- Enterprise plan (cloud): Audit logs are retained for 60 days.
3535
- Enterprise plan (cloud): Audit logs are stored in Postgres and also emitted as logs, which are stored in the cloud for a year with the possibility of extending the retention period.

docs/core_concepts/6_auto_generated_uis/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,4 @@ The apps will be permissioned on behalf of the [admin/author](../16_roles_and_pe
6868
6969
<br/>
7070

71-
At last, this is an easy way to get an app for your scripts and flows to be customized with [Styling](../../apps/4_app_configuration-settings/4_app_styling.md) and [Components](../../apps/4_app_configuration-settings/1_app_component_library.md).
71+
At last, this is an easy way to get an app for your scripts and flows to be customized with [Styling](../../apps/4_app_configuration-settings/4_app_styling.mdx) and [Components](../../apps/4_app_configuration-settings/1_app_component_library.md).

docs/core_concepts/index.mdx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,11 @@ On top of its editors to build endpoints, flows and apps, Windmill comes with a
125125
## Enterprise Features
126126

127127
<div class="grid grid-cols-2 gap-6 mb-4">
128+
<DocCard
129+
title="Support & SLA"
130+
description="Our SLAs are designed to provide timely assistance and address any issues."
131+
href="/docs/misc/support_and_sla"
132+
/>
128133
<DocCard
129134
title="Audit Logs"
130135
description="Windmill provides audit logs for every operation and action that has side-effects."
@@ -141,10 +146,15 @@ On top of its editors to build endpoints, flows and apps, Windmill comes with a
141146
href="/docs/core_concepts/multiplayer"
142147
/>
143148
<DocCard
144-
title="Support & SLA"
145-
description="Our SLAs are designed to provide timely assistance and address any issues."
146-
href="/docs/misc/support_and_sla"
149+
title="SAML & SCIM"
150+
description="Configure Okta for both SAML and SCIM"
151+
href="/docs/misc/saml_and_scim"
147152
/>
153+
<DocCard
154+
title="CSS Editor"
155+
description="The Global CSS Editor is designed to give styling and theming across your entire app."
156+
href="/docs/misc/css_editor"
157+
/>
148158
</div>
149159

150160
## Script-Specific Features

docs/getting_started/00_how_to_use_windmill/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Windmill provides a <a href="https://app.windmill.dev/" rel="nofollow">Cloud App
2222

2323
You can sign-up using your GitHub, GitLab, Google, Microsoft Single Sign-On. No Credit Cards required and we will spare your inbox.
2424

25-
Any user will be provided with 1,000 monthly executions from our [Free Plan](/pricing) and added to the Demo workspace. From there, users can create workspaces for free and create scripts, workflows and UIs.
25+
Any user will be provided with 1,000 monthly executions from our [Community Plan](/pricing) and added to the Demo workspace. From there, users can create workspaces for free and create scripts, workflows and UIs.
2626

2727
And if you feel like it, [upgrade](../../misc/7_plans_details/index.mdx) for unlimited executions.
2828

docs/getting_started/7_apps_quickstart/index.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@ At any time, have a look at your app's **Inputs** associated with each component
143143

144144
### Tailor the look of your app
145145

146-
At the **[component level](../../apps/4_app_configuration-settings/4_app_styling.md#component-level)**, on the `Settings` tab, configure the style of each component (color, size, label, etc.) either directly in the boxes or using Custom CSS (on the Component Settings - Styling tab).
146+
At the **[component level](../../apps/4_app_configuration-settings/4_app_styling.mdx#component-level)**, on the `Settings` tab, configure the style of each component (color, size, label, etc.) either directly in the boxes or using Custom CSS (on the Component Settings - Styling tab).
147147

148148
![Cutomize components](./customize_component.png.webp)
149149

150-
At the **[app level](../../apps/4_app_configuration-settings/4_app_styling.md#global-styling)**, you can give a harmonized style to your app with CSS. On the `Global Styling` tab, give details in boxes or in JSON, for the whole app and per class of component.
150+
At the **[app level](../../apps/4_app_configuration-settings/4_app_styling.mdx#global-styling)**, you can give a harmonized style to your app with CSS. On the `Global Styling` tab, give details in boxes or in JSON, for the whole app and per class of component.
151151

152152
![App styling](./customize_app.png.webp)
153153

docs/misc/12_support_and_sla/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Our SLA defines the expected response times for each priority level:
2828

2929
## Support Levels for Each Plan
3030

31-
- **Free Plan:** Basic support is available for users on the Free plan. Response times may vary, and priority is given to higher-tier plans.
31+
- **Community Plan:** Basic support is available for users on the Community plan. Response times may vary, and priority is given to higher-tier plans.
3232
- **Team Plan:** Users on the Team plan receive Priority Support 24/7. Our goal is to respond within 48 hours and provide assistance from our automation engineers.
3333
- **Enterprise Plan:** Customers on the Enterprise plan enjoy the highest level of support. They receive Priority Support 24/7 with a 3-hour response time and benefit from dedicated assistance from our automation engineers.
3434

docs/misc/14_saml_and_scim/index.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# SAML & SCIM
22

3+
This guide provides guidance on configuring Okta for both SAML (Security Assertion Markup Language) and SCIM (System for Cross-domain Identity Management).
4+
35
## SAML
46

57
### Okta

docs/misc/15_css_editor/index.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# CSS Editor
2+
3+
The Global CSS Editor is designed to give styling and theming across your entire app. This functionality offers a centralized location for defining, managing, and applying CSS rules. It's useful for ensuring consistent styling and for creating reusable themes.
4+
5+
The Global CSS Editor is a feature exclusive to [Enterprise Edition](../7_plans_details/index.mdx). However, users on the Community Edition can still access and experiment with this tool directly in the editor for evaluation purposes, although these changes will not be reflected in the app preview.
6+
7+
<video
8+
className="border-2 rounded-xl object-cover w-full h-full dark:border-gray-800"
9+
autoPlay
10+
controls
11+
src="/videos/global-css.mp4"
12+
/>
13+
14+
## Class Identifiers
15+
16+
For a more granular control, specific classes have been added to each component. These class identifiers make it easier to target and globally style individual components across your app. Here are examples of classes, and are listed in the [Helper Block](#class-identifiers-helpers) as well:
17+
18+
- `wm-container`
19+
- `wm-list`
20+
- `wm-list-pagination`
21+
- `wm-list-pagination-buttons`
22+
- `wm-drawer`
23+
- `wm-drawer-button`
24+
- `wm-drawer-button-container`
25+
- `wm-button`
26+
- `wm-button-wrapper`
27+
- `wm-button-container`
28+
29+
## Class identifiers helpers
30+
31+
In addition to the core features of the Global CSS Editor, the Helper Block is designed to assist you in the styling process. This searchable list of components provides quick access to all the class identifiers and CSS variables associated with each component. It also includes a convenient "Insert" button for each item, allowing you to quickly insert the class or variable into your CSS code.
32+
33+
<video
34+
className="border-2 rounded-xl object-cover w-full h-full dark:border-gray-800"
35+
controls
36+
src="/videos/css-helper-box.mp4"
37+
/>
38+
39+
## How to Use the Helper Block
40+
41+
1. Search for Components: Use the search bar to quickly find the component you are interested in styling.
42+
2. View Class Identifiers and Variables: Once you select a component, a list of its specific classes and modifiable CSS variables will be displayed.
43+
3. Insert to Code: Next to each class and variable, there is an "Insert" button. Clicking this will automatically insert the relevant item into the code editor.
44+
45+
![Use helper](./use_helper.png 'Use helper')
46+
47+
## Migrating Component-Level Styles to Global CSS
48+
49+
In the Enterprise Edition of the Global CSS Editor, you can migrate component-level styles to the global level, streamlining the process of achieving consistent design across your application. This feature allows for two types of component-level styles to be migrated:
50+
51+
1. Navigate to the component whose styles you wish to migrate. Select the option to 'Move to CSS editor', which will open a modal window.
52+
53+
2. In the modal, you will see a list of all the CSS rules that can be moved to the global level. These are the styles you've previously set either for a specific component or for every component of a particular kind.
54+
55+
3. You can preview the css rules that will be migrated. If the class already exists in the global CSS, the rule will be appended to the existing class. If the class does not exist, it will be created.
56+
57+
4. Once you are satisfied with the changes, click the 'Migrate' button. This will move the styles to the global level and remove them from the component-level.
58+
59+
<video
60+
className="border-2 rounded-xl object-cover w-full h-full dark:border-gray-800"
61+
controls
62+
src="/videos/css-migration.mp4"
63+
/>

0 commit comments

Comments
 (0)