fission-suite/kit/2.0.2

NOTE: the latest version is 2.2.0

Renamed to fission-codes/kit. It is published under that name, and new versions come out there.

Versions published as fission-suite/kit still install under that name. 6 versions of 6 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/fission-codes/kit.

What we checked: The repo moved to github.com/fission-codes/kit. Rebuilt with git archive from commit 9050a10ef7ff of https://github.com/fission-codes/kit (zip prefix fission-suite-kit-9050a10/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 8e0ddb7c35338a018b583e7bb8d373bb3e1fb7a9.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details ยท package.elm-lang.org's zip: https://github.com/fission-suite/kit/zipball/2.0.2/

UI Kit

License Built by FISSION Discord Discourse

The Fission UI Kit,
designed to be used with Tailwind CSS.

๐ŸŽจ Styleguide
๐Ÿ“– Documentation

Getting Started

Step one, install dependencies.

  • npm install @fission-suite/kit
  • npm install tailwindcss
  • Copy the font files.
    npx copy-fission-fonts ./vendor/fonts/ --woff2
  • Copt the images. npx copy-fission-images ./vendor/images/

Step two, configure Tailwind CSS.

We need to configure Tailwind CSS to use the Fission colors, fonts and other things.

import plugin from "tailwindcss/plugin"
import * as kit from "@fission-suite/kit"
// or kit = require("@fission-suite/kit")

export default {
  purge: [
    ...kit.tailwindPurgeList()
  ],

  theme: {
    colors: kit.dasherizeObjectKeys(kit.colors),
    fontFamily: kit.fonts,

    extend: {
      fontSize: kit.fontSizes
    }
  },

  plugins: [
    plugin(function({ addBase }) {
      // this `fontsPath` will be the relative path
      // to the fonts from the generated stylesheet
      kit.fontFaces({ fontsPath: "/fonts/" }).forEach(fontFace => {
        addBase({ "@font-face": fontFace })
      })
    })
  ]
}

See the guide for an example configuration, and how to use the Elm library.

Step three, use the component library.

React

npm install @fission-suite/kit
import { SignInButton } from "@fission-suite/kit/components/react"

<SignInButton
  className="bg-base-900 text-base-50 dark:bg-base-100 dark:text-base-900"
  onClick={() => webnative.redirectToLobby(PERMISSIONS)}
/>

๐Ÿ“– Documentation

Elm

elm install fission-suite/kit
import Kit.Components

Kit.Components.signIn [ class "bg-purple text-white text-opacity-90" ]

๐Ÿ“– Documentation