@jahia/moonstone
TypeScript icon, indicating that this package has built-in type declarations

2.7.1 • Public • Published
Jahia logo

Moonstone

Jahia Design System

Moonstone is our library of styles re-usable React components

Version Documentation

Install

yarn add @jahia/moonstone

Import global styles into your project

Use the component GlobalStyle add the root of your app to load CSS globals and resets.

Use the design System

import React from 'react'
import logo from './logo.svg'
import './App.css'
import {GlobalStyle, Typography} from 'moonstone'

function App() {
    return (
        <>
            <GlobalStyle/>
            <div className='App'>
                <header className='App-header'>
                    <img src={logo} className='App-logo' alt='logo' />
                    <Typography>
                        Edit <code>src/App.js</code> and save to reload.
                    </Typography>
                    <a
                        className='App-link'
                        href='https://reactjs.org'
                        target='_blank'
                        rel='noopener noreferrer'
                    >
                        Learn React
                    </a>
                </header>
            </div>
        </>
    )
}

export default App

Test changes with Jahia using yalc

First, build moonstone:

yarn build

Then, publish locally:

yalc publish

Next, add the local package to app-shell:

yalc add @jahia/moonstone

Install any additional dependencies that may now be required:

yarn

Now, you can deploy app-shell via docker or to the local installation as you usually do.

Author

👤 Jahia

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator

Readme

Keywords

none

Package Sidebar

Install

npm i @jahia/moonstone

Weekly Downloads

137

Version

2.7.1

License

none

Unpacked Size

7.16 MB

Total Files

1410

Last publish

Collaborators

  • cmailleux
  • shuber
  • gflores-jahia
  • jahiaadmin
  • mdechecchi
  • jahia-ci