Skip to content

dailybruin/lux

Folders and files

NameName
Last commit message
Last commit date
Oct 10, 2018
Oct 10, 2018
Feb 1, 2024
Nov 28, 2018
Oct 11, 2018
Sep 9, 2018
Sep 20, 2018
Jan 9, 2019
Jan 9, 2019
Oct 2, 2018
May 29, 2019
May 31, 2019
Nov 28, 2018
Apr 24, 2019
Feb 1, 2024
Nov 24, 2018
Nov 27, 2018
Apr 19, 2019
Feb 1, 2024

Repository files navigation

Lux

npm Build Status codecov dependencies Status devDependencies Status code style: prettier tested with jest Commitizen friendly license

Lux is a design system for the Daily Bruin, written in TypeScript and React.

You may also be interested in projects that use Lux, which include our gatsby starter and dailybruin.com's frontend.

Usage

To use Lux, simply install it with your favorite package manager, e.g.:

yarn add @dailybruin/lux

Import components with the following syntax:

import { Article } from '@dailybruin/lux'

Note that Lux is published as TypeScript files, and thus is only available to projects that use TypeScript and some kind of build system (e.g., Webpack). If you run into errors setting Lux up with your project, please file an issue.

Development

To start a dev server for the docs:

yarn start

To test:

yarn test

Deployment

Lux is autopublished to npm by Travis with semantic-release and travis build stages. Tokens were set up with semantic-release-cli (semantic-release-cli setup), using dailybruin-bot's npm and GitHub credentials.

yarn publish

To build the docs:

yarn build:docs