fcs-design-system
v0.0.4
Published
design system react components
Downloads
1
Maintainers
Readme
FCS Design System
fcs-design-system
🔗 Documentation page: https://stembrino.github.io/fcs-design-system
You can install the package via npm:
npm i fcs-design-system
yarn add fcs-design-system
Start develop
Recommended VSC profile to development: https://gist.github.com/stembrino/bafdbadf2f55cf23b884eb73a75615a4
yarn prepare
yarn
yarn sb
Use the prompt yarn gen
to generate new components 🤖
Rules 👩⚖️
- Mobile first.
- Prioritize stateless over stateful components.
- Do not "hadouken 🥦" the functions.
- Complex functions must have unit tests.
- Ue Figma community to create a component.
External library
Avoid use external library. use just if really needed. This library.
Don't forget to add the component to your
index.ts
exports if you want the library to export the component!
Accessibility
Use ARIA: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA
Include keyboard navigation.
Add a visible state of focus.
- https://developer.mozilla.org/en-US/docs/Web/CSS/:focus
- https://developer.mozilla.org/pt-BR/docs/Web/CSS/:focus-within
Unit Tests
❗Everything core component parts should be tested, avoiding unnecessary tests.
- Try coverage all state of the component with relevant actions unit tests.