Skip to content

Repository files navigation

Teiler 🪡 (ˈteɪlər - tailor)

Discord

Teiler is an open source library that simplifies the creation of stylish components for various frameworks.

Currently in the alpha phase, the library is actively being developed and improved.

Join our community on our Discord Server to stay informed about the latest developments, exchange ideas, and connect with fellow developers. We are continuously working on expanding our support to include more frameworks, allowing developers to effortlessly create components across various environments.

Features

  • 🧰 Multiple frameworks support
  • 🪡 Patterns system for UI libraries
  • 🚉 Server-Side Rendering (SSR)*
  • Babel not required

* Not all frameworks, more details here

Example

import{component}from'@teiler/framework'constButton=component.button<{_primary: boolean}>` display: inline-block; border-radius: 4px; font-size: 0.8rem; line-height: 1.5rem; background: transparent; box-shadow: 0 0 0 3px #CBCBCB inset;${({ _primary })=>_primary&&` color: #fff; box-shadow: none; background: #CBCBCB; `}`

Frameworks

These are the frameworks we are currently working on and planning to support in the future.

FrameworkCSRSSRMore details
Svelte v4README
VueJSREADME
SolidJS---
React---

Note

CSR - Client Side Rendering*
SSR - Server Side Rendering*

Sew a Pattern

This tool simplifies the creation of consistent and reusable visual styles for components across various web frameworks. It provides a pattern-based approach, where patterns serve as blueprints for defining the visual style of components.

Example

// Pattern file in ui kit libraryimport{pattern}from'@teiler/core'constButtonPattern=pattern.button` display: inline-block; border-radius: 4px; font-size: 0.8rem; line-height: 1.5rem; background: transparent; box-shadow: 0 0 0 3px #CBCBCB inset;`exportdefaultButtonPattern// Usage of Patternimport{ButtonPattern}from'some-uikit-library'import{sew}from'@teiler/core'import{createComponent}from'@teiler/framework'constButton=sew(ButtonPattern,createComponent)exportdefaultButton

Packages

PackageDownloadSize
Corenpmnpm bundle size
Sveltenpmnpm bundle size
Vuenpmnpm bundle size

About

Teiler is an open source library that simplifies the creation of stylish components for various frameworks.

Topics

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages