Web can also be

đŸ€© dynamic đŸ€©

@UiReact | Themed Components

Framer Motion


Components animated with framer


🌕

Cards


Content


Customizable through styled components

Expandos

Components that expand to reveal content


Expand Card

EzForms


A component that can automatically render forms from a schema.

Docs

Typography


Headings


Text components share styles and properties from your theme.


They can also showcase supportive colorations.


Animated Links

Button Links


All the texts components are controlled from the theme and can change colors, sizes

Appearance selector


User can change the theme through their device settings


  1. Go to settings

  2. Go to appearance

  3. Change appearance

Light and Dark colorations

All components in the library are ready to render in these two colorations


Active theme

These are the colors for the default theme included in the UiView


Main colors

Primary

Secondary

Tertiary


Support colors

Positive

Warning

Error

Negative

Tooltips


Tooltips appear around a content on hover:


🩖

🩄

🐳

Forms

All form components have categories to render states


Some error




Buttons with styles




Tabs


🍎

đŸ„Š

đŸ„Ź

Selected 🍎

Badges


✈ Travel


đŸ”„ Sale


🚘 Car

Menus

Component that renders underneath the trigger, click:


Dialogs

Dialogs handlers built in with the UiView component


Validator tool


A tool that can validate data objects with a given schema.

Docs

đŸ”„ Getting started

Automatic setup ✹

This is the suggested approach for brand new projects:


Next JS

npx @uireact/create-next-app@latest

Remix

npx @uireact/create-remix-app@latest

This script will generate a working project with everything you need set up in the folder you execute it.


Manual setup


4 Simple steps to get your project up and running with @UiReact.


We suppose you already have a react environment working, we suggest you use either Next JS or Remix for your react app.

1. Install the foundation and view packages:

npm i -S @uireact/foundation @uireact/view

2. Set up UiView

You need to wrap your react tree in the UiView component



import React from 'react';

import { UiView } from '@uireact/view';

export const MyWrapper = () => (
  <UiView selectedTheme={ThemeColor.light}>
    <p>View content</p>
  </UiView>
);
            

3. Link the theme! ✹

@uireact provides with a default theme so you can use it or create your own.


Import the foundation css file which holds the default theme and all styles from all packages into your global styles file:


  // In CSS: Update the route based on your project.
  @import url('../node_modules/@uireact/foundation/dist/index.css'); 

  // Include all packages styles
  @import url('../node_modules/@uireact/view/dist/index.css'); 
            

4. Create your own theme! ✹

@uireact provides with a default theme so you can use it or create your own. If you like the default theme then you can skip this step.


If you want to build a custom theme visit Create your own theme to learn more about it.

🏁 That's it, Start creating magic ✹