@clarke-energia/foton
v1.62.0
Published
Partículas que compõem a luz e podem ser definidos como pequenos “pacotes” que transportam a energia contida nas radiações eletromagnéticas.
Readme
Foton-UI
Clarke's Design System implementation
Architecture
This is the target architecture of the components folder, following the atomic design principle:
componentscomponent-nameindex.tsxindex.stories.tsxatomsatom-one.tsx- ...
moleculesmolecule-one.tsx- ...
Obs.: remember to naming the folders and files with Kebab Case convention.
Installing the project locally
Run
yarn installRunning storybook
Run:
yarn storybookCreating new components
- Create component function
- Create component .stories file
- Export component in
src/lib/index.ts
Integrating into an existing React project
Prerequisites
- You need to have installed
react,tailwindcss,heroiconsin your project.
Plugging into your tailwind.config.js
NOTE: Integrating this package into your tailwind configuration might override your previous setup
// tailwind.config.js
const { fotonPlugin } = require('@clarke-energia/foton').fotonTailwind
module.exports = [
//...
plugins: [require('@tailwindcss/forms'), fotonPlugin], // This is needed
//...
]You are good to go!
Tests
yarn test-storybook