bigcommerce/big-design
Tentang
Design system that powers the BigCommerce ecosystem.
Desain dan mediaPertumbuhan bintang terukur
- dalam 24 jam
- 0
- dalam 7 hari
- 0
- dalam 15 hari
- 0
- dalam 1 bulan
- Mengumpulkan riwayat
Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.
README.md
AsliDocumentation
You can find documentation and examples on our docs page.
Quick start guide
Add BigDesign and styled-components@6 to your project using npm:
npm install @bigcommerce/big-design styled-components@6
or with pnpm:
pnpm add @bigcommerce/big-design styled-components@6
Add the font as a <link> in your index.html/<head> element.
<head>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="" />
<link href="https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@200;300;400;600&display=swap" rel="stylesheet" />
</head>
If using Next.js, utilize the next/fonts/google import:
import { Source_Sans_3 } from 'next/font/google';
const sourceSans3 = Source_Sans_3({
display: 'swap',
weight: ["200", "300", "400", "600"],
subsets: ['latin'],
});
See https://nextjs.org/docs/app/api-reference/components/font for more details on how to apply the font.
Import the GlobalStyles component and use it once in your app. This will set a few styles globally
and add normalize.css. We recommend placing it close to
your root component. Then import any component, such as Button, to use it anywhere in your app.
import { Button, GlobalStyles } from '@bigcommerce/big-design';
...
<App>
<GlobalStyles />
<Button>Click me</Button>
</App>
Version support
| Versions | React | styled-components | Status |
|---|---|---|---|
[email protected] / [email protected] / [email protected] / [email protected] (latest) |
19 | ^6.1.14 |
Active |
[email protected] / [email protected] / [email protected] / [email protected] |
18 | ^6.1.14 |
Deprecated, do not use (broken Flex/Grid/icon layout defaults; see npm deprecation notice) |
[email protected] / [email protected] / [email protected]–5.x / [email protected] |
18 | ^5 |
Maintained; backports considered case-by-case |
Monorepo
This monorepo uses Turborepo and pnpm Workspaces.
Workspaces are inside the packages directory.
- big-design: React component library.
- big-design-theme: Default Theme.
- big-design-icons: Icons library.
- big-design-patterns: Pattern library.
- docs: Documentation live here.
- configs: (internal) Shared configs between packages.
Changelogs
As this is a monorepo, each package has it's own Changelog. Links for each can be found below
Contributing
To contribute, please read our Contributing guidelines and Code of Conduct first.
Development
Running the following commands will run big-design and docs in watch mode.
pnpm
pnpm run build:icons
pnpm run start
Run tests with:
pnpm run test
Update snapshots with:
pnpm build
cd packages/big-design
pnpm run test --update-snapshot
Run linter with:
pnpm run lint
Optional: If you use VS Code, use the following command to configure VSCode with the project-specific settings:
cp .vscode/settings.example.json .vscode/settings.json
Releasing
Project maintainers should release through the Changesets Pull Request. To do this, go to the Pull Request tab, approve, and merge it. The release will then be automatically published to npm, and the documentation will be deployed.
License
Big Design is licensed under MIT and CC BY 3.0. See LICENSE.md for more details.
Jelajahi proyek terkait
Memuat…