Code Monkey home page Code Monkey logo

pandapower's Introduction

Elodin

Warning: Elodin is still WIP and experimental. It is not recommended to use it in production yet. There might be unknown bugs and the APIs might change rapidly.

Elodin is a small styling language that aims to provide a universal way to author user interface styles.

  • Component-based:
    Elodin styles are authored on component-base and fully encapsulated from other styles accounting for predictable styling without side-effects. It also enables automatic code-splitting where each component is rendered to a new file.
  • Quick learning-curve:
    The syntax is a mix of CSS and JavaScript with some concepts from ReasonML and thus already familiar to many developers. It is declarative and unlike CSS only supports one value per property.
  • Write once, use everywhere:
    Elodin compiles to a variety of different languages, platforms and libraries without having to change a single line. It's truly one file for all targets!
  • Type-safe properties:
    The compiler will validate every property-value pair and throw on invalid rules resulting in solid code and bulletproof output. If it compiles, it works!

License Spectrum npm downloads

The Gist

variant Mode {
  Dark
  Light
}

style Button {
  justifyContent: center
  alignItems: flexEnd
  paddingBottom: 10
  paddingTop: 10
  fontSize: 15
  color: rgb(255 0 255)

  [Mode=Dark] {
    backgroundColor: black
  }

  [Mode=Light] {
    backgroundColor: white
  }
}

style Label {
  fontSize: 10
  color: grey
}

Documentation

Examples

Tooling

Contributing

Feel free to ask questions and give feedback on Spectrum.
For more information follow the contribution guide.
Also, please read our code of conduct.

License

Elodin is licensed under the MIT License.
Documentation is licensed under Creative Commons License.
Created with โ™ฅ by Robin Weser.

pandapower's People

Contributors

afeser avatar ascheidl avatar chefpony avatar chengts95 avatar dlohmeier avatar elodin avatar florianshepherd avatar friederikemeier avatar gdgarcia avatar gourab2009 avatar jhmenke avatar jkisse avatar jkrstulo avatar jkupka avatar julffers avatar jurasofish avatar jwiemer112 avatar lthurner avatar lvzhibai avatar maddinonline avatar mmajidi137 avatar rbolgaryn avatar shankhoghosh avatar simonrubendrauz avatar steffenmeinecke avatar vogt31337 avatar wangzhenassd avatar winfriedl avatar xiaolu1990 avatar zhengliu1119 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.