Skip to content

Commit 667d5ae

Browse files
Added Library as Design System (#248)
* Added library as design system * small fix --------- Co-authored-by: Pooja Bhaumik <[email protected]>
1 parent 7be2e94 commit 667d5ae

File tree

2 files changed

+45
-4
lines changed

2 files changed

+45
-4
lines changed

docs/ff-concepts/design-system/design-system.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,47 @@ If you prefer watching a video tutorial, here is the guide for you:
196196
</div>
197197
<p></p>
198198

199+
## Use Library as Design System
200+
201+
You can also import a design system from the [Library](../../resources/projects/libraries.md) added to your project. A library can serve as a central repository for your design assets, components, and styles—effectively becoming a Design Library for your application(s).
202+
203+
:::tip[possible use cases]
204+
205+
- **Enterprise Applications:** Large organizations can develop a centralized design system as a library to ensure all internal applications maintain a cohesive look and feel, enhancing brand identity and user experience.
206+
- **Startup MVPs:** Startups can expedite the development of Minimum Viable Products (MVPs) by leveraging a pre-built design library like [**shadcn**](https://marketplace.flutterflow.io/item/cNlm0zWW1Nfq11cFXBmp), allowing them to focus on functionality and user validation.
207+
- **Cross-Platform Consistency:** Teams aiming to deploy apps across multiple platforms (iOS, Android, Web) can use a popular design system library to ensure uniformity in design, reducing the effort required for platform-specific adjustments.
208+
209+
:::
210+
211+
To add a design system from a library, first, ensure that you [add a library dependency to your project](../../resources/projects/libraries.md#importing-a-library). Then, navigate to **Theme Settings > Design System** and click on **No Design System Selected**. From the dropdown menu, **Select a library** you want to use.
212+
213+
214+
<div style={{
215+
position: 'relative',
216+
paddingBottom: 'calc(56.67989417989418% + 41px)', // Keeps the aspect ratio and additional padding
217+
height: 0,
218+
width: '100%'}}>
219+
<iframe
220+
src="https://demo.arcade.software/G3PekDcZNsWYrKoz3xnE?embed&show_copy_link=true"
221+
title=""
222+
style={{
223+
position: 'absolute',
224+
top: 0,
225+
left: 0,
226+
width: '100%',
227+
height: '100%',
228+
colorScheme: 'light'
229+
}}
230+
frameborder="0"
231+
loading="lazy"
232+
webkitAllowFullScreen
233+
mozAllowFullScreen
234+
allowFullScreen
235+
allow="clipboard-write">
236+
</iframe>
237+
</div>
238+
<p></p>
239+
199240
---
200241

201242
## Loading Indicator

docs/resources/projects/libraries.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -328,16 +328,16 @@ Team code and API libraries will be migrated to library Projects. These projects
328328
</details>
329329

330330
<details>
331-
<summary>Will libraries work with Marketplace?</summary>
331+
<summary>Do libraries work with Marketplace?</summary>
332332
<p>
333-
We plan to allow users to import a marketplace project as a library, making it easier to integrate marketplace resources into your projects.
333+
Yes, you can add and import a Marketplace project as a library.
334334
</p>
335335
</details>
336336

337337
<details>
338-
<summary>How do libraries work with themes?</summary>
338+
<summary>How do libraries work with themes (design systems)?</summary>
339339
<p>
340-
The parent project's design system takes precedence over the imported library's design system. For example, if a library uses the standard FlutterFlow color scheme, the values defined in the parent project will override those in the library. However, if the library project has a custom color that the parent project does not have, it will be used as-is in the parent project.
340+
By default, the design system of the parent project takes precedence over the imported library's design system. If you want to use a library's design system, you must [**select or set the library in the Design System**](../../ff-concepts/design-system/design-system.md#use-library-as-design-system) page.
341341
</p>
342342
</details>
343343

0 commit comments

Comments
 (0)