1.2.0 • Published 2 years ago

hanzo-ui-core v1.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Hanzo UI CSS Architecture

Hanzo-ui-css-architecture is a UI library for React applications, that provides tokens, functions and mixins that we are going to use in our projects.

We can use this library using NPM, that is configurate the src for the complete sources. To use this library, just install in the project.

To update this library, need to update the package version and then publish using the NPM.

The tokens, foundations are based on design system UICore Design System Template

Requirements

Installation

In the source of the project, run npm install to install the dependencies. There is no build for this project, because the idea is to work with the NPM package and the elements will be accessible in the path: @import '@hanzo/hanzo-ui-core/src/core.scss'; Using this all the css architecture elements will be available in the project.

Updates/new features

To develop Hanzo-ui-core, you must have Node.js version 18.14.2 or higher installed on your machine. You can clone the repository from GitHub and then run npm install or yarn install to install the dependencies:

When the new feature is developed, you need to update the version inside the package.json and publish using npm.

Publish to NPM

  1. Login in NPM with npm username and password.
npm login
  1. If you have two-factor authentication enabled, when prompted, enter a one-time password.
  2. Test you are authenticated.
npm whoami
  1. Create token. TOKEN
  2. Authenticate to the Package Registry If you would like to install a package from a private project, you would have to authenticate to the Package Registry. Skip this step if the project is not private.
npm config set -- //repos.codehanzo.com/api/v4/projects/376/packages/npm/:_authToken="${TOKEN}"
  1. Set the registry
npm config set @hanzo:registry https://repos.codehanzo.com/api/v4/projects/376/packages/npm/
  1. Update the version in the package.json
  2. Publish to NPM
npm publish

If everything went fine, there is available the new NPM package with the updated version

  1. Install the package in the project you need.
npm install @hanzo/hanzo-ui-core@1.0.8

Requirement in the project you will use this NPM package

This project is using the scss files and need a proper webpack configuration to compile. You can based in this webconfig: https://repos.codehanzo.com/hanzo/hanzo-ui-basics-react/-/blob/master/webpack.config.js

Need to install npm dependencies for:

  • css-loader
  • sass
  • sass-loader

In the global css file or when you need to use some css architecture file or config, need to import the core css. @import '@hanzo/hanzo-ui-core/src/core.scss';

Using tokens

Tokens are used to make maintenance easier. In the project that it is using this NPM package, it can be configurable this elements.

  • Colors
  • Typography
  • Spacers
  • Wrappers

Just override the tokens in the project and all elements will have this foundations.

1.2.0

2 years ago

1.0.70

2 years ago

1.0.62

2 years ago

1.0.61

2 years ago

1.0.60

2 years ago

1.0.63

2 years ago

1.0.59

2 years ago

1.0.58

2 years ago

1.0.57

2 years ago

1.0.56

2 years ago

1.0.55

2 years ago

1.0.54

2 years ago

1.0.53

2 years ago

1.0.52

2 years ago

1.0.51

2 years ago

1.0.50

2 years ago

1.0.49

2 years ago

1.0.48

2 years ago

1.0.47

2 years ago

1.0.46

2 years ago

1.0.45

2 years ago

1.0.44

2 years ago

1.0.43

2 years ago

1.0.42

2 years ago

1.0.41

2 years ago

1.0.40

2 years ago

1.0.39

2 years ago

1.0.38

2 years ago

1.0.37

2 years ago

1.0.36

2 years ago

1.0.35

2 years ago

1.0.34

2 years ago

1.0.33

2 years ago

1.0.32

2 years ago

1.0.31

2 years ago

1.0.30

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago