An open API service indexing awesome lists of open source software.

https://github.com/TypeFox/langium-ui-framework

A DSL for generating user interfaces, built with Langium
https://github.com/TypeFox/langium-ui-framework

Last synced: 6 months ago
JSON representation

A DSL for generating user interfaces, built with Langium

Awesome Lists containing this project

README

          



Langium Logo


A DSL for generating user interfaces, built with



Langium Logo






[![Build status](https://github.com/TypeFox/langium-ui-framework/actions/workflows/build.yml/badge.svg)](https://github.com/TypeFox/langium-ui-framework/actions/workflows/build.yml)
[![Gitpod Ready-to-Code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/TypeFox/langium-ui-framework)



SimpleUI is a easy UI Framework for building and generating web user interfaces. SimpleUI includes HTML, JavaScript and CSS.

## Getting started
- Clone the repository using `git clone https://github.com/TypeFox/langium-ui-framework.git`
- `npm i` to install all required dependencies
- `npm run langium:generate` to generate project
- `npm run build` to build the project

To run both watchers use `npm run watch && npm run langium:watch`.

## Example
Generate your code using
- `node ./bin/cli generate ` on Windows
- `./bin/cli generate ` on MacOS and Linux

add `-w` or `--watch` to run watcher.

### Code
```ruby
div classes[flex-container, center] {
div classes[border, border--hidden, shadow]{
heading "Hello World" level: 4
paragraph
"
Lorem ipsum dolor sit amet,
consetetur sadipscing elitr,
sed diam nonumy eirmod tempor invidunt ut labore,
et dolore magna aliquyam
"
{ width: "50%" }
}
}
```
### Result
HTML (Formatted)
```html


Hello World




Lorem ipsum dolor sit amet,
consetetur sadipscing elitr,

sed diam nonumy eirmod tempor invidunt ut labore,
et dolore magna aliquyam



```
**Image**

![Result ](https://user-images.githubusercontent.com/68400102/152212391-5d2ececa-a91d-47a4-ad17-1e007d03ebf9.png)