MCPcopy
hub / github.com/prazzon/Flexbox-Labs

github.com/prazzon/Flexbox-Labs @main sqlite

repository ↗ · DeepWiki ↗
223 symbols 483 edges 99 files 1 documented · 0%
README

Table of Contents

About

Flexbox Labs is a visual tool that helps create layouts using CSS Flexbox. It offers an intuitive interface that shows changes in real-time, making it easy to experiment and learn.

Features

  • Live Preview: Preview changes in real-time as you adjust parameters.
  • Playground Customization: Add, delete, or duplicate flex items.
  • Undo and Redo Changes: Easily revert or redo modifications for easy experimentation.
  • Edit Flex Properties: Edit both flex container and individual flex item properties.
  • Save/Load Layouts: Save, load or delete custom layouts.
  • Pre-build Layouts: Load pre-built layouts/templates.
  • Export HTML and CSS Code: Get HTML and CSS code for the generated layout.

Built with

NextJS React TypeScript Sass Framer

FlexLab Screenshot

Usage

Visit the live demo and explore the playground using the toolbar. To customize the flex container, navigate to the Edit tab. Select any item from the playground to modify its individual flex properties. Once satisfied with your layout, click the code button on the tab to get the generated HTML and CSS code.

Live Demo

Check out the live demo of Flexbox Labs: Demo

Getting Started

1. Clone the repository

git clone https://github.com/prazzon/flexbox-labs.git

2. Navigate to the app directory

cd flexbox-labs

3. Install npm dependencies

npm install

4. Run the dev server

npm run dev

5. Open the app in your browser

Visit http://localhost:5173 in your browser.

Contributing

You are welcome to contributions to Flexbox Labs! If you'd like to contribute, please follow these steps: 1. Fork the repository. 2. Create a new branch: git checkout -b feature/new-feature 3. Make your changes and commit them: git commit -m 'Add new feature' 4. Push to the branch: git push origin feature/new-feature 5. Submit a pull request outlining the changes you've made. 6. Wait for me to review and merge your pull request

License

Flexbox Labs is licensed under the MIT License.

Feedback

If you have any feedback, suggestions, or issues, please open an issue. Your input is appreciated!

Acknowledgements

Extension points exported contracts — how you extend this code

StoreProviderProps (Interface)
(no doc)
app/storeProvider.tsx
RootLayoutProps (Interface)
(no doc)
app/layout.tsx
Context (Interface)
(no doc)
app/_context/SettingsContext.tsx
HistoryState (Interface)
(no doc)
app/_lib/history.ts
GridSection (Interface)
(no doc)
app/_utils/generateGridElements.ts
Layout (Interface)
(no doc)
app/_data/dataTypes.ts
Props (Interface)
(no doc)
app/_components/SettingsInit.tsx
Dimensions (Interface)
(no doc)
app/_hooks/useResize.ts

Core symbols most depended-on inside this repo

useKeyPress
called by 11
app/_hooks/useKeyPress.ts
convertGridItemProperty
called by 7
app/_utils/cssTailwindConverter.ts
saveSettingsToStorage
called by 6
app/_lib/features/settings/settingsSlice.ts
useRipple
called by 6
app/_hooks/useRipple.ts
useSettings
called by 6
app/_hooks/useSettings.ts
useFlexbox
called by 5
app/_hooks/useFlexbox.ts
createHistoryActions
called by 4
app/_lib/history.ts
newItem
called by 4
app/_lib/features/flexbox/flexboxSlice.ts

Shape

Function 164
Interface 59

Languages

TypeScript100%

Modules by API surface

app/_lib/features/playground/playgroundSliceFactory.ts10 symbols
app/_context/SettingsContext.tsx10 symbols
app/_lib/features/settings/settingsSlice.ts9 symbols
app/_hooks/useResize.ts8 symbols
app/_components/SideBar/Save/Save.tsx8 symbols
app/_utils/cssTailwindConverter.ts7 symbols
app/_lib/features/grid/gridSlice.ts7 symbols
app/_lib/features/flexbox/flexboxSlice.ts6 symbols
app/_components/SideBar/Edit/Item/ItemDropdown.tsx6 symbols
app/_lib/types/grid.ts5 symbols
app/_lib/types/flexbox.ts5 symbols
app/_lib/history.ts5 symbols

Dependencies from manifests, versioned

@base-ui/react1.4.0 · 1×
@eslint/js9.8.0 · 1×
@next/eslint-plugin-next16.2.1 · 1×
@reduxjs/toolkit2.5.0 · 1×
@svgr/webpack8.1.0 · 1×
@types/dompurify3.2.0 · 1×
@types/node22.10.2 · 1×
@types/react19.2.14 · 1×
@types/react-dom19.2.3 · 1×
dompurify3.3.3 · 1×
eslint9.8.0 · 1×

For agents

$ claude mcp add Flexbox-Labs \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact