2.35.4 • Published 10 days ago

@tyrannosaurustech/ui v2.35.4

Weekly downloads
-
License
MIT
Repository
-
Last release
10 days ago

TTech CORE UI

Welcome to Tyrannosaurus Tech's new Core UI Library! This library is designed to give our development teams a comprehensive set of components and tools to easily create and share user interfaces for our projects. Our Core UI Library provides a wide range of components and features, allowing our developers to create visually appealing designs with minimal effort. This library will make it easier for our teams to create beautiful and functional user interfaces for current and future projects.

View available components on the Storybook deployment.

CORE UI Stack Overview

  1. Styled Components - . It enables developers to style React components by using existing CSS features such as variables, nesting, and mixins in a modular way. It also makes working with CSS easier by allowing developers to use the same code for both the HTML and the CSS, allowing for faster development and easier maintenance.
  2. Tailwind CSS - Tailwind CSS is a utility-first CSS framework that provides low-level utility classes that correspond to common CSS properties and values. It allows developers to quickly construct custom designs without having to write custom CSS. Utility classes can be combined to create almost any layout or styling. These classes are highly customizable and can be modified to fit the specific needs of the project.
  3. Tailwind UI - Tailwind UI is a collection of professionally designed, pre-built, fully responsive HTML components for building user interfaces with Tailwind CSS. It includes a library of custom-designed components, templates, and utilities that make it easy to create beautiful and consistent interfaces quickly.
  4. Headless UI - Headless UI is a collection of open source UI components that allow developers to create interactive UI elements. It is designed to be flexible and can be used in combination with any backend technology. The components provided in Headless UI are built using HTML, CSS, and JavaScript and can be used to create a range of user interfaces, from simple forms to complex dashboards.

Usage

The CORE UI library can be imported into any project, and customized based on theme parameters (see Tailwind below). Simply install using the command below, and start importing components!

This typed package supports autocomplete, so you can quickly access available arguments and variables from the library.

Installation

npm install @tyrannosaurustech/ui

Using Components

import { Button } from "@tyrannosaurustech/ui";

const CustomButton = (props) => <Button {...props} />;

Theming

Use CORE default theme with no changes

// include this in your index file, before loading your components
import "@tyrannosaurustech/ui/src/index.css";

Updates to CORE theme

If you need to customize the theme for a project, you will need to install tailwind into your target project.

Install Tailwind CSS

How to Install Tailwind

npm i -D tailwindcss
npx tailwind init
/* Add to your css file, after following the tailwind setup */
@tailwind base;
@tailwind components;
@tailwind utilities;

Finally, add tailwindcss compilation to your build scripts following the article above.

Update Tailwind config file

/** @type {import('tailwindcss').Config} */
module.exports = {
  content: [
    "./src/**/*.{js,ts,jsx,tsx}",
    "node_modules/@tyrannosaurustech/ui/src/**/*.{js,ts,jsx,tsx}",
  ], // important to include location of core package to tell tailwind to regenerate css for classes used in our package
  presets: [require("@tyrannosaurustech/ui/tailwind.config.js")], // use the CORE preset
  theme: {
    extend: {
      colors: {
        primary: {
          DEFAULT: `#40C057`,
          neg: "#2F9E44",
          100: "#69DB7C",
          200: "#B2F2BB",
          300: "#EBFBEE",
        },
      },
    },
  plugins: [],
};

NOTE: This tailwind config includes the CORE CSS file above so it is no longer needed to import "@tyrannosaurustech/ui/src/index.css";


CORE UI Development

Install Dependencies

npm i

Run Storybook

npm run storybook

Test Changes

npm run test

Commit Changes

git commit

Unknown Word Errors

CORE UI uses cspell to prevent typos. Deliberately add /* cSpell:disable */ at the top of a file when needed..

2.35.4

10 days ago

2.35.3

10 days ago

2.35.2

11 days ago

2.35.1

15 days ago

2.35.0

2 months ago

2.34.1

2 months ago

2.34.0

2 months ago

2.33.1

2 months ago

2.33.0

2 months ago

2.32.0

2 months ago

2.31.0

2 months ago

2.30.0

3 months ago

2.29.2

4 months ago

2.29.0

4 months ago

2.29.1

4 months ago

2.28.2

4 months ago

2.28.1

5 months ago

2.28.0

5 months ago

2.27.4

5 months ago

2.27.2

6 months ago

2.27.1

6 months ago

2.27.3

6 months ago

2.27.0

6 months ago

2.11.0

8 months ago

2.4.0

9 months ago

2.8.0

9 months ago

2.0.1

10 months ago

2.0.0

10 months ago

1.25.0

10 months ago

2.19.0

7 months ago

2.15.0

8 months ago

2.22.1

7 months ago

2.22.0

7 months ago

2.26.1

6 months ago

2.26.0

6 months ago

2.3.0

9 months ago

2.10.0

8 months ago

2.7.0

9 months ago

1.26.0

10 months ago

2.18.0

7 months ago

2.14.0

8 months ago

2.21.0

7 months ago

2.25.0

6 months ago

2.2.0

10 months ago

2.6.0

9 months ago

1.23.0

11 months ago

1.23.1

11 months ago

1.27.0

10 months ago

2.17.0

7 months ago

2.13.0

8 months ago

2.13.1

8 months ago

2.20.0

7 months ago

2.24.0

6 months ago

2.12.0

8 months ago

2.5.0

9 months ago

2.9.0

9 months ago

2.1.0

10 months ago

1.24.0

10 months ago

2.16.0

8 months ago

2.23.0

6 months ago

1.22.0

11 months ago

1.21.0

11 months ago

1.19.1

11 months ago

1.20.1

11 months ago

1.20.2

11 months ago

1.20.0

11 months ago

1.14.0

1 year ago

1.18.1

12 months ago

1.18.0

12 months ago

1.16.0

12 months ago

1.18.3

11 months ago

1.18.2

12 months ago

1.15.0

12 months ago

1.19.0

11 months ago

1.17.0

12 months ago

1.13.1

1 year ago

1.13.0

1 year ago

1.12.0

1 year ago

1.11.1

1 year ago

1.11.0

1 year ago

1.10.0

1 year ago

1.8.2

1 year ago

1.7.3

1 year ago

1.6.4

1 year ago

1.9.0

1 year ago

1.8.1

1 year ago

1.7.2

1 year ago

1.6.3

1 year ago

1.8.0

1 year ago

1.7.1

1 year ago

1.6.2

1 year ago

1.7.0

1 year ago

1.6.1

1 year ago

1.8.9

1 year ago

1.8.10

1 year ago

1.8.8

1 year ago

1.8.11

1 year ago

1.8.7

1 year ago

1.8.6

1 year ago

1.8.5

1 year ago

1.8.4

1 year ago

1.8.3

1 year ago

1.6.0

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.4.2

1 year ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.6

1 year ago

1.3.5

1 year ago

1.3.4

1 year ago

1.3.3

1 year ago

1.3.2

1 year ago

1.3.1

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago