https://github.com/fission-codes/kit
UI Kit for Fission projects
https://github.com/fission-codes/kit
Last synced: 6 months ago
JSON representation
UI Kit for Fission projects
- Host: GitHub
- URL: https://github.com/fission-codes/kit
- Owner: fission-codes
- License: apache-2.0
- Created: 2020-01-09T20:46:11.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2023-10-17T06:00:44.000Z (over 2 years ago)
- Last Synced: 2025-04-03T04:56:18.332Z (about 1 year ago)
- Language: Elm
- Homepage: https://kit.fission.app
- Size: 2.18 MB
- Stars: 8
- Watchers: 10
- Forks: 1
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# UI Kit
[](https://github.com/fission-codes/blob/master/LICENSE)
[](https://fission.codes)
[](https://discord.gg/zAQBDEq)
[](https://talk.fission.codes)
__The Fission UI Kit__,
_designed to be used with [Tailwind CSS](https://tailwindcss.com)._
🎨 [Styleguide](https://kit.fission.app)
📖 [Documentation](https://kit.fission.app/docs/)
## Getting Started
### Step one, install dependencies.
* `npm install @fission-codes/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.
```js
import plugin from "tailwindcss/plugin"
import * as kit from "@fission-codes/kit"
// or kit = require("@fission-codes/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`](./guide/) for an example configuration, and how to use the Elm library.
### Step three, use the component library.
#### React
```shell
npm install @fission-codes/kit
```
```js
import { SignInButton } from "@fission-codes/kit/components/react"
webnative.redirectToLobby(PERMISSIONS)}
/>
```
📖 [Documentation](https://kit.fission.app/docs/react/)
#### Elm
```shell
elm install fission-codes/kit
```
```elm
import Kit.Components
Kit.Components.signIn [ class "bg-purple text-white text-opacity-90" ]
```
📖 [Documentation](https://package.elm-lang.org/packages/fission-codes/kit/latest/)