thorium-ui
v0.1.31
Published
A theme-able framework for React.
Downloads
19
Maintainers
Readme
Overview
Thorium-UI is designed to be an intuitive React.js framework, with which to quickly build themed applications, without needing a ton of CSS clutter.
Documentation
View the Official Documentation
Please note, this documentation is only updated periodically and does not always represent the current state of the project
Getting Started
Use the following instructions to get up and running with Thorium-UI.
Installation
npm i thorium-uiUsing ThoriumRoot
Once you've successfully installed thorium-ui, some very minimal boilerplate is needed to get up and running.
- In your
App.jsxfile, begin by importing theThoriumRootcomponent fromthorium-ui. - Wrap the
ThoriumRootaround the rest of yourAppcontents. - (optional) If you're using
customThemesorcustomStyles, import them at the top of yourApp.jsxfile, and pass them as corresponding props toThoriumRoot.
Your App.jsx file should look like the following.
import React from "react";
import { ThoriumRoot } from "thorium-ui";
import customStyles from "customStyles.js";
import customThemes from "customThemes.js";
export const App = (props) => {
return (
<ThoriumRoot customStyles={customStyles} customThemes={customThemes}>
/* YOUR COMPONENTS HERE */
</ThoriumRoot>
);
};
export default App;Thats It!
With that finished, you're now ready to begin using Thorium-UI!

