New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@tui/ui-library

Package Overview
Dependencies
Maintainers
2
Versions
110
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tui/ui-library

TUI UI CSS library

latest
npmnpm
Version
4.20.2
Version published
Maintainers
2
Created
Source

ui-library

https://web.tui/resources/storybook/

Quick Start

nvm use
npm i
npm run dev

This will spin up:

How to use it

Installation

To install the latest stable version:

npm install @tui/ui-library or yarn add @tui/ui-library

To install the next major version (be aware it might contain untested features):

npm install @tui/ui-library@next or yarn add @tui/ui-library@next

Themes

Theme files provide some global variables that are needed by the components in order to adhere to the theme guidelines (colors, spacing, etc.). TUI is the only available theme at the moment.

In dist/themes/<<themename>>/, you will find the theme file style.css as well as other global stylesheets. For example, for the TUI theme you could import in your .js files:

import '@tui/ui-library/dist/themes/tui-light/index.css';
import '@tui/ui-library/dist/themes/tui-light/fonts.css';

Themes variables are declared within the "data-theme" attribute selector, so you will need to add it on either the host page html tag or your MFE:

<html data-theme="tui-light">
  <!--or-->
  <my-custom-mfe data-theme="tui-light">
    <!--or-->
    <div data-theme="tui-light"></div
  ></my-custom-mfe>
</html>

Add SCSS Fiddle to your Documention

SCSS_FIDDLE.md

Development mode

You can also clone this repository, install the dependencies and use npm run dev to run a local server where to check the example templates for the components, how themes are generated, the original unprocessed stylesheets (post processed with postcss-preset-env), etc.

Contributing

Please check the contributing document

Roadmap

  • migration to scss
  • snapshot testing
  • documentation
  • global variables splitting

Migration

Please check the migration document

FAQs

Package last updated on 17 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts