0.0.9 • Published 1 year ago

@mvr-studio/exo-css v0.0.9

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

ExoUI CSS

Framework agnostic CSS.

Installation

$ yarn add @mvr-studio/exo-css
✨  Done in 3.52s.

Usage

Vue

<template>
  <div :class="theme">
    <button :class="buttonCss().className">Click me</button>
    <button :class="buttonCss({ scheme: 'primary' }).className">Click me</button>
  </div>
</template>
<script lang="ts">
import { createExoCss, composeButtonCss } from '@mvr-studio/exo-css'
const { theme, css } = createExoCss()
const buttonCss = composeButtonCss({ css })
export default {
  name: 'MyView',
  data: () => ({
    buttonCss,
    theme
  })
}
</script>

Svelte

<script lang="ts">
  import { createExoCss, composeButtonCss } from '@mvr-studio/exo-css'
  const { theme, css } = createExoCss()
  const buttonCss = composeButtonCss({ css }) as any
</script>

<div class={theme}>
  <button class={buttonCss().className}>Click me</button>
  <button class={buttonCss({ scheme: 'primary' }).className}>Click me</button>
</div>
0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago