0.1.236 • Published 15 days ago

akeneo-design-system v0.1.236

Weekly downloads
229
License
OSL-3.0
Repository
-
Last release
15 days ago

Akeneo Design System

What is a design system?

Meet designer's best friend

Welcome to the Akeneo Design System. This comprehensive guide and resource library contains everything you'll need to design with us. The use of the system reduces design debt, accelerates the design process, and builds bridges between teams working in concert to bring products to life in their best visual form.

But why it's so important?

Avoid the Tower of Babel of design.

As teams grow, it's common for designers to concentrate on discrete areas of an app and solve problems individually and not systematically. It can lead to a fragmented and not consistent visual language.

Access to a single source of truth.

We created this library to manage all brand and UX components to keep internal and external Akeneo designers and engineers informed and easier to work processes.

Design at Scale.

Empower your process to create delightful and consistent user experiences across every product and collaborator - Everyone gets the building blocks to contribute right away on every topic. The aim of Akeneo Design System is to help Akeneo designers and developers deliver work faster and better.

How to see components and guidelines?

This project uses Storybook (https://storybook.js.org/) to display components and guidelines.

Preview

Latest version is available here: https://dsm.akeneo.com

Locally

To build this project, you need to have the following package installed:

You should execute the following commands:

$ yarn install
$ yarn storybook:start

Then open http://localhost:6006 on your browser. You don't have to relaunch the command at each time you create or update a component.

Using Akeneo Design System component in my project

To add Akeneo Design System to your React application, run:

$ yarn add akeneo-design-system

Once the package installed, you should provide the theme related to your project at the top of your application:

import React from 'react';
import {ThemeProvider} from 'styled-components';
{/* change with your theme path */}
import {theme} from 'akeneo-design-system/theme/pim'

const App = () => {
  return (
    <>
      <ThemeProvider theme={theme}>
        {/* All your application*/}
      </ThemeProvider>
    </>
  )
};

After you can include and render all needed components in your application:

import { Badge } from 'akeneo-design-system'

const MyHomePage = () => (
  <div>
    <Badge level="primary">Hello Word!</Badge>
  </div>
)

To know the props of each component, visit the dedicated page of the component here: https://dsm.akeneo.com. You can edit all properties and click on "Show code" in the playground section available for each components.

Contribution

This project has been automatically extracted from the following mono-repository: https://github.com/akeneo/pim-community-dev. If you want to contribute please create a pull request in this repository.

What can go in the Akeneo Design System?

This repository contains:

  • Simple and complex (composition) components used several times in multiple products
  • Illustrations used several times in multiple products
  • Icons used by components in this repository
  • Basic React hooks
  • Specific themes of Akeneo products (PIM, Onboarder, Shared Catalogs)

What cannot go in the Akeneo Design System?

  • Specific views: each project can specify specific components for specific UI logic.
  • Code relative to infrastructure (fetchers translation, routing, validation ...)
  • Logic specific to the domain

How to contribute?

We have collected notes on how to contribute to this project in CONTRIBUTING.md.

Testing instructions

There is two type of tests, unit and visual tests.

Unit tests

Unit tests can be launched with the following commands:

# Launch only one time
$ yarn test:unit:run

# Launch in watch mode
$ yarn test:unit:watch

Unit test should validate all component behaviors => coverage of 100% is required for component in this project. Unit tests are in the same directory of the component.

Visual tests

All components in Storybook are automatically tested visually through snapshot comparison. Normally, stories should describe all possible states, adding manually visual test should be an exception.

Visual tests cannot be launched on your local computer, they are only launched by the continuous integration because the rendering is dependent on the platform. When you create a new story or you modify the visual of a component, continuous integration will automatically create and assign to you a pull request.

0.1.236

15 days ago

0.1.235

16 days ago

0.1.234

22 days ago

0.1.233

23 days ago

0.1.231

23 days ago

0.1.232

23 days ago

0.1.230

1 month ago

0.1.229

3 months ago

0.1.228

4 months ago

0.1.227

5 months ago

0.1.224

10 months ago

0.1.223

10 months ago

0.1.226

6 months ago

0.1.225

8 months ago

0.1.222

10 months ago

0.1.220

12 months ago

0.1.221

11 months ago

0.1.217

1 year ago

0.1.216

1 year ago

0.1.219

1 year ago

0.1.218

1 year ago

0.1.213

1 year ago

0.1.212

1 year ago

0.1.215

1 year ago

0.1.214

1 year ago

0.1.211

1 year ago

0.1.210

1 year ago

0.1.206

1 year ago

0.1.205

1 year ago

0.1.208

1 year ago

0.1.207

1 year ago

0.1.204

1 year ago

0.1.203

1 year ago

0.1.209

1 year ago

0.1.202

1 year ago

0.1.201

1 year ago

0.1.200

2 years ago

0.1.190

2 years ago

0.1.192

2 years ago

0.1.191

2 years ago

0.1.198

2 years ago

0.1.197

2 years ago

0.1.199

2 years ago

0.1.194

2 years ago

0.1.193

2 years ago

0.1.196

2 years ago

0.1.195

2 years ago

0.1.179

2 years ago

0.1.176

2 years ago

0.1.175

2 years ago

0.1.178

2 years ago

0.1.177

2 years ago

0.1.174

2 years ago

0.1.173

2 years ago

0.1.181

2 years ago

0.1.180

2 years ago

0.1.187

2 years ago

0.1.186

2 years ago

0.1.189

2 years ago

0.1.188

2 years ago

0.1.183

2 years ago

0.1.182

2 years ago

0.1.185

2 years ago

0.1.184

2 years ago

0.1.169

2 years ago

0.1.168

2 years ago

0.1.165

2 years ago

0.1.164

2 years ago

0.1.167

2 years ago

0.1.166

2 years ago

0.1.161

2 years ago

0.1.163

2 years ago

0.1.162

2 years ago

0.1.170

2 years ago

0.1.172

2 years ago

0.1.171

2 years ago

0.1.158

2 years ago

0.1.157

2 years ago

0.1.159

2 years ago

0.1.154

3 years ago

0.1.153

3 years ago

0.1.156

2 years ago

0.1.155

2 years ago

0.1.152

3 years ago

0.1.160

2 years ago

0.1.149

3 years ago

0.1.150

3 years ago

0.1.151

3 years ago

0.1.147

3 years ago

0.1.148

3 years ago

0.1.146

3 years ago

0.1.145

3 years ago

0.1.143

3 years ago

0.1.144

3 years ago

0.1.142

3 years ago

0.1.141

3 years ago

0.1.140

3 years ago

0.1.139

3 years ago

0.1.138

3 years ago

0.1.137

3 years ago

0.1.136

3 years ago

0.1.135

3 years ago

0.1.132

3 years ago

0.1.134

3 years ago

0.1.133

3 years ago

0.1.131

3 years ago

0.1.130

3 years ago

0.1.129

3 years ago

0.1.128

3 years ago

0.1.125

3 years ago

0.1.124

3 years ago

0.1.127

3 years ago

0.1.126

3 years ago

0.1.123

3 years ago

0.1.122

3 years ago

0.1.121

3 years ago

0.1.118

3 years ago

0.1.119

3 years ago

0.1.120

3 years ago

0.1.117

3 years ago

0.1.116

3 years ago

0.1.115

3 years ago

0.1.114

3 years ago

0.1.113

3 years ago

0.1.110

3 years ago

0.1.112

3 years ago

0.1.111

3 years ago

0.1.107

3 years ago

0.1.106

3 years ago

0.1.109

3 years ago

0.1.108

3 years ago

0.1.96

3 years ago

0.1.97

3 years ago

0.1.98

3 years ago

0.1.99

3 years ago

0.1.93

3 years ago

0.1.94

3 years ago

0.1.95

3 years ago

0.1.103

3 years ago

0.1.102

3 years ago

0.1.105

3 years ago

0.1.104

3 years ago

0.1.101

3 years ago

0.1.100

3 years ago

0.1.92

3 years ago

0.1.91

3 years ago

0.1.90

3 years ago

0.1.89

3 years ago

0.1.87

3 years ago

0.1.88

3 years ago

0.1.86

3 years ago

0.1.85

3 years ago

0.1.83

3 years ago

0.1.84

3 years ago

0.1.82

3 years ago

0.1.80

3 years ago

0.1.81

3 years ago

0.1.76

3 years ago

0.1.77

3 years ago

0.1.78

3 years ago

0.1.79

3 years ago

0.1.75

3 years ago

0.1.74

3 years ago

0.1.73

3 years ago

0.1.70

3 years ago

0.1.71

3 years ago

0.1.72

3 years ago

0.1.69

3 years ago

0.1.68

3 years ago

0.1.67

3 years ago

0.1.65

3 years ago

0.1.66

3 years ago

0.1.64

3 years ago

0.1.63

3 years ago

0.1.61

3 years ago

0.1.62

3 years ago

0.1.59

3 years ago

0.1.60

3 years ago

0.1.57

3 years ago

0.1.58

3 years ago

0.1.56

3 years ago

0.1.55

3 years ago

0.1.53

3 years ago

0.1.54

3 years ago

0.1.52

3 years ago

0.1.51

3 years ago

0.1.50

3 years ago

0.1.49

3 years ago

0.1.47

3 years ago

0.1.48

3 years ago

0.1.45

3 years ago

0.1.46

3 years ago

0.1.43

3 years ago

0.1.44

3 years ago

0.1.41

3 years ago

0.1.42

3 years ago

0.1.40

3 years ago

0.1.39

3 years ago

0.1.38

3 years ago

0.1.37

3 years ago

0.1.36

3 years ago

0.1.35

3 years ago

0.1.33

3 years ago

0.1.34

3 years ago

0.1.32

3 years ago

0.1.31

3 years ago

0.1.30

3 years ago

0.1.28

3 years ago

0.1.29

3 years ago

0.1.27

3 years ago

0.1.26

3 years ago

0.1.25

3 years ago

0.1.24

3 years ago

0.1.23

3 years ago

0.1.22

3 years ago

0.1.21

4 years ago

0.1.20

4 years ago

0.1.19

4 years ago

0.1.18

4 years ago

0.1.16

4 years ago

0.1.17

4 years ago

0.1.15

4 years ago

0.1.14

4 years ago

0.1.12

4 years ago

0.1.10

4 years ago

0.1.9

4 years ago

0.1.8

4 years ago

0.1.7

4 years ago

0.1.6

4 years ago

0.1.5

4 years ago

0.1.4

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago

0.0.111

4 years ago

0.0.110

4 years ago

0.0.109

4 years ago

0.0.108

4 years ago

0.0.107

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago