Skip to content
React components and CSS styles for Cozy apps
Branch: master
Clone or download
Latest commit a5a9e94 May 17, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github 📚 doc: add pr template Apr 18, 2018
assets fix: Illustration viewboxes May 10, 2019
codemods 🔧 chore: add button-new-api codemod Mar 20, 2018
docs feat(BarBackButton): Add BarBackButton May 13, 2019
examples feat: 🔧 Use babel.config.js + improve it Feb 12, 2019
loaders fix: fill strip loader lowercase Apr 9, 2018
react Merge pull request #991 from cozy/fix/PushClientBannerDOM May 17, 2019
scripts feat: Moved left/right arrow icons May 7, 2019
stylus feat: Responsive position utils May 17, 2019
test feat: Use React ⚛️ instead of preact Oct 8, 2018
.editorconfig [fix] ensure stylus indent Dec 14, 2016
.eslintignore Revert "Merge pull request #729 from cozy/refacto/theme" Dec 18, 2018
.eslintrc.json chore: Specify React version in .eslintrc Nov 20, 2018
.gitignore Revert "Merge pull request #729 from cozy/refacto/theme" Dec 18, 2018
.npmignore chore: Avoid shipping extra files to npm Mar 15, 2019
.travis.yml chore: setup semantic-release Jun 5, 2018 chore(release): 9.13.0 [skip ci] Jun 18, 2018
CODEOWNERS chore: New codeowner 🎉 Apr 2, 2019
LICENSE [chore] Enable linting on travis (#36) Feb 2, 2017
babel.config.js fix: Transpile locales May 13, 2019
index.js fix: Icon use Sprite in styleguidist Nov 6, 2018
package.json fix: CozyClient is now a peerDep May 15, 2019
parser-preset.js 🔧 chore(semantic-release): allow emoji prefix in commit messages Jun 16, 2018
postcss.config.js feat: 🔧 Use postcss to optimize transpiled css output Feb 12, 2019
preprocess.js feat: 🔧 Upgrade some deps + add postcss and cssnano Feb 11, 2019
release.config.js 🔧 chore(semantic-release): allow emoji prefix in commit messages Jun 16, 2018
renovate.json chore: Don't pin dependencies Apr 23, 2019
yarn.lock fix: CozyClient is now a peerDep May 15, 2019

Styleguidist Styleguide Travis build status shield NPM release version shield Github Release version shield NPM Licence shield

Cozy UI

CSS classes and React components designed to build Cozy apps.

If you plan to build a webapp to run on Cozy, you'll probably want to use a simple and elegant solution to build your interfaces without the mess of dealing with complex markup and CSS. Then Cozy UI is here for you!

CSS Styleguide

Check the styleguide to see all the variables, mixins, classes, utilities and how to use them with only CSS classes.

React components

Check out UI components to see how to use ready made (p)React components.


As a Components library

Add Cozy UI to a dependency to your project.

npm install cozy-ui

If you use the transpiled components (from cozy-ui/transpiled/react), you need to import the stylesheet (once):

import Button from 'cozy-ui/transpiled/react/Button'
import 'cozy-ui/transpiled/react/stylesheet.css'

<Button />

You're now ready to use Cozy UI's (p)React components

As a vanilla CSS library

The entire library is also available as a good ol’ CSS library. You can simply add it to your app by linking the distributed minified file.

<link media="all" rel="stylesheet" href=“cozy-ui/dist/cozy-ui.min.css" />

Develop on Cozy UI

If you want to customize or improve a Cozy UI Component, you need to clone a local version of the library, and declare it as a local symlink with yarn link.

git clone
cd cozy-ui
yarn link

Then in your application folder, you can link to your local Cozy UI

yarn link cozy-ui
yarn watch

All your modification in your local Cozy UI will now be visible in your application!

When sending a PR, if your changes have graphic impacts, it is useful for the reviewers if you have deployed a version of the styleguidist containing your changes to your repository.

yarn build:doc:react
yarn deploy:doc --repo


Cozy UI is developed by Cozy Cloud and distributed under the AGPL-3.0 license.

What is Cozy?

Cozy Logo

Cozy is a platform that brings all your web services in the same private space. With it, your web apps and your devices can share data easily, providing you with a new experience. You can install Cozy on your own hardware where no one profiles you.


You can reach the Cozy Community by:

You can’t perform that action at this time.