@dscout/particle v1.0.0-alpha.36
Particle
A CSS framework and React component library for building dscout user interfaces. Visit the documentation site to learn more.
Usage
Install particle using yarn or npm:
$ yarn add @dscout/particle
$ npm install --save @dscout/particleEverything is a named export on the namespace "@dscout/particle," for example:
import React from 'react';
import { Container, Heading } from '@dscout/particle';
export default function Announcement() {
return (
<Container>
<Heading level="2">Important!</Heading>
<p>Make sure to eat your vegetables.</p>
</Container>
);
}Stylesheets
Stylesheets are included in two formats: css and scss.
Pre-compiled stylesheets are located in the lib directory of the build output.
To import into a plain CSS file:
@import 'node_modules/@dscout/particle/lib/stylesheets/particle.css';
@import 'node_modules/@dscout/particle/lib/stylesheets/particle.min.css';The source scss file is located in the styles directory.
You can import it into your own scss file like so:
@import '@dscout/particle/styles/particle.scss';Developing with Storybook
Storybook provides an isolated development environment for Particle components as well as a published static site that serves as a playground and documentation.
Install dependencies
Particle uses asdf to manage the node dependencies. To develop locally first install asdf with:
brew install asdfThen install nodejs. If you don't already have nodejs set up on your machine you may first need install its dependencies and OpenPGP keys:
brew install coreutils
brew install gpg
bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyringInstall asdf dependencies
asdf installInstall NPM dependencies with yarn:
yarn installStart Storybook
Run Storybook locally:
yarn startScripts
A variety of scripts are provided for running common tasks.
Lint with ESLint and run typechecker:
yarn lintStart the Vitest test runner in watch mode:
yarn testContributing
See the wiki for details on how to contribute to Particle.
Releasing a new version
Instructions for preparing a new release and submitting it to npm can be found here.
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
10 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago
9 years ago