Skip to content

Latest commit

 

History

History
82 lines (55 loc) · 2.78 KB

File metadata and controls

82 lines (55 loc) · 2.78 KB

CSPR.design

CSPR.design is a React-based UI component library powering the CSPR.suite application family, including CSPR.live and Casper Wallet. It provides a consistent design language, reusable components, and shared styling utilities to ensure a cohesive user experience across products. CSPR.design enables faster development, easier maintenance, and a unified brand presence throughout the Casper Ecosystem.

Battle-tested components from production apps
Blockchain-focused with Casper-specific utilities
Consistent design across the Casper ecosystem

Install TypeScript Production


Get started

Install from NPM to access ready-to-use components that bring the beloved Casper blockchain community UI to your dApp:

npm install @make-software/cspr-design

Save time on design and implementation with a consistent Casper Network look:

import {
  CSPR,
  BodyText,
  FlexColumn,
  PrecisionCase
} from '@make-software/cspr-design';

const MyApp = () => (
  <FlexColumn itemsSpacing={20}>
    <BodyText size={2}>Account Balance:</BodyText>
    <CSPR
      motes="50000000000000"
      precisionCase={PrecisionCase.full}
    />
  </FlexColumn>
);

Storybook examples

Explore CSPR.design Storybook for live previews of every component, complete with usage guidelines and props. See how each UI element behaves in real-world scenarios. No guesswork, just plug and play.

CSPR.design Storybook

Troubleshooting

Please add the following to your vite.config.js if you are experiencing issues with vite and styled-components:

resolve: {
  alias: {
    'styled-components': resolve(__dirname, 'node_modules', 'styled-components'),
  },
},

See styled-components FAQ →


Resources

📕 Storybook: Interactive examples
🐞 GitHub Issues: Please report issues here
💬 Casper Telegram Community: Ask developers and fellow builders for help


Star this repo if CSPR.design helped you build something cool!

Built by MAKE for the Casper ecosystem