GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - oacore/design: Design Elements is shared components library for CORE. Made with ❤️ and React

BranchesTags
Open more actions menu

Latest commit

 

History

768 Commits
768 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
assets
assets
 
 
bin
bin
 
 
docs
docs
 
 
src
src
 
 
.cssmodulesrc
.cssmodulesrc
 
 
.editorconfig
.editorconfig
 
 
.eslintrc.yml
.eslintrc.yml
 
 
.gitignore
.gitignore
 
 
.huskyrc
.huskyrc
 
 
.lintstagedrc
.lintstagedrc
 
 
.npmrc
.npmrc
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
babel.config.js
babel.config.js
 
 
design.config.js
design.config.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
postcss.config.js
postcss.config.js
 
 
prettier.config.js
prettier.config.js
 
 
styleguide.config.js
styleguide.config.js
 
 
stylelint.config.js
stylelint.config.js
 
 

Repository files navigation

Design

Shared UI components used across our frontend projects. For more info see docs.

The project requires Node.js and NPM package manager.

⚠ NOTE: In order to download our @oacore packages from Github NPM registry you will need to generate github token with package read permission here.

How to install and setup it?

The installation and setup process is pretty straightforward.

First of all you need to install the package:

npm install @oacore/design

Then you need to import CSS files globally in your entry file:

Via JS:

import '@oacore/design/lib/index.css'

Via CSS:

@import url("~@oacore/design/lib/index.css");

Optionally:

If you want to use custom icons in your project you will need to create config file. The config file needs to export schema specified here. The file has to be named design and the extension needs to follow cosmiconfig rules. We recommend you to use design.config.js.

Run development mode

To develop the library you need to run these commands:

npm install        # to install all dependencies
npm run build      # to complile files and run docs in dev mode

If you want to develop this library simultaneously with other project you can link them as follows:

path_to_design_folder:/# npm link
path_to_project_where_design_is_a_dependency:/# npm link @oacore/design

⚠ You may run into the issue with the multiple react libraries. Therefore the best solution is to use aliases in you build tool:

For webpack you should have something like:

webpack.config.js

{
  ...
  'resolve': {
    'alias': {
      'react': path.join(__dirname, 'node_modules', 'react'),
      'react-dom': path.join(__dirname, 'node_modules', 'react-dom')
  }
  ...
}

Design vendor update on other repositories

Run npm update @oacore/design

Load specific version

On 'package.json' set:

  • specific branch
"dependencies": {
   "@oacore/design": "github:oacore/design#BRANCH_NAME,
   }
  • local version
"dependencies": {
   "@oacore/design": "file:../path/design",
   }
  • latest version
"dependencies": {
    "@oacore/design": "latest",
   }

For CHANGELOG refer here.

About

Design Elements is shared components library for CORE. Made with ❤️ and React

design.oacore.now.sh

Topics

cssreact

Resources

Readme
MIT license
Activity
Custom properties

Stars

6 stars

Watchers

2 watching

Forks

1 fork
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.